Connecting to database specified by database.yml  (0.6ms) select sqlite_version(*) SQL (0.2ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards"  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" SQL (0.1ms) DELETE FROM "switchman_shards" SQLite3::SQLException: no such table: switchman_shards: DELETE FROM "switchman_shards" Connecting to database specified by database.yml  (0.0ms) select sqlite_version(*)  (7.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateSwitchmanShards (20130328212039)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "switchman_shards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "database_server_id" varchar(255), "default" boolean DEFAULT 'f' NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039')  (0.8ms) commit transaction Migrating to CreateDefaultShard (20130328224244)  (0.0ms) begin transaction Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES (?, ?, ?) [["database_server_id", nil], ["default", true], ["name", nil]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (5034.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 1 deploy] SQLite3::BusyException: database is locked: INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244')  (6.9ms) rollback transaction  (0.1ms) select sqlite_version(*) [shard 1 deploy] Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.6ms) SELECT * FROM unnest(current_schemas(false)) PG::UndefinedTable: ERROR: relation "switchman_shards" does not exist LINE 5: WHERE a.attrelid = '"switchman_shards"'::regcla... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"switchman_shards"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum PG::UndefinedTable: ERROR: relation "switchman_shards" does not exist LINE 5: WHERE a.attrelid = '"switchman_shards"'::regcla... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"switchman_shards"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (6.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateSwitchmanShards (20130328212039)  (0.1ms) BEGIN  (4.7ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039')  (0.4ms) COMMIT Migrating to CreateDefaultShard (20130328224244)  (0.1ms) BEGIN Switchman::Shard Exists (0.5ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244')  (0.3ms) COMMIT Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607')  (0.4ms) COMMIT Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442')  (0.3ms) COMMIT Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551')  (0.3ms) COMMIT Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028')  (0.4ms) COMMIT Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923')  (0.3ms) COMMIT Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN  (0.7ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135')  (0.3ms) COMMIT Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820')  (0.3ms) COMMIT  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'development' AND "switchman_shards"."name" IS NULL LIMIT 1  (6.7ms) SELECT * FROM unnest(current_schemas(false)) [shard master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'production' AND "switchman_shards"."name" IS NULL LIMIT 1 SQL (7.3ms) DELETE FROM "switchman_shards" [shard 1 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1 master]  (0.1ms) BEGIN [shard 1 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1 master] SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]] [shard 1 master]  (0.3ms) COMMIT [shard 1 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 2 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_3 [shard 3 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 3 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 3 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 3 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 3 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 3 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 3 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 3 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 3 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 3 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 3 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 3 deploy] Migrating to CreateFeatures (20131206172923)  (1.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 3 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 3 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 3 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 3 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 3 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 3 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_3' WHERE "switchman_shards"."id" = 3 [shard 2 master]  (0.7ms) COMMIT [shard 2 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_4 [shard 4 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 4 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 4 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 4 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 4 deploy]  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 4 deploy]  (0.3ms) COMMIT [shard 4 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 4 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 4 deploy]  (0.3ms) COMMIT [shard 4 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 4 deploy]  (1.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 4 deploy]  (0.3ms) COMMIT [shard 4 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 4 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 4 deploy]  (0.3ms) COMMIT [shard 4 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 4 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 4 deploy]  (0.4ms) COMMIT [shard 4 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 4 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 4 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 4 deploy]  (0.3ms) COMMIT [shard 4 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 4 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 4 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 4 deploy]  (0.3ms) COMMIT [shard 4 deploy]  (0.1ms) BEGIN [shard 2 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_4' WHERE "switchman_shards"."id" = 4 [shard 2 master]  (0.3ms) COMMIT [shard 2 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 2], ["name", nil]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 3], ["name", "switchman_test_shard_3"]] [shard 2 master]  (0.5ms) COMMIT [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 4], ["name", "switchman_test_shard_4"]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master] SQL (0.3ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 1 [shard 3 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 3 LIMIT 1 [shard 2 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (2) [shard 2 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (2) [shard 3 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2]] [shard 2 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2]] [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3 LIMIT 1 [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (4) [shard 2 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (4) [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 2], ["name", nil]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 3], ["name", "switchman_test_shard_3"]] [shard 2 master]  (0.2ms) COMMIT [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 4], ["name", "switchman_test_shard_4"]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:56 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 3 LIMIT 1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.2ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 17], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 18], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 2 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 17 LIMIT 1 [shard 2 master]  (0.1ms) SHOW max_identifier_length [shard 2 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 17 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.2ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.2ms) ROLLBACK [shard 2 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 2], ["name", nil]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 3], ["name", "switchman_test_shard_3"]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 4], ["name", "switchman_test_shard_4"]] [shard 2 master]  (0.2ms) COMMIT [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) ROLLBACK [shard 4 master]  (0.0ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (2, 3) AND (id IN (3,4)) [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.0ms) BEGIN [shard 2 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", "non_existent_shard"]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 2 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 5 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.7ms) SELECT COUNT(*) FROM "users"  [shard 6 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 2], ["name", nil]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.0ms) BEGIN [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 3], ["name", "switchman_test_shard_3"]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master]  (0.0ms) BEGIN [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 4], ["name", "switchman_test_shard_4"]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) ROLLBACK [shard 4 master]  (0.0ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 3 LIMIT 1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.2ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master] SQL (11.5ms) DELETE FROM "switchman_shards" [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 2], ["name", nil]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 3], ["name", "switchman_test_shard_3"]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 4], ["name", "switchman_test_shard_4"]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 2], ["name", nil]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.0ms) BEGIN [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 3], ["name", "switchman_test_shard_3"]] [shard 2 master]  (0.2ms) COMMIT [shard 2 master]  (0.0ms) BEGIN [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 4], ["name", "switchman_test_shard_4"]] [shard 2 master]  (0.2ms) COMMIT [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 3 LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 4 LIMIT 1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10004 LIMIT 1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '10' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", "public"]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_13 [shard 13 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 13 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 13 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 13 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 13 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 13 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 13 deploy]  (0.4ms) COMMIT [shard 13 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 13 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 13 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 13 deploy]  (0.4ms) COMMIT [shard 13 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) BEGIN [shard 13 deploy]  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 13 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 13 deploy]  (0.4ms) COMMIT [shard 13 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 13 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 13 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 13 deploy]  (0.3ms) COMMIT [shard 13 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 13 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 13 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 13 deploy]  (0.4ms) COMMIT [shard 13 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 13 deploy]  (0.4ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 13 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 13 deploy]  (0.3ms) COMMIT [shard 13 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 13 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 13 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 13 deploy]  (0.3ms) COMMIT [shard 13 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_13' WHERE "switchman_shards"."id" = 13 [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) BEGIN [shard 13 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 13 master]  (0.3ms) COMMIT [shard 13 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 13 master]  (5.0ms) DROP SCHEMA switchman_test_shard_13 CASCADE [shard 13 deploy]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 13 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) ROLLBACK [shard 4 master]  (0.0ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) ROLLBACK [shard 4 master]  (0.0ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 2 master]  (0.0ms) ROLLBACK [shard 4 master]  (0.0ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.0ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.2ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 14]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) ROLLBACK [shard 4 master]  (0.0ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) ROLLBACK [shard 4 master]  (0.0ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) ROLLBACK [shard 4 master]  (0.0ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 2 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 15]] [shard 2 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 15 LIMIT 1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) ROLLBACK [shard 4 master]  (0.0ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) ROLLBACK [shard 4 master]  (0.0ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 2], ["name", nil]] [shard 2 master]  (5.7ms) COMMIT [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 3], ["name", "switchman_test_shard_3"]] [shard 2 master]  (5.6ms) COMMIT [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 4], ["name", "switchman_test_shard_4"]] [shard 2 master]  (5.4ms) COMMIT [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.0ms) BEGIN [shard 2 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [shard 2 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 2], ["name", nil]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 3], ["name", "switchman_test_shard_3"]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 4], ["name", "switchman_test_shard_4"]] [shard 2 master]  (0.2ms) COMMIT [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 4 master]  (0.1ms) SAVEPOINT active_record_2 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 4 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master] SQL (5.6ms) DELETE FROM "switchman_shards" [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 2], ["name", nil]] [shard 2 master]  (6.0ms) COMMIT [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 3], ["name", "switchman_test_shard_3"]] [shard 2 master]  (4.7ms) COMMIT [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 4], ["name", "switchman_test_shard_4"]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master] SQL (6.8ms) DELETE FROM "switchman_shards" [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 2], ["name", nil]] [shard 2 master]  (5.0ms) COMMIT [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 3], ["name", "switchman_test_shard_3"]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 4], ["name", "switchman_test_shard_4"]] [shard 2 master]  (0.2ms) COMMIT [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 3 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master] User Load (0.3ms) SELECT "users".* FROM "users" [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.4ms) COMMIT [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) ROLLBACK [shard 4 master]  (0.0ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 2 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-18 18:42:57.935041' [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 2 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-18 18:42:57.941355' [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 2 master] SQL (0.5ms) UPDATE "users" SET "updated_at" = '2014-07-18 18:42:57.945840' [shard 2 master] SQL (0.4ms) DELETE FROM "users" [shard 2 master]  (0.0ms) BEGIN [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 2 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-07-18 18:42:57.951181' [shard 2 master] SQL (0.3ms) DELETE FROM "users" [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) ROLLBACK [shard 4 master]  (0.0ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master] User Load (0.4ms) SELECT "users".* FROM "users"  [shard 2 master] SQL (0.1ms) DELETE FROM "users" [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 2 master] SQL (0.1ms) DELETE FROM "users" [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 2 master] SQL (0.3ms) DELETE FROM "users" [shard 2 master] SQL (0.1ms) DELETE FROM "users" [shard 2 master]  (0.0ms) BEGIN [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 2 master] SQL (0.4ms) DELETE FROM "users" [shard 2 master] SQL (0.1ms) DELETE FROM "users" [shard 2 master]  (0.0ms) BEGIN [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:57 UTC +00:00]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 2 master]  (0.2ms) COMMIT [shard 2 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]] [shard 2 master] CACHE (0.0ms) 2::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]] CACHE (0.0ms) 2::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]]  (0.1ms) BEGIN [shard 2 master]  (0.3ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-07-18 18:42:58.005216' WHERE "users"."id" = 41 [shard 2 master]  (0.3ms) COMMIT [shard 2 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]] [shard 2 master] CACHE (0.0ms) 2::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]] SQL (0.3ms) DELETE FROM "users" [shard 2 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 2], ["name", nil]] [shard 2 master]  (0.2ms) COMMIT [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 3], ["name", "switchman_test_shard_3"]] [shard 2 master]  (0.2ms) COMMIT [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 4], ["name", "switchman_test_shard_4"]] [shard 2 master]  (0.2ms) COMMIT [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 3 LIMIT 1 [shard 2 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 27 LIMIT 1 [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) LIMIT 1 [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 29]] [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 30 LIMIT 1 [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (1.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 2 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 2 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 3 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 32]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 30000000000032 LIMIT 1 [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 2], ["name", nil]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 3], ["name", "switchman_test_shard_3"]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master]  (0.0ms) BEGIN [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 4], ["name", "switchman_test_shard_4"]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 2], ["name", nil]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.0ms) BEGIN [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 3], ["name", "switchman_test_shard_3"]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 4], ["name", "switchman_test_shard_4"]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:43:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:43:58 UTC +00:00]] [shard 3 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.0ms) ROLLBACK [shard 4 master]  (0.0ms) ROLLBACK [shard 3 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master]  (0.0ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 2], ["name", nil]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 3], ["name", "switchman_test_shard_3"]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 4], ["name", "switchman_test_shard_4"]] [shard 2 master]  (0.2ms) COMMIT [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 2 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.2ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 2], ["name", nil]] [shard 2 master]  (0.4ms) COMMIT [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 3], ["name", "switchman_test_shard_3"]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 4], ["name", "switchman_test_shard_4"]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 1]] [shard 2 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 1]] [shard 2 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 1 LIMIT 1 [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 2], ["name", nil]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 3], ["name", "switchman_test_shard_3"]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master]  (0.0ms) BEGIN [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 4], ["name", "switchman_test_shard_4"]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 3 LIMIT 1 [shard 2 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 18]] [shard 3 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 34 LIMIT 1 [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.0ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 19], ["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master] Digit Load (0.6ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 36 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 37 AND "appendages"."id" = $1 LIMIT 1 [["id", 20]] [shard 3 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 23 AND "appendages"."id" = $1 LIMIT 1 [["id", 20]] [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 38 [shard 3 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 38]] [shard 3 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 38 [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.0ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.0ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.0ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 4 LIMIT 1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.3ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 25], ["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 30000000000045], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 19], ["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["value", 2]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 45 AND "digits"."value" IS NULL [shard 3 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 30000000000045 AND "digits"."value" IS NULL [shard 4 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 45]] [shard 3 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 45 AND "digits"."value" IS NULL [shard 3 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 30000000000045 AND "digits"."value" IS NULL [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 46], ["value", 1]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.0ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 30000000000046], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 46 AND "appendages"."value" IS NULL [shard 3 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 30000000000046 AND "appendages"."value" IS NULL [shard 4 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 3 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 46 AND "appendages"."value" IS NULL [shard 3 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 30000000000046 AND "appendages"."value" IS NULL [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.2ms) ROLLBACK [shard 3 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 27], ["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 27], ["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["value", 1]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 30000000000047], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 21], ["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["value", 2]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (1.0ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 47 AND (digits.value IS NOT NULL) [shard 3 master]  (0.5ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 30000000000047 AND (digits.value IS NOT NULL) [shard 4 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 47]] [shard 3 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 47 AND (digits.value IS NOT NULL) [shard 3 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 30000000000047 AND (digits.value IS NOT NULL) [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 28], ["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 30000000000048], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 22], ["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["value", 2]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 48 AND "digits"."value" IS NULL [shard 3 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 30000000000048 AND "digits"."value" IS NULL [shard 4 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 48]] [shard 3 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 48 AND "digits"."value" IS NULL [shard 3 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 30000000000048 AND "digits"."value" IS NULL [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.0ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 49], ["value", 1]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 30000000000049], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 49], ["value", 2]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 49]] [shard 3 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 49 AND (appendages.value IS NOT NULL) [shard 3 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 30000000000049 AND (appendages.value IS NOT NULL) [shard 4 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 49]] [shard 3 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 49 AND (appendages.value IS NOT NULL) [shard 3 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 30000000000049 AND (appendages.value IS NOT NULL) [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 31], ["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["value", 1]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 30000000000050], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 24], ["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["value", 2]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 50 [shard 3 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 50]] [shard 3 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 50 [shard 3 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 30000000000050 [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 51], ["value", 1]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 30000000000051], ["value", 2]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 51 [shard 3 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 51]] [shard 3 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 51 [shard 3 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 30000000000051 [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 40000000000038], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 33]] [shard 3 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 38 LIMIT 1 [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 53 LIMIT 1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 34]] [shard 3 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 53 LIMIT 1 [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.7ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 40000000000040]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 1]] [shard 2 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 40 LIMIT 1 [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.2ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.8ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["owner_id", 17], ["owner_type", "Appendage"], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["value", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 1]] [shard 2 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 17 LIMIT 1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]  (0.2ms) UPDATE "features" SET "owner_id" = 30000000000055, "owner_type" = 'User', "updated_at" = '2014-07-18 18:42:58.491381' WHERE "features"."id" = 1 [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 1]] [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["owner_id", 56], ["owner_type", "User"], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["value", 1]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["owner_id", 30000000000056], ["owner_type", "User"], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["value", 2]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 56 AND "features"."owner_type" = 'User' [shard 3 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 56]] [shard 3 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 56 AND "features"."owner_type" = 'User' [shard 3 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 30000000000056 AND "features"."owner_type" = 'User' [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 30000000000057], ["value", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 18], ["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["value", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 40000000000043], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 30000000000035], ["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["value", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 2 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (18) [shard 2 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (35) [shard 3 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 3 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) [shard 4 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 57 [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.0ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 30000000000058], ["value", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 40000000000044], ["value", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages"  [shard 2 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [shard 2 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 3 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (44) [shard 4 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 58 [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 30000000000059], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 30000000000059], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 36], ["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 27], ["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 40000000000027], ["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 40000000000028], ["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 40000000000045], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 30000000000037], ["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 40000000000029], ["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 40000000000030], ["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 3 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (59) [shard 3 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (30000000000059) [shard 4 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (36, 40000000000027) [shard 3 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (27, 28) [shard 4 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [shard 4 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (45) [shard 4 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (29) [shard 4 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (40000000000030) [shard 3 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 30000000000060], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 40000000000046], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [shard 3 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (60) [shard 3 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (30000000000060) [shard 4 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (46) [shard 4 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (46) [shard 4 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 38 [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 2], ["name", nil]] [shard 2 master]  (0.4ms) COMMIT [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 3], ["name", "switchman_test_shard_3"]] [shard 2 master]  (0.4ms) COMMIT [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 4], ["name", "switchman_test_shard_4"]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 61], ["value", 1]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 61], ["value", 2]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 47], ["value", 3]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 47], ["value", 4]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 47], ["value", 5]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.7ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 61 [shard 3 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 3 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 47 [shard 4 master]  (0.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 4 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 3 LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 4 LIMIT 1 [shard 2 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (40, 41) [shard 3 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (32, 33, 34) [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 62], ["value", 1]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 62], ["value", 2]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 48], ["value", 3]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 48], ["value", 4]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 48], ["value", 5]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 62 [shard 3 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 3 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 48 [shard 4 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 4 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (42, 43) [shard 3 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (35, 36, 37) [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 63], ["value", 1]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 63], ["value", 2]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 49], ["value", 3]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 49], ["value", 4]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 49], ["value", 5]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 63 [shard 3 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 3 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 49 [shard 4 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 4 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (44, 45) [shard 3 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (38, 39, 40) [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 64], ["value", 1]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 64], ["value", 2]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 50], ["value", 3]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 50], ["value", 4]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 50], ["value", 5]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 64 [shard 3 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 3 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 50 [shard 4 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 4 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (46, 47) [shard 3 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (41, 42, 43) [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 65], ["value", 1]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 65], ["value", 2]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 51], ["value", 3]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 51], ["value", 4]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 51], ["value", 5]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 65 [shard 3 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 3 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 51 [shard 4 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 4 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (48, 49) [shard 3 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (44, 45, 46) [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 66], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 3 master] SQL (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 47 [shard 4 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 3 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 47 [shard 4 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 3 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 47 [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 67], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (67) [shard 3 master] SQL (0.1ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (53) [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 68], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 3 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 49 [shard 4 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 3 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 49 [shard 4 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 3 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 49 [shard 4 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 69], ["value", 1]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 40000000000055], ["value", 3]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 30000000000069], ["value", 2]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 55], ["value", 4]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 55], ["value", 5]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SHOW max_identifier_length [shard 2 master]  (0.4ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 3 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 4 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 3 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 4 master]  (0.2ms) SHOW max_identifier_length [shard 4 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 3 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 4 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 3 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (69) [shard 3 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 4 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 4 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 4 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (69) [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 70], ["value", 1]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 40000000000056], ["value", 3]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 30000000000070], ["value", 2]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 56], ["value", 4]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 56], ["value", 5]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 3 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 4 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 3 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 4 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 3 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 4 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 3 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [shard 3 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 4 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 4 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 4 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [shard 3 master]  (0.2ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 71], ["value", 1]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 40000000000057], ["value", 3]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 30000000000071], ["value", 2]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 57], ["value", 4]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 57], ["value", 5]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 3 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 4 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 3 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 4 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 3 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 4 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 3 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [shard 3 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 4 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 4 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 4 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 72], ["value", 1]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 40000000000058], ["value", 3]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 30000000000072], ["value", 2]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 58], ["value", 4]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 58], ["value", 5]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 72], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 73], ["value", nil]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 74], ["value", 1]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 40000000000059], ["value", 3]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 30000000000074], ["value", 2]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 59], ["value", 4]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 59], ["value", 5]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 3 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 4 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 3 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 4 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 3 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 4 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 3 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (74) [shard 3 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 4 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 4 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 4 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (74) [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.0ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 75], ["value", 1]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 3 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 40000000000060], ["value", 3]] [shard 3 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 3 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 30000000000075], ["value", 2]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 60], ["value", 4]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 4 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", 60], ["value", 5]] [shard 4 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 4 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 3 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 4 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 3 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 4 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 3 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 4 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 3 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) [shard 3 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [shard 4 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 4 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [shard 4 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) [shard 3 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 3 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 2], ["name", nil]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 3], ["name", "switchman_test_shard_3"]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 4], ["name", "switchman_test_shard_4"]] [shard 2 master]  (0.2ms) COMMIT [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 2 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 3 LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 4 LIMIT 1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["owner_id", 44], ["owner_type", "User"], ["updated_at", Fri, 18 Jul 2014 18:42:58 UTC +00:00], ["value", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 2 LIMIT 1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master] SQL (5.9ms) DELETE FROM "switchman_shards" [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 2], ["name", nil]] [shard 2 master]  (4.9ms) COMMIT [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 3], ["name", "switchman_test_shard_3"]] [shard 2 master]  (0.3ms) COMMIT [shard 2 master]  (0.0ms) BEGIN [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 4], ["name", "switchman_test_shard_4"]] [shard 2 master]  (0.2ms) COMMIT [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '15' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", "public"]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_22 [shard 22 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 22 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 22 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 22 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 22 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 22 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 22 deploy]  (0.2ms) COMMIT [shard 22 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 22 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 22 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 22 deploy]  (0.3ms) COMMIT [shard 22 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 22 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 22 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 22 deploy]  (0.3ms) COMMIT [shard 22 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 22 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 22 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 22 deploy]  (0.4ms) COMMIT [shard 22 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 22 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 22 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 22 deploy]  (0.3ms) COMMIT [shard 22 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 22 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 22 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 22 deploy]  (0.2ms) COMMIT [shard 22 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 22 deploy]  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 22 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 22 deploy]  (0.3ms) COMMIT [shard 22 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_22' WHERE "switchman_shards"."id" = 22 [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) BEGIN [shard 22 master] SQL (6.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:59 UTC +00:00]] [shard 22 master]  (10.8ms) COMMIT [shard 22 master]  (5.4ms) DROP SCHEMA switchman_test_shard_22 CASCADE [shard 22 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 22]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '16' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", nil]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.0ms) select sqlite_version(*) [shard 23 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 23 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 23 deploy]  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 23 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 23 deploy]  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 23 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 23 deploy]  (0.7ms) commit transaction [shard 23 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 23 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 23 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 23 deploy]  (0.7ms) commit transaction [shard 23 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 23 deploy]  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 23 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 23 deploy]  (0.5ms) commit transaction [shard 23 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 23 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 23 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 23 deploy]  (0.7ms) commit transaction [shard 23 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 23 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 23 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 23 deploy]  (0.7ms) commit transaction [shard 23 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 23 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 23 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 23 deploy]  (0.7ms) commit transaction [shard 23 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 23 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 23 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 23 deploy]  (0.7ms) commit transaction [shard 23 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_23.sqlite3' WHERE "switchman_shards"."id" = 23 [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) begin transaction [shard 23 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 18 Jul 2014 18:42:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:59 UTC +00:00]] [shard 23 master]  (0.8ms) commit transaction [shard 23 master] Drop failed: No such file or directory @ unlink_internal - db/shard_23.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 23]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.0ms) BEGIN [shard 4 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (0.0ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 3]] [shard 2 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 4]] [shard 2 master]  (0.1ms) BEGIN [shard 4 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 2 master]  (0.2ms) CREATE SCHEMA switchman_test_shard_24 [shard 24 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 24 deploy]  (6.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 24 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 24 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 24 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 24 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 24 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 24 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 24 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 24 deploy] Migrating to CreateDigits (20131022202028)  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 24 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 24 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 24 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 24 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 24 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 24 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 24 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 24 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_24' WHERE "switchman_shards"."id" = 24 [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) SAVEPOINT active_record_1 [shard 24 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:42:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:42:59 UTC +00:00]] [shard 24 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 24 master]  (2.7ms) DROP SCHEMA switchman_test_shard_24 CASCADE [shard 24 deploy]  (0.0ms) SAVEPOINT active_record_1 [shard 2 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 24]] [shard 2 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 2 master]  (0.1ms) ROLLBACK [shard 4 master]  (2.1ms) ROLLBACK [shard 2 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 2 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 2 master]  (0.1ms) BEGIN [shard 2 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master]  (0.1ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master]  (0.0ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master]  (0.0ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master]  (0.0ms) ROLLBACK [shard 2 master]  (0.1ms) BEGIN [shard 2 master]  (0.0ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master]  (0.0ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master]  (0.0ms) ROLLBACK [shard 2 master]  (0.0ms) BEGIN [shard 2 master]  (0.0ms) ROLLBACK [shard 2 master]  (20.1ms) DROP SCHEMA switchman_test_shard_3 CASCADE [shard 3 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 3]]  (0.1ms) COMMIT  (6.0ms) DROP SCHEMA switchman_test_shard_4 CASCADE [shard 4 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 4]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.7ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.8ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.2ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.2ms) CREATE SCHEMA switchman_test_shard_26 [shard 26 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 26 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 26 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 26 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 26 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 26 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 26 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 26 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 26 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 26 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 26 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 26 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 26 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 26 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 26 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 26 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 26 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 26 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_26' WHERE "switchman_shards"."id" = 26 [shard 25 master]  (0.6ms) COMMIT [shard 25 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 25 master]  (0.1ms) BEGIN [shard 25 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 25 master]  (0.2ms) COMMIT [shard 25 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_27 [shard 27 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 27 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 27 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 27 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 27 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 27 deploy]  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 27 deploy]  (0.3ms) COMMIT [shard 27 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 27 deploy]  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 27 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 27 deploy]  (0.3ms) COMMIT [shard 27 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 27 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 27 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 27 deploy]  (0.3ms) COMMIT [shard 27 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 27 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 27 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 27 deploy]  (0.3ms) COMMIT [shard 27 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 27 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 27 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 27 deploy]  (0.3ms) COMMIT [shard 27 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 27 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 27 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 27 deploy]  (0.2ms) COMMIT [shard 27 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 27 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 27 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 27 deploy]  (0.3ms) COMMIT [shard 27 deploy]  (0.1ms) BEGIN [shard 25 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_27' WHERE "switchman_shards"."id" = 27 [shard 25 master]  (0.3ms) COMMIT [shard 25 master] SQL (0.2ms) DELETE FROM "switchman_shards" [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 25], ["name", nil]] [shard 25 master]  (0.2ms) COMMIT [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master]  (0.1ms) BEGIN [shard 25 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 26], ["name", "switchman_test_shard_26"]] [shard 25 master]  (0.2ms) COMMIT [shard 25 master]  (0.1ms) BEGIN [shard 25 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 27], ["name", "switchman_test_shard_27"]] [shard 25 master]  (0.2ms) COMMIT [shard 25 master]  (0.0ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.1ms) BEGIN [shard 27 master]  (0.1ms) SAVEPOINT active_record_1 [shard 25 master] SQL (1.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:46:12 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:46:12 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 25 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 26 LIMIT 1 [shard 25 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 27 LIMIT 1 [shard 25 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.1ms) BEGIN [shard 27 master]  (0.1ms) SAVEPOINT active_record_1 [shard 25 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:46:12 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:46:12 UTC +00:00]] [shard 25 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 25 master]  (0.1ms) SAVEPOINT active_record_1 [shard 25 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:46:12 UTC +00:00], ["owner_id", 45], ["owner_type", "User"], ["updated_at", Fri, 18 Jul 2014 18:46:12 UTC +00:00], ["value", nil]] [shard 25 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 25 master] Feature Load (0.3ms) SELECT owner_id FROM "features" WHERE "features"."id" = 3 LIMIT 1 [shard 25 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.1ms) BEGIN [shard 27 master]  (0.1ms) SAVEPOINT active_record_1 [shard 25 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:46:12 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:46:12 UTC +00:00]] [shard 25 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 25 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 25], ["name", nil]] [shard 25 master]  (0.2ms) COMMIT [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master]  (0.1ms) BEGIN [shard 25 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 26], ["name", "switchman_test_shard_26"]] [shard 25 master]  (0.2ms) COMMIT [shard 25 master]  (0.0ms) BEGIN [shard 25 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 27], ["name", "switchman_test_shard_27"]] [shard 25 master]  (0.2ms) COMMIT [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.1ms) BEGIN [shard 27 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 26 LIMIT 1 [shard 25 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.0ms) BEGIN [shard 27 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.0ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.1ms) BEGIN [shard 27 master]  (0.0ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.0ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.1ms) BEGIN [shard 27 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 27 LIMIT 1 [shard 25 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.1ms) BEGIN [shard 27 master]  (0.0ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.0ms) BEGIN [shard 27 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.0ms) BEGIN [shard 27 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.0ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.0ms) BEGIN [shard 27 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10027 LIMIT 1 [shard 25 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.0ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.1ms) BEGIN [shard 27 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.0ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.0ms) BEGIN [shard 27 master]  (0.0ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.0ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.1ms) BEGIN [shard 27 master]  (0.2ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.0ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.1ms) BEGIN [shard 27 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.1ms) BEGIN [shard 27 master]  (0.0ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.0ms) BEGIN [shard 27 master]  (0.0ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.0ms) BEGIN [shard 27 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.1ms) BEGIN [shard 27 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.0ms) BEGIN [shard 27 master]  (0.0ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.0ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.1ms) BEGIN [shard 27 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '2' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 25 master]  (0.1ms) SAVEPOINT active_record_1 [shard 25 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", "public"]] [shard 25 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 25 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_28 [shard 28 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 28 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 28 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 28 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 28 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 28 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 28 deploy]  (0.3ms) COMMIT [shard 28 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 28 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 28 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 28 deploy]  (0.3ms) COMMIT [shard 28 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) BEGIN [shard 28 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 28 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 28 deploy]  (0.3ms) COMMIT [shard 28 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 28 deploy]  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 28 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 28 deploy]  (0.3ms) COMMIT [shard 28 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 28 deploy]  (2.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 28 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 28 deploy]  (0.3ms) COMMIT [shard 28 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 28 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 28 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 28 deploy]  (0.4ms) COMMIT [shard 28 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 28 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 28 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 28 deploy]  (0.7ms) COMMIT [shard 28 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 25 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_28' WHERE "switchman_shards"."id" = 28 [shard 25 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 25 master]  (0.1ms) BEGIN [shard 28 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:46:12 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:46:12 UTC +00:00]] [shard 28 master]  (0.2ms) COMMIT [shard 28 master]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 28 master]  (6.1ms) DROP SCHEMA switchman_test_shard_28 CASCADE [shard 28 deploy]  (0.5ms) SELECT COUNT(*) FROM "users"  [shard 28 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.0ms) BEGIN [shard 27 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 25 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.1ms) BEGIN [shard 27 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 25 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.0ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.0ms) BEGIN [shard 27 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 25 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.0ms) BEGIN [shard 27 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 25 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.0ms) BEGIN [shard 27 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.0ms) BEGIN [shard 27 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.0ms) BEGIN [shard 27 master]  (0.0ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.0ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.1ms) BEGIN [shard 27 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.0ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.0ms) BEGIN [shard 27 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.1ms) BEGIN [shard 27 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.1ms) BEGIN [shard 27 master]  (0.0ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.0ms) BEGIN [shard 27 master]  (0.0ms) ROLLBACK [shard 27 master]  (0.0ms) ROLLBACK [shard 25 master]  (0.0ms) BEGIN [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.0ms) BEGIN [shard 27 master]  (0.1ms) SAVEPOINT active_record_1 [shard 25 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 25 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 25 master]  (0.0ms) SAVEPOINT active_record_1 [shard 25 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 29]] [shard 25 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 25 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.0ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.0ms) BEGIN [shard 27 master]  (0.0ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.1ms) BEGIN [shard 27 master]  (0.0ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.0ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.1ms) BEGIN [shard 27 master]  (0.0ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.0ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.0ms) BEGIN [shard 27 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.0ms) BEGIN [shard 27 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.0ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.0ms) BEGIN [shard 27 master]  (0.0ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.0ms) BEGIN [shard 27 master]  (0.1ms) SAVEPOINT active_record_1 [shard 25 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 25 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 25 master]  (0.1ms) SAVEPOINT active_record_1 [shard 25 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 30]] [shard 25 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 30 LIMIT 1 [shard 25 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.1ms) BEGIN [shard 27 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.0ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.1ms) BEGIN [shard 27 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.0ms) BEGIN [shard 27 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.0ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.1ms) BEGIN [shard 27 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 25 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.0ms) BEGIN [shard 27 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 25 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master] SQL (6.0ms) DELETE FROM "switchman_shards" [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 25], ["name", nil]] [shard 25 master]  (0.2ms) COMMIT [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master]  (0.1ms) BEGIN [shard 25 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 26], ["name", "switchman_test_shard_26"]] [shard 25 master]  (0.2ms) COMMIT [shard 25 master]  (0.0ms) BEGIN [shard 25 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 27], ["name", "switchman_test_shard_27"]] [shard 25 master]  (0.2ms) COMMIT [shard 25 master]  (0.0ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.0ms) BEGIN [shard 27 master]  (0.1ms) SAVEPOINT active_record_1 [shard 25 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:46:12 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:46:12 UTC +00:00]] [shard 25 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 25 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.2ms) ROLLBACK [shard 25 master]  (0.0ms) BEGIN [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.1ms) BEGIN [shard 27 master]  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master] PG::ConnectionBad: connection is closed: ROLLBACK  (0.3ms) ROLLBACK TO SAVEPOINT active_record_-1 [shard 27 master] PG::SyntaxError: ERROR: syntax error at or near "-" LINE 1: ROLLBACK TO SAVEPOINT active_record_-1 ^ : ROLLBACK TO SAVEPOINT active_record_-1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_-2 [shard 27 master] PG::SyntaxError: ERROR: syntax error at or near "-" LINE 1: ROLLBACK TO SAVEPOINT active_record_-2 ^ : ROLLBACK TO SAVEPOINT active_record_-2  (0.2ms) ROLLBACK TO SAVEPOINT active_record_-3 [shard 27 master] PG::SyntaxError: ERROR: syntax error at or near "-" LINE 1: ROLLBACK TO SAVEPOINT active_record_-3 ^ : ROLLBACK TO SAVEPOINT active_record_-3  (0.2ms) ROLLBACK TO SAVEPOINT active_record_-4 [shard 27 master] PG::SyntaxError: ERROR: syntax error at or near "-" LINE 1: ROLLBACK TO SAVEPOINT active_record_-4 ^ : ROLLBACK TO SAVEPOINT active_record_-4  (0.2ms) ROLLBACK TO SAVEPOINT active_record_-5 [shard 27 master] PG::SyntaxError: ERROR: syntax error at or near "-" LINE 1: ROLLBACK TO SAVEPOINT active_record_-5 ^ : ROLLBACK TO SAVEPOINT active_record_-5 Drop failed: ActiveRecord::ConnectionNotEstablished Connecting to database specified by database.yml  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.2ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'development' AND "switchman_shards"."name" IS NULL LIMIT 1  (0.4ms) SELECT * FROM unnest(current_schemas(false)) [shard master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'production' AND "switchman_shards"."name" IS NULL LIMIT 1  (0.1ms) BEGIN [shard 25 master]  (0.1ms) SAVEPOINT active_record_1 [shard 25 master] SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", nil]] [shard 25 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 25 master]  (0.0ms) SAVEPOINT active_record_1 [shard 25 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", nil]] [shard 25 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 25 master]  (0.2ms) ROLLBACK [shard 25 master]  (0.0ms) BEGIN [shard 25 master]  (0.1ms) ROLLBACK [shard 25 master] Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'development' AND "switchman_shards"."name" IS NULL LIMIT 1  (0.5ms) SELECT * FROM unnest(current_schemas(false)) [shard master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'production' AND "switchman_shards"."name" IS NULL LIMIT 1  (0.1ms) BEGIN [shard 25 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.1ms) BEGIN [shard 25 master]  (0.1ms) SAVEPOINT active_record_1 [shard 25 master] SQL (0.8ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", nil]] [shard 25 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 25 master]  (0.1ms) SAVEPOINT active_record_1 [shard 25 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", nil]] [shard 25 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 25 master]  (0.1ms) ROLLBACK [shard 25 master] Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.2ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'development' AND "switchman_shards"."name" IS NULL LIMIT 1  (0.5ms) SELECT * FROM unnest(current_schemas(false)) [shard master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'production' AND "switchman_shards"."name" IS NULL LIMIT 1  (0.0ms) BEGIN [shard 25 master]  (0.1ms) SAVEPOINT active_record_1 [shard 25 master] SQL (0.7ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", nil]] [shard 25 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 25 master]  (0.1ms) SAVEPOINT active_record_1 [shard 25 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", nil]] [shard 25 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 25 master]  (0.1ms) ROLLBACK [shard 25 master]  (0.1ms) BEGIN [shard 25 master]  (0.1ms) ROLLBACK [shard 25 master] Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.2ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'development' AND "switchman_shards"."name" IS NULL LIMIT 1  (0.4ms) SELECT * FROM unnest(current_schemas(false)) [shard master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'production' AND "switchman_shards"."name" IS NULL LIMIT 1 SQL (7.1ms) DELETE FROM "switchman_shards" [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]] [shard 25 master]  (0.3ms) COMMIT [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 37 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_38 [shard 38 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 38 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 38 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 38 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 38 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 38 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 38 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 38 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 38 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 38 deploy] Migrating to CreateDigits (20131022202028)  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 38 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 38 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 38 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 38 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 38 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 38 deploy] Migrating to CreateRoots (20140219183820)  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 38 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 38 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_38' WHERE "switchman_shards"."id" = 38 [shard 37 master]  (1.0ms) COMMIT [shard 37 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 37 master]  (0.2ms) COMMIT [shard 37 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_39 [shard 39 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 39 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 39 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 39 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 39 deploy]  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 39 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 39 deploy]  (0.3ms) COMMIT [shard 39 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 39 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 39 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 39 deploy]  (0.3ms) COMMIT [shard 39 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 39 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 39 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 39 deploy]  (0.3ms) COMMIT [shard 39 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 39 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 39 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 39 deploy]  (0.3ms) COMMIT [shard 39 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 39 deploy]  (1.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 39 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 39 deploy]  (0.3ms) COMMIT [shard 39 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 39 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 39 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 39 deploy]  (0.2ms) COMMIT [shard 39 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 39 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 39 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 39 deploy]  (0.3ms) COMMIT [shard 39 deploy]  (0.1ms) BEGIN [shard 37 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_39' WHERE "switchman_shards"."id" = 39 [shard 37 master]  (0.3ms) COMMIT [shard 37 master] SQL (0.2ms) DELETE FROM "switchman_shards" [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 37], ["name", nil]] [shard 37 master]  (0.2ms) COMMIT [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 38], ["name", "switchman_test_shard_38"]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 39], ["name", "switchman_test_shard_39"]] [shard 37 master]  (0.2ms) COMMIT [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:41 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:41 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:41 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:41 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 38 LIMIT 1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:41 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (6.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:41 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:41 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (5.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:41 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:41 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 37], ["name", nil]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 38], ["name", "switchman_test_shard_38"]] [shard 37 master]  (0.2ms) COMMIT [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 39], ["name", "switchman_test_shard_39"]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 37 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 37], ["name", nil]] [shard 37 master]  (0.2ms) COMMIT [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 38], ["name", "switchman_test_shard_38"]] [shard 37 master]  (0.2ms) COMMIT [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 39], ["name", "switchman_test_shard_39"]] [shard 37 master]  (0.2ms) COMMIT [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 39 LIMIT 1 [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 38 LIMIT 1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.4ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 8 [shard 38 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 8]] [shard 38 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 8 [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 9 AND "appendages"."id" = $1 LIMIT 1 [["id", 5]] [shard 38 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 6 AND "appendages"."id" = $1 LIMIT 1 [["id", 5]] [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 6]] [shard 38 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 10 LIMIT 1 [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7], ["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master] Digit Load (0.6ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 11 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 38 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9], ["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9], ["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["value", 1]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 380000000000014], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3], ["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["value", 2]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 14 AND (digits.value IS NOT NULL) [shard 38 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 380000000000014 AND (digits.value IS NOT NULL) [shard 39 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 14]] [shard 38 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 14 AND (digits.value IS NOT NULL) [shard 38 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 380000000000014 AND (digits.value IS NOT NULL) [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10], ["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 380000000000015], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4], ["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["value", 2]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15 AND "digits"."value" IS NULL [shard 38 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 380000000000015 AND "digits"."value" IS NULL [shard 39 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 15]] [shard 38 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15 AND "digits"."value" IS NULL [shard 38 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 380000000000015 AND "digits"."value" IS NULL [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 16], ["value", 1]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 380000000000016], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 16 AND "appendages"."value" IS NULL [shard 38 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 380000000000016 AND "appendages"."value" IS NULL [shard 39 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 16]] [shard 38 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 16 AND "appendages"."value" IS NULL [shard 38 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 380000000000016 AND "appendages"."value" IS NULL [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 17], ["value", 1]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 380000000000017], ["value", 2]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 17 [shard 38 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 38 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 17 [shard 38 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 380000000000017 [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 13], ["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 380000000000018], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7], ["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["value", 2]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 18 AND "digits"."value" IS NULL [shard 38 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 380000000000018 AND "digits"."value" IS NULL [shard 39 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 38 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 18 AND "digits"."value" IS NULL [shard 38 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 380000000000018 AND "digits"."value" IS NULL [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.2ms) ROLLBACK [shard 38 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 14], ["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["value", 1]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 380000000000019], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["value", 2]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 19 [shard 38 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [shard 38 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 19 [shard 38 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 380000000000019 [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 20], ["value", 1]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 380000000000020], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 20], ["value", 2]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 39 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 38 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 20 AND (appendages.value IS NOT NULL) [shard 38 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 380000000000020 AND (appendages.value IS NOT NULL) [shard 39 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 38 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 20 AND (appendages.value IS NOT NULL) [shard 38 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 380000000000020 AND (appendages.value IS NOT NULL) [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["owner_id", 21], ["owner_type", "User"], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["value", 1]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["owner_id", 380000000000021], ["owner_type", "User"], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["value", 2]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 21 AND "features"."owner_type" = 'User' [shard 38 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 38 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 21 AND "features"."owner_type" = 'User' [shard 38 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 380000000000021 AND "features"."owner_type" = 'User' [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["owner_id", 24], ["owner_type", "Appendage"], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["value", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 4]] [shard 37 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 24 LIMIT 1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master]  (0.2ms) UPDATE "features" SET "owner_id" = 380000000000022, "owner_type" = 'User', "updated_at" = '2014-07-18 18:52:42.289737' WHERE "features"."id" = 4 [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 4]] [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 23 LIMIT 1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 17]] [shard 38 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 23 LIMIT 1 [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 390000000000021], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 18]] [shard 38 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 21 LIMIT 1 [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 25], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 380000000000025], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 380000000000025], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 19], ["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11], ["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 390000000000011], ["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 390000000000012], ["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 390000000000022], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 39 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 380000000000020], ["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 390000000000013], ["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["value", nil]] [shard 38 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 390000000000014], ["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 38 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (25) [shard 38 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (380000000000025) [shard 39 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (19, 390000000000011) [shard 38 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (11, 12) [shard 39 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 39 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (22) [shard 39 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (13) [shard 39 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (390000000000014) [shard 38 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 38 master]  (0.2ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 380000000000026], ["value", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 25], ["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["value", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 390000000000023], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 380000000000021], ["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["value", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 37 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (25) [shard 37 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (21) [shard 38 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 38 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 39 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 26 [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 27], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 380000000000027], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 390000000000024], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 38 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (27) [shard 38 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (380000000000027) [shard 39 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 39 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (24) [shard 39 master] SQL (0.1ms) DELETE FROM "appendages" WHERE "appendages"."id" = 22 [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 380000000000028], ["value", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 390000000000025], ["value", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages"  [shard 37 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (50) [shard 37 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 38 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 39 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 28 [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 390000000000026]] [shard 37 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 37 master] Root Load (0.4ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 2]] [shard 37 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 26 LIMIT 1 [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.0ms) BEGIN [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", "non_existent_shard"]] [shard 37 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [shard 37 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 42 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.9ms) SELECT COUNT(*) FROM "users"  [shard 43 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 37], ["name", nil]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 38], ["name", "switchman_test_shard_38"]] [shard 37 master]  (0.2ms) COMMIT [shard 37 master]  (0.0ms) BEGIN [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 39], ["name", "switchman_test_shard_39"]] [shard 37 master]  (0.2ms) COMMIT [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 31], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 52], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 53], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 53]] [shard 37 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 52 LIMIT 1 [shard 37 master]  (0.1ms) SHOW max_identifier_length [shard 37 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 52 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 38 LIMIT 1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 31], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 62], ["value", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 63], ["value", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 65], ["value", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 66], ["value", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 67], ["value", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 68], ["value", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 37], ["name", nil]] [shard 37 master]  (0.2ms) COMMIT [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 38], ["name", "switchman_test_shard_38"]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master]  (0.0ms) BEGIN [shard 37 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 39], ["name", "switchman_test_shard_39"]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:42 UTC +00:00]] [shard 38 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.0ms) ROLLBACK [shard 38 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.0ms) BEGIN [shard 37 master]  (0.0ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 37], ["name", nil]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 38], ["name", "switchman_test_shard_38"]] [shard 37 master]  (0.2ms) COMMIT [shard 37 master]  (0.0ms) BEGIN [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 39], ["name", "switchman_test_shard_39"]] [shard 37 master]  (0.2ms) COMMIT [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 37], ["name", nil]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.0ms) BEGIN [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 38], ["name", "switchman_test_shard_38"]] [shard 37 master]  (0.2ms) COMMIT [shard 37 master]  (0.0ms) BEGIN [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 39], ["name", "switchman_test_shard_39"]] [shard 37 master]  (0.2ms) COMMIT [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["user_id", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 2]] [shard 37 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 2]] [shard 37 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 2 LIMIT 1 [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.0ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 37], ["name", nil]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 38], ["name", "switchman_test_shard_38"]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 39], ["name", "switchman_test_shard_39"]] [shard 37 master]  (0.2ms) COMMIT [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.0ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 37], ["name", nil]] [shard 37 master]  (0.4ms) COMMIT [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 38], ["name", "switchman_test_shard_38"]] [shard 37 master]  (0.2ms) COMMIT [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 39], ["name", "switchman_test_shard_39"]] [shard 37 master]  (0.2ms) COMMIT [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 39 LIMIT 1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10039 LIMIT 1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.0ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.0ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 38 LIMIT 1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.0ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.0ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.0ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.0ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.0ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '11' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", "public"]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_50 [shard 50 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 50 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 50 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 50 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 50 deploy]  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 50 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 50 deploy]  (0.3ms) COMMIT [shard 50 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 50 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 50 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 50 deploy]  (0.3ms) COMMIT [shard 50 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 50 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 50 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 50 deploy]  (0.3ms) COMMIT [shard 50 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 50 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 50 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 50 deploy]  (0.4ms) COMMIT [shard 50 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 50 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 50 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 50 deploy]  (0.3ms) COMMIT [shard 50 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 50 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 50 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 50 deploy]  (0.2ms) COMMIT [shard 50 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 50 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 50 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 50 deploy]  (0.3ms) COMMIT [shard 50 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_50' WHERE "switchman_shards"."id" = 50 [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) BEGIN [shard 50 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:42 UTC +00:00]] [shard 50 master]  (0.2ms) COMMIT [shard 50 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 50 master]  (4.7ms) DROP SCHEMA switchman_test_shard_50 CASCADE [shard 50 deploy]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 50 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 51]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.0ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 52]] [shard 37 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 37 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 52 LIMIT 1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master] SQL (5.7ms) DELETE FROM "switchman_shards" [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 37], ["name", nil]] [shard 37 master]  (4.9ms) COMMIT [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 38], ["name", "switchman_test_shard_38"]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 39], ["name", "switchman_test_shard_39"]] [shard 37 master]  (0.2ms) COMMIT [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 38 LIMIT 1 [shard 37 master] SQL (0.3ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (69) [shard 37 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (48) [shard 38 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 69]] [shard 37 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 48]] [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 49 [shard 38 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 70]] [shard 37 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 49]] [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [shard 37 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (50) [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 51 LIMIT 1 [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 37], ["name", nil]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 38], ["name", "switchman_test_shard_38"]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master]  (0.0ms) BEGIN [shard 37 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 39], ["name", "switchman_test_shard_39"]] [shard 37 master]  (0.2ms) COMMIT [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 37 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 37 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 38 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 54 LIMIT 1 [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 38 LIMIT 1 [shard 37 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) LIMIT 1 [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 56 LIMIT 1 [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 57]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 380000000000057 LIMIT 1 [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 58]] [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master] SQL (5.0ms) DELETE FROM "switchman_shards" [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 37], ["name", nil]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 38], ["name", "switchman_test_shard_38"]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 39], ["name", "switchman_test_shard_39"]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.0ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.0ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (37, 38) AND (id IN (38,39)) [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.0ms) ROLLBACK [shard 37 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 37], ["name", nil]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.0ms) BEGIN [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 38], ["name", "switchman_test_shard_38"]] [shard 37 master]  (0.2ms) COMMIT [shard 37 master]  (0.0ms) BEGIN [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 39], ["name", "switchman_test_shard_39"]] [shard 37 master]  (0.2ms) COMMIT [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 38 LIMIT 1 [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 39 LIMIT 1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["owner_id", 75], ["owner_type", "User"], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["value", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 5 LIMIT 1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master] SQL (6.0ms) DELETE FROM "switchman_shards" [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 37], ["name", nil]] [shard 37 master]  (0.4ms) COMMIT [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 38], ["name", "switchman_test_shard_38"]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 39], ["name", "switchman_test_shard_39"]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 59], ["value", 1]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 59], ["value", 2]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 45], ["value", 3]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 45], ["value", 4]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (7.0ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 45], ["value", 5]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 59 [shard 38 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 38 master]  (0.5ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 45 [shard 39 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 39 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 38 LIMIT 1 [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 39 LIMIT 1 [shard 37 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (40, 41) [shard 38 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (32, 33, 34) [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 60], ["value", 1]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 60], ["value", 2]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 46], ["value", 3]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 46], ["value", 4]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 46], ["value", 5]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 60 [shard 38 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 38 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 46 [shard 39 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 39 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (42, 43) [shard 38 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (35, 36, 37) [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 61], ["value", 1]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 61], ["value", 2]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 47], ["value", 3]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 47], ["value", 4]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 47], ["value", 5]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 61 [shard 38 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 38 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 47 [shard 39 master]  (0.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 39 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (44, 45) [shard 38 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (38, 39, 40) [shard 39 master]  (0.2ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 62], ["value", 1]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 62], ["value", 2]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 48], ["value", 3]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 48], ["value", 4]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 48], ["value", 5]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 62 [shard 38 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 38 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 48 [shard 39 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 39 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (46, 47) [shard 38 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (41, 42, 43) [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 63], ["value", 1]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 63], ["value", 2]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 49], ["value", 3]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 49], ["value", 4]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 49], ["value", 5]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 63 [shard 38 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 38 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 49 [shard 39 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 39 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (48, 49) [shard 38 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (44, 45, 46) [shard 39 master]  (0.2ms) ROLLBACK [shard 39 master]  (0.2ms) ROLLBACK [shard 38 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 38 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 47 [shard 39 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 38 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 47 [shard 39 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 38 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 47 [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 65], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (65) [shard 38 master] SQL (0.1ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (51) [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 66], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 38 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 49 [shard 39 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 38 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 49 [shard 39 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 38 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 49 [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 67], ["value", 1]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 390000000000053], ["value", 3]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 380000000000067], ["value", 2]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 53], ["value", 4]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 53], ["value", 5]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SHOW max_identifier_length [shard 37 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 38 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 39 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 38 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 39 master]  (0.1ms) SHOW max_identifier_length [shard 39 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 38 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 39 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 38 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 38 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 39 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 39 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 39 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 68], ["value", 1]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 390000000000054], ["value", 3]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 380000000000068], ["value", 2]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 54], ["value", 4]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 54], ["value", 5]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 38 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 39 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 38 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 39 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 38 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 39 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 38 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (68) [shard 38 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 39 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 39 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 39 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (68) [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 69], ["value", 1]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 390000000000055], ["value", 3]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 380000000000069], ["value", 2]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 55], ["value", 4]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 55], ["value", 5]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 38 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 39 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 38 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 39 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 38 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 39 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 38 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (69) [shard 38 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 39 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 39 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 39 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (69) [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 70], ["value", 1]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 390000000000056], ["value", 3]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 380000000000070], ["value", 2]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 56], ["value", 4]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 56], ["value", 5]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 70], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 71], ["value", nil]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 72], ["value", 1]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 390000000000057], ["value", 3]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 380000000000072], ["value", 2]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 57], ["value", 4]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 57], ["value", 5]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 38 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 39 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 38 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 39 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 38 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 39 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 38 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [shard 38 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 39 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 39 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 39 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 73], ["value", 1]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 390000000000058], ["value", 3]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 380000000000073], ["value", 2]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 58], ["value", 4]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["user_id", 58], ["value", 5]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 38 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 39 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 38 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 39 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 38 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 39 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 38 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (73) [shard 38 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 39 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 39 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 39 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (73) [shard 38 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 38 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 37], ["name", nil]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 38], ["name", "switchman_test_shard_38"]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 39], ["name", "switchman_test_shard_39"]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master] SQL (6.3ms) DELETE FROM "switchman_shards" [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.2ms) BEGIN [shard 37 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master]  (0.0ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master]  (0.0ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master]  (0.0ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master]  (0.0ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 37], ["name", nil]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 38], ["name", "switchman_test_shard_38"]] [shard 37 master]  (0.2ms) COMMIT [shard 37 master]  (0.0ms) BEGIN [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 39], ["name", "switchman_test_shard_39"]] [shard 37 master]  (0.2ms) COMMIT [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '33' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "33"], ["default", false], ["name", "public"]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_57 [shard 57 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 57 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 57 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 57 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 57 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 57 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 57 deploy]  (0.3ms) COMMIT [shard 57 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 57 deploy]  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 57 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 57 deploy]  (0.3ms) COMMIT [shard 57 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 57 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 57 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 57 deploy]  (0.3ms) COMMIT [shard 57 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 57 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 57 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 57 deploy]  (0.3ms) COMMIT [shard 57 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 57 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 57 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 57 deploy]  (0.4ms) COMMIT [shard 57 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 57 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 57 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 57 deploy]  (0.2ms) COMMIT [shard 57 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 57 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 57 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 57 deploy]  (0.4ms) COMMIT [shard 57 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_57' WHERE "switchman_shards"."id" = 57 [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) BEGIN [shard 57 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 57 master]  (0.3ms) COMMIT [shard 57 master]  (4.8ms) DROP SCHEMA switchman_test_shard_57 CASCADE [shard 57 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 57]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '34' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "34"], ["default", false], ["name", nil]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) select sqlite_version(*) [shard 58 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 58 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 58 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 58 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 58 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 58 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 58 deploy]  (0.7ms) commit transaction [shard 58 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 58 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 58 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 58 deploy]  (0.7ms) commit transaction [shard 58 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 58 deploy]  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 58 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 58 deploy]  (0.6ms) commit transaction [shard 58 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 58 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 58 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 58 deploy]  (0.6ms) commit transaction [shard 58 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 58 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 58 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 58 deploy]  (0.5ms) commit transaction [shard 58 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 58 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 58 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 58 deploy]  (0.7ms) commit transaction [shard 58 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 58 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 58 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 58 deploy]  (0.7ms) commit transaction [shard 58 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_58.sqlite3' WHERE "switchman_shards"."id" = 58 [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.0ms) begin transaction [shard 58 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 58 master]  (0.6ms) commit transaction [shard 58 master] Drop failed: No such file or directory @ unlink_internal - db/shard_58.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 58]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 37 master]  (0.2ms) CREATE SCHEMA switchman_test_shard_59 [shard 59 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 59 deploy]  (6.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 59 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 59 deploy] Migrating to CreateUsers (20130403132607)  (2.6ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 59 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 59 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 59 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 59 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 59 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 59 deploy] Migrating to CreateDigits (20131022202028)  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 59 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 59 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 59 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 59 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 59 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 59 deploy] Migrating to CreateRoots (20140219183820)  (2.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 59 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 59 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_59' WHERE "switchman_shards"."id" = 59 [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (2.6ms) DROP SCHEMA switchman_test_shard_59 CASCADE [shard 59 deploy]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 59]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (2.2ms) ROLLBACK [shard 37 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 37], ["name", nil]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 38], ["name", "switchman_test_shard_38"]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master]  (0.0ms) BEGIN [shard 37 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 39], ["name", "switchman_test_shard_39"]] [shard 37 master]  (0.2ms) COMMIT [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.0ms) BEGIN [shard 37 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [shard 37 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 37], ["name", nil]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 38], ["name", "switchman_test_shard_38"]] [shard 37 master]  (0.2ms) COMMIT [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 39], ["name", "switchman_test_shard_39"]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 39 master]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 39 master]  (0.1ms) SAVEPOINT active_record_2 [shard 39 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 39 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 39 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) SELECT COUNT(*) FROM "users" [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 37], ["name", nil]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 38], ["name", "switchman_test_shard_38"]] [shard 37 master]  (0.2ms) COMMIT [shard 37 master]  (0.0ms) BEGIN [shard 37 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 39], ["name", "switchman_test_shard_39"]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 38 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 38 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 38 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 38 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 37 master] SQL (0.1ms) DELETE FROM "users" [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 37 master] SQL (0.1ms) DELETE FROM "users" [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 37 master] SQL (0.9ms) DELETE FROM "users" [shard 37 master] SQL (0.1ms) DELETE FROM "users" [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 37 master]  (0.4ms) COMMIT [shard 37 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 37 master] SQL (0.4ms) DELETE FROM "users" [shard 37 master] SQL (0.1ms) DELETE FROM "users" [shard 37 master]  (0.0ms) BEGIN [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 37 master]  (0.2ms) COMMIT [shard 37 master]  (0.0ms) BEGIN [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 83]] [shard 37 master] CACHE (0.0ms) 37::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 83]] CACHE (0.0ms) 37::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 83]]  (0.1ms) BEGIN [shard 37 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-07-18 18:52:43.892859' WHERE "users"."id" = 83 [shard 37 master]  (0.2ms) COMMIT [shard 37 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 83]] [shard 37 master] CACHE (0.0ms) 37::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 83]] SQL (0.3ms) DELETE FROM "users" [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.0ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.0ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.0ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.0ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 37 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.0ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.0ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 37 master]  (0.0ms) BEGIN [shard 37 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 37 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) ROLLBACK [shard 39 master]  (0.0ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.0ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.1ms) BEGIN [shard 39 master]  (0.1ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 37 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-07-18 18:52:43.970049' [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 38]] [shard 37 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 39]] [shard 37 master]  (0.0ms) BEGIN [shard 39 master]  (0.0ms) SAVEPOINT active_record_1 [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 37 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 37 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 37 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-07-18 18:52:43.975071' [shard 37 master]  (0.1ms) ROLLBACK [shard 39 master]  (0.1ms) ROLLBACK [shard 37 master]  (0.1ms) BEGIN [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 37 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-07-18 18:52:43.978860' [shard 37 master] SQL (0.4ms) DELETE FROM "users" [shard 37 master]  (0.0ms) BEGIN [shard 37 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:52:43 UTC +00:00]] [shard 37 master]  (0.3ms) COMMIT [shard 37 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 37 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-07-18 18:52:43.983248' [shard 37 master] SQL (0.4ms) DELETE FROM "users" [shard 37 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 37 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 37 master]  (4.2ms) DROP SCHEMA switchman_test_shard_38 CASCADE [shard 38 deploy]  (0.0ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 38]]  (0.1ms) COMMIT  (6.1ms) DROP SCHEMA switchman_test_shard_39 CASCADE [shard 39 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 39]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.4ms) CREATE SCHEMA switchman_test_shard_61 [shard 61 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 61 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 61 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 61 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 61 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 61 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 61 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 61 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 61 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 61 deploy] Migrating to CreateDigits (20131022202028)  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 61 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 61 deploy] Migrating to CreateFeatures (20131206172923)  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 61 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 61 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 61 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 61 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 61 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 61 deploy]  (0.4ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_61' WHERE "switchman_shards"."id" = 61 [shard 60 master]  (0.9ms) COMMIT [shard 60 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_62 [shard 62 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 62 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 62 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 62 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 62 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 62 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 62 deploy]  (0.3ms) COMMIT [shard 62 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 62 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 62 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 62 deploy]  (0.3ms) COMMIT [shard 62 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 62 deploy]  (1.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 62 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 62 deploy]  (0.3ms) COMMIT [shard 62 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 62 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 62 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 62 deploy]  (0.3ms) COMMIT [shard 62 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 62 deploy]  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 62 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 62 deploy]  (0.5ms) COMMIT [shard 62 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 62 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 62 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 62 deploy]  (0.2ms) COMMIT [shard 62 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) BEGIN [shard 62 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 62 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 62 deploy]  (0.3ms) COMMIT [shard 62 deploy]  (0.1ms) BEGIN [shard 60 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_62' WHERE "switchman_shards"."id" = 62 [shard 60 master]  (0.3ms) COMMIT [shard 60 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 60], ["name", nil]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 61], ["name", "switchman_test_shard_61"]] [shard 60 master]  (0.2ms) COMMIT [shard 60 master]  (0.0ms) BEGIN [shard 60 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 62], ["name", "switchman_test_shard_62"]] [shard 60 master]  (0.4ms) COMMIT [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 60], ["name", nil]] [shard 60 master]  (0.2ms) COMMIT [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.0ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 61], ["name", "switchman_test_shard_61"]] [shard 60 master]  (0.2ms) COMMIT [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 62], ["name", "switchman_test_shard_62"]] [shard 60 master]  (0.2ms) COMMIT [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (1.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 62 master]  (0.1ms) SAVEPOINT active_record_2 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 62 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 60], ["name", nil]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 61], ["name", "switchman_test_shard_61"]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master]  (0.0ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 62], ["name", "switchman_test_shard_62"]] [shard 60 master]  (0.2ms) COMMIT [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 92], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 93], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 61 LIMIT 1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 94], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 95], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 96], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 97], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.2ms) SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 98], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 99], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 99], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 100], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 100]] [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 99 LIMIT 1 [shard 60 master]  (0.1ms) SHOW max_identifier_length [shard 60 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 99 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 102], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.0ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 103], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.2ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 104], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 105], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 60 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 106], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 107], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 108], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 109], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:44 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 60], ["name", nil]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 61], ["name", "switchman_test_shard_61"]] [shard 60 master]  (0.4ms) COMMIT [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 62], ["name", "switchman_test_shard_62"]] [shard 60 master]  (0.2ms) COMMIT [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.2ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", "non_existent_shard"]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 65 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.7ms) SELECT COUNT(*) FROM "users"  [shard 66 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 60 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 60], ["name", nil]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 61], ["name", "switchman_test_shard_61"]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master]  (0.0ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 62], ["name", "switchman_test_shard_62"]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 60 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 62 LIMIT 1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10062 LIMIT 1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 61 LIMIT 1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '11' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", "public"]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_73 [shard 73 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 73 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 73 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 73 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 73 deploy]  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 73 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 73 deploy]  (0.3ms) COMMIT [shard 73 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 73 deploy]  (1.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 73 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 73 deploy]  (0.3ms) COMMIT [shard 73 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 73 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 73 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 73 deploy]  (0.3ms) COMMIT [shard 73 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 73 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 73 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 73 deploy]  (0.4ms) COMMIT [shard 73 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 73 deploy]  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 73 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 73 deploy]  (0.3ms) COMMIT [shard 73 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 73 deploy]  (0.4ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 73 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 73 deploy]  (0.3ms) COMMIT [shard 73 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 73 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 73 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 73 deploy]  (0.4ms) COMMIT [shard 73 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_73' WHERE "switchman_shards"."id" = 73 [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) BEGIN [shard 73 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 73 master]  (0.3ms) COMMIT [shard 73 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 73 master]  (4.6ms) DROP SCHEMA switchman_test_shard_73 CASCADE [shard 73 deploy]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 73 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 74]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 75]] [shard 60 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 75 LIMIT 1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.0ms) ROLLBACK [shard 60 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 60], ["name", nil]] [shard 60 master]  (0.2ms) COMMIT [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.0ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 61], ["name", "switchman_test_shard_61"]] [shard 60 master]  (0.2ms) COMMIT [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 62], ["name", "switchman_test_shard_62"]] [shard 60 master]  (0.2ms) COMMIT [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '27' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "27"], ["default", false], ["name", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) select sqlite_version(*) [shard 76 deploy]  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 76 deploy]  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 76 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 76 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 76 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 76 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 76 deploy]  (0.5ms) commit transaction [shard 76 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) begin transaction [shard 76 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 76 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 76 deploy]  (0.5ms) commit transaction [shard 76 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 76 deploy]  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 76 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 76 deploy]  (0.5ms) commit transaction [shard 76 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 76 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 76 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 76 deploy]  (0.5ms) commit transaction [shard 76 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 76 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 76 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 76 deploy]  (0.6ms) commit transaction [shard 76 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 76 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 76 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 76 deploy]  (0.5ms) commit transaction [shard 76 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 76 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 76 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 76 deploy]  (0.5ms) commit transaction [shard 76 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_76.sqlite3' WHERE "switchman_shards"."id" = 76 [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) begin transaction [shard 76 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 76 master]  (0.6ms) commit transaction [shard 76 master] Drop failed: No such file or directory @ unlink_internal - db/shard_76.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 76]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '28' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "28"], ["default", false], ["name", "public"]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (6.2ms) CREATE SCHEMA switchman_test_shard_77 [shard 77 deploy]  (6.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 77 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 77 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 77 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 77 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 77 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 77 deploy]  (0.3ms) COMMIT [shard 77 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 77 deploy]  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 77 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 77 deploy]  (0.3ms) COMMIT [shard 77 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 77 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 77 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 77 deploy]  (0.3ms) COMMIT [shard 77 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 77 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 77 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 77 deploy]  (0.3ms) COMMIT [shard 77 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 77 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 77 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 77 deploy]  (0.3ms) COMMIT [shard 77 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 77 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 77 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 77 deploy]  (0.2ms) COMMIT [shard 77 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 77 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 77 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 77 deploy]  (0.3ms) COMMIT [shard 77 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_77' WHERE "switchman_shards"."id" = 77 [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) BEGIN [shard 77 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 77 master]  (0.3ms) COMMIT [shard 77 master]  (4.6ms) DROP SCHEMA switchman_test_shard_77 CASCADE [shard 77 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 77]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 60 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_78 [shard 78 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 78 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 78 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 78 deploy] Migrating to CreateUsers (20130403132607)  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 78 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 78 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 78 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 78 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 78 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 78 deploy] Migrating to CreateDigits (20131022202028)  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 78 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 78 deploy] Migrating to CreateFeatures (20131206172923)  (1.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 78 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 78 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 78 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 78 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 78 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 78 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_78' WHERE "switchman_shards"."id" = 78 [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 78 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 78 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 78 master]  (2.5ms) DROP SCHEMA switchman_test_shard_78 CASCADE [shard 78 deploy]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 78]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (2.1ms) ROLLBACK [shard 60 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 60], ["name", nil]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 61], ["name", "switchman_test_shard_61"]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master]  (0.0ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 62], ["name", "switchman_test_shard_62"]] [shard 60 master]  (0.2ms) COMMIT [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 17 [shard 61 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 61 LIMIT 1 [shard 60 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 61 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 17 [shard 61 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 62 LIMIT 1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.9ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 20], ["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master] Digit Load (0.7ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 21 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 61 master]  (0.2ms) ROLLBACK [shard 62 master]  (0.2ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 21]] [shard 61 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 22 LIMIT 1 [shard 61 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 23 AND "appendages"."id" = $1 LIMIT 1 [["id", 22]] [shard 61 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 25 AND "appendages"."id" = $1 LIMIT 1 [["id", 22]] [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.0ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 25], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 24], ["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 610000000000028], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 18], ["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["value", 2]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 28 AND "digits"."value" IS NULL [shard 61 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 610000000000028 AND "digits"."value" IS NULL [shard 62 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 28]] [shard 61 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 28 AND "digits"."value" IS NULL [shard 61 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 610000000000028 AND "digits"."value" IS NULL [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 25], ["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 610000000000029], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 19], ["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["value", 2]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 29 AND "digits"."value" IS NULL [shard 61 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 610000000000029 AND "digits"."value" IS NULL [shard 62 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 29]] [shard 61 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 29 AND "digits"."value" IS NULL [shard 61 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 610000000000029 AND "digits"."value" IS NULL [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 30], ["value", 1]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 610000000000030], ["value", 2]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 30 [shard 61 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 30]] [shard 61 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 30 [shard 61 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 610000000000030 [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 31], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 27], ["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["value", 1]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 610000000000031], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 21], ["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["value", 2]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 31 [shard 61 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 31]] [shard 61 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 31 [shard 61 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 610000000000031 [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 32], ["value", 1]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 610000000000032], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 32 AND "appendages"."value" IS NULL [shard 61 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 610000000000032 AND "appendages"."value" IS NULL [shard 62 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 32]] [shard 61 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 32 AND "appendages"."value" IS NULL [shard 61 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 610000000000032 AND "appendages"."value" IS NULL [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 33], ["value", 1]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 610000000000033], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 33], ["value", 2]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 33]] [shard 61 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 33 AND (appendages.value IS NOT NULL) [shard 61 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 610000000000033 AND (appendages.value IS NOT NULL) [shard 62 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 33]] [shard 61 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 33 AND (appendages.value IS NOT NULL) [shard 61 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 610000000000033 AND (appendages.value IS NOT NULL) [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.0ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 31], ["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 31], ["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["value", 1]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 610000000000034], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 24], ["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["value", 2]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 34 AND (digits.value IS NOT NULL) [shard 61 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 610000000000034 AND (digits.value IS NOT NULL) [shard 62 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 34]] [shard 61 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 34 AND (digits.value IS NOT NULL) [shard 61 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 610000000000034 AND (digits.value IS NOT NULL) [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 620000000000037], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 32]] [shard 61 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 37 LIMIT 1 [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 36 LIMIT 1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 33]] [shard 61 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 36 LIMIT 1 [shard 61 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.0ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["owner_id", 62], ["owner_type", "Appendage"], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 6]] [shard 60 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 62 LIMIT 1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master]  (0.2ms) UPDATE "features" SET "owner_id" = 610000000000037, "owner_type" = 'User', "updated_at" = '2014-07-18 18:53:45.753823' WHERE "features"."id" = 6 [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 6]] [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["owner_id", 38], ["owner_type", "User"], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["value", 1]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["owner_id", 610000000000038], ["owner_type", "User"], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["value", 2]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 38 AND "features"."owner_type" = 'User' [shard 61 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 38]] [shard 61 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 38 AND "features"."owner_type" = 'User' [shard 61 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 610000000000038 AND "features"."owner_type" = 'User' [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 610000000000039], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 63], ["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 620000000000041], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 610000000000034], ["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits"  [shard 60 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (63) [shard 60 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (34) [shard 61 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) [shard 61 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [shard 62 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 39 [shard 61 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.0ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 610000000000040], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 610000000000040], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 35], ["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 26], ["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 620000000000026], ["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 620000000000027], ["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 620000000000042], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 610000000000036], ["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 620000000000028], ["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 620000000000029], ["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) [shard 61 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (40) [shard 61 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (610000000000040) [shard 62 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (35, 620000000000026) [shard 61 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (26, 27) [shard 62 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [shard 62 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (42) [shard 62 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (28) [shard 62 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (620000000000029) [shard 61 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 61 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 610000000000041], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 620000000000043], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [shard 61 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (41) [shard 61 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (610000000000041) [shard 62 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) [shard 62 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (43) [shard 62 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 37 [shard 61 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 610000000000042], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 620000000000044], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 110], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (110) [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [shard 61 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (44) [shard 62 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 42 [shard 61 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["user_id", 620000000000045]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 3]] [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 45 LIMIT 1 [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "29"], ["default", false], ["name", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "29"], ["default", false], ["name", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 60], ["name", nil]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 61], ["name", "switchman_test_shard_61"]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 62], ["name", "switchman_test_shard_62"]] [shard 60 master]  (0.2ms) COMMIT [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 61 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 60 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-18 18:53:45.947960' [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 60 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-07-18 18:53:45.954685' [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 60 master]  (0.4ms) COMMIT [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 60 master] SQL (1.0ms) UPDATE "users" SET "updated_at" = '2014-07-18 18:53:45.959250' [shard 60 master] SQL (0.4ms) DELETE FROM "users" [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 60 master]  (0.2ms) COMMIT [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 60 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-07-18 18:53:45.964223' [shard 60 master] SQL (0.2ms) DELETE FROM "users" [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 60 master] SQL (0.1ms) DELETE FROM "users" [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 60 master] SQL (0.1ms) DELETE FROM "users" [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 60 master]  (0.4ms) COMMIT [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 60 master] SQL (0.3ms) DELETE FROM "users" [shard 60 master] SQL (0.1ms) DELETE FROM "users" [shard 60 master]  (0.0ms) BEGIN [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 60 master]  (0.4ms) COMMIT [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 60 master] SQL (0.3ms) DELETE FROM "users" [shard 60 master] SQL (0.1ms) DELETE FROM "users" [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 121]] [shard 60 master] CACHE (0.0ms) 60::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 121]] CACHE (0.0ms) 60::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 121]]  (0.1ms) BEGIN [shard 60 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-07-18 18:53:45.993813' WHERE "users"."id" = 121 [shard 60 master]  (0.2ms) COMMIT [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 121]] [shard 60 master] CACHE (0.0ms) 60::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 121]] SQL (0.4ms) DELETE FROM "users" [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:45 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 60 master]  (0.0ms) BEGIN [shard 60 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 60 master]  (0.2ms) COMMIT [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 60], ["name", nil]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 61], ["name", "switchman_test_shard_61"]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master]  (0.0ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 62], ["name", "switchman_test_shard_62"]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 3]] [shard 60 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 3]] [shard 60 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 3 LIMIT 1 [shard 61 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 60], ["name", nil]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 61], ["name", "switchman_test_shard_61"]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 62], ["name", "switchman_test_shard_62"]] [shard 60 master]  (0.2ms) COMMIT [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 61 LIMIT 1 [shard 60 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 62 LIMIT 1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["owner_id", 127], ["owner_type", "User"], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 7 LIMIT 1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master] SQL (10.5ms) DELETE FROM "switchman_shards" [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 60], ["name", nil]] [shard 60 master]  (4.9ms) COMMIT [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 61], ["name", "switchman_test_shard_61"]] [shard 60 master]  (0.4ms) COMMIT [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 62], ["name", "switchman_test_shard_62"]] [shard 60 master]  (0.2ms) COMMIT [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (60, 61) AND (id IN (61,62)) [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 60], ["name", nil]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 61], ["name", "switchman_test_shard_61"]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master]  (0.0ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 62], ["name", "switchman_test_shard_62"]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 61 LIMIT 1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.2ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 60], ["name", nil]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 61], ["name", "switchman_test_shard_61"]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 62], ["name", "switchman_test_shard_62"]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 61 LIMIT 1 [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 62 LIMIT 1 [shard 60 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (49) [shard 61 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (46) [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 61 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 62 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 61 master] SQL (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 62 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 61 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 61 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 62 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 61 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 62 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 61 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 62 master]  (0.2ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 52], ["value", 1]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 52], ["value", 2]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 49], ["value", 3]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 49], ["value", 4]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 49], ["value", 5]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 52 [shard 61 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 61 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 49 [shard 62 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 62 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (43, 44) [shard 61 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (35, 36, 37) [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 53], ["value", 1]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 53], ["value", 2]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 50], ["value", 3]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 50], ["value", 4]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 50], ["value", 5]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.5ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 53 [shard 61 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 61 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 50 [shard 62 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 62 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (45, 46) [shard 61 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (38, 39, 40) [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 54], ["value", 1]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 54], ["value", 2]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 51], ["value", 3]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 51], ["value", 4]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 51], ["value", 5]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 54 [shard 61 master]  (0.1ms) SELECT COUNT(*) FROM "appendages"  [shard 61 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 51 [shard 62 master]  (0.1ms) SELECT COUNT(*) FROM "appendages"  [shard 62 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (47, 48) [shard 61 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (41, 42, 43) [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 55], ["value", 1]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 55], ["value", 2]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 52], ["value", 3]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 52], ["value", 4]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 52], ["value", 5]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 55 [shard 61 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 61 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 52 [shard 62 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 62 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (49, 50) [shard 61 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (44, 45, 46) [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 56], ["value", 1]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 56], ["value", 2]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 53], ["value", 3]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 53], ["value", 4]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 53], ["value", 5]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 56 [shard 61 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 61 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 53 [shard 62 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 62 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (51, 52) [shard 61 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (47, 48, 49) [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 57], ["value", 1]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 620000000000054], ["value", 3]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 610000000000057], ["value", 2]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 54], ["value", 4]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 54], ["value", 5]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SHOW max_identifier_length [shard 61 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 61 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 59], ["value", 1]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 620000000000055], ["value", 3]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 610000000000059], ["value", 2]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 55], ["value", 4]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 55], ["value", 5]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 61 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 62 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 61 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 62 master]  (0.1ms) SHOW max_identifier_length [shard 62 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 61 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 62 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 61 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 61 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 62 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 62 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 62 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 61 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 62 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 60], ["value", 1]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 620000000000056], ["value", 3]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 610000000000060], ["value", 2]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 56], ["value", 4]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 56], ["value", 5]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 61 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 62 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 61 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 62 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 61 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 62 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 61 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [shard 61 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 62 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 62 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 62 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [shard 61 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 61], ["value", 1]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 620000000000057], ["value", 3]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 610000000000061], ["value", 2]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 57], ["value", 4]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 57], ["value", 5]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 61 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 62 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 61 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 62 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 61 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 62 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 61 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [shard 61 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 62 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 62 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 62 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [shard 61 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.0ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 62], ["value", 1]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 620000000000058], ["value", 3]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 610000000000062], ["value", 2]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 58], ["value", 4]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 58], ["value", 5]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 61 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 62 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 61 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 62 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 61 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 62 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 61 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (62) [shard 61 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 62 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 62 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 62 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (62) [shard 61 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 63], ["value", 1]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 620000000000059], ["value", 3]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 610000000000063], ["value", 2]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 59], ["value", 4]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["user_id", 59], ["value", 5]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 61 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 62 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 61 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 62 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 61 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 62 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 61 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (63) [shard 61 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 62 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 62 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 62 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (63) [shard 61 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 60], ["name", nil]] [shard 60 master]  (0.2ms) COMMIT [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 61], ["name", "switchman_test_shard_61"]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 62], ["name", "switchman_test_shard_62"]] [shard 60 master]  (0.2ms) COMMIT [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 60], ["name", nil]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 61], ["name", "switchman_test_shard_61"]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 62], ["name", "switchman_test_shard_62"]] [shard 60 master]  (0.2ms) COMMIT [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 61 LIMIT 1 [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 64 LIMIT 1 [shard 61 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) LIMIT 1 [shard 61 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 66 LIMIT 1 [shard 61 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.0ms) SAVEPOINT active_record_1 [shard 62 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 62 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 62 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 60 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 60 master] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 61 master] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 68]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 610000000000068 LIMIT 1 [shard 61 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 69]] [shard 61 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 60], ["name", nil]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 61], ["name", "switchman_test_shard_61"]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master]  (0.0ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 62], ["name", "switchman_test_shard_62"]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:54:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:54:46 UTC +00:00]] [shard 61 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.0ms) ROLLBACK [shard 61 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 60], ["name", nil]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 61], ["name", "switchman_test_shard_61"]] [shard 60 master]  (0.2ms) COMMIT [shard 60 master]  (0.0ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 62], ["name", "switchman_test_shard_62"]] [shard 60 master]  (0.2ms) COMMIT [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 71 LIMIT 1 [shard 61 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 61 LIMIT 1 [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (131) [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [shard 61 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 73 [shard 61 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 132]] [shard 60 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 73]] [shard 61 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 61 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (133) [shard 60 master] SQL (0.1ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (74) [shard 61 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 133]] [shard 60 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 74]] [shard 61 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 61 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 61 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 61 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 61 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 60], ["name", nil]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 61], ["name", "switchman_test_shard_61"]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 62], ["name", "switchman_test_shard_62"]] [shard 60 master]  (0.2ms) COMMIT [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.0ms) ROLLBACK [shard 60 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 60], ["name", nil]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (0.0ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 61], ["name", "switchman_test_shard_61"]] [shard 60 master]  (0.2ms) COMMIT [shard 60 master]  (0.1ms) BEGIN [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 62], ["name", "switchman_test_shard_62"]] [shard 60 master]  (0.3ms) COMMIT [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "30"], ["default", false], ["name", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.0ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.1ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "31"], ["default", false], ["name", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 61]] [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 62]] [shard 60 master]  (0.0ms) BEGIN [shard 62 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 18:53:46 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 62 master]  (0.1ms) ROLLBACK [shard 60 master] SQL (0.9ms) DELETE FROM "switchman_shards" [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 60 master]  (5.1ms) DROP SCHEMA switchman_test_shard_61 CASCADE [shard 61 deploy]  (0.1ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 61]]  (0.1ms) COMMIT  (5.9ms) DROP SCHEMA switchman_test_shard_62 CASCADE [shard 62 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 62]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_107 [shard 107 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 107 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 107 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 107 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 107 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 107 deploy] Migrating to CreateAppendages (20130411202442)  (1.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 107 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 107 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 107 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 107 deploy] Migrating to CreateDigits (20131022202028)  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 107 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 107 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 107 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 107 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 107 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 107 deploy] Migrating to CreateRoots (20140219183820)  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 107 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 107 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_107' WHERE "switchman_shards"."id" = 107 [shard 106 master]  (0.7ms) COMMIT [shard 106 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_108 [shard 108 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 108 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 108 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 108 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 108 deploy]  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 108 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 108 deploy]  (0.3ms) COMMIT [shard 108 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 108 deploy]  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 108 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 108 deploy]  (0.3ms) COMMIT [shard 108 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 108 deploy]  (1.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 108 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 108 deploy]  (0.3ms) COMMIT [shard 108 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 108 deploy]  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 108 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 108 deploy]  (0.4ms) COMMIT [shard 108 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 108 deploy]  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 108 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 108 deploy]  (0.3ms) COMMIT [shard 108 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 108 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 108 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 108 deploy]  (0.3ms) COMMIT [shard 108 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) BEGIN [shard 108 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 108 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 108 deploy]  (0.3ms) COMMIT [shard 108 deploy]  (0.1ms) BEGIN [shard 106 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_108' WHERE "switchman_shards"."id" = 108 [shard 106 master]  (0.3ms) COMMIT [shard 106 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 106], ["name", nil]] [shard 106 master]  (6.0ms) COMMIT [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 107], ["name", "switchman_test_shard_107"]] [shard 106 master]  (6.0ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 108], ["name", "switchman_test_shard_108"]] [shard 106 master]  (5.9ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 106], ["name", nil]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.0ms) BEGIN [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 107], ["name", "switchman_test_shard_107"]] [shard 106 master]  (0.2ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 108], ["name", "switchman_test_shard_108"]] [shard 106 master]  (0.2ms) COMMIT [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (1.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 108 master]  (0.1ms) SAVEPOINT active_record_2 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 108 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) SELECT COUNT(*) FROM "users" [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 106], ["name", nil]] [shard 106 master]  (0.2ms) COMMIT [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 107], ["name", "switchman_test_shard_107"]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 108], ["name", "switchman_test_shard_108"]] [shard 106 master]  (0.2ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.0ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", "non_existent_shard"]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 106 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 109 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.7ms) SELECT COUNT(*) FROM "users"  [shard 110 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 106], ["name", nil]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 107], ["name", "switchman_test_shard_107"]] [shard 106 master]  (0.2ms) COMMIT [shard 106 master]  (0.0ms) BEGIN [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 108], ["name", "switchman_test_shard_108"]] [shard 106 master]  (0.2ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 1 LIMIT 1 [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 106 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 106 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 107 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 3]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1070000000000003 LIMIT 1 [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 107 LIMIT 1 [shard 106 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 4]] [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 5 LIMIT 1 [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) LIMIT 1 [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master] SQL (6.1ms) DELETE FROM "switchman_shards" [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 106], ["name", nil]] [shard 106 master]  (0.2ms) COMMIT [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 107], ["name", "switchman_test_shard_107"]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 108], ["name", "switchman_test_shard_108"]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", 180], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", 181], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 181], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 182], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 182]] [shard 106 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 181 LIMIT 1 [shard 106 master]  (0.1ms) SHOW max_identifier_length [shard 106 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 181 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", 184], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", 185], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 107 LIMIT 1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", 186], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", 187], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", 188], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", 189], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.2ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", 190], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", 191], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:31 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 192], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 193], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 194], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 195], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 196], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 197], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 106], ["name", nil]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 107], ["name", "switchman_test_shard_107"]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 108], ["name", "switchman_test_shard_108"]] [shard 106 master]  (0.2ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:05:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:05:32 UTC +00:00]] [shard 107 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) ROLLBACK [shard 108 master]  (0.0ms) ROLLBACK [shard 107 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 106], ["name", nil]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 107], ["name", "switchman_test_shard_107"]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 108], ["name", "switchman_test_shard_108"]] [shard 106 master]  (0.2ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.2ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 107 LIMIT 1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) ROLLBACK [shard 108 master]  (0.0ms) ROLLBACK [shard 106 master] SQL (6.0ms) DELETE FROM "switchman_shards" [shard 106 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 106], ["name", nil]] [shard 106 master]  (0.4ms) COMMIT [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 107], ["name", "switchman_test_shard_107"]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 108], ["name", "switchman_test_shard_108"]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 28 [shard 107 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 201]] [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 107 LIMIT 1 [shard 106 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 28]] [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 106 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (202) [shard 106 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (29) [shard 107 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 202]] [shard 106 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 29]] [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 30 LIMIT 1 [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (204) [shard 106 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (31) [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 106], ["name", nil]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 107], ["name", "switchman_test_shard_107"]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 108], ["name", "switchman_test_shard_108"]] [shard 106 master]  (0.2ms) COMMIT [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 32], ["value", 1]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 108 LIMIT 1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 1080000000000020], ["value", 3]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 107 LIMIT 1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 1070000000000032], ["value", 2]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 20], ["value", 4]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 20], ["value", 5]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.4ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 34], ["value", 1]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 1080000000000021], ["value", 3]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 1070000000000034], ["value", 2]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 21], ["value", 4]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 21], ["value", 5]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 107 master]  (0.4ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 108 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 107 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 108 master]  (0.1ms) SHOW max_identifier_length [shard 108 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 107 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 108 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 107 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (34) [shard 107 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 108 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 108 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 108 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (34) [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 35], ["value", 1]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 1080000000000022], ["value", 3]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 1070000000000035], ["value", 2]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 22], ["value", 4]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 22], ["value", 5]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 107 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 108 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 107 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 108 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 107 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 108 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 107 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35) [shard 107 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 108 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 108 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 108 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35) [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 36], ["value", 1]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 1080000000000023], ["value", 3]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 1070000000000036], ["value", 2]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 23], ["value", 4]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 23], ["value", 5]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 107 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 108 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 107 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 108 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 107 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 108 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 107 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (36) [shard 107 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 108 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 108 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 108 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (36) [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 37], ["value", 1]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 1080000000000024], ["value", 3]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 1070000000000037], ["value", 2]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 24], ["value", 4]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 24], ["value", 5]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 107 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 108 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 107 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 108 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 107 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 108 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 107 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 107 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 108 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 108 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 108 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 38], ["value", 1]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 1080000000000025], ["value", 3]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 1070000000000038], ["value", 2]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 25], ["value", 4]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 25], ["value", 5]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 107 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 108 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 107 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 108 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 107 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 108 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 107 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38) [shard 107 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 108 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 108 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 108 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38) [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 39], ["value", 1]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 39], ["value", 2]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 26], ["value", 3]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 26], ["value", 4]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 26], ["value", 5]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 39 [shard 107 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 107 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 26 [shard 108 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 108 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (32, 33) [shard 107 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (36, 37, 38) [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 40], ["value", 1]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 40], ["value", 2]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 27], ["value", 3]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 27], ["value", 4]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 27], ["value", 5]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 40 [shard 107 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 107 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 27 [shard 108 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 108 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (34, 35) [shard 107 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (39, 40, 41) [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 41], ["value", 1]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 41], ["value", 2]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 28], ["value", 3]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 28], ["value", 4]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 28], ["value", 5]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 41 [shard 107 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 107 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 28 [shard 108 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 108 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (36, 37) [shard 107 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (42, 43, 44) [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 42], ["value", 1]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 42], ["value", 2]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 29], ["value", 3]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 29], ["value", 4]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 29], ["value", 5]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 42 [shard 107 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 107 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 29 [shard 108 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 108 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (38, 39) [shard 107 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (45, 46, 47) [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 43], ["value", 1]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 43], ["value", 2]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 30], ["value", 3]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 30], ["value", 4]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 30], ["value", 5]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 43 [shard 107 master]  (0.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 107 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 30 [shard 108 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 108 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (40, 41) [shard 107 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (48, 49, 50) [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 31], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 107 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 108 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 107 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 108 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 107 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 107 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 108 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 107 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 108 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 107 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (46) [shard 107 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (33) [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 106], ["name", nil]] [shard 106 master]  (0.4ms) COMMIT [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 107], ["name", "switchman_test_shard_107"]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 108], ["name", "switchman_test_shard_108"]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '23' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "23"], ["default", false], ["name", "public"]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_119 [shard 119 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 119 deploy]  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 119 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 119 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 119 deploy]  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 119 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 119 deploy]  (0.3ms) COMMIT [shard 119 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 119 deploy]  (1.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 119 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 119 deploy]  (0.4ms) COMMIT [shard 119 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 119 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 119 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 119 deploy]  (0.3ms) COMMIT [shard 119 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 119 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 119 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 119 deploy]  (0.3ms) COMMIT [shard 119 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 119 deploy]  (1.4ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 119 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 119 deploy]  (0.3ms) COMMIT [shard 119 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 119 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 119 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 119 deploy]  (0.3ms) COMMIT [shard 119 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 119 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 119 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 119 deploy]  (0.3ms) COMMIT [shard 119 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_119' WHERE "switchman_shards"."id" = 119 [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) BEGIN [shard 119 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 119 master]  (0.2ms) COMMIT [shard 119 master]  (4.9ms) DROP SCHEMA switchman_test_shard_119 CASCADE [shard 119 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 119]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '24' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "24"], ["default", false], ["name", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) select sqlite_version(*) [shard 120 deploy]  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 120 deploy]  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 120 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 120 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 120 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 120 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 120 deploy]  (0.5ms) commit transaction [shard 120 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 120 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 120 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 120 deploy]  (0.5ms) commit transaction [shard 120 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 120 deploy]  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 120 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 120 deploy]  (0.6ms) commit transaction [shard 120 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 120 deploy]  (0.3ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 120 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 120 deploy]  (0.6ms) commit transaction [shard 120 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 120 deploy]  (0.3ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 120 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 120 deploy]  (0.7ms) commit transaction [shard 120 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 120 deploy]  (0.3ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 120 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 120 deploy]  (0.5ms) commit transaction [shard 120 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 120 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 120 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 120 deploy]  (0.6ms) commit transaction [shard 120 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_120.sqlite3' WHERE "switchman_shards"."id" = 120 [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) begin transaction [shard 120 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 120 master]  (0.5ms) commit transaction [shard 120 master] Drop failed: No such file or directory @ unlink_internal - db/shard_120.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 120]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 106 master]  (0.1ms) CREATE SCHEMA switchman_test_shard_121 [shard 121 deploy]  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 121 deploy]  (6.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 121 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 121 deploy] Migrating to CreateUsers (20130403132607)  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 121 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 121 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 121 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 121 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 121 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 121 deploy] Migrating to CreateDigits (20131022202028)  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 121 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 121 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 121 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 121 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 121 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 121 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 121 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 121 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_121' WHERE "switchman_shards"."id" = 121 [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 121 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 121 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 121 master]  (2.5ms) DROP SCHEMA switchman_test_shard_121 CASCADE [shard 121 deploy]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 121]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (2.1ms) ROLLBACK [shard 106 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 106], ["name", nil]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 107], ["name", "switchman_test_shard_107"]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master]  (0.0ms) BEGIN [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 108], ["name", "switchman_test_shard_108"]] [shard 106 master]  (0.2ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.8ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["owner_id", 205], ["owner_type", "User"], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] Feature Load (0.3ms) SELECT owner_id FROM "features" WHERE "features"."id" = 10 LIMIT 1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 107 LIMIT 1 [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 108 LIMIT 1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master] SQL (6.1ms) DELETE FROM "switchman_shards" [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 106], ["name", nil]] [shard 106 master]  (6.1ms) COMMIT [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 107], ["name", "switchman_test_shard_107"]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 108], ["name", "switchman_test_shard_108"]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) ROLLBACK [shard 108 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (106, 107) AND (id IN (107,108)) [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) ROLLBACK [shard 108 master]  (0.0ms) ROLLBACK [shard 106 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 106], ["name", nil]] [shard 106 master]  (0.4ms) COMMIT [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 107], ["name", "switchman_test_shard_107"]] [shard 106 master]  (0.2ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 108], ["name", "switchman_test_shard_108"]] [shard 106 master]  (0.2ms) COMMIT [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 107 LIMIT 1 [shard 106 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 45]] [shard 107 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 47 LIMIT 1 [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 108 LIMIT 1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 49], ["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 53 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 54 AND "appendages"."id" = $1 LIMIT 1 [["id", 50]] [shard 107 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 41 AND "appendages"."id" = $1 LIMIT 1 [["id", 50]] [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 56 [shard 107 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 56]] [shard 107 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 56 [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 52], ["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 1070000000000058], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["value", 2]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 58 AND "digits"."value" IS NULL [shard 107 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1070000000000058 AND "digits"."value" IS NULL [shard 108 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 58]] [shard 107 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 58 AND "digits"."value" IS NULL [shard 107 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1070000000000058 AND "digits"."value" IS NULL [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 53], ["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 1070000000000059], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["value", 2]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 59 AND "digits"."value" IS NULL [shard 107 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1070000000000059 AND "digits"."value" IS NULL [shard 108 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 59]] [shard 107 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 59 AND "digits"."value" IS NULL [shard 107 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1070000000000059 AND "digits"."value" IS NULL [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 60], ["value", 1]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 1070000000000060], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 60 AND "appendages"."value" IS NULL [shard 107 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 1070000000000060 AND "appendages"."value" IS NULL [shard 108 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 60]] [shard 107 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 60 AND "appendages"."value" IS NULL [shard 107 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 1070000000000060 AND "appendages"."value" IS NULL [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["value", 1]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 1070000000000061], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 58], ["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["value", 2]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 61 [shard 107 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [shard 107 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 61 [shard 107 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1070000000000061 [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 62], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["value", 1]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 1070000000000062], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 59], ["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["value", 2]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 62 AND (digits.value IS NOT NULL) [shard 107 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1070000000000062 AND (digits.value IS NOT NULL) [shard 108 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 62]] [shard 107 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 62 AND (digits.value IS NOT NULL) [shard 107 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1070000000000062 AND (digits.value IS NOT NULL) [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.2ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:32 UTC +00:00], ["user_id", 63], ["value", 1]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["user_id", 1070000000000063], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["user_id", 63], ["value", 2]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [shard 107 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 63 AND (appendages.value IS NOT NULL) [shard 107 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 1070000000000063 AND (appendages.value IS NOT NULL) [shard 108 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [shard 107 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 63 AND (appendages.value IS NOT NULL) [shard 107 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 1070000000000063 AND (appendages.value IS NOT NULL) [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["user_id", 64], ["value", 1]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["user_id", 1070000000000064], ["value", 2]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 64 [shard 107 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 64]] [shard 107 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 64 [shard 107 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 1070000000000064 [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (7.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["owner_id", 107], ["owner_type", "Appendage"], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 11]] [shard 106 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 107 LIMIT 1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master]  (0.3ms) UPDATE "features" SET "owner_id" = 1070000000000065, "owner_type" = 'User', "updated_at" = '2014-07-18 19:04:33.044537' WHERE "features"."id" = 11 [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 11]] [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.9ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["owner_id", 66], ["owner_type", "User"], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["value", 1]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.8ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["owner_id", 1070000000000066], ["owner_type", "User"], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["value", 2]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 66 AND "features"."owner_type" = 'User' [shard 107 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 66]] [shard 107 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 66 AND "features"."owner_type" = 'User' [shard 107 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 1070000000000066 AND "features"."owner_type" = 'User' [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["user_id", 67], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["user_id", 1070000000000067], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["user_id", 1070000000000067], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 60], ["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 62], ["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1080000000000062], ["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1080000000000063], ["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["user_id", 1080000000000054], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1070000000000061], ["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1080000000000064], ["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1080000000000065], ["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 107 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (67) [shard 107 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (1070000000000067) [shard 108 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (60, 1080000000000062) [shard 107 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (62, 63) [shard 108 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 108 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (54) [shard 108 master] Digit Load (0.1ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (64) [shard 108 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1080000000000065) [shard 107 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["user_id", 68], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["user_id", 1070000000000068], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["user_id", 1080000000000055], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (68) [shard 107 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (68) [shard 107 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (1070000000000068) [shard 108 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 108 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (55) [shard 108 master] SQL (0.1ms) DELETE FROM "appendages" WHERE "appendages"."id" = 62 [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["user_id", 1070000000000069], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["user_id", 1080000000000056], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["user_id", 207], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages"  [shard 106 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (207) [shard 106 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (69) [shard 107 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 108 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 69 [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["user_id", 1070000000000070], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 111], ["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["user_id", 1080000000000057], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1070000000000064], ["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits"  [shard 106 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (111) [shard 106 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (64) [shard 107 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [shard 107 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 108 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 70 [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.7ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["user_id", 1080000000000058]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] Root Load (0.4ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 5]] [shard 106 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 58 LIMIT 1 [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["user_id", 1080000000000059], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 65]] [shard 107 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 59 LIMIT 1 [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 108 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 108 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 107 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 73 LIMIT 1 [shard 107 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["user_id", 73], ["value", nil]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 66]] [shard 107 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 73 LIMIT 1 [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 106], ["name", nil]] [shard 106 master]  (0.4ms) COMMIT [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 107], ["name", "switchman_test_shard_107"]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 108], ["name", "switchman_test_shard_108"]] [shard 106 master]  (0.2ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["user_id", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 5]] [shard 106 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 5]] [shard 106 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 5 LIMIT 1 [shard 107 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 107 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.0ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 106], ["name", nil]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 107], ["name", "switchman_test_shard_107"]] [shard 106 master]  (0.2ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 108], ["name", "switchman_test_shard_108"]] [shard 106 master]  (0.2ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) ROLLBACK [shard 108 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) ROLLBACK [shard 108 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 106], ["name", nil]] [shard 106 master]  (0.2ms) COMMIT [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.0ms) BEGIN [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 107], ["name", "switchman_test_shard_107"]] [shard 106 master]  (0.2ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 108], ["name", "switchman_test_shard_108"]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "25"], ["default", false], ["name", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "25"], ["default", false], ["name", nil]] [shard 106 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 106], ["name", nil]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 107], ["name", "switchman_test_shard_107"]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 108], ["name", "switchman_test_shard_108"]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "26"], ["default", false], ["name", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "27"], ["default", false], ["name", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) ROLLBACK [shard 108 master]  (0.0ms) ROLLBACK [shard 106 master] SQL (0.9ms) DELETE FROM "switchman_shards" [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 106], ["name", nil]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 107], ["name", "switchman_test_shard_107"]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master]  (0.0ms) BEGIN [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 108], ["name", "switchman_test_shard_108"]] [shard 106 master]  (0.2ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10108 LIMIT 1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) ROLLBACK [shard 108 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 108 LIMIT 1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) ROLLBACK [shard 108 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 107 LIMIT 1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) ROLLBACK [shard 108 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 126]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 126 LIMIT 1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.0ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) ROLLBACK [shard 108 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) ROLLBACK [shard 108 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 127]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) ROLLBACK [shard 108 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) ROLLBACK [shard 108 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) ROLLBACK [shard 108 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '29' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "29"], ["default", false], ["name", "public"]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_128 [shard 128 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 128 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 128 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 128 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 128 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 128 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 128 deploy]  (0.3ms) COMMIT [shard 128 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 128 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 128 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 128 deploy]  (0.4ms) COMMIT [shard 128 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 128 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 128 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 128 deploy]  (0.3ms) COMMIT [shard 128 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 128 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 128 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 128 deploy]  (0.3ms) COMMIT [shard 128 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 128 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 128 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 128 deploy]  (0.4ms) COMMIT [shard 128 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 128 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 128 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 128 deploy]  (0.3ms) COMMIT [shard 128 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 128 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 128 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 128 deploy]  (0.3ms) COMMIT [shard 128 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_128' WHERE "switchman_shards"."id" = 128 [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) BEGIN [shard 128 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 128 master]  (0.3ms) COMMIT [shard 128 master]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 128 master]  (5.4ms) DROP SCHEMA switchman_test_shard_128 CASCADE [shard 128 deploy]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 128 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 106], ["name", nil]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 107], ["name", "switchman_test_shard_107"]] [shard 106 master]  (0.2ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 108], ["name", "switchman_test_shard_108"]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) SAVEPOINT active_record_1 [shard 107 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 107 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 107 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 107 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) ROLLBACK [shard 108 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 106 master]  (0.4ms) COMMIT [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 106 master]  (0.0ms) BEGIN [shard 106 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 106 master]  (0.4ms) COMMIT [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 106 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-18 19:04:33.648824' [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 106 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-07-18 19:04:33.654325' [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 106 master]  (0.4ms) COMMIT [shard 106 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 106 master] SQL (0.5ms) UPDATE "users" SET "updated_at" = '2014-07-18 19:04:33.658250' [shard 106 master] SQL (0.3ms) DELETE FROM "users" [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 106 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-07-18 19:04:33.662736' [shard 106 master] SQL (0.2ms) DELETE FROM "users" [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 106 master] SQL (0.1ms) DELETE FROM "users" [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 106 master] SQL (0.1ms) DELETE FROM "users" [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 221]] [shard 106 master] CACHE (0.0ms) 106::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 221]] CACHE (0.0ms) 106::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 221]]  (0.1ms) BEGIN [shard 106 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-07-18 19:04:33.680790' WHERE "users"."id" = 221 [shard 106 master]  (0.3ms) COMMIT [shard 106 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 221]] [shard 106 master] CACHE (0.0ms) 106::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 221]] SQL (0.3ms) DELETE FROM "users" [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 106 master]  (0.2ms) COMMIT [shard 106 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 106 master] SQL (0.2ms) DELETE FROM "users" [shard 106 master] SQL (0.1ms) DELETE FROM "users" [shard 106 master]  (0.1ms) BEGIN [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:04:33 UTC +00:00]] [shard 106 master]  (0.3ms) COMMIT [shard 106 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 106 master] SQL (0.4ms) DELETE FROM "users" [shard 106 master] SQL (0.1ms) DELETE FROM "users" [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.0ms) BEGIN [shard 108 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 106 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 107]] [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 108]] [shard 106 master]  (0.1ms) BEGIN [shard 108 master]  (0.1ms) ROLLBACK [shard 108 master]  (0.1ms) ROLLBACK [shard 106 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 106 master]  (5.2ms) DROP SCHEMA switchman_test_shard_107 CASCADE [shard 107 deploy]  (0.0ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 107]]  (0.1ms) COMMIT  (6.5ms) DROP SCHEMA switchman_test_shard_108 CASCADE [shard 108 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 108]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.3ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_153 [shard 153 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 153 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 153 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 153 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 153 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 153 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 153 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 153 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 153 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 153 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 153 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 153 deploy] Migrating to CreateFeatures (20131206172923)  (1.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 153 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 153 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 153 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 153 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 153 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 153 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_153' WHERE "switchman_shards"."id" = 153 [shard 152 master]  (0.6ms) COMMIT [shard 152 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_154 [shard 154 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 154 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 154 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 154 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 154 deploy]  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 154 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 154 deploy]  (0.2ms) COMMIT [shard 154 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 154 deploy]  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 154 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 154 deploy]  (0.3ms) COMMIT [shard 154 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 154 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 154 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 154 deploy]  (0.3ms) COMMIT [shard 154 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 154 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 154 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 154 deploy]  (0.3ms) COMMIT [shard 154 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 154 deploy]  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 154 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 154 deploy]  (0.3ms) COMMIT [shard 154 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 154 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 154 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 154 deploy]  (0.2ms) COMMIT [shard 154 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) BEGIN [shard 154 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 154 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 154 deploy]  (0.3ms) COMMIT [shard 154 deploy]  (0.1ms) BEGIN [shard 152 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_154' WHERE "switchman_shards"."id" = 154 [shard 152 master]  (0.3ms) COMMIT [shard 152 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 152], ["name", nil]] [shard 152 master]  (0.2ms) COMMIT [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 153], ["name", "switchman_test_shard_153"]] [shard 152 master]  (0.2ms) COMMIT [shard 152 master]  (0.0ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 154], ["name", "switchman_test_shard_154"]] [shard 152 master]  (0.2ms) COMMIT [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 152], ["name", nil]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 153], ["name", "switchman_test_shard_153"]] [shard 152 master]  (0.2ms) COMMIT [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 154], ["name", "switchman_test_shard_154"]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (1.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master] SQL (0.3ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 1 [shard 153 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 268]] [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 153 LIMIT 1 [shard 152 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (269) [shard 152 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (2) [shard 153 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 269]] [shard 152 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2]] [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 4 LIMIT 1 [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (272) [shard 152 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 152], ["name", nil]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 153], ["name", "switchman_test_shard_153"]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 154], ["name", "switchman_test_shard_154"]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 153 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) ROLLBACK [shard 154 master]  (0.0ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) ROLLBACK [shard 154 master]  (0.0ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 152 master] SQL (0.1ms) DELETE FROM "users" [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 152 master] SQL (0.1ms) DELETE FROM "users" [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 152 master]  (0.4ms) COMMIT [shard 152 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 152 master] SQL (0.8ms) DELETE FROM "users" [shard 152 master] SQL (0.1ms) DELETE FROM "users" [shard 152 master]  (0.0ms) BEGIN [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master]  (0.0ms) BEGIN [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 278]] [shard 152 master] CACHE (0.0ms) 152::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 278]] CACHE (0.0ms) 152::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 278]]  (0.1ms) BEGIN [shard 152 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-07-18 19:06:21.246973' WHERE "users"."id" = 278 [shard 152 master]  (0.2ms) COMMIT [shard 152 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 278]] [shard 152 master] CACHE (0.0ms) 152::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 278]] SQL (0.3ms) DELETE FROM "users" [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 152 master]  (0.2ms) COMMIT [shard 152 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 152 master] SQL (0.4ms) DELETE FROM "users" [shard 152 master] SQL (0.1ms) DELETE FROM "users" [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 152 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-07-18 19:06:21.258717' [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 152 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-07-18 19:06:21.263971' [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 152 master]  (0.4ms) COMMIT [shard 152 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 152 master] SQL (0.5ms) UPDATE "users" SET "updated_at" = '2014-07-18 19:06:21.267765' [shard 152 master] SQL (0.3ms) DELETE FROM "users" [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 152 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-07-18 19:06:21.272349' [shard 152 master] SQL (0.3ms) DELETE FROM "users" [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.0ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 152 master]  (0.0ms) BEGIN [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.2ms) BEGIN [shard 152 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.2ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 152], ["name", nil]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 153], ["name", "switchman_test_shard_153"]] [shard 152 master]  (0.2ms) COMMIT [shard 152 master]  (0.0ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 154], ["name", "switchman_test_shard_154"]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '2' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", "public"]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_155 [shard 155 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 155 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 155 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 155 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 155 deploy]  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 155 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 155 deploy]  (0.3ms) COMMIT [shard 155 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 155 deploy]  (1.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 155 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 155 deploy]  (0.3ms) COMMIT [shard 155 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) BEGIN [shard 155 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 155 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 155 deploy]  (0.3ms) COMMIT [shard 155 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 155 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 155 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 155 deploy]  (0.3ms) COMMIT [shard 155 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 155 deploy]  (1.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 155 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 155 deploy]  (0.3ms) COMMIT [shard 155 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 155 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 155 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 155 deploy]  (0.3ms) COMMIT [shard 155 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 155 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 155 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 155 deploy]  (0.4ms) COMMIT [shard 155 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_155' WHERE "switchman_shards"."id" = 155 [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) BEGIN [shard 155 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 155 master]  (0.3ms) COMMIT [shard 155 master]  (4.6ms) DROP SCHEMA switchman_test_shard_155 CASCADE [shard 155 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 155]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '3' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.0ms) select sqlite_version(*) [shard 156 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 156 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 156 deploy]  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 156 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 156 deploy]  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 156 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 156 deploy]  (0.7ms) commit transaction [shard 156 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 156 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 156 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 156 deploy]  (0.7ms) commit transaction [shard 156 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 156 deploy]  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 156 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 156 deploy]  (0.6ms) commit transaction [shard 156 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 156 deploy]  (0.3ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 156 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 156 deploy]  (0.5ms) commit transaction [shard 156 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 156 deploy]  (0.3ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 156 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 156 deploy]  (0.7ms) commit transaction [shard 156 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 156 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 156 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 156 deploy]  (0.5ms) commit transaction [shard 156 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 156 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 156 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 156 deploy]  (0.7ms) commit transaction [shard 156 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_156.sqlite3' WHERE "switchman_shards"."id" = 156 [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.0ms) begin transaction [shard 156 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 156 master]  (0.7ms) commit transaction [shard 156 master] Drop failed: No such file or directory @ unlink_internal - db/shard_156.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 156]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 152 master]  (0.1ms) CREATE SCHEMA switchman_test_shard_157 [shard 157 deploy]  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 157 deploy]  (5.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 157 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 157 deploy] Migrating to CreateUsers (20130403132607)  (6.6ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 157 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 157 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 157 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 157 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 157 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 157 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 157 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 157 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 157 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 157 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 157 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 157 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 157 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 157 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_157' WHERE "switchman_shards"."id" = 157 [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 157 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 157 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 157 master]  (2.6ms) DROP SCHEMA switchman_test_shard_157 CASCADE [shard 157 deploy]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 157]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (2.0ms) ROLLBACK [shard 152 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master]  (0.0ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master]  (0.0ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master]  (0.0ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master]  (0.0ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master]  (0.0ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 152], ["name", nil]] [shard 152 master]  (0.4ms) COMMIT [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 153], ["name", "switchman_test_shard_153"]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master]  (0.0ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 154], ["name", "switchman_test_shard_154"]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 153 LIMIT 1 [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 154 LIMIT 1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["owner_id", 288], ["owner_type", "User"], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["value", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 14 LIMIT 1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master] SQL (4.7ms) DELETE FROM "switchman_shards" [shard 152 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 152], ["name", nil]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 153], ["name", "switchman_test_shard_153"]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 154], ["name", "switchman_test_shard_154"]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 152], ["name", nil]] [shard 152 master]  (0.2ms) COMMIT [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 153], ["name", "switchman_test_shard_153"]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master]  (0.0ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 154], ["name", "switchman_test_shard_154"]] [shard 152 master]  (0.2ms) COMMIT [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) ROLLBACK [shard 154 master]  (0.0ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) ROLLBACK [shard 154 master]  (0.0ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 7]] [shard 152 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 7]] [shard 152 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 7 LIMIT 1 [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 152], ["name", nil]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 153], ["name", "switchman_test_shard_153"]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 154], ["name", "switchman_test_shard_154"]] [shard 152 master]  (0.2ms) COMMIT [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 152], ["name", nil]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 153], ["name", "switchman_test_shard_153"]] [shard 152 master]  (0.2ms) COMMIT [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 154], ["name", "switchman_test_shard_154"]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 154 master]  (0.1ms) SAVEPOINT active_record_2 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 154 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) SELECT COUNT(*) FROM "users"  [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.0ms) BEGIN [shard 152 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 152 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 152], ["name", nil]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 153], ["name", "switchman_test_shard_153"]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 154], ["name", "switchman_test_shard_154"]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:21 UTC +00:00]] [shard 153 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.0ms) ROLLBACK [shard 154 master]  (0.0ms) ROLLBACK [shard 153 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 152], ["name", nil]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.0ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 153], ["name", "switchman_test_shard_153"]] [shard 152 master]  (0.2ms) COMMIT [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 154], ["name", "switchman_test_shard_154"]] [shard 152 master]  (0.2ms) COMMIT [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) ROLLBACK [shard 154 master]  (0.0ms) ROLLBACK [shard 152 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", "non_existent_shard"]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 160 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.7ms) SELECT COUNT(*) FROM "users" [shard 161 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 152], ["name", nil]] [shard 152 master]  (0.4ms) COMMIT [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 153], ["name", "switchman_test_shard_153"]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 154], ["name", "switchman_test_shard_154"]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (152, 153) AND (id IN (153,154)) [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 152], ["name", nil]] [shard 152 master]  (0.2ms) COMMIT [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 153], ["name", "switchman_test_shard_153"]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 154], ["name", "switchman_test_shard_154"]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 9], ["value", 1]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 9], ["value", 2]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 3], ["value", 3]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 3], ["value", 4]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 3], ["value", 5]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 9 [shard 153 master]  (0.1ms) SELECT COUNT(*) FROM "appendages"  [shard 153 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 3 [shard 154 master]  (0.2ms) SELECT COUNT(*) FROM "appendages"  [shard 154 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 153 LIMIT 1 [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 154 LIMIT 1 [shard 152 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (1, 2) [shard 153 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (1, 2, 3) [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 10], ["value", 1]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 10], ["value", 2]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 4], ["value", 3]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 4], ["value", 4]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 4], ["value", 5]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 10 [shard 153 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 153 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 4 [shard 154 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 154 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (3, 4) [shard 153 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (4, 5, 6) [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 11], ["value", 1]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 11], ["value", 2]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 5], ["value", 3]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 5], ["value", 4]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 5], ["value", 5]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 11 [shard 153 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 153 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 5 [shard 154 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 154 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (5, 6) [shard 153 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (7, 8, 9) [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 12], ["value", 1]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 12], ["value", 2]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 6], ["value", 3]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 6], ["value", 4]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 6], ["value", 5]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 12 [shard 153 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 153 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 6 [shard 154 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 154 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (7, 8) [shard 153 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (10, 11, 12) [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 13], ["value", 1]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 13], ["value", 2]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 7], ["value", 3]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 7], ["value", 4]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 7], ["value", 5]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 13 [shard 153 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 153 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 7 [shard 154 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 154 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (9, 10) [shard 153 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (13, 14, 15) [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 14], ["value", 1]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 1540000000000008], ["value", 3]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 1530000000000014], ["value", 2]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 8], ["value", 4]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 8], ["value", 5]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SHOW max_identifier_length [shard 152 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 153 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 154 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 153 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 154 master]  (0.1ms) SHOW max_identifier_length [shard 154 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 153 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 154 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 153 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (14) [shard 153 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (8) [shard 154 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 154 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (8) [shard 154 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (14) [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 15], ["value", 1]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 1540000000000009], ["value", 3]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 1530000000000015], ["value", 2]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 9], ["value", 4]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 9], ["value", 5]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 153 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 154 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 153 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 154 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 153 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 154 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 153 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (15) [shard 153 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (9) [shard 154 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 154 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (9) [shard 154 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (15) [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 16], ["value", 1]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 1540000000000010], ["value", 3]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 1530000000000016], ["value", 2]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 10], ["value", 4]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 10], ["value", 5]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 18], ["value", 1]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 1540000000000011], ["value", 3]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 1530000000000018], ["value", 2]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 11], ["value", 4]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["user_id", 11], ["value", 5]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 153 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 154 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 153 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 154 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 153 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 154 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 153 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 153 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (11) [shard 154 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 154 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (11) [shard 154 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.2ms) ROLLBACK [shard 153 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:21 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 19], ["value", 1]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 1540000000000012], ["value", 3]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 1530000000000019], ["value", 2]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 12], ["value", 4]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 12], ["value", 5]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 153 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 154 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 153 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 154 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 153 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 154 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 153 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 153 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (12) [shard 154 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 154 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (12) [shard 154 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.0ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 20], ["value", 1]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 1540000000000013], ["value", 3]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 1530000000000020], ["value", 2]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 13], ["value", 4]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 13], ["value", 5]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 153 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 154 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 153 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 154 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 153 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 154 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 153 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 153 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (13) [shard 154 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 154 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (13) [shard 154 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master] SQL (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 25 [shard 153 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 154 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 25 [shard 153 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 154 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 25 [shard 153 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 26 [shard 153 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 154 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 26 [shard 153 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 154 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 26 [shard 153 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master] SQL (0.3ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (23) [shard 153 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (16) [shard 154 master]  (0.2ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 152], ["name", nil]] [shard 152 master]  (0.4ms) COMMIT [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 153], ["name", "switchman_test_shard_153"]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 154], ["name", "switchman_test_shard_154"]] [shard 152 master]  (0.2ms) COMMIT [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 153 LIMIT 1 [shard 152 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 28]] [shard 153 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 24 LIMIT 1 [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (6.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 26], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 29], ["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master] Digit Load (0.6ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 26 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 27], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 27 [shard 153 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 27]] [shard 153 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 27 [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 25], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 154 LIMIT 1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 33 AND "appendages"."id" = $1 LIMIT 1 [["id", 34]] [shard 153 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 26 AND "appendages"."id" = $1 LIMIT 1 [["id", 34]] [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 35], ["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 1530000000000035], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 38], ["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["value", 2]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 35 AND "digits"."value" IS NULL [shard 153 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1530000000000035 AND "digits"."value" IS NULL [shard 154 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 35]] [shard 153 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 35 AND "digits"."value" IS NULL [shard 153 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1530000000000035 AND "digits"."value" IS NULL [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 36], ["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 36], ["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["value", 1]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 1530000000000036], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 39], ["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["value", 2]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 36 AND (digits.value IS NOT NULL) [shard 153 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1530000000000036 AND (digits.value IS NOT NULL) [shard 154 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 36]] [shard 153 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 36 AND (digits.value IS NOT NULL) [shard 153 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1530000000000036 AND (digits.value IS NOT NULL) [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 37], ["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["value", 1]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 1530000000000037], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 40], ["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["value", 2]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 37 [shard 153 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 37]] [shard 153 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 37 [shard 153 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1530000000000037 [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 38], ["value", 1]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 1530000000000038], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 38], ["value", 2]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 38]] [shard 153 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 38 AND (appendages.value IS NOT NULL) [shard 153 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 1530000000000038 AND (appendages.value IS NOT NULL) [shard 154 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 38]] [shard 153 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 38 AND (appendages.value IS NOT NULL) [shard 153 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 1530000000000038 AND (appendages.value IS NOT NULL) [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 39], ["value", 1]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 1530000000000039], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 39 AND "appendages"."value" IS NULL [shard 153 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 1530000000000039 AND "appendages"."value" IS NULL [shard 154 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 39]] [shard 153 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 39 AND "appendages"."value" IS NULL [shard 153 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 1530000000000039 AND "appendages"."value" IS NULL [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 40], ["value", 1]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.0ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 1530000000000040], ["value", 2]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 40 [shard 153 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 40]] [shard 153 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 40 [shard 153 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 1530000000000040 [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 42], ["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 1530000000000041], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 44], ["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["value", 2]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 41 AND "digits"."value" IS NULL [shard 153 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1530000000000041 AND "digits"."value" IS NULL [shard 154 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]] [shard 153 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 41 AND "digits"."value" IS NULL [shard 153 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1530000000000041 AND "digits"."value" IS NULL [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 1540000000000035], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 43]] [shard 153 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 35 LIMIT 1 [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 43 LIMIT 1 [shard 153 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 44]] [shard 153 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 43 LIMIT 1 [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 1530000000000044], ["value", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 135], ["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["value", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 1540000000000037], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1530000000000045], ["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["value", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits"  [shard 152 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (135) [shard 152 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (45) [shard 153 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (44) [shard 153 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 154 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 44 [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 1530000000000045], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 1540000000000038], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [shard 153 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (45) [shard 153 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (1530000000000045) [shard 154 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38) [shard 154 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (38) [shard 154 master] SQL (0.1ms) DELETE FROM "appendages" WHERE "appendages"."id" = 46 [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.0ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 1530000000000046], ["value", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 1540000000000039], ["value", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 290], ["value", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 152 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (290) [shard 152 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (46) [shard 153 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) [shard 154 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 46 [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 1530000000000047], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 1530000000000047], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 48], ["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 47], ["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1540000000000047], ["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1540000000000048], ["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 1540000000000040], ["value", nil]] [shard 153 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.0ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1530000000000049], ["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1540000000000049], ["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["value", nil]] [shard 153 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1540000000000050], ["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["value", nil]] [shard 153 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 153 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (47) [shard 153 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (47) [shard 153 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (1530000000000047) [shard 154 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (48, 1540000000000047) [shard 153 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (47, 48) [shard 154 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) [shard 154 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (40) [shard 154 master] Digit Load (0.1ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (49) [shard 154 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1540000000000050) [shard 153 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 1540000000000041]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 7]] [shard 152 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 41 LIMIT 1 [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.0ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["owner_id", 139], ["owner_type", "Appendage"], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["value", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 15]] [shard 152 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 139 LIMIT 1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master]  (0.2ms) UPDATE "features" SET "owner_id" = 1530000000000049, "owner_type" = 'User', "updated_at" = '2014-07-18 19:06:22.480880' WHERE "features"."id" = 15 [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 15]] [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["owner_id", 50], ["owner_type", "User"], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["value", 1]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["owner_id", 1530000000000050], ["owner_type", "User"], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["value", 2]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 50 AND "features"."owner_type" = 'User' [shard 153 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 50]] [shard 153 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 50 AND "features"."owner_type" = 'User' [shard 153 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 1530000000000050 AND "features"."owner_type" = 'User' [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.2ms) ROLLBACK [shard 153 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 152], ["name", nil]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 153], ["name", "switchman_test_shard_153"]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 154], ["name", "switchman_test_shard_154"]] [shard 152 master]  (0.2ms) COMMIT [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 291], ["value", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 292], ["value", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 293], ["value", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 153 LIMIT 1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 294], ["value", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 295], ["value", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 296], ["value", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 297], ["value", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 298], ["value", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 299], ["value", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 300], ["value", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 301], ["value", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 302], ["value", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 62], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 303], ["value", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 63], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 304], ["value", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 305], ["value", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 65], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 306], ["value", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 66], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 306], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 307], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 307]] [shard 152 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 306 LIMIT 1 [shard 152 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 306 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 152], ["name", nil]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 153], ["name", "switchman_test_shard_153"]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 154], ["name", "switchman_test_shard_154"]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 153 LIMIT 1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master] SQL (5.5ms) DELETE FROM "switchman_shards" [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 152], ["name", nil]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 153], ["name", "switchman_test_shard_153"]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 154], ["name", "switchman_test_shard_154"]] [shard 152 master]  (0.2ms) COMMIT [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 153 LIMIT 1 [shard 152 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 70 LIMIT 1 [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) LIMIT 1 [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.1ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 72]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1530000000000072 LIMIT 1 [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 73]] [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 74 LIMIT 1 [shard 153 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) SAVEPOINT active_record_1 [shard 153 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 153 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 153 master]  (0.0ms) SAVEPOINT active_record_1 [shard 154 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 154 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 154 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 152 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 152 master] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 153 master] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 153 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "17"], ["default", false], ["name", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "17"], ["default", false], ["name", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 152], ["name", nil]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 153], ["name", "switchman_test_shard_153"]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master]  (0.0ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 154], ["name", "switchman_test_shard_154"]] [shard 152 master]  (0.2ms) COMMIT [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:22 UTC +00:00]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "18"], ["default", false], ["name", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "19"], ["default", false], ["name", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) ROLLBACK [shard 154 master]  (0.0ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master] SQL (0.8ms) DELETE FROM "switchman_shards" [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 152], ["name", nil]] [shard 152 master]  (0.3ms) COMMIT [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 153], ["name", "switchman_test_shard_153"]] [shard 152 master]  (0.2ms) COMMIT [shard 152 master]  (0.1ms) BEGIN [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 154], ["name", "switchman_test_shard_154"]] [shard 152 master]  (0.2ms) COMMIT [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.0ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 153 LIMIT 1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 172]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 172 LIMIT 1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.0ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 173]] [shard 152 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) ROLLBACK [shard 154 master]  (0.0ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 154 LIMIT 1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10154 LIMIT 1 [shard 152 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) ROLLBACK [shard 154 master]  (0.0ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.0ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) ROLLBACK [shard 154 master]  (0.0ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.2ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.1ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.0ms) BEGIN [shard 154 master]  (0.0ms) ROLLBACK [shard 154 master]  (0.0ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master]  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master]  (0.0ms) BEGIN [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 153]] [shard 152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 154]] [shard 152 master]  (0.1ms) BEGIN [shard 154 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '21' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 152 master]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "21"], ["default", false], ["name", "public"]] [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_174 [shard 174 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 174 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 174 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 174 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 174 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 174 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 174 deploy]  (0.3ms) COMMIT [shard 174 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 174 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 174 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 174 deploy]  (0.3ms) COMMIT [shard 174 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 174 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 174 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 174 deploy]  (0.3ms) COMMIT [shard 174 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 174 deploy]  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 174 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 174 deploy]  (0.5ms) COMMIT [shard 174 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 174 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 174 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 174 deploy]  (0.3ms) COMMIT [shard 174 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 174 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 174 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 174 deploy]  (0.3ms) COMMIT [shard 174 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 174 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 174 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 174 deploy]  (0.4ms) COMMIT [shard 174 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 152 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_174' WHERE "switchman_shards"."id" = 174 [shard 152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 152 master]  (0.1ms) BEGIN [shard 174 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:06:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:06:23 UTC +00:00]] [shard 174 master]  (0.2ms) COMMIT [shard 174 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 174 master]  (4.6ms) DROP SCHEMA switchman_test_shard_174 CASCADE [shard 174 deploy]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 174 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 154 master]  (0.1ms) ROLLBACK [shard 152 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 152 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 152 master]  (5.3ms) DROP SCHEMA switchman_test_shard_153 CASCADE [shard 153 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 153]]  (0.1ms) COMMIT  (6.2ms) DROP SCHEMA switchman_test_shard_154 CASCADE [shard 154 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 154]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.8ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_176 [shard 176 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 176 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 176 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 176 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 176 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 176 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 176 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 176 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 176 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 176 deploy] Migrating to CreateDigits (20131022202028)  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 176 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 176 deploy] Migrating to CreateFeatures (20131206172923)  (1.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 176 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 176 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 176 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 176 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 176 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 176 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_176' WHERE "switchman_shards"."id" = 176 [shard 175 master]  (0.6ms) COMMIT [shard 175 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_177 [shard 177 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 177 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 177 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 177 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 177 deploy]  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 177 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 177 deploy]  (0.3ms) COMMIT [shard 177 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 177 deploy]  (2.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 177 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 177 deploy]  (0.3ms) COMMIT [shard 177 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 177 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 177 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 177 deploy]  (0.3ms) COMMIT [shard 177 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 177 deploy]  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 177 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 177 deploy]  (0.3ms) COMMIT [shard 177 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 177 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 177 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 177 deploy]  (0.3ms) COMMIT [shard 177 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 177 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 177 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 177 deploy]  (0.3ms) COMMIT [shard 177 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) BEGIN [shard 177 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 177 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 177 deploy]  (0.3ms) COMMIT [shard 177 deploy]  (0.1ms) BEGIN [shard 175 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_177' WHERE "switchman_shards"."id" = 177 [shard 175 master]  (0.3ms) COMMIT [shard 175 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 175], ["name", nil]] [shard 175 master]  (0.2ms) COMMIT [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 176], ["name", "switchman_test_shard_176"]] [shard 175 master]  (0.2ms) COMMIT [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 177], ["name", "switchman_test_shard_177"]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) ROLLBACK [shard 177 master]  (0.0ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) ROLLBACK [shard 177 master]  (0.0ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 176 LIMIT 1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 178]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 178 LIMIT 1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) ROLLBACK [shard 177 master]  (0.0ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 179]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.0ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) ROLLBACK [shard 177 master]  (0.0ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 177 LIMIT 1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10177 LIMIT 1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '3' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", "public"]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.8ms) CREATE SCHEMA switchman_test_shard_180 [shard 180 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 180 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 180 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 180 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 180 deploy]  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 180 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 180 deploy]  (0.3ms) COMMIT [shard 180 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 180 deploy]  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 180 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 180 deploy]  (0.3ms) COMMIT [shard 180 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 180 deploy]  (2.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 180 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 180 deploy]  (0.3ms) COMMIT [shard 180 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 180 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 180 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 180 deploy]  (0.2ms) COMMIT [shard 180 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 180 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 180 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 180 deploy]  (0.3ms) COMMIT [shard 180 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 180 deploy]  (0.4ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 180 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 180 deploy]  (0.3ms) COMMIT [shard 180 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 180 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 180 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 180 deploy]  (0.3ms) COMMIT [shard 180 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_180' WHERE "switchman_shards"."id" = 180 [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) BEGIN [shard 180 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 180 master]  (0.3ms) COMMIT [shard 180 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 180 master]  (4.7ms) DROP SCHEMA switchman_test_shard_180 CASCADE [shard 180 deploy]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 180 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) ROLLBACK [shard 177 master]  (0.0ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.0ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) ROLLBACK [shard 177 master]  (0.0ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.0ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 175 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 175], ["name", nil]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 176], ["name", "switchman_test_shard_176"]] [shard 175 master]  (0.4ms) COMMIT [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 177], ["name", "switchman_test_shard_177"]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) ROLLBACK [shard 177 master]  (0.0ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.0ms) BEGIN [shard 175 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 175], ["name", nil]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 176], ["name", "switchman_test_shard_176"]] [shard 175 master]  (0.2ms) COMMIT [shard 175 master]  (0.0ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 177], ["name", "switchman_test_shard_177"]] [shard 175 master]  (0.2ms) COMMIT [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 175], ["name", nil]] [shard 175 master]  (0.2ms) COMMIT [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 176], ["name", "switchman_test_shard_176"]] [shard 175 master]  (0.2ms) COMMIT [shard 175 master]  (0.0ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 177], ["name", "switchman_test_shard_177"]] [shard 175 master]  (0.2ms) COMMIT [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["user_id", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 176 LIMIT 1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 3]] [shard 176 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 5 LIMIT 1 [shard 176 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 7 AND "appendages"."id" = $1 LIMIT 1 [["id", 4]] [shard 176 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 7 AND "appendages"."id" = $1 LIMIT 1 [["id", 4]] [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 8 [shard 176 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 8]] [shard 176 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 8 [shard 176 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6], ["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master] Digit Load (0.6ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 176 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 177 LIMIT 1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["user_id", 1760000000000011], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (6.0ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2], ["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["value", 2]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 11 AND "digits"."value" IS NULL [shard 176 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1760000000000011 AND "digits"."value" IS NULL [shard 177 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 11]] [shard 176 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 11 AND "digits"."value" IS NULL [shard 176 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1760000000000011 AND "digits"."value" IS NULL [shard 177 master]  (0.2ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9], ["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["value", 1]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["user_id", 1760000000000012], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3], ["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["value", 2]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 12 [shard 176 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 12]] [shard 176 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 12 [shard 176 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1760000000000012 [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 177 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["user_id", 13], ["value", 1]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["user_id", 1760000000000013], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["user_id", 13], ["value", 2]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 13]] [shard 176 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 13 AND (appendages.value IS NOT NULL) [shard 176 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 1760000000000013 AND (appendages.value IS NOT NULL) [shard 177 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 13]] [shard 176 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 13 AND (appendages.value IS NOT NULL) [shard 176 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 1760000000000013 AND (appendages.value IS NOT NULL) [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["user_id", 14], ["value", 1]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["user_id", 1760000000000014], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 14 AND "appendages"."value" IS NULL [shard 176 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 1760000000000014 AND "appendages"."value" IS NULL [shard 177 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 14]] [shard 176 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 14 AND "appendages"."value" IS NULL [shard 176 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 1760000000000014 AND "appendages"."value" IS NULL [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["user_id", 15], ["value", 1]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:04 UTC +00:00], ["user_id", 1760000000000015], ["value", 2]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 15 [shard 176 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 15]] [shard 176 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 15 [shard 176 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 1760000000000015 [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.2ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 14], ["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 14], ["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["value", 1]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 1760000000000016], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7], ["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["value", 2]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 16 AND (digits.value IS NOT NULL) [shard 176 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1760000000000016 AND (digits.value IS NOT NULL) [shard 177 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 16]] [shard 176 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 16 AND (digits.value IS NOT NULL) [shard 176 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1760000000000016 AND (digits.value IS NOT NULL) [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15], ["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 1760000000000017], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["value", 2]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17 AND "digits"."value" IS NULL [shard 176 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1760000000000017 AND "digits"."value" IS NULL [shard 177 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 176 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17 AND "digits"."value" IS NULL [shard 176 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1760000000000017 AND "digits"."value" IS NULL [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["owner_id", 18], ["owner_type", "User"], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["value", 1]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["owner_id", 1760000000000018], ["owner_type", "User"], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["value", 2]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 18 AND "features"."owner_type" = 'User' [shard 176 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 176 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 18 AND "features"."owner_type" = 'User' [shard 176 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 1760000000000018 AND "features"."owner_type" = 'User' [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["owner_id", 156], ["owner_type", "Appendage"], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["value", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 16]] [shard 175 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 156 LIMIT 1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master]  (0.2ms) UPDATE "features" SET "owner_id" = 1760000000000019, "owner_type" = 'User', "updated_at" = '2014-07-18 19:07:05.084176' WHERE "features"."id" = 16 [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 16]] [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 1770000000000020]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 8]] [shard 175 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 20 LIMIT 1 [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 21 LIMIT 1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 16]] [shard 176 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 21 LIMIT 1 [shard 176 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 1770000000000022], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 17]] [shard 176 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 22 LIMIT 1 [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 1760000000000023], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 1760000000000023], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 18], ["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10], ["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1770000000000010], ["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1770000000000011], ["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["value", nil]] [shard 176 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 1770000000000023], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master]  (0.0ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.0ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1760000000000019], ["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1770000000000012], ["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1770000000000013], ["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 176 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (23) [shard 176 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (1760000000000023) [shard 177 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (18, 1770000000000010) [shard 176 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (10, 11) [shard 177 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 177 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (23) [shard 177 master] Digit Load (0.1ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (12) [shard 177 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1770000000000013) [shard 176 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 176 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 1760000000000024], ["value", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 1770000000000024], ["value", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 312], ["value", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages"  [shard 175 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (312) [shard 175 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 176 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 177 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 24 [shard 176 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 1760000000000025], ["value", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 160], ["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["value", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 1770000000000025], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1760000000000020], ["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["value", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits"  [shard 175 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (160) [shard 175 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (20) [shard 176 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 176 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 177 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 25 [shard 176 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 26], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 1760000000000026], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 1770000000000026], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 176 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (26) [shard 176 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (1760000000000026) [shard 177 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 177 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (26) [shard 177 master] SQL (0.1ms) DELETE FROM "appendages" WHERE "appendages"."id" = 21 [shard 176 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 175], ["name", nil]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 176], ["name", "switchman_test_shard_176"]] [shard 175 master]  (0.4ms) COMMIT [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 177], ["name", "switchman_test_shard_177"]] [shard 175 master]  (0.2ms) COMMIT [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 176 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) ROLLBACK [shard 177 master]  (0.0ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) ROLLBACK [shard 177 master]  (0.0ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master] User Load (0.3ms) SELECT "users".* FROM "users"  [shard 175 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-18 19:07:05.289635' [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 175 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-18 19:07:05.296759' [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 175 master] SQL (1.4ms) UPDATE "users" SET "updated_at" = '2014-07-18 19:07:05.300971' [shard 175 master] SQL (0.3ms) DELETE FROM "users" [shard 175 master]  (0.0ms) BEGIN [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 175 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-07-18 19:07:05.306401' [shard 175 master] SQL (0.4ms) DELETE FROM "users" [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.4ms) COMMIT [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 175 master]  (0.0ms) BEGIN [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.4ms) COMMIT [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 175 master] SQL (0.1ms) DELETE FROM "users" [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 175 master] SQL (0.1ms) DELETE FROM "users" [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 175 master] SQL (0.4ms) DELETE FROM "users" [shard 175 master] SQL (0.1ms) DELETE FROM "users" [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 175 master] SQL (0.3ms) DELETE FROM "users" [shard 175 master] SQL (0.1ms) DELETE FROM "users" [shard 175 master]  (0.0ms) BEGIN [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 327]] [shard 175 master] CACHE (0.0ms) 175::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 327]] CACHE (0.0ms) 175::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 327]]  (0.1ms) BEGIN [shard 175 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-07-18 19:07:05.380337' WHERE "users"."id" = 327 [shard 175 master]  (0.3ms) COMMIT [shard 175 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 327]] [shard 175 master] CACHE (0.0ms) 175::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 327]] SQL (0.3ms) DELETE FROM "users" [shard 175 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 175], ["name", nil]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.0ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 176], ["name", "switchman_test_shard_176"]] [shard 175 master]  (0.2ms) COMMIT [shard 175 master]  (0.0ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 177], ["name", "switchman_test_shard_177"]] [shard 175 master]  (0.2ms) COMMIT [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:08:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:08:05 UTC +00:00]] [shard 176 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) ROLLBACK [shard 177 master]  (0.0ms) ROLLBACK [shard 176 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", "non_existent_shard"]] [shard 175 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 181 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.7ms) SELECT COUNT(*) FROM "users"  [shard 182 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 175], ["name", nil]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 176], ["name", "switchman_test_shard_176"]] [shard 175 master]  (0.2ms) COMMIT [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 177], ["name", "switchman_test_shard_177"]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 328], ["value", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 31], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 329], ["value", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 329], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 330], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 330]] [shard 175 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 329 LIMIT 1 [shard 175 master]  (0.1ms) SHOW max_identifier_length [shard 175 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 329 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 332], ["value", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 333], ["value", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 31], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 334], ["value", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 335], ["value", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 336], ["value", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master]  (0.0ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 176 LIMIT 1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 337], ["value", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 338], ["value", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 339], ["value", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 340], ["value", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 341], ["value", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 342], ["value", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.3ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 343], ["value", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 344], ["value", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 345], ["value", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 175], ["name", nil]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 176], ["name", "switchman_test_shard_176"]] [shard 175 master]  (0.2ms) COMMIT [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 177], ["name", "switchman_test_shard_177"]] [shard 175 master]  (0.2ms) COMMIT [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 175 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 175 master] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 176 master] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 48 LIMIT 1 [shard 176 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 176 LIMIT 1 [shard 175 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 49]] [shard 176 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (50) LIMIT 1 [shard 176 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 51 LIMIT 1 [shard 176 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 52]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1760000000000052 LIMIT 1 [shard 176 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master] SQL (4.7ms) DELETE FROM "switchman_shards" [shard 175 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 175], ["name", nil]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 176], ["name", "switchman_test_shard_176"]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master]  (0.0ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 177], ["name", "switchman_test_shard_177"]] [shard 175 master]  (0.2ms) COMMIT [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (175, 176) AND (id IN (176,177)) [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) ROLLBACK [shard 177 master]  (0.0ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) ROLLBACK [shard 177 master]  (0.0ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) ROLLBACK [shard 177 master]  (0.0ms) ROLLBACK [shard 175 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 175], ["name", nil]] [shard 175 master]  (0.2ms) COMMIT [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 176], ["name", "switchman_test_shard_176"]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 177], ["name", "switchman_test_shard_177"]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 176 LIMIT 1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) ROLLBACK [shard 177 master]  (0.0ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) ROLLBACK [shard 177 master]  (0.0ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) ROLLBACK [shard 177 master]  (0.0ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 175], ["name", nil]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 176], ["name", "switchman_test_shard_176"]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 177], ["name", "switchman_test_shard_177"]] [shard 175 master]  (0.2ms) COMMIT [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master] SQL (0.8ms) DELETE FROM "switchman_shards" [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 175], ["name", nil]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 176], ["name", "switchman_test_shard_176"]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master]  (0.0ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 177], ["name", "switchman_test_shard_177"]] [shard 175 master]  (0.2ms) COMMIT [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 176 LIMIT 1 [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 177 LIMIT 1 [shard 175 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (56) [shard 176 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (45) [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 176 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 177 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 176 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 177 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 176 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 176 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 177 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 176 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 177 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 176 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 59], ["value", 1]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 59], ["value", 2]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 48], ["value", 3]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 48], ["value", 4]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 48], ["value", 5]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 59 [shard 176 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 176 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 48 [shard 177 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 177 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (43, 44) [shard 176 master]  (0.6ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (35, 36, 37) [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 60], ["value", 1]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 60], ["value", 2]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 49], ["value", 3]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 49], ["value", 4]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 49], ["value", 5]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 60 [shard 176 master]  (0.1ms) SELECT COUNT(*) FROM "appendages"  [shard 176 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 49 [shard 177 master]  (0.1ms) SELECT COUNT(*) FROM "appendages"  [shard 177 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (45, 46) [shard 176 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (38, 39, 40) [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:05 UTC +00:00], ["user_id", 61], ["value", 1]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 61], ["value", 2]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 50], ["value", 3]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 50], ["value", 4]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 50], ["value", 5]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 61 [shard 176 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 176 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 50 [shard 177 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 177 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (47, 48) [shard 176 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (41, 42, 43) [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 62], ["value", 1]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 62], ["value", 2]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 51], ["value", 3]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 51], ["value", 4]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 51], ["value", 5]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 62 [shard 176 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 176 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 51 [shard 177 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 177 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (49, 50) [shard 176 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (44, 45, 46) [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 63], ["value", 1]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 63], ["value", 2]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 52], ["value", 3]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 52], ["value", 4]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 52], ["value", 5]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 63 [shard 176 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 176 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 52 [shard 177 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 177 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (51, 52) [shard 176 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (47, 48, 49) [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 64], ["value", 1]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 1770000000000053], ["value", 3]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 1760000000000064], ["value", 2]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 53], ["value", 4]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 53], ["value", 5]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SHOW max_identifier_length [shard 175 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 176 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 177 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 176 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 177 master]  (0.1ms) SHOW max_identifier_length [shard 177 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 176 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 177 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 176 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [shard 176 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 177 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 177 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 177 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [shard 176 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 65], ["value", 1]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 1770000000000054], ["value", 3]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 1760000000000065], ["value", 2]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 54], ["value", 4]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 54], ["value", 5]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 176 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 177 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 176 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 177 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 176 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 177 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 176 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 176 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 177 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 177 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 177 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 176 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 66], ["value", 1]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 1770000000000055], ["value", 3]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 1760000000000066], ["value", 2]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 55], ["value", 4]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 55], ["value", 5]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 176 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 177 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 176 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 177 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 176 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 177 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 176 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 176 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 177 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 177 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 177 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 176 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 67], ["value", 1]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 1770000000000056], ["value", 3]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 1760000000000067], ["value", 2]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 56], ["value", 4]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 56], ["value", 5]] [shard 177 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 176 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 177 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 176 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 177 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 176 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 177 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 176 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 176 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 177 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 177 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 177 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 176 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 68], ["value", 1]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 1770000000000057], ["value", 3]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 1760000000000068], ["value", 2]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 57], ["value", 4]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 57], ["value", 5]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 176 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 177 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 176 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 177 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 176 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 177 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 176 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (68) [shard 176 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 177 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 177 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 177 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (68) [shard 176 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 69], ["value", 1]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 1770000000000058], ["value", 3]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 1760000000000069], ["value", 2]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 58], ["value", 4]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 58], ["value", 5]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", 70], ["value", nil]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 176 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master]  (0.0ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 175], ["name", nil]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 176], ["name", "switchman_test_shard_176"]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master]  (0.0ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 177], ["name", "switchman_test_shard_177"]] [shard 175 master]  (0.2ms) COMMIT [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '14' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.0ms) select sqlite_version(*) [shard 193 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 193 deploy]  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 193 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 193 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 193 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 193 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 193 deploy]  (0.7ms) commit transaction [shard 193 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 193 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 193 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 193 deploy]  (0.5ms) commit transaction [shard 193 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 193 deploy]  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 193 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 193 deploy]  (0.7ms) commit transaction [shard 193 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 193 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 193 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 193 deploy]  (0.6ms) commit transaction [shard 193 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 193 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 193 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 193 deploy]  (0.7ms) commit transaction [shard 193 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 193 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 193 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 193 deploy]  (0.7ms) commit transaction [shard 193 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 193 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 193 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 193 deploy]  (0.7ms) commit transaction [shard 193 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_193.sqlite3' WHERE "switchman_shards"."id" = 193 [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.0ms) begin transaction [shard 193 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 193 master]  (0.7ms) commit transaction [shard 193 master] Drop failed: No such file or directory @ unlink_internal - db/shard_193.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 193]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '15' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", "public"]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (6.3ms) CREATE SCHEMA switchman_test_shard_194 [shard 194 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 194 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 194 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 194 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 194 deploy]  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 194 deploy]  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 194 deploy]  (0.3ms) COMMIT [shard 194 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 194 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 194 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 194 deploy]  (0.3ms) COMMIT [shard 194 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 194 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 194 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 194 deploy]  (0.3ms) COMMIT [shard 194 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 194 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 194 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 194 deploy]  (0.3ms) COMMIT [shard 194 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 194 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 194 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 194 deploy]  (0.3ms) COMMIT [shard 194 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 194 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 194 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 194 deploy]  (0.3ms) COMMIT [shard 194 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 194 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 194 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 194 deploy]  (0.3ms) COMMIT [shard 194 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_194' WHERE "switchman_shards"."id" = 194 [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) BEGIN [shard 194 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 194 master]  (0.2ms) COMMIT [shard 194 master]  (4.7ms) DROP SCHEMA switchman_test_shard_194 CASCADE [shard 194 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 194]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 175 master]  (0.2ms) CREATE SCHEMA switchman_test_shard_195 [shard 195 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 195 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 195 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 195 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 195 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 195 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 195 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 195 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 195 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 195 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 195 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 195 deploy] Migrating to CreateFeatures (20131206172923)  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 195 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 195 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 195 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 195 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 195 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 195 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_195' WHERE "switchman_shards"."id" = 195 [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 195 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 195 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 195 master]  (2.6ms) DROP SCHEMA switchman_test_shard_195 CASCADE [shard 195 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 195]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (2.2ms) ROLLBACK [shard 175 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master]  (0.0ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master]  (0.0ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master]  (0.0ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master]  (0.0ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master]  (0.0ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master]  (0.0ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 175], ["name", nil]] [shard 175 master]  (0.4ms) COMMIT [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 176], ["name", "switchman_test_shard_176"]] [shard 175 master]  (0.2ms) COMMIT [shard 175 master]  (0.0ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 177], ["name", "switchman_test_shard_177"]] [shard 175 master]  (0.2ms) COMMIT [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 176 LIMIT 1 [shard 175 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (349) [shard 175 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [shard 176 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 72 LIMIT 1 [shard 176 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (351) [shard 175 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (73) [shard 176 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 351]] [shard 175 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 73]] [shard 176 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 74 [shard 176 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 352]] [shard 175 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 74]] [shard 176 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.0ms) SAVEPOINT active_record_1 [shard 176 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 176 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 176 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 175], ["name", nil]] [shard 175 master]  (0.2ms) COMMIT [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 176], ["name", "switchman_test_shard_176"]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master]  (0.0ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 177], ["name", "switchman_test_shard_177"]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 176 LIMIT 1 [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 177 LIMIT 1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["owner_id", 355], ["owner_type", "User"], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["value", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 17 LIMIT 1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master] SQL (6.1ms) DELETE FROM "switchman_shards" [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 175 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master]  (0.0ms) ROLLBACK [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 175], ["name", nil]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 176], ["name", "switchman_test_shard_176"]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master]  (0.0ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 177], ["name", "switchman_test_shard_177"]] [shard 175 master]  (0.2ms) COMMIT [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 175], ["name", nil]] [shard 175 master]  (0.2ms) COMMIT [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.0ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 176], ["name", "switchman_test_shard_176"]] [shard 175 master]  (0.2ms) COMMIT [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 177], ["name", "switchman_test_shard_177"]] [shard 175 master]  (0.2ms) COMMIT [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) SAVEPOINT active_record_1 [shard 177 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 177 master]  (0.1ms) SAVEPOINT active_record_2 [shard 177 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00]] [shard 177 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 177 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master] SQL (5.6ms) DELETE FROM "switchman_shards" [shard 175 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 175], ["name", nil]] [shard 175 master]  (5.5ms) COMMIT [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 176], ["name", "switchman_test_shard_176"]] [shard 175 master]  (5.5ms) COMMIT [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 177], ["name", "switchman_test_shard_177"]] [shard 175 master]  (6.1ms) COMMIT [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.1ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:07:06 UTC +00:00], ["user_id", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 8]] [shard 175 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 8]] [shard 175 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 8 LIMIT 1 [shard 176 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 176 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) ROLLBACK [shard 177 master]  (0.0ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.0ms) ROLLBACK [shard 177 master]  (0.0ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 175], ["name", nil]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 176], ["name", "switchman_test_shard_176"]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master]  (0.1ms) BEGIN [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 177], ["name", "switchman_test_shard_177"]] [shard 175 master]  (0.3ms) COMMIT [shard 175 master]  (0.0ms) BEGIN [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master]  (0.1ms) BEGIN [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 176]] [shard 175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 177]] [shard 175 master]  (0.0ms) BEGIN [shard 177 master]  (0.1ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "33"], ["default", false], ["name", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.0ms) SAVEPOINT active_record_1 [shard 175 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "33"], ["default", false], ["name", nil]] [shard 175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 175 master]  (0.1ms) ROLLBACK [shard 177 master]  (0.1ms) ROLLBACK [shard 175 master] SQL (5.6ms) DELETE FROM "switchman_shards" [shard 175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 175 master]  (9.9ms) DROP SCHEMA switchman_test_shard_176 CASCADE [shard 176 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 176]]  (0.1ms) COMMIT  (5.7ms) DROP SCHEMA switchman_test_shard_177 CASCADE [shard 177 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 177]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "non_existent_shard"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "users" does not exist LINE 5: WHERE a.attrelid = '"users"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.3ms) SELECT COUNT(*) FROM "users" [shard 222 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_230 [shard 230 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 230 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 230 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 230 deploy] Migrating to CreateUsers (20130403132607)  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 230 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 230 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 230 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 230 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 230 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 230 deploy] Migrating to CreateDigits (20131022202028)  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 230 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 230 deploy] Migrating to CreateFeatures (20131206172923)  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 230 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 230 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 230 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 230 deploy] Migrating to CreateRoots (20140219183820)  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 230 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 230 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_230' WHERE "switchman_shards"."id" = 230 [shard 229 master]  (0.7ms) COMMIT [shard 229 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '8' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", "public"]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_231 [shard 231 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 231 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 231 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 231 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 231 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 231 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 231 deploy]  (0.3ms) COMMIT [shard 231 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 231 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 231 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 231 deploy]  (0.3ms) COMMIT [shard 231 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 231 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 231 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 231 deploy]  (0.3ms) COMMIT [shard 231 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 231 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 231 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 231 deploy]  (0.3ms) COMMIT [shard 231 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 231 deploy]  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 231 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 231 deploy]  (0.3ms) COMMIT [shard 231 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 231 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 231 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 231 deploy]  (0.2ms) COMMIT [shard 231 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 231 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 231 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 231 deploy]  (0.3ms) COMMIT [shard 231 deploy]  (0.1ms) BEGIN [shard 229 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_231' WHERE "switchman_shards"."id" = 231 [shard 229 master]  (0.3ms) COMMIT [shard 229 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 229], ["name", nil]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 230], ["name", "switchman_test_shard_230"]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 231], ["name", "switchman_test_shard_231"]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (229, 230) AND (id IN (230,231)) [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 229], ["name", nil]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 230], ["name", "switchman_test_shard_230"]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 231], ["name", "switchman_test_shard_231"]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 230 LIMIT 1 [shard 229 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (400) [shard 229 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1) [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1 [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (402) [shard 229 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (3) [shard 230 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 402]] [shard 229 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 3]] [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 4 [shard 230 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 403]] [shard 229 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 4]] [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 229], ["name", nil]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 230], ["name", "switchman_test_shard_230"]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 231], ["name", "switchman_test_shard_231"]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 405], ["value", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 406], ["value", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 406], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 407], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 407]] [shard 229 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 406 LIMIT 1 [shard 229 master]  (0.1ms) SHOW max_identifier_length [shard 229 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 406 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 409], ["value", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master]  (0.0ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 410], ["value", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 411], ["value", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 412], ["value", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 413], ["value", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 414], ["value", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 230 LIMIT 1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 415], ["value", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 416], ["value", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 417], ["value", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 418], ["value", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 419], ["value", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.2ms) ROLLBACK [shard 230 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 420], ["value", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 421], ["value", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 422], ["value", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 229], ["name", nil]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 230], ["name", "switchman_test_shard_230"]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 231], ["name", "switchman_test_shard_231"]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 229], ["name", nil]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 230], ["name", "switchman_test_shard_230"]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 231], ["name", "switchman_test_shard_231"]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 229 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 229], ["name", nil]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.0ms) BEGIN [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 230], ["name", "switchman_test_shard_230"]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master]  (0.0ms) BEGIN [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 231], ["name", "switchman_test_shard_231"]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["user_id", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 10]] [shard 229 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 10]] [shard 229 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 10 LIMIT 1 [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) ROLLBACK [shard 231 master]  (0.0ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master]  (0.0ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master]  (0.0ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master]  (0.0ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master]  (0.0ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 229], ["name", nil]] [shard 229 master]  (0.4ms) COMMIT [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 230], ["name", "switchman_test_shard_230"]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 231], ["name", "switchman_test_shard_231"]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '23' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "23"], ["default", false], ["name", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.0ms) select sqlite_version(*) [shard 234 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 234 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 234 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 234 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 234 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 234 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 234 deploy]  (0.6ms) commit transaction [shard 234 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 234 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 234 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 234 deploy]  (0.8ms) commit transaction [shard 234 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 234 deploy]  (0.4ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 234 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 234 deploy]  (0.6ms) commit transaction [shard 234 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 234 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 234 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 234 deploy]  (0.5ms) commit transaction [shard 234 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 234 deploy]  (0.3ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 234 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 234 deploy]  (0.6ms) commit transaction [shard 234 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 234 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 234 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 234 deploy]  (0.5ms) commit transaction [shard 234 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 234 deploy]  (0.3ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 234 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 234 deploy]  (0.5ms) commit transaction [shard 234 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_234.sqlite3' WHERE "switchman_shards"."id" = 234 [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.0ms) begin transaction [shard 234 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 234 master]  (0.6ms) commit transaction [shard 234 master] Drop failed: No such file or directory @ unlink_internal - db/shard_234.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 234]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '24' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "24"], ["default", false], ["name", "public"]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (6.3ms) CREATE SCHEMA switchman_test_shard_235 [shard 235 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 235 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 235 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 235 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 235 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 235 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 235 deploy]  (0.3ms) COMMIT [shard 235 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 235 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 235 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 235 deploy]  (0.3ms) COMMIT [shard 235 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 235 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 235 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 235 deploy]  (0.3ms) COMMIT [shard 235 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 235 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 235 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 235 deploy]  (0.3ms) COMMIT [shard 235 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 235 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 235 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 235 deploy]  (0.3ms) COMMIT [shard 235 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 235 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 235 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 235 deploy]  (0.2ms) COMMIT [shard 235 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 235 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 235 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 235 deploy]  (0.2ms) COMMIT [shard 235 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_235' WHERE "switchman_shards"."id" = 235 [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) BEGIN [shard 235 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 235 master]  (0.2ms) COMMIT [shard 235 master]  (4.9ms) DROP SCHEMA switchman_test_shard_235 CASCADE [shard 235 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 235]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 229 master]  (0.1ms) CREATE SCHEMA switchman_test_shard_236 [shard 236 deploy]  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 236 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 236 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 236 deploy] Migrating to CreateUsers (20130403132607)  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 236 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 236 deploy] Migrating to CreateAppendages (20130411202442)  (1.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 236 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 236 deploy] Migrating to CreateMirrorUsers (20130411202551)  (10.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 236 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 236 deploy] Migrating to CreateDigits (20131022202028)  (5.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 236 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 236 deploy] Migrating to CreateFeatures (20131206172923)  (10.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 236 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 236 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 236 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 236 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 236 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 236 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_236' WHERE "switchman_shards"."id" = 236 [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 236 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 236 master]  (2.6ms) DROP SCHEMA switchman_test_shard_236 CASCADE [shard 236 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 236]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (2.2ms) ROLLBACK [shard 229 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 229], ["name", nil]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 230], ["name", "switchman_test_shard_230"]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 231], ["name", "switchman_test_shard_231"]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 230 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 229 master]  (0.0ms) BEGIN [shard 229 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 229 master] SQL (0.1ms) DELETE FROM "users" [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 229 master] SQL (0.1ms) DELETE FROM "users" [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 229 master] SQL (0.4ms) DELETE FROM "users" [shard 229 master] SQL (0.1ms) DELETE FROM "users" [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 229 master] SQL (0.3ms) DELETE FROM "users" [shard 229 master] SQL (0.1ms) DELETE FROM "users" [shard 229 master]  (0.0ms) BEGIN [shard 229 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 433]] [shard 229 master] CACHE (0.0ms) 229::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 433]] CACHE (0.0ms) 229::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 433]]  (0.1ms) BEGIN [shard 229 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-07-18 19:11:27.940562' WHERE "users"."id" = 433 [shard 229 master]  (0.2ms) COMMIT [shard 229 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 433]] [shard 229 master] CACHE (0.0ms) 229::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 433]] SQL (0.3ms) DELETE FROM "users" [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 229 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-18 19:11:27.948070' [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 229 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-07-18 19:11:27.953584' [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 229 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-07-18 19:11:27.957266' [shard 229 master] SQL (0.3ms) DELETE FROM "users" [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:27 UTC +00:00]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 229 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-07-18 19:11:27.961616' [shard 229 master] SQL (0.3ms) DELETE FROM "users" [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.0ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) ROLLBACK [shard 231 master]  (0.0ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 229], ["name", nil]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 230], ["name", "switchman_test_shard_230"]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master]  (0.0ms) BEGIN [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 231], ["name", "switchman_test_shard_231"]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 230 LIMIT 1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.2ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 229], ["name", nil]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 230], ["name", "switchman_test_shard_230"]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 231], ["name", "switchman_test_shard_231"]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 229 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 229 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 230 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 28 LIMIT 1 [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 230 LIMIT 1 [shard 229 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 29]] [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) LIMIT 1 [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 31 LIMIT 1 [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 32]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2300000000000032 LIMIT 1 [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master] SQL (4.8ms) DELETE FROM "switchman_shards" [shard 229 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "25"], ["default", false], ["name", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "25"], ["default", false], ["name", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 229], ["name", nil]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 230], ["name", "switchman_test_shard_230"]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 231], ["name", "switchman_test_shard_231"]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "26"], ["default", false], ["name", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "27"], ["default", false], ["name", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master] SQL (0.9ms) DELETE FROM "switchman_shards" [shard 229 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 229], ["name", nil]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 230], ["name", "switchman_test_shard_230"]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 231], ["name", "switchman_test_shard_231"]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 230 LIMIT 1 [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 231 LIMIT 1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["owner_id", 442], ["owner_type", "User"], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["value", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 20 LIMIT 1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master] SQL (6.2ms) DELETE FROM "switchman_shards" [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 229], ["name", nil]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 230], ["name", "switchman_test_shard_230"]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 231], ["name", "switchman_test_shard_231"]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.2ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10231 LIMIT 1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) ROLLBACK [shard 231 master]  (0.0ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 230 LIMIT 1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 231 LIMIT 1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '28' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "28"], ["default", false], ["name", "public"]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (6.4ms) CREATE SCHEMA switchman_test_shard_241 [shard 241 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 241 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 241 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 241 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 241 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 241 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 241 deploy]  (0.3ms) COMMIT [shard 241 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 241 deploy]  (1.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 241 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 241 deploy]  (0.3ms) COMMIT [shard 241 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 241 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 241 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 241 deploy]  (0.3ms) COMMIT [shard 241 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 241 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 241 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 241 deploy]  (0.3ms) COMMIT [shard 241 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 241 deploy]  (1.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 241 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 241 deploy]  (0.3ms) COMMIT [shard 241 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 241 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 241 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 241 deploy]  (0.3ms) COMMIT [shard 241 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 241 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 241 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 241 deploy]  (0.3ms) COMMIT [shard 241 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_241' WHERE "switchman_shards"."id" = 241 [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) BEGIN [shard 241 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 241 master]  (0.3ms) COMMIT [shard 241 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 241 master]  (4.6ms) DROP SCHEMA switchman_test_shard_241 CASCADE [shard 241 deploy]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 241 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) ROLLBACK [shard 231 master]  (0.0ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) ROLLBACK [shard 231 master]  (0.0ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) ROLLBACK [shard 231 master]  (0.0ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.0ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 242]] [shard 229 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 243]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 243 LIMIT 1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master] SQL (6.0ms) DELETE FROM "switchman_shards" [shard 229 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 229], ["name", nil]] [shard 229 master]  (5.5ms) COMMIT [shard 229 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 230], ["name", "switchman_test_shard_230"]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 231], ["name", "switchman_test_shard_231"]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:12:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:12:28 UTC +00:00]] [shard 230 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.0ms) ROLLBACK [shard 231 master]  (0.0ms) ROLLBACK [shard 230 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 229], ["name", nil]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 230], ["name", "switchman_test_shard_230"]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 231], ["name", "switchman_test_shard_231"]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 230 LIMIT 1 [shard 229 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 231 LIMIT 1 [shard 229 master] SQL (0.3ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (34) [shard 230 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (18) [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master] SQL (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 230 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 231 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 230 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 231 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 230 master] SQL (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master] SQL (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 20 [shard 230 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 20 [shard 231 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 20 [shard 230 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 20 [shard 231 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 20 [shard 230 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 20 [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 37], ["value", 1]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 37], ["value", 2]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 21], ["value", 3]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 21], ["value", 4]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 21], ["value", 5]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 37 [shard 230 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 230 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 21 [shard 231 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 231 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (21, 22) [shard 230 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (21, 22, 23) [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 38], ["value", 1]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 38], ["value", 2]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 22], ["value", 3]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 22], ["value", 4]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 22], ["value", 5]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 38 [shard 230 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 230 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 22 [shard 231 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 231 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (23, 24) [shard 230 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (24, 25, 26) [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 39], ["value", 1]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 39], ["value", 2]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 23], ["value", 3]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 23], ["value", 4]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 23], ["value", 5]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 39 [shard 230 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 230 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 23 [shard 231 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 231 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (25, 26) [shard 230 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (27, 28, 29) [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 40], ["value", 1]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 40], ["value", 2]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 24], ["value", 3]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 24], ["value", 4]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 24], ["value", 5]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 40 [shard 230 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 230 master]  (5.5ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 24 [shard 231 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 231 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (27, 28) [shard 230 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (30, 31, 32) [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 41], ["value", 1]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 41], ["value", 2]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 25], ["value", 3]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 25], ["value", 4]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 25], ["value", 5]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 41 [shard 230 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 230 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 25 [shard 231 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 231 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (29, 30) [shard 230 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (33, 34, 35) [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 42], ["value", 1]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 2310000000000026], ["value", 3]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 2300000000000042], ["value", 2]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 26], ["value", 4]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 26], ["value", 5]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SHOW max_identifier_length [shard 229 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 230 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 231 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 230 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 231 master]  (0.1ms) SHOW max_identifier_length [shard 231 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 230 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 231 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 230 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [shard 230 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 231 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 231 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 231 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 43], ["value", 1]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 2310000000000027], ["value", 3]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 2300000000000043], ["value", 2]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 27], ["value", 4]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 27], ["value", 5]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.0ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 45], ["value", 1]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 2310000000000028], ["value", 3]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 2300000000000045], ["value", 2]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 28], ["value", 4]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 28], ["value", 5]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 230 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 231 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 230 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 231 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 230 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 231 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 230 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [shard 230 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 231 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 231 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 231 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.2ms) ROLLBACK [shard 230 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 46], ["value", 1]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 2310000000000029], ["value", 3]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 2300000000000046], ["value", 2]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 29], ["value", 4]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 29], ["value", 5]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 230 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 231 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 230 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 231 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 230 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 231 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 230 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (46) [shard 230 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [shard 231 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 231 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [shard 231 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (46) [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 47], ["value", 1]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 2310000000000030], ["value", 3]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 2300000000000047], ["value", 2]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 30], ["value", 4]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 30], ["value", 5]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 230 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 231 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 230 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 231 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 230 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 231 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 230 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (47) [shard 230 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [shard 231 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 231 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [shard 231 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (47) [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 48], ["value", 1]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 2310000000000031], ["value", 3]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 2300000000000048], ["value", 2]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 31], ["value", 4]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 31], ["value", 5]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 230 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 231 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 230 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 231 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 230 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 231 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 230 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (48) [shard 230 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (31) [shard 231 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 231 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (31) [shard 231 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (48) [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 229], ["name", nil]] [shard 229 master]  (0.4ms) COMMIT [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 230], ["name", "switchman_test_shard_230"]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 231], ["name", "switchman_test_shard_231"]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.0ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 230 LIMIT 1 [shard 229 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 45]] [shard 230 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 49 LIMIT 1 [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (6.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 46], ["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 50 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 51 AND "appendages"."id" = $1 LIMIT 1 [["id", 47]] [shard 230 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 34 AND "appendages"."id" = $1 LIMIT 1 [["id", 47]] [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.0ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 231 LIMIT 1 [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 56 [shard 230 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 56]] [shard 230 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 56 [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 52], ["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 52], ["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["value", 1]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 2300000000000059], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["value", 2]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 59 AND (digits.value IS NOT NULL) [shard 230 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2300000000000059 AND (digits.value IS NOT NULL) [shard 231 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 59]] [shard 230 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 59 AND (digits.value IS NOT NULL) [shard 230 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2300000000000059 AND (digits.value IS NOT NULL) [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 53], ["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["user_id", 2300000000000060], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:28 UTC +00:00], ["value", 2]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 60 AND "digits"."value" IS NULL [shard 230 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2300000000000060 AND "digits"."value" IS NULL [shard 231 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 60]] [shard 230 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 60 AND "digits"."value" IS NULL [shard 230 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2300000000000060 AND "digits"."value" IS NULL [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 54], ["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", 2300000000000061], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 57], ["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["value", 2]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 61 AND "digits"."value" IS NULL [shard 230 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2300000000000061 AND "digits"."value" IS NULL [shard 231 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [shard 230 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 61 AND "digits"."value" IS NULL [shard 230 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2300000000000061 AND "digits"."value" IS NULL [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", 62], ["value", 1]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", 2300000000000062], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", 62], ["value", 2]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 62]] [shard 230 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 62 AND (appendages.value IS NOT NULL) [shard 230 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 2300000000000062 AND (appendages.value IS NOT NULL) [shard 231 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 62]] [shard 230 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 62 AND (appendages.value IS NOT NULL) [shard 230 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 2300000000000062 AND (appendages.value IS NOT NULL) [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", 63], ["value", 1]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", 2300000000000063], ["value", 2]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 63 [shard 230 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [shard 230 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 63 [shard 230 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 2300000000000063 [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 58], ["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["value", 1]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", 2300000000000064], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 60], ["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["value", 2]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 64 [shard 230 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 64]] [shard 230 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 64 [shard 230 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2300000000000064 [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.0ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", 65], ["value", 1]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", 2300000000000065], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 65 AND "appendages"."value" IS NULL [shard 230 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 2300000000000065 AND "appendages"."value" IS NULL [shard 231 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 65]] [shard 230 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 65 AND "appendages"."value" IS NULL [shard 230 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 2300000000000065 AND "appendages"."value" IS NULL [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["owner_id", 66], ["owner_type", "User"], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["value", 1]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["owner_id", 2300000000000066], ["owner_type", "User"], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["value", 2]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 66 AND "features"."owner_type" = 'User' [shard 230 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 66]] [shard 230 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 66 AND "features"."owner_type" = 'User' [shard 230 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 2300000000000066 AND "features"."owner_type" = 'User' [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["owner_id", 217], ["owner_type", "Appendage"], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["value", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 21]] [shard 229 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 217 LIMIT 1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master]  (0.2ms) UPDATE "features" SET "owner_id" = 2300000000000067, "owner_type" = 'User', "updated_at" = '2014-07-18 19:11:29.126491' WHERE "features"."id" = 21 [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 21]] [shard 229 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.0ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", 2310000000000051]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 10]] [shard 229 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 51 LIMIT 1 [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 69 LIMIT 1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 230 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 230 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 60]] [shard 230 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 69 LIMIT 1 [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", 2310000000000053], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 61]] [shard 230 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 53 LIMIT 1 [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", 71], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", 2300000000000071], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", 2300000000000071], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 62], ["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 63], ["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2310000000000063], ["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2310000000000064], ["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", 2310000000000054], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master]  (0.0ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.0ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2300000000000063], ["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2310000000000065], ["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2310000000000066], ["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [shard 230 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (71) [shard 230 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (2300000000000071) [shard 231 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (62, 2310000000000063) [shard 230 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (63, 64) [shard 231 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 231 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (54) [shard 231 master] Digit Load (0.1ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (65) [shard 231 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (2310000000000066) [shard 230 master] SQL (0.1ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", 2300000000000072], ["value", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", 2310000000000055], ["value", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", 443], ["value", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 229 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (443) [shard 229 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [shard 230 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 231 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 72 [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 231 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", 2300000000000073], ["value", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 221], ["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["value", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", 2310000000000056], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2300000000000064], ["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["value", nil]] [shard 229 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 229 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 229 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (221) [shard 229 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (64) [shard 230 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (73) [shard 230 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 231 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 73 [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 229 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", 74], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", 2300000000000074], ["value", nil]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["user_id", 2310000000000057], ["value", nil]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (74) [shard 230 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (74) [shard 230 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (2300000000000074) [shard 231 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 231 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (57) [shard 231 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 65 [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 230 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 230 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 230 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 229], ["name", nil]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 230], ["name", "switchman_test_shard_230"]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 231], ["name", "switchman_test_shard_231"]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.0ms) ROLLBACK [shard 231 master]  (0.0ms) ROLLBACK [shard 229 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 229 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master]  (0.0ms) ROLLBACK [shard 229 master]  (0.1ms) BEGIN [shard 229 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 229], ["name", nil]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.0ms) BEGIN [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 230], ["name", "switchman_test_shard_230"]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 231], ["name", "switchman_test_shard_231"]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master]  (0.0ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) BEGIN [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 229], ["name", nil]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 230], ["name", "switchman_test_shard_230"]] [shard 229 master]  (0.2ms) COMMIT [shard 229 master]  (0.1ms) BEGIN [shard 229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 231], ["name", "switchman_test_shard_231"]] [shard 229 master]  (0.3ms) COMMIT [shard 229 master]  (0.0ms) BEGIN [shard 231 master]  (0.0ms) SAVEPOINT active_record_1 [shard 231 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) BEGIN [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 230]] [shard 229 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 231]] [shard 229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 231 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 231 master]  (0.1ms) SAVEPOINT active_record_2 [shard 231 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:11:29 UTC +00:00]] [shard 231 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 231 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 231 master]  (0.1ms) ROLLBACK [shard 229 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 231 master]  (0.1ms) ROLLBACK [shard 231 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 229 master]  (5.1ms) DROP SCHEMA switchman_test_shard_230 CASCADE [shard 230 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 230]]  (0.1ms) COMMIT  (7.0ms) DROP SCHEMA switchman_test_shard_231 CASCADE [shard 231 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 231]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.4ms) CREATE SCHEMA switchman_test_shard_245 [shard 245 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 245 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 245 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 245 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 245 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 245 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 245 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 245 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 245 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 245 deploy] Migrating to CreateDigits (20131022202028)  (1.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 245 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 245 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 245 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 245 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 245 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 245 deploy] Migrating to CreateRoots (20140219183820)  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 245 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 245 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_245' WHERE "switchman_shards"."id" = 245 [shard 244 master]  (1.2ms) COMMIT [shard 244 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_246 [shard 246 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 246 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 246 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 246 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 246 deploy]  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 246 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 246 deploy]  (0.3ms) COMMIT [shard 246 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 246 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 246 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 246 deploy]  (0.3ms) COMMIT [shard 246 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 246 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 246 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 246 deploy]  (0.4ms) COMMIT [shard 246 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 246 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 246 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 246 deploy]  (0.3ms) COMMIT [shard 246 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 246 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 246 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 246 deploy]  (0.3ms) COMMIT [shard 246 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 246 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 246 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 246 deploy]  (0.3ms) COMMIT [shard 246 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 246 deploy]  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 246 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 246 deploy]  (0.3ms) COMMIT [shard 246 deploy]  (0.1ms) BEGIN [shard 244 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_246' WHERE "switchman_shards"."id" = 246 [shard 244 master]  (0.3ms) COMMIT [shard 244 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 244], ["name", nil]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 245], ["name", "switchman_test_shard_245"]] [shard 244 master]  (0.2ms) COMMIT [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 246], ["name", "switchman_test_shard_246"]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (1.1ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:16 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:16 UTC +00:00], ["user_id", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 11]] [shard 244 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 11]] [shard 244 master] MirrorUser Load (0.4ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 11 LIMIT 1 [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 244], ["name", nil]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 245], ["name", "switchman_test_shard_245"]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master]  (0.0ms) BEGIN [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 246], ["name", "switchman_test_shard_246"]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 245 LIMIT 1 [shard 244 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1 [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (3) LIMIT 1 [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 4]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2450000000000004 LIMIT 1 [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 5 LIMIT 1 [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 244 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 244 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 245 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 244 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 244], ["name", nil]] [shard 244 master]  (0.2ms) COMMIT [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 245], ["name", "switchman_test_shard_245"]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 246], ["name", "switchman_test_shard_246"]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.0ms) ROLLBACK [shard 244 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 244], ["name", nil]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 245], ["name", "switchman_test_shard_245"]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 246], ["name", "switchman_test_shard_246"]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 246 master]  (0.1ms) SAVEPOINT active_record_2 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 246 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 244], ["name", nil]] [shard 244 master]  (0.2ms) COMMIT [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 245], ["name", "switchman_test_shard_245"]] [shard 244 master]  (0.2ms) COMMIT [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 246], ["name", "switchman_test_shard_246"]] [shard 244 master]  (0.2ms) COMMIT [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:16:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:16:17 UTC +00:00]] [shard 245 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.0ms) ROLLBACK [shard 245 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", "non_existent_shard"]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [shard 244 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 249 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.7ms) SELECT COUNT(*) FROM "users" [shard 250 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 244 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 244 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 244], ["name", nil]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 245], ["name", "switchman_test_shard_245"]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 246], ["name", "switchman_test_shard_246"]] [shard 244 master]  (0.2ms) COMMIT [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 444], ["value", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 445], ["value", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 446], ["value", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 447], ["value", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 448], ["value", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 449], ["value", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 244 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 450], ["value", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 451], ["value", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 245 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 245 LIMIT 1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 452], ["value", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.2ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 453], ["value", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 454], ["value", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 455], ["value", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 456], ["value", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 457], ["value", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 458], ["value", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 459], ["value", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 459], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 460], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 460]] [shard 244 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 459 LIMIT 1 [shard 244 master]  (0.1ms) SHOW max_identifier_length [shard 244 master] User Load (0.4ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 459 [shard 244 master]  (0.2ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 244], ["name", nil]] [shard 244 master]  (0.2ms) COMMIT [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 245], ["name", "switchman_test_shard_245"]] [shard 244 master]  (0.2ms) COMMIT [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 246], ["name", "switchman_test_shard_246"]] [shard 244 master]  (0.2ms) COMMIT [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '10' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.0ms) select sqlite_version(*) [shard 257 deploy]  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 257 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 257 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 257 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 257 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 257 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 257 deploy]  (0.6ms) commit transaction [shard 257 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 257 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 257 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 257 deploy]  (0.5ms) commit transaction [shard 257 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 257 deploy]  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 257 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 257 deploy]  (0.5ms) commit transaction [shard 257 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 257 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 257 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 257 deploy]  (0.5ms) commit transaction [shard 257 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 257 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 257 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 257 deploy]  (0.6ms) commit transaction [shard 257 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 257 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 257 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 257 deploy]  (0.4ms) commit transaction [shard 257 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 257 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 257 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 257 deploy]  (0.6ms) commit transaction [shard 257 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_257.sqlite3' WHERE "switchman_shards"."id" = 257 [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.0ms) begin transaction [shard 257 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 257 master]  (0.7ms) commit transaction [shard 257 master] Drop failed: No such file or directory @ unlink_internal - db/shard_257.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 257]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '11' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", "public"]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (6.0ms) CREATE SCHEMA switchman_test_shard_258 [shard 258 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 258 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 258 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 258 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 258 deploy]  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 258 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 258 deploy]  (0.3ms) COMMIT [shard 258 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 258 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 258 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 258 deploy]  (0.3ms) COMMIT [shard 258 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 258 deploy]  (1.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 258 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 258 deploy]  (0.3ms) COMMIT [shard 258 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 258 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 258 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 258 deploy]  (0.3ms) COMMIT [shard 258 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 258 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 258 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 258 deploy]  (0.3ms) COMMIT [shard 258 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 258 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 258 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 258 deploy]  (0.2ms) COMMIT [shard 258 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) BEGIN [shard 258 deploy]  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 258 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 258 deploy]  (0.3ms) COMMIT [shard 258 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_258' WHERE "switchman_shards"."id" = 258 [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) BEGIN [shard 258 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 258 master]  (0.3ms) COMMIT [shard 258 master]  (4.7ms) DROP SCHEMA switchman_test_shard_258 CASCADE [shard 258 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 258]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 244 master]  (0.1ms) CREATE SCHEMA switchman_test_shard_259 [shard 259 deploy]  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 259 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 259 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 259 deploy] Migrating to CreateUsers (20130403132607)  (1.6ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 259 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 259 deploy] Migrating to CreateAppendages (20130411202442)  (1.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 259 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 259 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 259 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 259 deploy] Migrating to CreateDigits (20131022202028)  (2.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 259 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 259 deploy] Migrating to CreateFeatures (20131206172923)  (3.3ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 259 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 259 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 259 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 259 deploy] Migrating to CreateRoots (20140219183820)  (4.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 259 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 259 deploy]  (0.1ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_259' WHERE "switchman_shards"."id" = 259 [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 259 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 259 master]  (3.1ms) DROP SCHEMA switchman_test_shard_259 CASCADE [shard 259 deploy]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 259]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (2.0ms) ROLLBACK [shard 244 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 244], ["name", nil]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 245], ["name", "switchman_test_shard_245"]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master]  (0.0ms) BEGIN [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 246], ["name", "switchman_test_shard_246"]] [shard 244 master]  (0.2ms) COMMIT [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 244], ["name", nil]] [shard 244 master]  (0.2ms) COMMIT [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 245], ["name", "switchman_test_shard_245"]] [shard 244 master]  (0.2ms) COMMIT [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 246], ["name", "switchman_test_shard_246"]] [shard 244 master]  (0.2ms) COMMIT [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 244], ["name", nil]] [shard 244 master]  (0.2ms) COMMIT [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.0ms) BEGIN [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 245], ["name", "switchman_test_shard_245"]] [shard 244 master]  (0.2ms) COMMIT [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 246], ["name", "switchman_test_shard_246"]] [shard 244 master]  (0.2ms) COMMIT [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 245 LIMIT 1 [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 246 LIMIT 1 [shard 244 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (24) [shard 245 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (20) [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 25], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 18 [shard 245 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 18 [shard 246 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 18 [shard 245 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 18 [shard 246 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 18 [shard 245 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 18 [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 26], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 245 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 246 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 245 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 246 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 245 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 27], ["value", 1]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 27], ["value", 2]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 23], ["value", 3]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 23], ["value", 4]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 23], ["value", 5]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 27 [shard 245 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 245 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 23 [shard 246 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 246 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (20, 21) [shard 245 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (20, 21, 22) [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 28], ["value", 1]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 28], ["value", 2]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 24], ["value", 3]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 24], ["value", 4]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 24], ["value", 5]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 28 [shard 245 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 245 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 24 [shard 246 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 246 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (22, 23) [shard 245 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (23, 24, 25) [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 29], ["value", 1]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 29], ["value", 2]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 25], ["value", 3]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 25], ["value", 4]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 25], ["value", 5]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.4ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 29 [shard 245 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 245 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 25 [shard 246 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 246 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (24, 25) [shard 245 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (26, 27, 28) [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 30], ["value", 1]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 30], ["value", 2]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 26], ["value", 3]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 26], ["value", 4]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 26], ["value", 5]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 30 [shard 245 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 245 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 26 [shard 246 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 246 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (26, 27) [shard 245 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (29, 30, 31) [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 31], ["value", 1]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 31], ["value", 2]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 27], ["value", 3]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 27], ["value", 4]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 27], ["value", 5]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 31 [shard 245 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 245 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 27 [shard 246 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 246 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (28, 29) [shard 245 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (32, 33, 34) [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.2ms) ROLLBACK [shard 245 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 32], ["value", 1]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 2460000000000028], ["value", 3]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 2450000000000032], ["value", 2]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 28], ["value", 4]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 28], ["value", 5]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 245 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 246 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 245 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 246 master]  (0.1ms) SHOW max_identifier_length [shard 246 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 245 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 246 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 245 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (32) [shard 245 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 246 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 246 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 246 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (32) [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 33], ["value", 1]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 2460000000000029], ["value", 3]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 2450000000000033], ["value", 2]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 29], ["value", 4]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 29], ["value", 5]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 245 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 246 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 245 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 246 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 245 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 246 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 245 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (33) [shard 245 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [shard 246 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 246 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [shard 246 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (33) [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 34], ["value", 1]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 2460000000000030], ["value", 3]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 2450000000000034], ["value", 2]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 30], ["value", 4]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 30], ["value", 5]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 245 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 246 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 245 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 246 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 245 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 246 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 245 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (34) [shard 245 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [shard 246 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 246 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [shard 246 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (34) [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 35], ["value", 1]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 2460000000000031], ["value", 3]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.2ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 2450000000000035], ["value", 2]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 31], ["value", 4]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 31], ["value", 5]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.2ms) ROLLBACK [shard 245 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 37], ["value", 1]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 2460000000000032], ["value", 3]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 2450000000000037], ["value", 2]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 32], ["value", 4]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 32], ["value", 5]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 245 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 246 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 245 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 246 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 245 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 246 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 245 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 245 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (32) [shard 246 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 246 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (32) [shard 246 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 38], ["value", 1]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 2460000000000033], ["value", 3]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 2450000000000038], ["value", 2]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 33], ["value", 4]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["user_id", 33], ["value", 5]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 245 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 246 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 245 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 246 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 245 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 246 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 245 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38) [shard 245 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (33) [shard 246 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 246 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (33) [shard 246 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38) [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 244], ["name", nil]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 245], ["name", "switchman_test_shard_245"]] [shard 244 master]  (0.4ms) COMMIT [shard 244 master]  (0.0ms) BEGIN [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 246], ["name", "switchman_test_shard_246"]] [shard 244 master]  (0.2ms) COMMIT [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 39 LIMIT 1 [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 245 LIMIT 1 [shard 244 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (463) [shard 244 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 41 [shard 245 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 464]] [shard 244 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]] [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (465) [shard 244 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (42) [shard 245 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 465]] [shard 244 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 42]] [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:17 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 244], ["name", nil]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 245], ["name", "switchman_test_shard_245"]] [shard 244 master]  (0.2ms) COMMIT [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 246], ["name", "switchman_test_shard_246"]] [shard 244 master]  (0.2ms) COMMIT [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 245 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 244 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-18 19:15:18.027627' [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 244 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-07-18 19:15:18.033248' [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 244 master]  (0.4ms) COMMIT [shard 244 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 244 master] SQL (1.2ms) UPDATE "users" SET "updated_at" = '2014-07-18 19:15:18.037101' [shard 244 master] SQL (0.3ms) DELETE FROM "users" [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 244 master]  (0.2ms) COMMIT [shard 244 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 244 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-07-18 19:15:18.042773' [shard 244 master] SQL (0.3ms) DELETE FROM "users" [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 244 master]  (0.0ms) BEGIN [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 244 master]  (0.4ms) COMMIT [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 244 master] SQL (0.1ms) DELETE FROM "users" [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 244 master] SQL (0.2ms) DELETE FROM "users" [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 244 master]  (0.4ms) COMMIT [shard 244 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 244 master] SQL (0.4ms) DELETE FROM "users" [shard 244 master] SQL (0.1ms) DELETE FROM "users" [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 244 master] SQL (0.3ms) DELETE FROM "users" [shard 244 master] SQL (0.1ms) DELETE FROM "users" [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 481]] [shard 244 master] CACHE (0.0ms) 244::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 481]] CACHE (0.0ms) 244::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 481]]  (0.1ms) BEGIN [shard 244 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-07-18 19:15:18.130519' WHERE "users"."id" = 481 [shard 244 master]  (0.3ms) COMMIT [shard 244 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 481]] [shard 244 master] CACHE (0.0ms) 244::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 481]] SQL (0.3ms) DELETE FROM "users" [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 244], ["name", nil]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.0ms) BEGIN [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 245], ["name", "switchman_test_shard_245"]] [shard 244 master]  (0.2ms) COMMIT [shard 244 master]  (0.0ms) BEGIN [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 246], ["name", "switchman_test_shard_246"]] [shard 244 master]  (0.2ms) COMMIT [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.0ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.0ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 44], ["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 245 LIMIT 1 [shard 244 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 47 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.0ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 51 [shard 245 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 51]] [shard 245 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 51 [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 246 LIMIT 1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.0ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 49]] [shard 245 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 53 LIMIT 1 [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 55 AND "appendages"."id" = $1 LIMIT 1 [["id", 50]] [shard 245 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 43 AND "appendages"."id" = $1 LIMIT 1 [["id", 50]] [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.0ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 57], ["value", 1]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 2450000000000057], ["value", 2]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 57 [shard 245 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 57]] [shard 245 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 57 [shard 245 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 2450000000000057 [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.0ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 52], ["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 52], ["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["value", 1]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 2450000000000058], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["value", 2]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 58 AND (digits.value IS NOT NULL) [shard 245 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2450000000000058 AND (digits.value IS NOT NULL) [shard 246 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 58]] [shard 245 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 58 AND (digits.value IS NOT NULL) [shard 245 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2450000000000058 AND (digits.value IS NOT NULL) [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 53], ["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["value", 1]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 2450000000000059], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["value", 2]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 59 [shard 245 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 59]] [shard 245 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 59 [shard 245 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2450000000000059 [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 60], ["value", 1]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 2450000000000060], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 60], ["value", 2]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 60]] [shard 245 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 60 AND (appendages.value IS NOT NULL) [shard 245 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 2450000000000060 AND (appendages.value IS NOT NULL) [shard 246 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 60]] [shard 245 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 60 AND (appendages.value IS NOT NULL) [shard 245 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 2450000000000060 AND (appendages.value IS NOT NULL) [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.0ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 2450000000000061], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 58], ["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["value", 2]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 61 AND "digits"."value" IS NULL [shard 245 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2450000000000061 AND "digits"."value" IS NULL [shard 246 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [shard 245 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 61 AND "digits"."value" IS NULL [shard 245 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2450000000000061 AND "digits"."value" IS NULL [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 62], ["value", 1]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 2450000000000062], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 62 AND "appendages"."value" IS NULL [shard 245 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 2450000000000062 AND "appendages"."value" IS NULL [shard 246 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 62]] [shard 245 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 62 AND "appendages"."value" IS NULL [shard 245 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 2450000000000062 AND "appendages"."value" IS NULL [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 63], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 58], ["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 2450000000000063], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 60], ["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["value", 2]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 63 AND "digits"."value" IS NULL [shard 245 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2450000000000063 AND "digits"."value" IS NULL [shard 246 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [shard 245 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 63 AND "digits"."value" IS NULL [shard 245 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2450000000000063 AND "digits"."value" IS NULL [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.6ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 2460000000000052]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 11]] [shard 244 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 52 LIMIT 1 [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 2460000000000053], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 59]] [shard 245 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 53 LIMIT 1 [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 66 LIMIT 1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 66], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 60]] [shard 245 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 66 LIMIT 1 [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 2450000000000067], ["value", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 2460000000000055], ["value", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 482], ["value", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages"  [shard 244 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (482) [shard 244 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 245 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 246 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 67 [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 2450000000000068], ["value", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 241], ["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["value", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 2460000000000056], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2450000000000061], ["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["value", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits"  [shard 244 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (241) [shard 244 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (61) [shard 245 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (68) [shard 245 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 246 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = 68 [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 2450000000000069], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 2460000000000057], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (69) [shard 245 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (69) [shard 245 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (2450000000000069) [shard 246 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 246 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (57) [shard 246 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 62 [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 70], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 2450000000000070], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 2450000000000070], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 64], ["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 63], ["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2460000000000063], ["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2460000000000064], ["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 2460000000000058], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2450000000000065], ["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2460000000000065], ["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2460000000000066], ["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [shard 245 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (70) [shard 245 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (2450000000000070) [shard 246 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (64, 2460000000000063) [shard 245 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (63, 64) [shard 246 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 246 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (58) [shard 246 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (65) [shard 246 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (2460000000000066) [shard 245 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["owner_id", 242], ["owner_type", "Appendage"], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["value", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 22]] [shard 244 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 242 LIMIT 1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master]  (0.2ms) UPDATE "features" SET "owner_id" = 2450000000000071, "owner_type" = 'User', "updated_at" = '2014-07-18 19:15:18.553113' WHERE "features"."id" = 22 [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 22]] [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["owner_id", 72], ["owner_type", "User"], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["value", 1]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["owner_id", 2450000000000072], ["owner_type", "User"], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["value", 2]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 72 AND "features"."owner_type" = 'User' [shard 245 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 72]] [shard 245 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 72 AND "features"."owner_type" = 'User' [shard 245 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 2450000000000072 AND "features"."owner_type" = 'User' [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 244 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 244], ["name", nil]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 245], ["name", "switchman_test_shard_245"]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 246], ["name", "switchman_test_shard_246"]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 245 LIMIT 1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 246 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 246 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 245 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 245 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 245 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 245 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.0ms) ROLLBACK [shard 244 master] SQL (4.6ms) DELETE FROM "switchman_shards" [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 244], ["name", nil]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 245], ["name", "switchman_test_shard_245"]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master]  (0.0ms) BEGIN [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 246], ["name", "switchman_test_shard_246"]] [shard 244 master]  (0.2ms) COMMIT [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (244, 245) AND (id IN (245,246)) [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 244], ["name", nil]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 245], ["name", "switchman_test_shard_245"]] [shard 244 master]  (0.2ms) COMMIT [shard 244 master]  (0.0ms) BEGIN [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 246], ["name", "switchman_test_shard_246"]] [shard 244 master]  (0.2ms) COMMIT [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "25"], ["default", false], ["name", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "26"], ["default", false], ["name", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master] SQL (0.8ms) DELETE FROM "switchman_shards" [shard 244 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 244], ["name", nil]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 245], ["name", "switchman_test_shard_245"]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 246], ["name", "switchman_test_shard_246"]] [shard 244 master]  (0.2ms) COMMIT [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "27"], ["default", false], ["name", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "27"], ["default", false], ["name", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 244], ["name", nil]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 245], ["name", "switchman_test_shard_245"]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 246], ["name", "switchman_test_shard_246"]] [shard 244 master]  (0.2ms) COMMIT [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 245 LIMIT 1 [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 246 LIMIT 1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["owner_id", 487], ["owner_type", "User"], ["updated_at", Fri, 18 Jul 2014 19:15:18 UTC +00:00], ["value", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 23 LIMIT 1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master] SQL (6.0ms) DELETE FROM "switchman_shards" [shard 244 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 244], ["name", nil]] [shard 244 master]  (5.7ms) COMMIT [shard 244 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 245], ["name", "switchman_test_shard_245"]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master]  (0.1ms) BEGIN [shard 244 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 246], ["name", "switchman_test_shard_246"]] [shard 244 master]  (0.3ms) COMMIT [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 245 LIMIT 1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10246 LIMIT 1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 246 LIMIT 1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.0ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 264]] [shard 244 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.1ms) BEGIN [shard 246 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 265]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 265 LIMIT 1 [shard 244 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.0ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.1ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master]  (0.0ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master]  (0.0ms) BEGIN [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 245]] [shard 244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 246]] [shard 244 master]  (0.0ms) BEGIN [shard 246 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '29' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 244 master]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "29"], ["default", false], ["name", "public"]] [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_266 [shard 266 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 266 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 266 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 266 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 266 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 266 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 266 deploy]  (0.3ms) COMMIT [shard 266 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 266 deploy]  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 266 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 266 deploy]  (0.3ms) COMMIT [shard 266 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) BEGIN [shard 266 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 266 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 266 deploy]  (0.4ms) COMMIT [shard 266 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 266 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 266 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 266 deploy]  (0.3ms) COMMIT [shard 266 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 266 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 266 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 266 deploy]  (0.4ms) COMMIT [shard 266 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 266 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 266 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 266 deploy]  (0.2ms) COMMIT [shard 266 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 266 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 266 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 266 deploy]  (0.3ms) COMMIT [shard 266 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 244 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_266' WHERE "switchman_shards"."id" = 266 [shard 244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 244 master]  (0.1ms) BEGIN [shard 266 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 18 Jul 2014 19:15:19 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 18 Jul 2014 19:15:19 UTC +00:00]] [shard 266 master]  (0.3ms) COMMIT [shard 266 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 266 master]  (4.8ms) DROP SCHEMA switchman_test_shard_266 CASCADE [shard 266 deploy]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 266 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 246 master]  (0.1ms) ROLLBACK [shard 244 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 244 master]  (5.3ms) DROP SCHEMA switchman_test_shard_245 CASCADE [shard 245 deploy]  (0.1ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 245]]  (0.1ms) COMMIT  (6.4ms) DROP SCHEMA switchman_test_shard_246 CASCADE [shard 246 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 246]]  (0.1ms) COMMIT  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.2ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.2ms) CREATE SCHEMA switchman_test_shard_268 [shard 268 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 268 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 268 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 268 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 268 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 268 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 268 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 268 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 268 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 268 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 268 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 268 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 268 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 268 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 268 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 268 deploy] Migrating to CreateRoots (20140219183820)  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 268 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 268 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 268 [["name", "switchman_test_shard_268"]] [shard 267 master]  (1.1ms) COMMIT [shard 267 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 267 master]  (0.1ms) BEGIN [shard 267 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 267 master]  (0.3ms) COMMIT [shard 267 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_269 [shard 269 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 269 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 269 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 269 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 269 deploy]  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 269 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 269 deploy]  (0.5ms) COMMIT [shard 269 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 269 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 269 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 269 deploy]  (0.4ms) COMMIT [shard 269 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 269 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 269 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 269 deploy]  (0.4ms) COMMIT [shard 269 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 269 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 269 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 269 deploy]  (0.3ms) COMMIT [shard 269 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 269 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 269 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 269 deploy]  (0.5ms) COMMIT [shard 269 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 269 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 269 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 269 deploy]  (0.3ms) COMMIT [shard 269 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 269 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 269 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 269 deploy]  (0.4ms) COMMIT [shard 269 deploy]  (0.2ms) BEGIN [shard 267 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 269 [["name", "switchman_test_shard_269"]] [shard 267 master]  (0.3ms) COMMIT [shard 267 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 267 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 267 master]  (0.1ms) BEGIN [shard 267 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 267 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 267]] [shard 267 master]  (0.3ms) COMMIT [shard 267 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 267 master]  (0.1ms) BEGIN [shard 267 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 268], ["name", "switchman_test_shard_268"]] [shard 267 master]  (0.3ms) COMMIT [shard 267 master]  (0.1ms) BEGIN [shard 267 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 269], ["name", "switchman_test_shard_269"]] [shard 267 master]  (0.2ms) COMMIT [shard 267 master]  (0.1ms) BEGIN [shard 267 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 267 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 268]] [shard 267 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 269]] [shard 267 master]  (0.1ms) BEGIN [shard 269 master]  (0.1ms) ROLLBACK [shard 269 master]  (0.1ms) ROLLBACK [shard 267 master]  (0.1ms) BEGIN [shard 267 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 267 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 268]] [shard 267 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 269]] [shard 267 master]  (0.1ms) BEGIN [shard 269 master]  (0.1ms) ROLLBACK [shard 269 master]  (0.1ms) ROLLBACK [shard 267 master]  (0.1ms) BEGIN [shard 267 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 267 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 268]] [shard 267 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 269]] [shard 267 master]  (0.1ms) BEGIN [shard 269 master]  (0.1ms) ROLLBACK [shard 269 master]  (0.1ms) ROLLBACK [shard 267 master]  (0.1ms) BEGIN [shard 267 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 267 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 268]] [shard 267 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 269]] [shard 267 master]  (0.1ms) BEGIN [shard 269 master]  (0.1ms) ROLLBACK [shard 269 master]  (0.1ms) ROLLBACK [shard 267 master]  (0.1ms) BEGIN [shard 267 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 267 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 268]] [shard 267 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 269]] [shard 267 master]  (0.1ms) BEGIN [shard 269 master]  (0.1ms) ROLLBACK [shard 269 master]  (0.1ms) ROLLBACK [shard 267 master]  (0.1ms) BEGIN [shard 267 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 267 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 268]] [shard 267 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 269]] [shard 267 master]  (0.1ms) BEGIN [shard 269 master]  (0.1ms) ROLLBACK [shard 269 master]  (0.1ms) ROLLBACK [shard 267 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 267 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 267 master]  (4.2ms) DROP SCHEMA switchman_test_shard_268 CASCADE [shard 268 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 268]]  (0.1ms) COMMIT  (5.9ms) DROP SCHEMA switchman_test_shard_269 CASCADE [shard 269 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 269]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (7.0ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (27.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.4ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (33.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.6ms) COMMIT Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (2.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (1.7ms) CREATE SCHEMA switchman_test_shard_271 [shard 271 deploy]  (12.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 271 deploy]  (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 271 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 271 deploy] Migrating to CreateUsers (20130403132607)  (29.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 271 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 271 deploy] Migrating to CreateAppendages (20130411202442)  (4.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 271 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 271 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 271 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 271 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 271 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 271 deploy] Migrating to CreateFeatures (20131206172923)  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 271 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 271 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 271 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 271 deploy] Migrating to CreateRoots (20140219183820)  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 271 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 271 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_271' WHERE "switchman_shards"."id" = 271 [shard 270 master]  (1.1ms) COMMIT [shard 270 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 270 master]  (0.4ms) COMMIT [shard 270 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_272 [shard 272 deploy]  (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 272 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 272 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 272 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 272 deploy]  (3.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 272 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 272 deploy]  (0.3ms) COMMIT [shard 272 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 272 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 272 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 272 deploy]  (0.3ms) COMMIT [shard 272 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 272 deploy]  (1.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 272 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 272 deploy]  (0.4ms) COMMIT [shard 272 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 272 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 272 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 272 deploy]  (0.3ms) COMMIT [shard 272 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 272 deploy]  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 272 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 272 deploy]  (0.3ms) COMMIT [shard 272 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 272 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 272 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 272 deploy]  (0.3ms) COMMIT [shard 272 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 272 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 272 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 272 deploy]  (0.3ms) COMMIT [shard 272 deploy]  (0.0ms) BEGIN [shard 270 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_272' WHERE "switchman_shards"."id" = 272 [shard 270 master]  (0.3ms) COMMIT [shard 270 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 270], ["name", nil]] [shard 270 master]  (0.2ms) COMMIT [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 271], ["name", "switchman_test_shard_271"]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 272], ["name", "switchman_test_shard_272"]] [shard 270 master]  (0.2ms) COMMIT [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (39.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.2ms) SAVEPOINT active_record_1 [shard 270 master] SQL (18.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 488], ["value", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 489], ["value", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 489], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 270 master]  (0.3ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 490], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master] User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 490]] [shard 270 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 489 LIMIT 1 [shard 270 master]  (0.2ms) SHOW max_identifier_length [shard 270 master] User Load (0.4ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 489 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.2ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 492], ["value", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.8ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 493], ["value", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 271 LIMIT 1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.2ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 494], ["value", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 495], ["value", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 496], ["value", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 497], ["value", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 498], ["value", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.2ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 499], ["value", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 500], ["value", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 501], ["value", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 502], ["value", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 503], ["value", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 504], ["value", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 505], ["value", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:55 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 270], ["name", nil]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 271], ["name", "switchman_test_shard_271"]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 272], ["name", "switchman_test_shard_272"]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (270, 271) AND (id IN (271,272)) [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 270], ["name", nil]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 271], ["name", "switchman_test_shard_271"]] [shard 270 master]  (0.2ms) COMMIT [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 272], ["name", "switchman_test_shard_272"]] [shard 270 master]  (0.2ms) COMMIT [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 270], ["name", nil]] [shard 270 master]  (0.2ms) COMMIT [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 271], ["name", "switchman_test_shard_271"]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master]  (0.0ms) BEGIN [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 272], ["name", "switchman_test_shard_272"]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 271 LIMIT 1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.0ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 273]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 273 LIMIT 1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 274]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) ROLLBACK [shard 272 master]  (0.0ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) ROLLBACK [shard 272 master]  (0.0ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) ROLLBACK [shard 272 master]  (0.0ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) ROLLBACK [shard 272 master]  (0.0ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) ROLLBACK [shard 272 master]  (0.0ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '3' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", "public"]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_275 [shard 275 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 275 deploy]  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 275 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 275 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 275 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 275 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 275 deploy]  (0.3ms) COMMIT [shard 275 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 275 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 275 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 275 deploy]  (0.4ms) COMMIT [shard 275 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 275 deploy]  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 275 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 275 deploy]  (0.3ms) COMMIT [shard 275 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 275 deploy]  (3.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 275 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 275 deploy]  (0.4ms) COMMIT [shard 275 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 275 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 275 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 275 deploy]  (0.3ms) COMMIT [shard 275 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 275 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 275 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 275 deploy]  (0.2ms) COMMIT [shard 275 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 275 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 275 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 275 deploy]  (0.3ms) COMMIT [shard 275 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_275' WHERE "switchman_shards"."id" = 275 [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) BEGIN [shard 275 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 275 master]  (0.3ms) COMMIT [shard 275 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 275 master]  (7.7ms) DROP SCHEMA switchman_test_shard_275 CASCADE [shard 275 deploy]  (0.4ms) SELECT COUNT(*) FROM "users"  [shard 275 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 272 LIMIT 1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10272 LIMIT 1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) ROLLBACK [shard 272 master]  (0.0ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) ROLLBACK [shard 272 master]  (0.0ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 270 master]  (0.0ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 270], ["name", nil]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 271], ["name", "switchman_test_shard_271"]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 272], ["name", "switchman_test_shard_272"]] [shard 270 master]  (0.2ms) COMMIT [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master] SQL (0.3ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 17 [shard 271 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 506]] [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 271 LIMIT 1 [shard 270 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (507) [shard 270 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (18) [shard 271 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 507]] [shard 270 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 19 LIMIT 1 [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (509) [shard 270 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master]  (0.0ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master]  (0.0ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 270], ["name", nil]] [shard 270 master]  (0.4ms) COMMIT [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 271], ["name", "switchman_test_shard_271"]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 272], ["name", "switchman_test_shard_272"]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '11' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", "public"]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_276 [shard 276 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 276 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 276 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 276 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 276 deploy]  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 276 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 276 deploy]  (0.3ms) COMMIT [shard 276 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 276 deploy]  (1.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 276 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 276 deploy]  (0.3ms) COMMIT [shard 276 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 276 deploy]  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 276 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 276 deploy]  (0.3ms) COMMIT [shard 276 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 276 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 276 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 276 deploy]  (0.3ms) COMMIT [shard 276 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 276 deploy]  (1.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 276 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 276 deploy]  (0.3ms) COMMIT [shard 276 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 276 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 276 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 276 deploy]  (0.3ms) COMMIT [shard 276 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 276 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 276 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 276 deploy]  (0.3ms) COMMIT [shard 276 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_276' WHERE "switchman_shards"."id" = 276 [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) BEGIN [shard 276 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 276 master]  (0.3ms) COMMIT [shard 276 master]  (4.9ms) DROP SCHEMA switchman_test_shard_276 CASCADE [shard 276 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 276]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '12' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.0ms) select sqlite_version(*) [shard 277 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 277 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 277 deploy]  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 277 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) begin transaction [shard 277 deploy]  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 277 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 277 deploy]  (0.8ms) commit transaction [shard 277 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 277 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 277 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 277 deploy]  (0.7ms) commit transaction [shard 277 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 277 deploy]  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 277 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 277 deploy]  (0.6ms) commit transaction [shard 277 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 277 deploy]  (0.3ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 277 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 277 deploy]  (0.8ms) commit transaction [shard 277 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 277 deploy]  (0.3ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 277 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 277 deploy]  (0.6ms) commit transaction [shard 277 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 277 deploy]  (0.3ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 277 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 277 deploy]  (0.5ms) commit transaction [shard 277 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 277 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 277 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 277 deploy]  (0.7ms) commit transaction [shard 277 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_277.sqlite3' WHERE "switchman_shards"."id" = 277 [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.0ms) begin transaction [shard 277 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 277 master]  (0.8ms) commit transaction [shard 277 master] Drop failed: No such file or directory @ unlink_internal - db/shard_277.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 277]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.0ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 270 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_278 [shard 278 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 278 deploy]  (15.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 278 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 278 deploy] Migrating to CreateUsers (20130403132607)  (2.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 278 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 278 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 278 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 278 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 278 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 278 deploy] Migrating to CreateDigits (20131022202028)  (1.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 278 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 278 deploy] Migrating to CreateFeatures (20131206172923)  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 278 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 278 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.4ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 278 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 278 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 278 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 278 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_278' WHERE "switchman_shards"."id" = 278 [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 278 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 278 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 278 master]  (2.8ms) DROP SCHEMA switchman_test_shard_278 CASCADE [shard 278 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 278]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (2.1ms) ROLLBACK [shard 270 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master]  (0.0ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master]  (0.0ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master]  (0.0ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 270], ["name", nil]] [shard 270 master]  (15.8ms) COMMIT [shard 270 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.2ms) BEGIN [shard 270 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 271], ["name", "switchman_test_shard_271"]] [shard 270 master]  (0.4ms) COMMIT [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 272], ["name", "switchman_test_shard_272"]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (2.1ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master] MirrorUser Load (0.4ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 12]] [shard 270 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 12]] [shard 270 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 12 LIMIT 1 [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) ROLLBACK [shard 272 master]  (0.0ms) ROLLBACK [shard 270 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 270], ["name", nil]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 271], ["name", "switchman_test_shard_271"]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 272], ["name", "switchman_test_shard_272"]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (1.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 271 LIMIT 1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.2ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 25], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 26], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 25]] [shard 271 master]  (0.2ms) SHOW max_identifier_length [shard 271 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 25 AND "users"."id" = 27 LIMIT 1 [shard 271 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 25]] [shard 271 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 25 AND "users"."id" = 2720000000000021 LIMIT 1 [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.0ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 28 AND "appendages"."id" = $1 LIMIT 1 [["id", 19]] [shard 271 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 22 AND "appendages"."id" = $1 LIMIT 1 [["id", 19]] [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 272 LIMIT 1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (11.9ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 21], ["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master] Digit Load (0.6ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 30 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", 31], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 31 [shard 271 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 31]] [shard 271 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 31 [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.2ms) ROLLBACK [shard 271 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 23]] [shard 271 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 33 LIMIT 1 [shard 271 master]  (0.2ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 24], ["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["value", 1]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", 2710000000000036], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (16.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 18], ["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["value", 2]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 36 [shard 271 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 36]] [shard 271 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 36 [shard 271 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2710000000000036 [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", 37], ["value", 1]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", 2710000000000037], ["value", 2]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 37 [shard 271 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 37]] [shard 271 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 37 [shard 271 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 2710000000000037 [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", 38], ["value", 1]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.0ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", 2710000000000038], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 38 AND "appendages"."value" IS NULL [shard 271 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 2710000000000038 AND "appendages"."value" IS NULL [shard 272 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 38]] [shard 271 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 38 AND "appendages"."value" IS NULL [shard 271 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 2710000000000038 AND "appendages"."value" IS NULL [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 27], ["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 27], ["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["value", 1]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", 2710000000000039], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 21], ["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["value", 2]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (1.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 39 AND (digits.value IS NOT NULL) [shard 271 master]  (0.5ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2710000000000039 AND (digits.value IS NOT NULL) [shard 272 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 39]] [shard 271 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 39 AND (digits.value IS NOT NULL) [shard 271 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2710000000000039 AND (digits.value IS NOT NULL) [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", 40], ["value", 1]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", 2710000000000040], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", 40], ["value", 2]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 40]] [shard 271 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 40 AND (appendages.value IS NOT NULL) [shard 271 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 2710000000000040 AND (appendages.value IS NOT NULL) [shard 272 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 40]] [shard 271 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 40 AND (appendages.value IS NOT NULL) [shard 271 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 2710000000000040 AND (appendages.value IS NOT NULL) [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 30], ["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", 2710000000000041], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 23], ["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["value", 2]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 41 AND "digits"."value" IS NULL [shard 271 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2710000000000041 AND "digits"."value" IS NULL [shard 272 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]] [shard 271 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 41 AND "digits"."value" IS NULL [shard 271 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2710000000000041 AND "digits"."value" IS NULL [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 31], ["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", 2710000000000042], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 24], ["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["value", 2]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 42 AND "digits"."value" IS NULL [shard 271 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2710000000000042 AND "digits"."value" IS NULL [shard 272 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 42]] [shard 271 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 42 AND "digits"."value" IS NULL [shard 271 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2710000000000042 AND "digits"."value" IS NULL [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (33.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["owner_id", 260], ["owner_type", "Appendage"], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["value", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 24]] [shard 270 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 260 LIMIT 1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master]  (0.3ms) UPDATE "features" SET "owner_id" = 2710000000000043, "owner_type" = 'User', "updated_at" = '2014-07-22 18:35:56.928194' WHERE "features"."id" = 24 [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 24]] [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.8ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["owner_id", 44], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["value", 1]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (1.0ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["owner_id", 2710000000000044], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["value", 2]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 44 AND "features"."owner_type" = 'User' [shard 271 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 44]] [shard 271 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 44 AND "features"."owner_type" = 'User' [shard 271 master] Feature Load (0.8ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 2710000000000044 AND "features"."owner_type" = 'User' [shard 272 master]  (0.2ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", 2710000000000045], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", 2710000000000045], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 32], ["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 25], ["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2720000000000025], ["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2720000000000026], ["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", 2720000000000039], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master]  (0.0ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.0ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2710000000000033], ["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2720000000000027], ["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2720000000000028], ["created_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:56 UTC +00:00], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [shard 271 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (45) [shard 271 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (2710000000000045) [shard 272 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (32, 2720000000000025) [shard 271 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (25, 26) [shard 272 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) [shard 272 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (39) [shard 272 master] Digit Load (0.1ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (27) [shard 272 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (2720000000000028) [shard 271 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 2710000000000046], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 2720000000000040], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (46) [shard 271 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (46) [shard 271 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (2710000000000046) [shard 272 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) [shard 272 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (40) [shard 272 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 34 [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 2710000000000047], ["value", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (1.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 261], ["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["value", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 2720000000000041], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2710000000000036], ["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["value", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits"  [shard 270 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (261) [shard 270 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (36) [shard 271 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (47) [shard 271 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [shard 272 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 47 [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 2710000000000048], ["value", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 2720000000000042], ["value", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 511], ["value", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 270 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (511) [shard 270 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (48) [shard 271 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [shard 272 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 48 [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.0ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 2720000000000043], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 37]] [shard 271 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 43 LIMIT 1 [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.0ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 50 LIMIT 1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 38]] [shard 271 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 50 LIMIT 1 [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.0ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (2.0ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 2720000000000045]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 12]] [shard 270 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 45 LIMIT 1 [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 270], ["name", nil]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 271], ["name", "switchman_test_shard_271"]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 272], ["name", "switchman_test_shard_272"]] [shard 270 master]  (0.2ms) COMMIT [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 271 LIMIT 1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master] SQL (15.6ms) DELETE FROM "switchman_shards" [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 270], ["name", nil]] [shard 270 master]  (15.1ms) COMMIT [shard 270 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 271], ["name", "switchman_test_shard_271"]] [shard 270 master]  (0.4ms) COMMIT [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 272], ["name", "switchman_test_shard_272"]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.2ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.2ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master] SQL (16.5ms) DELETE FROM "switchman_shards" [shard 270 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 270], ["name", nil]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 271], ["name", "switchman_test_shard_271"]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 272], ["name", "switchman_test_shard_272"]] [shard 270 master]  (0.2ms) COMMIT [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:36:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:36:57 UTC +00:00]] [shard 271 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.0ms) ROLLBACK [shard 272 master]  (0.0ms) ROLLBACK [shard 271 master] SQL (0.6ms) DELETE FROM "switchman_shards" [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 270], ["name", nil]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 271], ["name", "switchman_test_shard_271"]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 272], ["name", "switchman_test_shard_272"]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 270], ["name", nil]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.0ms) BEGIN [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 271], ["name", "switchman_test_shard_271"]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master]  (0.0ms) BEGIN [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 272], ["name", "switchman_test_shard_272"]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 271 LIMIT 1 [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 272 LIMIT 1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["owner_id", 516], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["value", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 25 LIMIT 1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master] SQL (15.5ms) DELETE FROM "switchman_shards" [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "17"], ["default", false], ["name", "non_existent_shard"]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "17"], ["default", false], ["name", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 285 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.8ms) SELECT COUNT(*) FROM "users" [shard 286 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "18"], ["default", false], ["name", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "19"], ["default", false], ["name", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "20"], ["default", false], ["name", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "21"], ["default", false], ["name", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "22"], ["default", false], ["name", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "23"], ["default", false], ["name", nil]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 270], ["name", nil]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 271], ["name", "switchman_test_shard_271"]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 272], ["name", "switchman_test_shard_272"]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 56], ["value", 1]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 56], ["value", 2]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 46], ["value", 3]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 46], ["value", 4]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 46], ["value", 5]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (1.1ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 56 [shard 271 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 271 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 46 [shard 272 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 272 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 271 LIMIT 1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 272 LIMIT 1 [shard 270 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (40, 41) [shard 271 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (32, 33, 34) [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 57], ["value", 1]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 57], ["value", 2]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 47], ["value", 3]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 47], ["value", 4]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 47], ["value", 5]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 57 [shard 271 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 271 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 47 [shard 272 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 272 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (42, 43) [shard 271 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (35, 36, 37) [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 58], ["value", 1]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 58], ["value", 2]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 48], ["value", 3]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 48], ["value", 4]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 48], ["value", 5]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.7ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 58 [shard 271 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 271 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 48 [shard 272 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 272 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (44, 45) [shard 271 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (38, 39, 40) [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 59], ["value", 1]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 59], ["value", 2]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 49], ["value", 3]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 49], ["value", 4]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 49], ["value", 5]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 59 [shard 271 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 271 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 49 [shard 272 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 272 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (46, 47) [shard 271 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (41, 42, 43) [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 60], ["value", 1]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 60], ["value", 2]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 50], ["value", 3]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 50], ["value", 4]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 50], ["value", 5]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 60 [shard 271 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 271 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 50 [shard 272 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 272 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (48, 49) [shard 271 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (44, 45, 46) [shard 272 master]  (0.2ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 271 master] SQL (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 47 [shard 272 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 271 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 47 [shard 272 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 271 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 47 [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 62], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (62) [shard 271 master] SQL (0.3ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (52) [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 63], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 271 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 49 [shard 272 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 271 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 49 [shard 272 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 271 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 49 [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 64], ["value", 1]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 2720000000000054], ["value", 3]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 2710000000000064], ["value", 2]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 54], ["value", 4]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 54], ["value", 5]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 65], ["value", nil]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 66], ["value", 1]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 2720000000000055], ["value", 3]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 2710000000000066], ["value", 2]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 55], ["value", 4]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 55], ["value", 5]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 271 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 272 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 271 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 272 master]  (0.1ms) SHOW max_identifier_length [shard 272 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 271 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 272 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 271 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 271 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 272 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 272 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 272 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 67], ["value", 1]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 2720000000000056], ["value", 3]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 2710000000000067], ["value", 2]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 56], ["value", 4]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 56], ["value", 5]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 271 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 272 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 271 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 272 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 271 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 272 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 271 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 271 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 272 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 272 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 272 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 68], ["value", 1]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 2720000000000057], ["value", 3]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 2710000000000068], ["value", 2]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 57], ["value", 4]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 57], ["value", 5]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 271 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 272 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 271 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 272 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 271 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 272 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 271 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (68) [shard 271 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 272 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 272 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 272 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (68) [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 69], ["value", 1]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 2720000000000058], ["value", 3]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 2710000000000069], ["value", 2]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 58], ["value", 4]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 58], ["value", 5]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 271 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 272 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 271 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 272 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 271 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 272 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 271 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (69) [shard 271 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 272 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 272 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 272 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (69) [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 70], ["value", 1]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 2720000000000059], ["value", 3]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 2710000000000070], ["value", 2]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 59], ["value", 4]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["user_id", 59], ["value", 5]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 271 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 272 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 271 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 272 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 271 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 272 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 271 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [shard 271 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 272 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 272 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 272 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 270], ["name", nil]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 271], ["name", "switchman_test_shard_271"]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 272], ["name", "switchman_test_shard_272"]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.0ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 271 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 270 master]  (0.4ms) COMMIT [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 270 master]  (0.0ms) BEGIN [shard 270 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master]  (0.2ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 270 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-07-22 18:35:57.917827' [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 270 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-22 18:35:57.924162' [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 270 master] SQL (1.0ms) UPDATE "users" SET "updated_at" = '2014-07-22 18:35:57.928107' [shard 270 master] SQL (0.3ms) DELETE FROM "users" [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:35:57 UTC +00:00]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 270 master] SQL (7.6ms) UPDATE "users" SET "updated_at" = '2014-07-22 18:35:57.938719' [shard 270 master] SQL (0.6ms) DELETE FROM "users" [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:36:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:36:02 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 270 master] SQL (0.1ms) DELETE FROM "users" [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 270 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:36:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:36:02 UTC +00:00]] [shard 270 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 270 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 270 master] SQL (0.1ms) DELETE FROM "users" [shard 270 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:36:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:36:02 UTC +00:00]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 270 master] SQL (0.4ms) DELETE FROM "users" [shard 270 master] SQL (0.2ms) DELETE FROM "users" [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:36:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:36:02 UTC +00:00]] [shard 270 master]  (0.4ms) COMMIT [shard 270 master] User Load (0.3ms) SELECT "users".* FROM "users"  [shard 270 master] SQL (6.5ms) DELETE FROM "users" [shard 270 master] SQL (0.3ms) DELETE FROM "users" [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:36:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:36:08 UTC +00:00]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:36:08 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:36:08 UTC +00:00]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 531]] [shard 270 master] CACHE (0.0ms) 270::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 531]] CACHE (0.0ms) 270::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 531]]  (0.1ms) BEGIN [shard 270 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-07-22 18:36:08.021548' WHERE "users"."id" = 531 [shard 270 master]  (0.3ms) COMMIT [shard 270 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 531]] [shard 270 master] CACHE (0.0ms) 270::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 531]] SQL (0.4ms) DELETE FROM "users" [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 270], ["name", nil]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 271], ["name", "switchman_test_shard_271"]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 272], ["name", "switchman_test_shard_272"]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.0ms) BEGIN [shard 270 master]  (0.0ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 270 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.0ms) BEGIN [shard 270 master]  (0.0ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 270], ["name", nil]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 271], ["name", "switchman_test_shard_271"]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master]  (0.0ms) BEGIN [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 272], ["name", "switchman_test_shard_272"]] [shard 270 master]  (0.2ms) COMMIT [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:36:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:36:08 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) SAVEPOINT active_record_1 [shard 272 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 272 master]  (0.1ms) SAVEPOINT active_record_2 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:36:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:36:08 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 272 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) SELECT COUNT(*) FROM "users" [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 270], ["name", nil]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 271], ["name", "switchman_test_shard_271"]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master]  (0.0ms) BEGIN [shard 270 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 272], ["name", "switchman_test_shard_272"]] [shard 270 master]  (0.2ms) COMMIT [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:36:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:36:08 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 73 LIMIT 1 [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:36:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:36:08 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.0ms) SAVEPOINT active_record_1 [shard 272 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:36:08 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:36:08 UTC +00:00]] [shard 272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 272 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 270 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 270 master] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 271 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:36:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:36:08 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 75]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2710000000000075 LIMIT 1 [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:36:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:36:08 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 271 LIMIT 1 [shard 270 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 76 LIMIT 1 [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.0ms) BEGIN [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.0ms) BEGIN [shard 272 master]  (0.1ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:36:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:36:08 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (77) LIMIT 1 [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.0ms) SAVEPOINT active_record_1 [shard 271 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:36:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:36:08 UTC +00:00]] [shard 271 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 271 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 78]] [shard 271 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 271 master] SQL (15.6ms) DELETE FROM "switchman_shards" [shard 270 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 270], ["name", nil]] [shard 270 master]  (0.5ms) COMMIT [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 271], ["name", "switchman_test_shard_271"]] [shard 270 master]  (0.4ms) COMMIT [shard 270 master]  (0.1ms) BEGIN [shard 270 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 272], ["name", "switchman_test_shard_272"]] [shard 270 master]  (0.3ms) COMMIT [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master]  (0.1ms) BEGIN [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 271]] [shard 270 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 272]] [shard 270 master]  (0.1ms) BEGIN [shard 272 master]  (0.1ms) ROLLBACK [shard 272 master]  (0.1ms) ROLLBACK [shard 270 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 270 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 270 master]  (5.3ms) DROP SCHEMA switchman_test_shard_271 CASCADE [shard 271 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 271]]  (0.1ms) COMMIT  (5.6ms) DROP SCHEMA switchman_test_shard_272 CASCADE [shard 272 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 272]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.6ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_294 [shard 294 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 294 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 294 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 294 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 294 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 294 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 294 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 294 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 294 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 294 deploy] Migrating to CreateDigits (20131022202028)  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 294 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 294 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 294 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 294 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 294 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 294 deploy] Migrating to CreateRoots (20140219183820)  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 294 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 294 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_294' WHERE "switchman_shards"."id" = 294 [shard 293 master]  (1.1ms) COMMIT [shard 293 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_295 [shard 295 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 295 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 295 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 295 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 295 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 295 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 295 deploy]  (0.3ms) COMMIT [shard 295 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 295 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 295 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 295 deploy]  (0.4ms) COMMIT [shard 295 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 295 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 295 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 295 deploy]  (0.3ms) COMMIT [shard 295 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 295 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 295 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 295 deploy]  (0.2ms) COMMIT [shard 295 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 295 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 295 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 295 deploy]  (0.3ms) COMMIT [shard 295 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 295 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 295 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 295 deploy]  (0.2ms) COMMIT [shard 295 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) BEGIN [shard 295 deploy]  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 295 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 295 deploy]  (0.3ms) COMMIT [shard 295 deploy]  (0.1ms) BEGIN [shard 293 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_295' WHERE "switchman_shards"."id" = 295 [shard 293 master]  (0.3ms) COMMIT [shard 293 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 293], ["name", nil]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 294], ["name", "switchman_test_shard_294"]] [shard 293 master]  (0.2ms) COMMIT [shard 293 master]  (0.0ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 295], ["name", "switchman_test_shard_295"]] [shard 293 master]  (0.2ms) COMMIT [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] [shard 294 master]  (0.2ms) SHOW max_identifier_length [shard 294 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 1 AND "users"."id" = 3 LIMIT 1 [shard 294 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 294 LIMIT 1 [shard 293 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] [shard 294 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 1 AND "users"."id" = 2950000000000002 LIMIT 1 [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.2ms) ROLLBACK [shard 294 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (12.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 4 [shard 294 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 4]] [shard 294 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 4 [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.8ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 3]] [shard 294 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 8 LIMIT 1 [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 9 AND "appendages"."id" = $1 LIMIT 1 [["id", 4]] [shard 294 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 8 AND "appendages"."id" = $1 LIMIT 1 [["id", 4]] [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 295 LIMIT 1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (15.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7], ["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 13 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 294 master]  (0.2ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["value", 1]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", 2940000000000015], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2], ["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["value", 2]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15 [shard 294 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 15]] [shard 294 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15 [shard 294 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2940000000000015 [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", 16], ["value", 1]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", 2940000000000016], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", 16], ["value", 2]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 16]] [shard 294 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 16 AND (appendages.value IS NOT NULL) [shard 294 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 2940000000000016 AND (appendages.value IS NOT NULL) [shard 295 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 16]] [shard 294 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 16 AND (appendages.value IS NOT NULL) [shard 294 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 2940000000000016 AND (appendages.value IS NOT NULL) [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.0ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11], ["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11], ["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["value", 1]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", 2940000000000017], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4], ["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["value", 2]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17 AND (digits.value IS NOT NULL) [shard 294 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2940000000000017 AND (digits.value IS NOT NULL) [shard 295 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 294 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17 AND (digits.value IS NOT NULL) [shard 294 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2940000000000017 AND (digits.value IS NOT NULL) [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", 18], ["value", 1]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.0ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", 2940000000000018], ["value", 2]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 18 [shard 294 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 294 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 18 [shard 294 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 2940000000000018 [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 13], ["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", 2940000000000019], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6], ["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["value", 2]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 19 AND "digits"."value" IS NULL [shard 294 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2940000000000019 AND "digits"."value" IS NULL [shard 295 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [shard 294 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 19 AND "digits"."value" IS NULL [shard 294 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2940000000000019 AND "digits"."value" IS NULL [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 14], ["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", 2940000000000020], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7], ["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["value", 2]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 20 AND "digits"."value" IS NULL [shard 294 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2940000000000020 AND "digits"."value" IS NULL [shard 295 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 294 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 20 AND "digits"."value" IS NULL [shard 294 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2940000000000020 AND "digits"."value" IS NULL [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", 21], ["value", 1]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", 2940000000000021], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 21 AND "appendages"."value" IS NULL [shard 294 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 2940000000000021 AND "appendages"."value" IS NULL [shard 295 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 294 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 21 AND "appendages"."value" IS NULL [shard 294 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 2940000000000021 AND "appendages"."value" IS NULL [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.2ms) ROLLBACK [shard 294 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.6ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", 2950000000000021]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master] Root Load (0.4ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 13]] [shard 293 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 21 LIMIT 1 [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.0ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", 2950000000000022], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 16]] [shard 294 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 22 LIMIT 1 [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 24 LIMIT 1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 17]] [shard 294 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 24 LIMIT 1 [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["owner_id", 266], ["owner_type", "Appendage"], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["value", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 26]] [shard 293 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 266 LIMIT 1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master]  (0.3ms) UPDATE "features" SET "owner_id" = 2940000000000025, "owner_type" = 'User', "updated_at" = '2014-07-22 18:41:06.955755' WHERE "features"."id" = 26 [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 26]] [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["owner_id", 26], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["value", 1]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["owner_id", 2940000000000026], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["value", 2]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 26 AND "features"."owner_type" = 'User' [shard 294 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 26]] [shard 294 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 26 AND "features"."owner_type" = 'User' [shard 294 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 2940000000000026 AND "features"."owner_type" = 'User' [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", 2940000000000027], ["value", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", 2950000000000026], ["value", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["user_id", 532], ["value", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages"  [shard 293 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (532) [shard 293 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 294 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 295 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 27 [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:06 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 2940000000000028], ["value", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 270], ["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["value", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 2950000000000027], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2940000000000018], ["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["value", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits"  [shard 293 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (270) [shard 293 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (18) [shard 294 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 294 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 295 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 28 [shard 294 master]  (0.2ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 2940000000000029], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 2940000000000029], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 19], ["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10], ["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2950000000000010], ["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2950000000000011], ["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 2950000000000028], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master]  (0.0ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master]  (0.0ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2940000000000020], ["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2950000000000012], ["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2950000000000013], ["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [shard 294 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (29) [shard 294 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (2940000000000029) [shard 295 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (19, 2950000000000010) [shard 294 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (10, 11) [shard 295 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 295 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (28) [shard 295 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (12) [shard 295 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (2950000000000013) [shard 294 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.2ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 2940000000000030], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 2950000000000029], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [shard 294 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (30) [shard 294 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (2940000000000030) [shard 295 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [shard 295 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (29) [shard 295 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 21 [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 293], ["name", nil]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 294], ["name", "switchman_test_shard_294"]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 295], ["name", "switchman_test_shard_295"]] [shard 293 master]  (0.2ms) COMMIT [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 533], ["value", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 31], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 534], ["value", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 31], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 535], ["value", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 536], ["value", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 537], ["value", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 538], ["value", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 294 LIMIT 1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 539], ["value", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 540], ["value", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 541], ["value", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 542], ["value", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 543], ["value", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 544], ["value", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 544], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 545], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 545]] [shard 293 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 544 LIMIT 1 [shard 293 master] User Load (0.2ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 544 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 547], ["value", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 548], ["value", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 549], ["value", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.3ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 550], ["value", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 293], ["name", nil]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 294], ["name", "switchman_test_shard_294"]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 295], ["name", "switchman_test_shard_295"]] [shard 293 master]  (0.2ms) COMMIT [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:42:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:42:07 UTC +00:00]] [shard 294 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.0ms) ROLLBACK [shard 294 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 293], ["name", nil]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 294], ["name", "switchman_test_shard_294"]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master]  (0.0ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 295], ["name", "switchman_test_shard_295"]] [shard 293 master]  (0.2ms) COMMIT [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 48 LIMIT 1 [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 294 LIMIT 1 [shard 293 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (552) [shard 293 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (49) [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 50 [shard 294 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 553]] [shard 293 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 50]] [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (554) [shard 293 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (51) [shard 294 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 554]] [shard 293 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 51]] [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.0ms) BEGIN [shard 293 master]  (0.0ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 293], ["name", nil]] [shard 293 master]  (0.4ms) COMMIT [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 294], ["name", "switchman_test_shard_294"]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 295], ["name", "switchman_test_shard_295"]] [shard 293 master]  (0.2ms) COMMIT [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master]  (0.0ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 293], ["name", nil]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 294], ["name", "switchman_test_shard_294"]] [shard 293 master]  (0.2ms) COMMIT [shard 293 master]  (0.0ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 295], ["name", "switchman_test_shard_295"]] [shard 293 master]  (0.2ms) COMMIT [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 13]] [shard 293 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 13]] [shard 293 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 13 LIMIT 1 [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 293], ["name", nil]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 294], ["name", "switchman_test_shard_294"]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 295], ["name", "switchman_test_shard_295"]] [shard 293 master]  (0.2ms) COMMIT [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 293], ["name", nil]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 294], ["name", "switchman_test_shard_294"]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 295], ["name", "switchman_test_shard_295"]] [shard 293 master]  (0.2ms) COMMIT [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.0ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 294 LIMIT 1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.0ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 298]] [shard 293 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 298 LIMIT 1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.0ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 299]] [shard 293 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.0ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.0ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 293 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.0ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master] Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '4' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", "public"]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (15.6ms) CREATE SCHEMA switchman_test_shard_300 [shard 300 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 300 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 300 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 300 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 300 deploy]  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 300 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 300 deploy]  (0.3ms) COMMIT [shard 300 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 300 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 300 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 300 deploy]  (0.3ms) COMMIT [shard 300 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 300 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 300 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 300 deploy]  (0.3ms) COMMIT [shard 300 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 300 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 300 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 300 deploy]  (0.3ms) COMMIT [shard 300 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 300 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 300 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 300 deploy]  (0.4ms) COMMIT [shard 300 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 300 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 300 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 300 deploy]  (0.3ms) COMMIT [shard 300 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 300 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 300 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 300 deploy]  (0.3ms) COMMIT [shard 300 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_300' WHERE "switchman_shards"."id" = 300 [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) BEGIN [shard 300 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 300 master]  (0.3ms) COMMIT [shard 300 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 300 master]  (5.6ms) DROP SCHEMA switchman_test_shard_300 CASCADE [shard 300 deploy]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 300 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 295 LIMIT 1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10295 LIMIT 1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master] SQL (15.5ms) DELETE FROM "switchman_shards" [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 293], ["name", nil]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.0ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 294], ["name", "switchman_test_shard_294"]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 295], ["name", "switchman_test_shard_295"]] [shard 293 master]  (0.2ms) COMMIT [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.0ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 294 LIMIT 1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.9ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 293], ["name", nil]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 294], ["name", "switchman_test_shard_294"]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 295], ["name", "switchman_test_shard_295"]] [shard 293 master]  (0.2ms) COMMIT [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 294 LIMIT 1 [shard 293 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 56]] [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 57 LIMIT 1 [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) LIMIT 1 [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 59 LIMIT 1 [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 293 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 293 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 294 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 61]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2940000000000061 LIMIT 1 [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 293], ["name", nil]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 294], ["name", "switchman_test_shard_294"]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 295], ["name", "switchman_test_shard_295"]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 294 LIMIT 1 [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 295 LIMIT 1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["owner_id", 559], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 18:41:07 UTC +00:00], ["value", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 27 LIMIT 1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master] SQL (14.7ms) DELETE FROM "switchman_shards" [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 293], ["name", nil]] [shard 293 master]  (0.4ms) COMMIT [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 294], ["name", "switchman_test_shard_294"]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 295], ["name", "switchman_test_shard_295"]] [shard 293 master]  (0.2ms) COMMIT [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (293, 294) AND (id IN (294,295)) [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 293], ["name", nil]] [shard 293 master]  (0.4ms) COMMIT [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.0ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 294], ["name", "switchman_test_shard_294"]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master]  (0.0ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 295], ["name", "switchman_test_shard_295"]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [shard 293 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master] SQL (15.5ms) DELETE FROM "switchman_shards" [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", "non_existent_shard"]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 303 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.7ms) SELECT COUNT(*) FROM "users" [shard 304 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 293], ["name", nil]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.0ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 294], ["name", "switchman_test_shard_294"]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master]  (0.0ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 295], ["name", "switchman_test_shard_295"]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 62], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 294 LIMIT 1 [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 295 LIMIT 1 [shard 293 master] SQL (0.4ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (62) [shard 294 master] SQL (0.4ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (47) [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 63], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 294 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 295 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 294 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 295 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 294 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 294 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 295 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 294 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 295 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 294 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 65], ["value", 1]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 65], ["value", 2]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 50], ["value", 3]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 50], ["value", 4]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 50], ["value", 5]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 65 [shard 294 master]  (0.1ms) SELECT COUNT(*) FROM "appendages"  [shard 294 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 50 [shard 295 master]  (0.1ms) SELECT COUNT(*) FROM "appendages"  [shard 295 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (43, 44) [shard 294 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (35, 36, 37) [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 66], ["value", 1]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 66], ["value", 2]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 51], ["value", 3]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 51], ["value", 4]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 51], ["value", 5]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 66 [shard 294 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 294 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 51 [shard 295 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 295 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (45, 46) [shard 294 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (38, 39, 40) [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.2ms) ROLLBACK [shard 294 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 67], ["value", 1]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 67], ["value", 2]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 52], ["value", 3]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 52], ["value", 4]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 52], ["value", 5]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 67 [shard 294 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 294 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 52 [shard 295 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 295 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (47, 48) [shard 294 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (41, 42, 43) [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 68], ["value", 1]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 68], ["value", 2]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 53], ["value", 3]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 53], ["value", 4]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 53], ["value", 5]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 68 [shard 294 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 294 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 53 [shard 295 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 295 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (49, 50) [shard 294 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (44, 45, 46) [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 69], ["value", 1]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 69], ["value", 2]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 54], ["value", 3]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 54], ["value", 4]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 54], ["value", 5]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 69 [shard 294 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 294 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 54 [shard 295 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 295 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (51, 52) [shard 294 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (47, 48, 49) [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 70], ["value", 1]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 2950000000000055], ["value", 3]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 2940000000000070], ["value", 2]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 55], ["value", 4]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 55], ["value", 5]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SHOW max_identifier_length [shard 293 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 294 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 295 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 294 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 295 master]  (0.1ms) SHOW max_identifier_length [shard 295 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 294 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 295 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 294 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [shard 294 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 295 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 295 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 295 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 71], ["value", 1]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 2950000000000056], ["value", 3]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 2940000000000071], ["value", 2]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 56], ["value", 4]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 56], ["value", 5]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 294 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 295 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 294 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 295 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 294 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 295 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 294 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [shard 294 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 295 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 295 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 295 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 72], ["value", 1]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 2950000000000057], ["value", 3]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 2940000000000072], ["value", 2]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 57], ["value", 4]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 57], ["value", 5]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 294 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 295 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 294 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 295 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 294 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 295 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 294 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [shard 294 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 295 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 295 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 295 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 73], ["value", 1]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 2950000000000058], ["value", 3]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 2940000000000073], ["value", 2]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 58], ["value", 4]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 58], ["value", 5]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 73], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 74], ["value", nil]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 75], ["value", 1]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 2950000000000059], ["value", 3]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 2940000000000075], ["value", 2]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 59], ["value", 4]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 59], ["value", 5]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 294 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 295 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 294 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 295 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 294 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 295 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 294 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) [shard 294 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 295 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 295 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 295 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 76], ["value", 1]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 2950000000000060], ["value", 3]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 2940000000000076], ["value", 2]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 60], ["value", 4]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["user_id", 60], ["value", 5]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 294 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 295 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 294 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 295 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 294 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 295 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 294 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (76) [shard 294 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [shard 295 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 295 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [shard 295 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (76) [shard 294 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 294 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 293], ["name", nil]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 294], ["name", "switchman_test_shard_294"]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 295], ["name", "switchman_test_shard_295"]] [shard 293 master]  (0.2ms) COMMIT [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.1ms) SAVEPOINT active_record_1 [shard 294 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 294 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 294 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 294 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 293 master]  (0.4ms) COMMIT [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.0ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.0ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.0ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 293 master] SQL (0.1ms) DELETE FROM "users" [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 293 master] SQL (0.1ms) DELETE FROM "users" [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 293 master] SQL (0.6ms) DELETE FROM "users" [shard 293 master] SQL (0.1ms) DELETE FROM "users" [shard 293 master]  (0.0ms) BEGIN [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 293 master] SQL (0.3ms) DELETE FROM "users" [shard 293 master] SQL (0.1ms) DELETE FROM "users" [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master]  (0.0ms) BEGIN [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 293 master]  (0.2ms) COMMIT [shard 293 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 570]] [shard 293 master] CACHE (0.0ms) 293::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 570]] CACHE (0.0ms) 293::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 570]]  (0.1ms) BEGIN [shard 293 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-07-22 18:41:08.365986' WHERE "users"."id" = 570 [shard 293 master]  (0.2ms) COMMIT [shard 293 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 570]] [shard 293 master] CACHE (0.0ms) 293::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 570]] SQL (0.4ms) DELETE FROM "users" [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 293 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-22 18:41:08.373979' [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 293 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-07-22 18:41:08.379373' [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 293 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-07-22 18:41:08.383808' [shard 293 master] SQL (0.3ms) DELETE FROM "users" [shard 293 master]  (0.0ms) BEGIN [shard 293 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 293 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-07-22 18:41:08.388151' [shard 293 master] SQL (0.3ms) DELETE FROM "users" [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.0ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.0ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 293], ["name", nil]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 294], ["name", "switchman_test_shard_294"]] [shard 293 master]  (0.2ms) COMMIT [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 295], ["name", "switchman_test_shard_295"]] [shard 293 master]  (0.2ms) COMMIT [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '13' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.0ms) select sqlite_version(*) [shard 311 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 311 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 311 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 311 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 311 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 311 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 311 deploy]  (0.6ms) commit transaction [shard 311 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 311 deploy]  (0.3ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 311 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 311 deploy]  (0.6ms) commit transaction [shard 311 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 311 deploy]  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 311 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 311 deploy]  (0.7ms) commit transaction [shard 311 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 311 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 311 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 311 deploy]  (0.7ms) commit transaction [shard 311 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 311 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 311 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 311 deploy]  (0.6ms) commit transaction [shard 311 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 311 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 311 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 311 deploy]  (0.6ms) commit transaction [shard 311 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 311 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 311 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 311 deploy]  (0.7ms) commit transaction [shard 311 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_311.sqlite3' WHERE "switchman_shards"."id" = 311 [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.0ms) begin transaction [shard 311 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 311 master]  (0.7ms) commit transaction [shard 311 master] Drop failed: No such file or directory @ unlink_internal - db/shard_311.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 311]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '14' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", "public"]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (15.7ms) CREATE SCHEMA switchman_test_shard_312 [shard 312 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 312 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 312 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 312 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 312 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 312 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 312 deploy]  (0.3ms) COMMIT [shard 312 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 312 deploy]  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 312 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 312 deploy]  (0.3ms) COMMIT [shard 312 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 312 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 312 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 312 deploy]  (0.3ms) COMMIT [shard 312 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 312 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 312 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 312 deploy]  (0.3ms) COMMIT [shard 312 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 312 deploy]  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 312 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 312 deploy]  (0.3ms) COMMIT [shard 312 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 312 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 312 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 312 deploy]  (0.2ms) COMMIT [shard 312 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 312 deploy]  (2.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 312 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 312 deploy]  (0.3ms) COMMIT [shard 312 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_312' WHERE "switchman_shards"."id" = 312 [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) BEGIN [shard 312 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 312 master]  (0.3ms) COMMIT [shard 312 master]  (5.8ms) DROP SCHEMA switchman_test_shard_312 CASCADE [shard 312 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 312]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 293 master]  (0.2ms) CREATE SCHEMA switchman_test_shard_313 [shard 313 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 313 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 313 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 313 deploy] Migrating to CreateUsers (20130403132607)  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 313 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 313 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 313 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 313 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 313 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 313 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 313 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 313 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 313 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 313 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 313 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 313 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 313 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 313 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_313' WHERE "switchman_shards"."id" = 313 [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 313 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 313 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 313 master]  (2.7ms) DROP SCHEMA switchman_test_shard_313 CASCADE [shard 313 deploy]  (0.0ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 313]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (2.2ms) ROLLBACK [shard 293 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master]  (0.0ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master]  (0.0ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master]  (0.0ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master]  (0.0ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master]  (0.0ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 293], ["name", nil]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 294], ["name", "switchman_test_shard_294"]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master]  (0.0ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 295], ["name", "switchman_test_shard_295"]] [shard 293 master]  (0.2ms) COMMIT [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.0ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "31"], ["default", false], ["name", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.0ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.0ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 293 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "32"], ["default", false], ["name", nil]] [shard 293 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 293 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master] SQL (0.8ms) DELETE FROM "switchman_shards" [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [shard 293 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.1ms) BEGIN [shard 293 master]  (0.0ms) ROLLBACK [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 293], ["name", nil]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 294], ["name", "switchman_test_shard_294"]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 295], ["name", "switchman_test_shard_295"]] [shard 293 master]  (0.2ms) COMMIT [shard 293 master]  (0.0ms) BEGIN [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 293], ["name", nil]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 294], ["name", "switchman_test_shard_294"]] [shard 293 master]  (0.3ms) COMMIT [shard 293 master]  (0.1ms) BEGIN [shard 293 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 295], ["name", "switchman_test_shard_295"]] [shard 293 master]  (0.2ms) COMMIT [shard 293 master]  (0.1ms) BEGIN [shard 295 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) BEGIN [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 294]] [shard 293 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [shard 293 master]  (0.1ms) SAVEPOINT active_record_1 [shard 295 master]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 295 master]  (0.1ms) SAVEPOINT active_record_2 [shard 295 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:08 UTC +00:00]] [shard 295 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 295 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 295 master]  (0.1ms) ROLLBACK [shard 293 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 295 master]  (0.1ms) ROLLBACK [shard 295 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 293 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 293 master]  (5.2ms) DROP SCHEMA switchman_test_shard_294 CASCADE [shard 294 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 294]]  (0.1ms) COMMIT  (6.6ms) DROP SCHEMA switchman_test_shard_295 CASCADE [shard 295 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 295]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_317 [shard 317 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 317 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 317 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 317 deploy] Migrating to CreateUsers (20130403132607)  (2.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 317 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 317 deploy] Migrating to CreateAppendages (20130411202442)  (1.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 317 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 317 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 317 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 317 deploy] Migrating to CreateDigits (20131022202028)  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 317 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 317 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 317 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 317 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 317 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 317 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 317 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 317 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_317' WHERE "switchman_shards"."id" = 317 [shard 316 master]  (0.7ms) COMMIT [shard 316 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_318 [shard 318 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 318 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 318 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 318 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 318 deploy]  (2.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 318 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 318 deploy]  (0.4ms) COMMIT [shard 318 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 318 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 318 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 318 deploy]  (0.4ms) COMMIT [shard 318 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 318 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 318 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 318 deploy]  (0.3ms) COMMIT [shard 318 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 318 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 318 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 318 deploy]  (0.3ms) COMMIT [shard 318 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 318 deploy]  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 318 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 318 deploy]  (0.3ms) COMMIT [shard 318 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 318 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 318 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 318 deploy]  (0.2ms) COMMIT [shard 318 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 318 deploy]  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 318 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 318 deploy]  (0.3ms) COMMIT [shard 318 deploy]  (0.1ms) BEGIN [shard 316 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_318' WHERE "switchman_shards"."id" = 318 [shard 316 master]  (0.4ms) COMMIT [shard 316 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 316], ["name", nil]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 317], ["name", "switchman_test_shard_317"]] [shard 316 master]  (0.2ms) COMMIT [shard 316 master]  (0.0ms) BEGIN [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 318], ["name", "switchman_test_shard_318"]] [shard 316 master]  (0.2ms) COMMIT [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 316], ["name", nil]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 317], ["name", "switchman_test_shard_317"]] [shard 316 master]  (0.2ms) COMMIT [shard 316 master]  (0.0ms) BEGIN [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 318], ["name", "switchman_test_shard_318"]] [shard 316 master]  (0.2ms) COMMIT [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 317 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 316 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 316 master]  (0.0ms) BEGIN [shard 316 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 316 master]  (0.0ms) BEGIN [shard 316 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 316 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-07-22 18:41:13.766640' [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 316 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-22 18:41:13.773026' [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 316 master] SQL (0.6ms) UPDATE "users" SET "updated_at" = '2014-07-22 18:41:13.777524' [shard 316 master] SQL (0.3ms) DELETE FROM "users" [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 316 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-07-22 18:41:13.782308' [shard 316 master] SQL (0.3ms) DELETE FROM "users" [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 316 master] SQL (0.1ms) DELETE FROM "users" [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 316 master] SQL (0.1ms) DELETE FROM "users" [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 316 master] SQL (0.3ms) DELETE FROM "users" [shard 316 master] SQL (0.1ms) DELETE FROM "users" [shard 316 master]  (0.0ms) BEGIN [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 316 master] SQL (0.3ms) DELETE FROM "users" [shard 316 master] SQL (0.1ms) DELETE FROM "users" [shard 316 master]  (0.0ms) BEGIN [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:13 UTC +00:00]] [shard 316 master]  (0.2ms) COMMIT [shard 316 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 590]] [shard 316 master] CACHE (0.0ms) 316::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 590]] CACHE (0.0ms) 316::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 590]]  (0.1ms) BEGIN [shard 316 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-07-22 18:41:13.807598' WHERE "users"."id" = 590 [shard 316 master]  (0.3ms) COMMIT [shard 316 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 590]] [shard 316 master] CACHE (0.0ms) 316::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 590]] SQL (0.4ms) DELETE FROM "users" [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.0ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.0ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 316 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.0ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 316 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.0ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.0ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.0ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.0ms) ROLLBACK [shard 316 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 316], ["name", nil]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 317], ["name", "switchman_test_shard_317"]] [shard 316 master]  (0.2ms) COMMIT [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 318], ["name", "switchman_test_shard_318"]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 316], ["name", nil]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 317], ["name", "switchman_test_shard_317"]] [shard 316 master]  (0.2ms) COMMIT [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 318], ["name", "switchman_test_shard_318"]] [shard 316 master]  (0.2ms) COMMIT [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.0ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 317 LIMIT 1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.0ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 321]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 321 LIMIT 1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.2ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 322]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.0ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.0ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10318 LIMIT 1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 318 LIMIT 1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.0ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.0ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '4' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", "public"]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_323 [shard 323 deploy]  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 323 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 323 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 323 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 323 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 323 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 323 deploy]  (0.3ms) COMMIT [shard 323 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 323 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 323 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 323 deploy]  (0.3ms) COMMIT [shard 323 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 323 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 323 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 323 deploy]  (0.3ms) COMMIT [shard 323 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 323 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 323 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 323 deploy]  (0.3ms) COMMIT [shard 323 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 323 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 323 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 323 deploy]  (0.3ms) COMMIT [shard 323 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 323 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 323 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 323 deploy]  (0.3ms) COMMIT [shard 323 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 323 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 323 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 323 deploy]  (0.3ms) COMMIT [shard 323 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_323' WHERE "switchman_shards"."id" = 323 [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) BEGIN [shard 323 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 323 master]  (0.3ms) COMMIT [shard 323 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 323 master]  (4.8ms) DROP SCHEMA switchman_test_shard_323 CASCADE [shard 323 deploy]  (0.4ms) SELECT COUNT(*) FROM "users"  [shard 323 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 318 master]  (0.2ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.2ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.0ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.0ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 316 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.0ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.0ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 316], ["name", nil]] [shard 316 master]  (0.2ms) COMMIT [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 317], ["name", "switchman_test_shard_317"]] [shard 316 master]  (0.2ms) COMMIT [shard 316 master]  (0.0ms) BEGIN [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 318], ["name", "switchman_test_shard_318"]] [shard 316 master]  (0.2ms) COMMIT [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 14]] [shard 316 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 14]] [shard 316 master] MirrorUser Load (0.5ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 14 LIMIT 1 [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 316 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 316], ["name", nil]] [shard 316 master]  (0.4ms) COMMIT [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 317], ["name", "switchman_test_shard_317"]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 318], ["name", "switchman_test_shard_318"]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 316], ["name", nil]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 317], ["name", "switchman_test_shard_317"]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master]  (0.0ms) BEGIN [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 318], ["name", "switchman_test_shard_318"]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master]  (0.5ms) SELECT COUNT(*) FROM "users" [shard 318 master]  (0.1ms) SAVEPOINT active_record_2 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 318 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 316], ["name", nil]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 317], ["name", "switchman_test_shard_317"]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 318], ["name", "switchman_test_shard_318"]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 317 LIMIT 1 [shard 316 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 3]] [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 4 LIMIT 1 [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) LIMIT 1 [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 6 LIMIT 1 [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 316 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 316 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 317 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 8]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3170000000000008 LIMIT 1 [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master]  (0.0ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master]  (0.0ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master]  (0.0ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master]  (0.0ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master]  (0.0ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master]  (0.0ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master]  (0.0ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master]  (0.0ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 316], ["name", nil]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 317], ["name", "switchman_test_shard_317"]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 318], ["name", "switchman_test_shard_318"]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '13' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.0ms) select sqlite_version(*) [shard 324 deploy]  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 324 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 324 deploy]  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 324 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 324 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 324 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 324 deploy]  (0.7ms) commit transaction [shard 324 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 324 deploy]  (0.3ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 324 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 324 deploy]  (0.7ms) commit transaction [shard 324 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 324 deploy]  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 324 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 324 deploy]  (0.6ms) commit transaction [shard 324 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 324 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 324 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 324 deploy]  (0.7ms) commit transaction [shard 324 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 324 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 324 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 324 deploy]  (0.6ms) commit transaction [shard 324 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 324 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 324 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 324 deploy]  (0.7ms) commit transaction [shard 324 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 324 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 324 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 324 deploy]  (0.7ms) commit transaction [shard 324 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_324.sqlite3' WHERE "switchman_shards"."id" = 324 [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.0ms) begin transaction [shard 324 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 324 master]  (0.7ms) commit transaction [shard 324 master] Drop failed: No such file or directory @ unlink_internal - db/shard_324.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 324]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '14' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", "public"]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (15.1ms) CREATE SCHEMA switchman_test_shard_325 [shard 325 deploy]  (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 325 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 325 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 325 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 325 deploy]  (2.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 325 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 325 deploy]  (0.3ms) COMMIT [shard 325 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 325 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 325 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 325 deploy]  (0.3ms) COMMIT [shard 325 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 325 deploy]  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 325 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 325 deploy]  (0.3ms) COMMIT [shard 325 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 325 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 325 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 325 deploy]  (0.3ms) COMMIT [shard 325 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 325 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 325 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 325 deploy]  (0.3ms) COMMIT [shard 325 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 325 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 325 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 325 deploy]  (0.2ms) COMMIT [shard 325 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) BEGIN [shard 325 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 325 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 325 deploy]  (0.3ms) COMMIT [shard 325 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_325' WHERE "switchman_shards"."id" = 325 [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) BEGIN [shard 325 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 325 master]  (0.2ms) COMMIT [shard 325 master]  (4.7ms) DROP SCHEMA switchman_test_shard_325 CASCADE [shard 325 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 325]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 316 master]  (0.2ms) CREATE SCHEMA switchman_test_shard_326 [shard 326 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 326 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 326 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 326 deploy] Migrating to CreateUsers (20130403132607)  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 326 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 326 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 326 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 326 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 326 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 326 deploy] Migrating to CreateDigits (20131022202028)  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 326 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 326 deploy] Migrating to CreateFeatures (20131206172923)  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 326 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 326 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 326 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 326 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 326 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 326 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_326' WHERE "switchman_shards"."id" = 326 [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 326 master] SQL (16.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 326 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 326 master]  (3.7ms) DROP SCHEMA switchman_test_shard_326 CASCADE [shard 326 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 326]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (2.6ms) ROLLBACK [shard 316 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 316 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Exists (0.4ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 316], ["name", nil]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 317], ["name", "switchman_test_shard_317"]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 318], ["name", "switchman_test_shard_318"]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 317 LIMIT 1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (15.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.0ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.0ms) ROLLBACK [shard 316 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.0ms) BEGIN [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master]  (0.0ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 316], ["name", nil]] [shard 316 master]  (0.4ms) COMMIT [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 317], ["name", "switchman_test_shard_317"]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 318], ["name", "switchman_test_shard_318"]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (316, 317) AND (id IN (317,318)) [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 316], ["name", nil]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.0ms) BEGIN [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 317], ["name", "switchman_test_shard_317"]] [shard 316 master]  (0.2ms) COMMIT [shard 316 master]  (0.0ms) BEGIN [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 318], ["name", "switchman_test_shard_318"]] [shard 316 master]  (0.2ms) COMMIT [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.0ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.0ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.0ms) ROLLBACK [shard 316 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 316], ["name", nil]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 317], ["name", "switchman_test_shard_317"]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 318], ["name", "switchman_test_shard_318"]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.0ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.2ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 317 LIMIT 1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.0ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 14], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 15], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 14]] [shard 317 master]  (0.1ms) SHOW max_identifier_length [shard 317 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 14 AND "users"."id" = 16 LIMIT 1 [shard 317 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 14]] [shard 317 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 14 AND "users"."id" = 3180000000000007 LIMIT 1 [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 318 LIMIT 1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 20 AND "appendages"."id" = $1 LIMIT 1 [["id", 5]] [shard 317 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 11 AND "appendages"."id" = $1 LIMIT 1 [["id", 5]] [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6], ["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 21 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 7]] [shard 317 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 22 LIMIT 1 [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 24 [shard 317 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 24]] [shard 317 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 24 [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 26], ["value", 1]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 3170000000000026], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 26 AND "appendages"."value" IS NULL [shard 317 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 3170000000000026 AND "appendages"."value" IS NULL [shard 318 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 26]] [shard 317 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 26 AND "appendages"."value" IS NULL [shard 317 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 3170000000000026 AND "appendages"."value" IS NULL [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 27], ["value", 1]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.0ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 3170000000000027], ["value", 2]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 27 [shard 317 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 27]] [shard 317 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 27 [shard 317 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 3170000000000027 [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11], ["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 3170000000000028], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5], ["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["value", 2]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 28 AND "digits"."value" IS NULL [shard 317 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3170000000000028 AND "digits"."value" IS NULL [shard 318 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 28]] [shard 317 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 28 AND "digits"."value" IS NULL [shard 317 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3170000000000028 AND "digits"."value" IS NULL [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12], ["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["value", 1]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 3170000000000029], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6], ["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["value", 2]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 29 [shard 317 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 29]] [shard 317 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 29 [shard 317 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3170000000000029 [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 13], ["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 13], ["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["value", 1]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 3170000000000030], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7], ["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["value", 2]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 30 AND (digits.value IS NOT NULL) [shard 317 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3170000000000030 AND (digits.value IS NOT NULL) [shard 318 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 30]] [shard 317 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 30 AND (digits.value IS NOT NULL) [shard 317 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3170000000000030 AND (digits.value IS NOT NULL) [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 31], ["value", 1]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 3170000000000031], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 31], ["value", 2]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 31]] [shard 317 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 31 AND (appendages.value IS NOT NULL) [shard 317 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 3170000000000031 AND (appendages.value IS NOT NULL) [shard 318 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 31]] [shard 317 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 31 AND (appendages.value IS NOT NULL) [shard 317 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 3170000000000031 AND (appendages.value IS NOT NULL) [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 16], ["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 3170000000000032], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9], ["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["value", 2]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 32 AND "digits"."value" IS NULL [shard 317 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3170000000000032 AND "digits"."value" IS NULL [shard 318 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 32]] [shard 317 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 32 AND "digits"."value" IS NULL [shard 317 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3170000000000032 AND "digits"."value" IS NULL [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 3180000000000024]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 14]] [shard 316 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 24 LIMIT 1 [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 3180000000000025], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 17]] [shard 317 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 25 LIMIT 1 [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 35 LIMIT 1 [shard 317 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 18]] [shard 317 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 35 LIMIT 1 [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["owner_id", 288], ["owner_type", "Appendage"], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["value", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 28]] [shard 316 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 288 LIMIT 1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master]  (0.2ms) UPDATE "features" SET "owner_id" = 3170000000000036, "owner_type" = 'User', "updated_at" = '2014-07-22 18:41:14.945789' WHERE "features"."id" = 28 [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 28]] [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.0ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["owner_id", 37], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["value", 1]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["owner_id", 3170000000000037], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["value", 2]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 37 AND "features"."owner_type" = 'User' [shard 317 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 37]] [shard 317 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 37 AND "features"."owner_type" = 'User' [shard 317 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 3170000000000037 AND "features"."owner_type" = 'User' [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 3170000000000038], ["value", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 3180000000000029], ["value", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 593], ["value", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages"  [shard 316 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (593) [shard 316 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38) [shard 317 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [shard 318 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 38 [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 3170000000000039], ["value", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 292], ["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["value", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:14 UTC +00:00], ["user_id", 3180000000000030], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3170000000000019], ["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["value", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits"  [shard 316 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (292) [shard 316 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (19) [shard 317 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) [shard 317 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [shard 318 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 39 [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 3170000000000040], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 3170000000000040], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 20], ["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11], ["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3180000000000011], ["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3180000000000012], ["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 3180000000000031], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 31], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 31], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.0ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3170000000000021], ["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3180000000000013], ["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3180000000000014], ["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["value", nil]] [shard 317 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 317 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) [shard 317 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (40) [shard 317 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (3170000000000040) [shard 318 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (20, 3180000000000011) [shard 317 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (11, 12) [shard 318 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (31) [shard 318 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (31) [shard 318 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (13) [shard 318 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (3180000000000014) [shard 317 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.0ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 3170000000000041], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 3180000000000032], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [shard 317 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (41) [shard 317 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (3170000000000041) [shard 318 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (32) [shard 318 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (32) [shard 318 master] SQL (0.1ms) DELETE FROM "appendages" WHERE "appendages"."id" = 22 [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 316], ["name", nil]] [shard 316 master]  (0.2ms) COMMIT [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 317], ["name", "switchman_test_shard_317"]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 318], ["name", "switchman_test_shard_318"]] [shard 316 master]  (0.2ms) COMMIT [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.0ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 317 LIMIT 1 [shard 316 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 318 LIMIT 1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["owner_id", 595], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["value", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 29 LIMIT 1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master] SQL (15.4ms) DELETE FROM "switchman_shards" [shard 316 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 316], ["name", nil]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 317], ["name", "switchman_test_shard_317"]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 318], ["name", "switchman_test_shard_318"]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 317 LIMIT 1 [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 318 LIMIT 1 [shard 316 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (42) [shard 317 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (33) [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 25 [shard 317 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 17 [shard 318 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 25 [shard 317 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 17 [shard 318 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 25 [shard 317 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 17 [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 26 [shard 317 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 18 [shard 318 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 26 [shard 317 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 18 [shard 318 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 26 [shard 317 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 18 [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 45], ["value", 1]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 45], ["value", 2]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 36], ["value", 3]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 36], ["value", 4]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 36], ["value", 5]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 45 [shard 317 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 317 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 36 [shard 318 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 318 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (27, 28) [shard 317 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (19, 20, 21) [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 46], ["value", 1]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 46], ["value", 2]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 37], ["value", 3]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 37], ["value", 4]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 37], ["value", 5]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 46 [shard 317 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 317 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 37 [shard 318 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 318 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (29, 30) [shard 317 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (22, 23, 24) [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 47], ["value", 1]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 47], ["value", 2]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 38], ["value", 3]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 38], ["value", 4]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 38], ["value", 5]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 47 [shard 317 master]  (0.2ms) SELECT COUNT(*) FROM "appendages"  [shard 317 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 38 [shard 318 master]  (0.2ms) SELECT COUNT(*) FROM "appendages"  [shard 318 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (31, 32) [shard 317 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (25, 26, 27) [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 48], ["value", 1]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 48], ["value", 2]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 39], ["value", 3]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 39], ["value", 4]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 39], ["value", 5]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 48 [shard 317 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 317 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 39 [shard 318 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 318 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (33, 34) [shard 317 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (28, 29, 30) [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 49], ["value", 1]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 49], ["value", 2]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 40], ["value", 3]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 40], ["value", 4]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 40], ["value", 5]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 49 [shard 317 master]  (0.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 317 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 40 [shard 318 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 318 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (35, 36) [shard 317 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (31, 32, 33) [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 50], ["value", 1]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 3180000000000041], ["value", 3]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 3170000000000050], ["value", 2]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 41], ["value", 4]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 41], ["value", 5]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 52], ["value", 1]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 3180000000000042], ["value", 3]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 3170000000000052], ["value", 2]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 42], ["value", 4]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 42], ["value", 5]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 317 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 318 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 317 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 318 master]  (0.1ms) SHOW max_identifier_length [shard 318 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 317 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 318 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 317 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (52) [shard 317 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [shard 318 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 318 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [shard 318 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (52) [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 53], ["value", 1]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 3180000000000043], ["value", 3]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 3170000000000053], ["value", 2]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 43], ["value", 4]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 43], ["value", 5]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 317 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 318 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 317 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 318 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 317 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 318 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 317 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 317 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) [shard 318 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 318 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) [shard 318 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 54], ["value", 1]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 3180000000000044], ["value", 3]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 3170000000000054], ["value", 2]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 44], ["value", 4]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 44], ["value", 5]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 317 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 318 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 317 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 318 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 317 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 318 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 317 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 317 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (44) [shard 318 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 318 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (44) [shard 318 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 55], ["value", 1]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 3180000000000045], ["value", 3]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 3170000000000055], ["value", 2]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 45], ["value", 4]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 45], ["value", 5]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 317 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 318 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 317 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 318 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 317 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 318 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 317 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 317 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [shard 318 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 318 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [shard 318 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 56], ["value", 1]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 3180000000000046], ["value", 3]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 3170000000000056], ["value", 2]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 46], ["value", 4]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 46], ["value", 5]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 317 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 318 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 317 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 318 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 317 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 318 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 317 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 317 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (46) [shard 318 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 318 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (46) [shard 318 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 316], ["name", nil]] [shard 316 master]  (0.2ms) COMMIT [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 317], ["name", "switchman_test_shard_317"]] [shard 316 master]  (0.2ms) COMMIT [shard 316 master]  (0.0ms) BEGIN [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 318], ["name", "switchman_test_shard_318"]] [shard 316 master]  (0.2ms) COMMIT [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 596], ["value", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 597], ["value", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 598], ["value", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 599], ["value", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 600], ["value", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 601], ["value", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 62], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 317 LIMIT 1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 602], ["value", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 63], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 603], ["value", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 604], ["value", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 65], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 605], ["value", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 66], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 606], ["value", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 67], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 607], ["value", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 68], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 607], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 608], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 608]] [shard 316 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 607 LIMIT 1 [shard 316 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 607 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 610], ["value", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master]  (0.0ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 611], ["value", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 70], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master]  (0.0ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 612], ["value", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 71], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.0ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master]  (0.0ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 613], ["value", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 72], ["value", nil]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 318 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["user_id", 62], ["value", nil]] [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 318 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", "non_existent_shard"]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 329 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.7ms) SELECT COUNT(*) FROM "users"  [shard 330 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "17"], ["default", false], ["name", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "18"], ["default", false], ["name", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "19"], ["default", false], ["name", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "20"], ["default", false], ["name", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "21"], ["default", false], ["name", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.2ms) BEGIN [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "22"], ["default", false], ["name", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 316], ["name", nil]] [shard 316 master]  (0.2ms) COMMIT [shard 316 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 317], ["name", "switchman_test_shard_317"]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 318], ["name", "switchman_test_shard_318"]] [shard 316 master]  (0.2ms) COMMIT [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 73 LIMIT 1 [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 317 LIMIT 1 [shard 316 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (615) [shard 316 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (74) [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 75 [shard 317 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 616]] [shard 316 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 75]] [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (617) [shard 316 master] SQL (0.1ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (76) [shard 317 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 617]] [shard 316 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 76]] [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 317 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 317 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 316], ["name", nil]] [shard 316 master]  (0.2ms) COMMIT [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 317], ["name", "switchman_test_shard_317"]] [shard 316 master]  (0.2ms) COMMIT [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 318], ["name", "switchman_test_shard_318"]] [shard 316 master]  (0.2ms) COMMIT [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.0ms) SAVEPOINT active_record_1 [shard 317 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:42:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:42:15 UTC +00:00]] [shard 317 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 317 master]  (0.0ms) ROLLBACK [shard 318 master]  (0.0ms) ROLLBACK [shard 317 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 316], ["name", nil]] [shard 316 master]  (0.2ms) COMMIT [shard 316 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 317], ["name", "switchman_test_shard_317"]] [shard 316 master]  (0.3ms) COMMIT [shard 316 master]  (0.1ms) BEGIN [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 318], ["name", "switchman_test_shard_318"]] [shard 316 master]  (0.2ms) COMMIT [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "23"], ["default", false], ["name", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "24"], ["default", false], ["name", nil]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) SAVEPOINT active_record_1 [shard 316 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 18:41:15 UTC +00:00]] [shard 316 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 316 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.0ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.0ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master]  (0.1ms) BEGIN [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 317]] [shard 316 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 318]] [shard 316 master]  (0.1ms) BEGIN [shard 318 master]  (0.1ms) ROLLBACK [shard 318 master]  (0.1ms) ROLLBACK [shard 316 master] SQL (0.8ms) DELETE FROM "switchman_shards" [shard 316 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 316 master]  (5.3ms) DROP SCHEMA switchman_test_shard_317 CASCADE [shard 317 deploy]  (0.1ms) BEGIN SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 317]]  (0.1ms) COMMIT  (6.0ms) DROP SCHEMA switchman_test_shard_318 CASCADE [shard 318 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 318]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (16.0ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_340 [shard 340 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 340 deploy]  (16.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 340 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 340 deploy] Migrating to CreateUsers (20130403132607)  (17.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 340 deploy]  (15.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 340 deploy] Migrating to CreateAppendages (20130411202442)  (16.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 340 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 340 deploy] Migrating to CreateMirrorUsers (20130411202551)  (16.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 340 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 340 deploy] Migrating to CreateDigits (20131022202028)  (16.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 340 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 340 deploy] Migrating to CreateFeatures (20131206172923)  (17.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 340 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 340 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 340 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 340 deploy] Migrating to CreateRoots (20140219183820)  (17.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 340 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 340 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_340' WHERE "switchman_shards"."id" = 340 [shard 339 master]  (31.3ms) COMMIT [shard 339 master] Switchman::Shard Load (107.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 339 master]  (15.2ms) COMMIT [shard 339 master]  (15.6ms) CREATE SCHEMA switchman_test_shard_341 [shard 341 deploy]  (16.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 341 deploy]  (32.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 341 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 341 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 341 deploy]  (17.6ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 341 deploy]  (15.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 341 deploy]  (16.3ms) COMMIT [shard 341 deploy] Migrating to CreateAppendages (20130411202442)  (15.3ms) BEGIN [shard 341 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 341 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 341 deploy]  (0.3ms) COMMIT [shard 341 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 341 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 341 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 341 deploy]  (0.3ms) COMMIT [shard 341 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 341 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 341 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 341 deploy]  (0.3ms) COMMIT [shard 341 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 341 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 341 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 341 deploy]  (0.3ms) COMMIT [shard 341 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 341 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 341 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 341 deploy]  (0.2ms) COMMIT [shard 341 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 341 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 341 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 341 deploy]  (0.3ms) COMMIT [shard 341 deploy]  (0.1ms) BEGIN [shard 339 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_341' WHERE "switchman_shards"."id" = 341 [shard 339 master]  (0.2ms) COMMIT [shard 339 master] SQL (0.2ms) DELETE FROM "switchman_shards" [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master]  (0.0ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master]  (0.0ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master]  (0.0ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master]  (0.0ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master]  (0.0ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master]  (0.0ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master]  (0.0ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master]  (0.0ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master]  (0.0ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master]  (0.0ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 339], ["name", nil]] [shard 339 master]  (16.0ms) COMMIT [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 340], ["name", "switchman_test_shard_340"]] [shard 339 master]  (16.1ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 341], ["name", "switchman_test_shard_341"]] [shard 339 master]  (15.4ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '7' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.0ms) select sqlite_version(*) [shard 342 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 342 deploy]  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 342 deploy]  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 342 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 342 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 342 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 342 deploy]  (0.5ms) commit transaction [shard 342 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 342 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 342 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 342 deploy]  (0.6ms) commit transaction [shard 342 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 342 deploy]  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 342 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 342 deploy]  (0.6ms) commit transaction [shard 342 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 342 deploy]  (0.3ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 342 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 342 deploy]  (0.5ms) commit transaction [shard 342 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 342 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 342 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 342 deploy]  (0.6ms) commit transaction [shard 342 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 342 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 342 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 342 deploy]  (0.6ms) commit transaction [shard 342 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 342 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 342 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 342 deploy]  (0.7ms) commit transaction [shard 342 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'db/shard_342.sqlite3' WHERE "switchman_shards"."id" = 342 [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.0ms) begin transaction [shard 342 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 22 Jul 2014 19:06:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:40 UTC +00:00]] [shard 342 master]  (0.6ms) commit transaction [shard 342 master] Drop failed: No such file or directory @ unlink_internal - db/shard_342.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 342]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '8' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", "public"]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (15.9ms) CREATE SCHEMA switchman_test_shard_343 [shard 343 deploy]  (48.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 343 deploy]  (32.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 343 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 343 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 343 deploy]  (18.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 343 deploy]  (15.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 343 deploy]  (15.8ms) COMMIT [shard 343 deploy] Migrating to CreateAppendages (20130411202442)  (15.5ms) BEGIN [shard 343 deploy]  (16.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 343 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 343 deploy]  (15.4ms) COMMIT [shard 343 deploy] Migrating to CreateMirrorUsers (20130411202551)  (15.4ms) BEGIN [shard 343 deploy]  (17.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 343 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 343 deploy]  (15.4ms) COMMIT [shard 343 deploy] Migrating to CreateDigits (20131022202028)  (15.5ms) BEGIN [shard 343 deploy]  (17.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 343 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 343 deploy]  (15.4ms) COMMIT [shard 343 deploy] Migrating to CreateFeatures (20131206172923)  (15.7ms) BEGIN [shard 343 deploy]  (16.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 343 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 343 deploy]  (16.0ms) COMMIT [shard 343 deploy] Migrating to AddParentIdToUsers (20140123154135)  (15.4ms) BEGIN [shard 343 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 343 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 343 deploy]  (15.3ms) COMMIT [shard 343 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 343 deploy]  (16.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 343 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 343 deploy]  (30.5ms) COMMIT [shard 343 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_343' WHERE "switchman_shards"."id" = 343 [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) BEGIN [shard 343 master] SQL (16.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 343 master]  (16.2ms) COMMIT [shard 343 master]  (34.8ms) DROP SCHEMA switchman_test_shard_343 CASCADE [shard 343 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 343]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.2ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 339 master]  (0.1ms) CREATE SCHEMA switchman_test_shard_344 [shard 344 deploy]  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 344 deploy]  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 344 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 344 deploy] Migrating to CreateUsers (20130403132607)  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 344 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 344 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 344 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 344 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 344 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 344 deploy] Migrating to CreateDigits (20131022202028)  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 344 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 344 deploy] Migrating to CreateFeatures (20131206172923)  (1.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 344 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 344 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 344 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 344 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 344 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 344 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_344' WHERE "switchman_shards"."id" = 344 [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 344 master] SQL (16.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 344 master]  (33.0ms) DROP SCHEMA switchman_test_shard_344 CASCADE [shard 344 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 344]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (2.1ms) ROLLBACK [shard 339 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 339], ["name", nil]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 340], ["name", "switchman_test_shard_340"]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 341], ["name", "switchman_test_shard_341"]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 15]] [shard 339 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 15]] [shard 339 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 15 LIMIT 1 [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master] SQL (30.7ms) DELETE FROM "switchman_shards" [shard 339 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 339], ["name", nil]] [shard 339 master]  (15.9ms) COMMIT [shard 339 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 340], ["name", "switchman_test_shard_340"]] [shard 339 master]  (15.2ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 341], ["name", "switchman_test_shard_341"]] [shard 339 master]  (0.3ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.2ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1], ["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 340 LIMIT 1 [shard 339 master] Digit Load (0.6ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 3 [shard 340 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 3]] [shard 340 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 3 [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 7 AND "appendages"."id" = $1 LIMIT 1 [["id", 5]] [shard 340 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 7 AND "appendages"."id" = $1 LIMIT 1 [["id", 5]] [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 6]] [shard 340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 8 LIMIT 1 [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 9], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 10], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 9]] [shard 340 master]  (0.1ms) SHOW max_identifier_length [shard 340 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 9 AND "users"."id" = 11 LIMIT 1 [shard 340 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 9]] [shard 340 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 9 AND "users"."id" = 3410000000000010 LIMIT 1 [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (21.9ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 341 LIMIT 1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (20.1ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 15], ["value", 1]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 3400000000000015], ["value", 2]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 15 [shard 340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 15]] [shard 340 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 15 [shard 340 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 3400000000000015 [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9], ["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 3400000000000016], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (16.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3], ["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["value", 2]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 16 AND "digits"."value" IS NULL [shard 340 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3400000000000016 AND "digits"."value" IS NULL [shard 341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 16]] [shard 340 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 16 AND "digits"."value" IS NULL [shard 340 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3400000000000016 AND "digits"."value" IS NULL [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 17], ["value", 1]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 3400000000000017], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 17 AND "appendages"."value" IS NULL [shard 340 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 3400000000000017 AND "appendages"."value" IS NULL [shard 341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 340 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 17 AND "appendages"."value" IS NULL [shard 340 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 3400000000000017 AND "appendages"."value" IS NULL [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11], ["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 3400000000000018], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5], ["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["value", 2]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 18 AND "digits"."value" IS NULL [shard 340 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3400000000000018 AND "digits"."value" IS NULL [shard 341 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 340 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 18 AND "digits"."value" IS NULL [shard 340 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3400000000000018 AND "digits"."value" IS NULL [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 19], ["value", 1]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 3400000000000019], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 19], ["value", 2]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [shard 340 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 19 AND (appendages.value IS NOT NULL) [shard 340 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 3400000000000019 AND (appendages.value IS NOT NULL) [shard 341 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [shard 340 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 19 AND (appendages.value IS NOT NULL) [shard 340 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 3400000000000019 AND (appendages.value IS NOT NULL) [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 14], ["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 14], ["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["value", 1]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 3400000000000020], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7], ["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["value", 2]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 20 AND (digits.value IS NOT NULL) [shard 340 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3400000000000020 AND (digits.value IS NOT NULL) [shard 341 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 340 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 20 AND (digits.value IS NOT NULL) [shard 340 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3400000000000020 AND (digits.value IS NOT NULL) [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.0ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15], ["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["value", 1]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 3400000000000021], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["value", 2]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 21 [shard 340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 340 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 21 [shard 340 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3400000000000021 [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.7ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 3410000000000021]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master] Root Load (0.4ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 15]] [shard 339 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 21 LIMIT 1 [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 3410000000000022], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 16]] [shard 340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 22 LIMIT 1 [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 24 LIMIT 1 [shard 340 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 17]] [shard 340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 24 LIMIT 1 [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 3400000000000025], ["value", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 3410000000000024], ["value", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 620], ["value", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages"  [shard 339 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (620) [shard 339 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 341 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 25 [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 3400000000000026], ["value", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 313], ["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["value", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 3410000000000025], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3400000000000018], ["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["value", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits"  [shard 339 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (313) [shard 339 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (18) [shard 340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 341 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 26 [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 27], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 3400000000000027], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 3410000000000026], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 340 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (27) [shard 340 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (3400000000000027) [shard 341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 341 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (26) [shard 341 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 19 [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 3400000000000028], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 3400000000000028], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 21], ["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11], ["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3410000000000011], ["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3410000000000012], ["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 3410000000000027], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 27], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", 27], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.0ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3400000000000022], ["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3410000000000013], ["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3410000000000014], ["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 340 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (28) [shard 340 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (3400000000000028) [shard 341 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (21, 3410000000000011) [shard 340 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (11, 12) [shard 341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 341 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (27) [shard 341 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (13) [shard 341 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (3410000000000014) [shard 340 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["owner_id", 314], ["owner_type", "Appendage"], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["value", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 30]] [shard 339 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 314 LIMIT 1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master]  (0.2ms) UPDATE "features" SET "owner_id" = 3400000000000029, "owner_type" = 'User', "updated_at" = '2014-07-22 19:06:41.899980' WHERE "features"."id" = 30 [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 30]] [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["owner_id", 30], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["value", 1]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["owner_id", 3400000000000030], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["value", 2]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 30 AND "features"."owner_type" = 'User' [shard 340 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 30]] [shard 340 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 30 AND "features"."owner_type" = 'User' [shard 340 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 3400000000000030 AND "features"."owner_type" = 'User' [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master]  (0.0ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 339], ["name", nil]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 340], ["name", "switchman_test_shard_340"]] [shard 339 master]  (0.3ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 341], ["name", "switchman_test_shard_341"]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 31 LIMIT 1 [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 340 LIMIT 1 [shard 339 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (622) [shard 339 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (32) [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 34 [shard 340 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 624]] [shard 339 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 34]] [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:41 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (625) [shard 339 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (35) [shard 340 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 625]] [shard 339 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 35]] [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master]  (0.0ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 339], ["name", nil]] [shard 339 master]  (0.3ms) COMMIT [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 340], ["name", "switchman_test_shard_340"]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 341], ["name", "switchman_test_shard_341"]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 339], ["name", nil]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 340], ["name", "switchman_test_shard_340"]] [shard 339 master]  (0.3ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 341], ["name", "switchman_test_shard_341"]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 340 LIMIT 1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 341 LIMIT 1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10341 LIMIT 1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) ROLLBACK [shard 341 master]  (0.0ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '10' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", "public"]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_347 [shard 347 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 347 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 347 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 347 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 347 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 347 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 347 deploy]  (0.2ms) COMMIT [shard 347 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 347 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 347 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 347 deploy]  (0.3ms) COMMIT [shard 347 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) BEGIN [shard 347 deploy]  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 347 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 347 deploy]  (0.2ms) COMMIT [shard 347 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 347 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 347 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 347 deploy]  (0.2ms) COMMIT [shard 347 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 347 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 347 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 347 deploy]  (0.3ms) COMMIT [shard 347 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 347 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 347 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 347 deploy]  (0.3ms) COMMIT [shard 347 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 347 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 347 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 347 deploy]  (0.2ms) COMMIT [shard 347 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_347' WHERE "switchman_shards"."id" = 347 [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) BEGIN [shard 347 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 347 master]  (0.2ms) COMMIT [shard 347 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 347 master]  (4.9ms) DROP SCHEMA switchman_test_shard_347 CASCADE [shard 347 deploy]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 347 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) ROLLBACK [shard 341 master]  (0.0ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 348]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 349]] [shard 339 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 349 LIMIT 1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master] SQL (15.0ms) DELETE FROM "switchman_shards" [shard 339 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 339], ["name", nil]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 340], ["name", "switchman_test_shard_340"]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 341], ["name", "switchman_test_shard_341"]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 340 LIMIT 1 [shard 339 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 36]] [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 37 LIMIT 1 [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38) LIMIT 1 [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 39]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3400000000000039 LIMIT 1 [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 40 LIMIT 1 [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 339 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 339 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 340 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 339], ["name", nil]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 340], ["name", "switchman_test_shard_340"]] [shard 339 master]  (0.3ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 341], ["name", "switchman_test_shard_341"]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 340 LIMIT 1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 339], ["name", nil]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 340], ["name", "switchman_test_shard_340"]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 341], ["name", "switchman_test_shard_341"]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master] SQL (1.5ms) DELETE FROM "switchman_shards" [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 339 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master]  (0.0ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 339], ["name", nil]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 340], ["name", "switchman_test_shard_340"]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 341], ["name", "switchman_test_shard_341"]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master]  (0.4ms) SELECT COUNT(*) FROM "users"  [shard 341 master]  (0.1ms) SAVEPOINT active_record_2 [shard 341 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 341 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 339], ["name", nil]] [shard 339 master]  (0.3ms) COMMIT [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 340], ["name", "switchman_test_shard_340"]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master]  (0.0ms) BEGIN [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 341], ["name", "switchman_test_shard_341"]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 339], ["name", nil]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 340], ["name", "switchman_test_shard_340"]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master]  (0.0ms) BEGIN [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 341], ["name", "switchman_test_shard_341"]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 629], ["value", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 630], ["value", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 631], ["value", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 632], ["value", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 633], ["value", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 634], ["value", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 635], ["value", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 636], ["value", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 340 LIMIT 1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 637], ["value", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 638], ["value", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 639], ["value", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 640], ["value", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 641], ["value", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 642], ["value", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 643], ["value", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 644], ["value", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 644], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 645], ["updated_at", Tue, 22 Jul 2014 19:06:42 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 645]] [shard 339 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 644 LIMIT 1 [shard 339 master]  (0.1ms) SHOW max_identifier_length [shard 339 master] User Load (0.4ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 644 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 339], ["name", nil]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 340], ["name", "switchman_test_shard_340"]] [shard 339 master]  (0.3ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 341], ["name", "switchman_test_shard_341"]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 339], ["name", nil]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.0ms) BEGIN [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 340], ["name", "switchman_test_shard_340"]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master]  (0.0ms) BEGIN [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 341], ["name", "switchman_test_shard_341"]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (339, 340) AND (id IN (340,341)) [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.0ms) BEGIN [shard 339 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", "non_existent_shard"]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 354 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.8ms) SELECT COUNT(*) FROM "users" [shard 355 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "17"], ["default", false], ["name", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "18"], ["default", false], ["name", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "19"], ["default", false], ["name", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "20"], ["default", false], ["name", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "21"], ["default", false], ["name", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 339], ["name", nil]] [shard 339 master]  (0.3ms) COMMIT [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 340], ["name", "switchman_test_shard_340"]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 341], ["name", "switchman_test_shard_341"]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master] SQL (15.4ms) DELETE FROM "switchman_shards" [shard 339 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 339], ["name", nil]] [shard 339 master]  (16.0ms) COMMIT [shard 339 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 340], ["name", "switchman_test_shard_340"]] [shard 339 master]  (15.5ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 341], ["name", "switchman_test_shard_341"]] [shard 339 master]  (15.2ms) COMMIT [shard 339 master]  (0.2ms) BEGIN [shard 339 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 340 LIMIT 1 [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 341 LIMIT 1 [shard 339 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (61) [shard 340 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (49) [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.2ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 62], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 340 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 341 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 340 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 341 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 340 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 63], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 340 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 341 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 340 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 341 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 340 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 64], ["value", 1]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 3410000000000052], ["value", 3]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 3400000000000064], ["value", 2]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 52], ["value", 4]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 52], ["value", 5]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.5ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 340 master]  (0.5ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 341 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 340 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 341 master]  (0.1ms) SHOW max_identifier_length [shard 341 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 340 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 341 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [shard 340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (52) [shard 341 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (52) [shard 341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 65], ["value", 1]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 3410000000000053], ["value", 3]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 3400000000000065], ["value", 2]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 53], ["value", 4]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 53], ["value", 5]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 340 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 341 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 340 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 341 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 340 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 341 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 341 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 66], ["value", 1]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 3410000000000054], ["value", 3]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 3400000000000066], ["value", 2]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 54], ["value", 4]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 54], ["value", 5]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 340 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 341 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 340 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 341 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 340 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 341 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 341 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 67], ["value", 1]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 3410000000000055], ["value", 3]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 3400000000000067], ["value", 2]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 55], ["value", 4]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 55], ["value", 5]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 340 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 341 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 340 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 341 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 340 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 341 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 341 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 341 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 68], ["value", 1]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 3410000000000056], ["value", 3]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 3400000000000068], ["value", 2]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 56], ["value", 4]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 56], ["value", 5]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 68], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.0ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 70], ["value", 1]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 3410000000000057], ["value", 3]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 3400000000000070], ["value", 2]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 57], ["value", 4]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 57], ["value", 5]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 340 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 341 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 340 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 341 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 340 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 341 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [shard 340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 341 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [shard 340 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 71], ["value", 1]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 71], ["value", 2]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 58], ["value", 3]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 58], ["value", 4]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 58], ["value", 5]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 71 [shard 340 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 340 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 58 [shard 341 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 341 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (57, 58) [shard 340 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (53, 54, 55) [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 72], ["value", 1]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 72], ["value", 2]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 59], ["value", 3]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 59], ["value", 4]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 59], ["value", 5]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 72 [shard 340 master]  (0.2ms) SELECT COUNT(*) FROM "appendages"  [shard 340 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 59 [shard 341 master]  (0.2ms) SELECT COUNT(*) FROM "appendages"  [shard 341 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (59, 60) [shard 340 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (56, 57, 58) [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 73], ["value", 1]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 73], ["value", 2]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 60], ["value", 3]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 60], ["value", 4]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 60], ["value", 5]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 73 [shard 340 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 340 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 60 [shard 341 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 341 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (61, 62) [shard 340 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (59, 60, 61) [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 74], ["value", 1]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 74], ["value", 2]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 61], ["value", 3]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 61], ["value", 4]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 61], ["value", 5]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 74 [shard 340 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 340 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 61 [shard 341 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 341 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (63, 64) [shard 340 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (62, 63, 64) [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 75], ["value", 1]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 75], ["value", 2]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 62], ["value", 3]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 62], ["value", 4]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", 62], ["value", 5]] [shard 341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 341 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 75 [shard 340 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 340 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 62 [shard 341 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 341 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (65, 66) [shard 340 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (65, 66, 67) [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 340 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 339], ["name", nil]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 340], ["name", "switchman_test_shard_340"]] [shard 339 master]  (0.3ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 341], ["name", "switchman_test_shard_341"]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:07:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:07:43 UTC +00:00]] [shard 340 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.0ms) ROLLBACK [shard 341 master]  (0.0ms) ROLLBACK [shard 340 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 339], ["name", nil]] [shard 339 master]  (0.3ms) COMMIT [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 340], ["name", "switchman_test_shard_340"]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 341], ["name", "switchman_test_shard_341"]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["owner_id", 648], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["value", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 31 LIMIT 1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 340 LIMIT 1 [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 341 LIMIT 1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master] SQL (15.4ms) DELETE FROM "switchman_shards" [shard 339 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 339], ["name", nil]] [shard 339 master]  (15.3ms) COMMIT [shard 339 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 340], ["name", "switchman_test_shard_340"]] [shard 339 master]  (0.3ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 341], ["name", "switchman_test_shard_341"]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.0ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 340 master]  (0.0ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 340 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) ROLLBACK [shard 341 master]  (0.0ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 339 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 339 master]  (0.3ms) COMMIT [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 339 master]  (0.0ms) BEGIN [shard 339 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 339 master]  (0.3ms) COMMIT [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.0ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 339 master] SQL (0.1ms) DELETE FROM "users" [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.0ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 339 master] SQL (0.1ms) DELETE FROM "users" [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 339 master]  (0.3ms) COMMIT [shard 339 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 339 master] SQL (0.4ms) DELETE FROM "users" [shard 339 master] SQL (0.1ms) DELETE FROM "users" [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 658]] [shard 339 master] CACHE (0.0ms) 339::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 658]] CACHE (0.0ms) 339::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 658]]  (0.1ms) BEGIN [shard 339 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-07-22 19:06:43.497651' WHERE "users"."id" = 658 [shard 339 master]  (0.2ms) COMMIT [shard 339 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 658]] [shard 339 master] CACHE (0.0ms) 339::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 658]] SQL (0.3ms) DELETE FROM "users" [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 339 master] SQL (0.3ms) DELETE FROM "users" [shard 339 master] SQL (0.1ms) DELETE FROM "users" [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.1ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 339 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:06:43.513654' [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 340]] [shard 339 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 341]] [shard 339 master]  (0.1ms) BEGIN [shard 341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 339 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 339 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 339 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 339 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:06:43.519177' [shard 339 master]  (0.1ms) ROLLBACK [shard 341 master]  (0.1ms) ROLLBACK [shard 339 master]  (0.0ms) BEGIN [shard 339 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 339 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:06:43.523108' [shard 339 master] SQL (0.2ms) DELETE FROM "users" [shard 339 master]  (0.1ms) BEGIN [shard 339 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:06:43 UTC +00:00]] [shard 339 master]  (0.2ms) COMMIT [shard 339 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 339 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:06:43.527271' [shard 339 master] SQL (0.2ms) DELETE FROM "users" [shard 339 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 339 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 339 master]  (5.2ms) DROP SCHEMA switchman_test_shard_340 CASCADE [shard 340 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 340]]  (0.1ms) COMMIT  (6.5ms) DROP SCHEMA switchman_test_shard_341 CASCADE [shard 341 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 341]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.7ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_363 [shard 363 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 363 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 363 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 363 deploy] Migrating to CreateUsers (20130403132607)  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 363 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 363 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 363 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 363 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 363 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 363 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 363 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 363 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 363 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 363 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 363 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 363 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 363 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 363 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_363' WHERE "switchman_shards"."id" = 363 [shard 362 master]  (1.1ms) COMMIT [shard 362 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 362 master]  (0.2ms) COMMIT [shard 362 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_364 [shard 364 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 364 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 364 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 364 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 364 deploy]  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 364 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 364 deploy]  (0.2ms) COMMIT [shard 364 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 364 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 364 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 364 deploy]  (0.3ms) COMMIT [shard 364 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 364 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 364 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 364 deploy]  (0.4ms) COMMIT [shard 364 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 364 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 364 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 364 deploy]  (0.3ms) COMMIT [shard 364 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 364 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 364 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 364 deploy]  (0.3ms) COMMIT [shard 364 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 364 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 364 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 364 deploy]  (0.2ms) COMMIT [shard 364 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 364 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 364 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 364 deploy]  (0.3ms) COMMIT [shard 364 deploy]  (0.1ms) BEGIN [shard 362 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_364' WHERE "switchman_shards"."id" = 364 [shard 362 master]  (0.3ms) COMMIT [shard 362 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 362], ["name", nil]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 363], ["name", "switchman_test_shard_363"]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 364], ["name", "switchman_test_shard_364"]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (362, 363) AND (id IN (363,364)) [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.0ms) ROLLBACK [shard 362 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 362], ["name", nil]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 363], ["name", "switchman_test_shard_363"]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 364], ["name", "switchman_test_shard_364"]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.2ms) SAVEPOINT active_record_1 [shard 362 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 363 LIMIT 1 [shard 362 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (664) [shard 362 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1) [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1 [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.3ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (667) [shard 362 master] SQL (0.1ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (4) [shard 363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 667]] [shard 362 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 4]] [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 5 [shard 363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 668]] [shard 362 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 5]] [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 362], ["name", nil]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 363], ["name", "switchman_test_shard_363"]] [shard 362 master]  (0.2ms) COMMIT [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 364], ["name", "switchman_test_shard_364"]] [shard 362 master]  (0.2ms) COMMIT [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 363 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.0ms) ROLLBACK [shard 363 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.0ms) BEGIN [shard 362 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", "non_existent_shard"]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 365 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.8ms) SELECT COUNT(*) FROM "users"  [shard 366 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master]  (0.0ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 362], ["name", nil]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 363], ["name", "switchman_test_shard_363"]] [shard 362 master]  (0.2ms) COMMIT [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 364], ["name", "switchman_test_shard_364"]] [shard 362 master]  (0.2ms) COMMIT [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 362], ["name", nil]] [shard 362 master]  (0.2ms) COMMIT [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 363], ["name", "switchman_test_shard_363"]] [shard 362 master]  (0.2ms) COMMIT [shard 362 master]  (0.0ms) BEGIN [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 364], ["name", "switchman_test_shard_364"]] [shard 362 master]  (0.2ms) COMMIT [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master] SQL (0.9ms) DELETE FROM "switchman_shards" [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 362], ["name", nil]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 363], ["name", "switchman_test_shard_363"]] [shard 362 master]  (0.2ms) COMMIT [shard 362 master]  (0.0ms) BEGIN [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 364], ["name", "switchman_test_shard_364"]] [shard 362 master]  (0.2ms) COMMIT [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["user_id", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 16]] [shard 362 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 16]] [shard 362 master] MirrorUser Load (0.4ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 16 LIMIT 1 [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master]  (0.0ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master]  (0.0ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master]  (0.0ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master]  (0.0ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master]  (0.0ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 362], ["name", nil]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 363], ["name", "switchman_test_shard_363"]] [shard 362 master]  (0.2ms) COMMIT [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 364], ["name", "switchman_test_shard_364"]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '11' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.0ms) select sqlite_version(*) [shard 375 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 375 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 375 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 375 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 375 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 375 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 375 deploy]  (0.7ms) commit transaction [shard 375 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 375 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 375 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 375 deploy]  (0.6ms) commit transaction [shard 375 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 375 deploy]  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 375 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 375 deploy]  (0.6ms) commit transaction [shard 375 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 375 deploy]  (0.3ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 375 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 375 deploy]  (0.7ms) commit transaction [shard 375 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 375 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 375 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 375 deploy]  (0.6ms) commit transaction [shard 375 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 375 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 375 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 375 deploy]  (0.7ms) commit transaction [shard 375 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 375 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 375 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 375 deploy]  (0.7ms) commit transaction [shard 375 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_375.sqlite3' WHERE "switchman_shards"."id" = 375 [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.0ms) begin transaction [shard 375 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 375 master]  (0.7ms) commit transaction [shard 375 master] Drop failed: No such file or directory @ unlink_internal - db/shard_375.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 375]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.0ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '12' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", "public"]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (14.8ms) CREATE SCHEMA switchman_test_shard_376 [shard 376 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 376 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 376 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 376 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 376 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 376 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 376 deploy]  (0.3ms) COMMIT [shard 376 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 376 deploy]  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 376 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 376 deploy]  (0.3ms) COMMIT [shard 376 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 376 deploy]  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 376 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 376 deploy]  (0.3ms) COMMIT [shard 376 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 376 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 376 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 376 deploy]  (0.3ms) COMMIT [shard 376 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 376 deploy]  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 376 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 376 deploy]  (0.3ms) COMMIT [shard 376 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 376 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 376 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 376 deploy]  (0.3ms) COMMIT [shard 376 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 376 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 376 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 376 deploy]  (0.3ms) COMMIT [shard 376 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_376' WHERE "switchman_shards"."id" = 376 [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) BEGIN [shard 376 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 376 master]  (0.3ms) COMMIT [shard 376 master]  (4.8ms) DROP SCHEMA switchman_test_shard_376 CASCADE [shard 376 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 376]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 362 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_377 [shard 377 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 377 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 377 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 377 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 377 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 377 deploy] Migrating to CreateAppendages (20130411202442)  (1.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 377 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 377 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 377 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 377 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 377 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 377 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 377 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 377 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 377 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 377 deploy] Migrating to CreateRoots (20140219183820)  (2.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 377 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 377 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_377' WHERE "switchman_shards"."id" = 377 [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 377 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 377 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 377 master]  (2.7ms) DROP SCHEMA switchman_test_shard_377 CASCADE [shard 377 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 377]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (2.0ms) ROLLBACK [shard 362 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master]  (0.0ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 362], ["name", nil]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 363], ["name", "switchman_test_shard_363"]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 364], ["name", "switchman_test_shard_364"]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.0ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 362], ["name", nil]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.0ms) BEGIN [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 363], ["name", "switchman_test_shard_363"]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 364], ["name", "switchman_test_shard_364"]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 363 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 362 master]  (0.4ms) COMMIT [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 362 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.0ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 362 master] SQL (0.1ms) DELETE FROM "users" [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 362 master] SQL (0.1ms) DELETE FROM "users" [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 362 master]  (0.2ms) COMMIT [shard 362 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 362 master] SQL (0.4ms) DELETE FROM "users" [shard 362 master] SQL (0.2ms) DELETE FROM "users" [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 362 master]  (0.2ms) COMMIT [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 679]] [shard 362 master] CACHE (0.0ms) 362::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 679]] CACHE (0.0ms) 362::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 679]]  (0.1ms) BEGIN [shard 362 master]  (0.3ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-07-22 19:09:45.973250' WHERE "users"."id" = 679 [shard 362 master]  (0.2ms) COMMIT [shard 362 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 679]] [shard 362 master] CACHE (0.0ms) 362::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 679]] SQL (0.4ms) DELETE FROM "users" [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 362 master] SQL (0.3ms) DELETE FROM "users" [shard 362 master] SQL (0.1ms) DELETE FROM "users" [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 362 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:09:45.988518' [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 362 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:09:45.994124' [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:45 UTC +00:00]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master] User Load (0.3ms) SELECT "users".* FROM "users"  [shard 362 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:09:45.998758' [shard 362 master] SQL (0.3ms) DELETE FROM "users" [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master] User Load (0.3ms) SELECT "users".* FROM "users"  [shard 362 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:09:46.004355' [shard 362 master] SQL (0.3ms) DELETE FROM "users" [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master] User Load (0.3ms) SELECT "users".* FROM "users" FOR UPDATE [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.0ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.0ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.0ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.0ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 362], ["name", nil]] [shard 362 master]  (0.2ms) COMMIT [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 363], ["name", "switchman_test_shard_363"]] [shard 362 master]  (0.2ms) COMMIT [shard 362 master]  (0.0ms) BEGIN [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 364], ["name", "switchman_test_shard_364"]] [shard 362 master]  (0.2ms) COMMIT [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 685], ["value", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (1.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 686], ["value", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.2ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 687], ["value", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 688], ["value", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 689], ["value", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 690], ["value", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 690], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 691], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 691]] [shard 362 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 690 LIMIT 1 [shard 362 master]  (0.2ms) SHOW max_identifier_length [shard 362 master] User Load (0.4ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 690 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 693], ["value", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 363 LIMIT 1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.2ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 694], ["value", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 695], ["value", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 696], ["value", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 697], ["value", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 698], ["value", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 699], ["value", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master]  (0.0ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 700], ["value", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.8ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 701], ["value", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 702], ["value", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "27"], ["default", false], ["name", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "27"], ["default", false], ["name", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 362 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 362], ["name", nil]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 363], ["name", "switchman_test_shard_363"]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 364], ["name", "switchman_test_shard_364"]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master]  (0.6ms) SELECT COUNT(*) FROM "users" [shard 364 master]  (0.1ms) SAVEPOINT active_record_2 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 364 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 362], ["name", nil]] [shard 362 master]  (0.4ms) COMMIT [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 363], ["name", "switchman_test_shard_363"]] [shard 362 master]  (0.2ms) COMMIT [shard 362 master]  (0.0ms) BEGIN [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 364], ["name", "switchman_test_shard_364"]] [shard 362 master]  (0.2ms) COMMIT [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 362], ["name", nil]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.0ms) BEGIN [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 363], ["name", "switchman_test_shard_363"]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 364], ["name", "switchman_test_shard_364"]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "28"], ["default", false], ["name", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "28"], ["default", false], ["name", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 362], ["name", nil]] [shard 362 master]  (0.2ms) COMMIT [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 363], ["name", "switchman_test_shard_363"]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 364], ["name", "switchman_test_shard_364"]] [shard 362 master]  (0.2ms) COMMIT [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 363 LIMIT 1 [shard 362 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 25]] [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 362 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 362 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 363 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 27 LIMIT 1 [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) LIMIT 1 [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 29 LIMIT 1 [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 30]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3630000000000030 LIMIT 1 [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 362], ["name", nil]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 363], ["name", "switchman_test_shard_363"]] [shard 362 master]  (0.2ms) COMMIT [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 364], ["name", "switchman_test_shard_364"]] [shard 362 master]  (0.2ms) COMMIT [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 31], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 363 LIMIT 1 [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 364 LIMIT 1 [shard 362 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (31) [shard 363 master] SQL (0.3ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (20) [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master] SQL (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 18 [shard 363 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 18 [shard 364 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 18 [shard 363 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 18 [shard 364 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 18 [shard 363 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 18 [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 363 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 364 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 363 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 364 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 363 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 34], ["value", 1]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 3640000000000023], ["value", 3]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 3630000000000034], ["value", 2]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 23], ["value", 4]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 23], ["value", 5]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 363 master]  (0.4ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 364 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 363 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 364 master]  (0.1ms) SHOW max_identifier_length [shard 364 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 363 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 364 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (34) [shard 363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 364 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (34) [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 35], ["value", 1]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 3640000000000024], ["value", 3]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 3630000000000035], ["value", 2]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 24], ["value", 4]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 24], ["value", 5]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 363 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 364 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 363 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 364 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 363 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 364 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35) [shard 363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 364 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35) [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 36], ["value", 1]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 3640000000000025], ["value", 3]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 3630000000000036], ["value", 2]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 25], ["value", 4]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 25], ["value", 5]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 363 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 364 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 363 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 364 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 363 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 364 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (36) [shard 363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 364 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (36) [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 37], ["value", 1]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 3640000000000026], ["value", 3]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 3630000000000037], ["value", 2]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 26], ["value", 4]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 26], ["value", 5]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 363 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 364 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 363 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 364 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 363 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 364 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 364 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 364 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 38], ["value", 1]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 3640000000000027], ["value", 3]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 3630000000000038], ["value", 2]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 27], ["value", 4]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 27], ["value", 5]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 363 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 364 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 363 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 364 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 363 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 364 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38) [shard 363 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 364 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 364 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38) [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 39], ["value", 1]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 3640000000000028], ["value", 3]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 3630000000000039], ["value", 2]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 28], ["value", 4]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 28], ["value", 5]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 41], ["value", 1]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 41], ["value", 2]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 29], ["value", 3]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 29], ["value", 4]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 29], ["value", 5]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 41 [shard 363 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 363 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 29 [shard 364 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 364 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (34, 35) [shard 363 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (38, 39, 40) [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 42], ["value", 1]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 42], ["value", 2]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 30], ["value", 3]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 30], ["value", 4]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 30], ["value", 5]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 42 [shard 363 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 363 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 30 [shard 364 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 364 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (36, 37) [shard 363 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (41, 42, 43) [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 43], ["value", 1]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 43], ["value", 2]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 31], ["value", 3]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 31], ["value", 4]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 31], ["value", 5]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 43 [shard 363 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 363 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 31 [shard 364 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 364 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (38, 39) [shard 363 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (44, 45, 46) [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 44], ["value", 1]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 44], ["value", 2]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 32], ["value", 3]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 32], ["value", 4]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 32], ["value", 5]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 44 [shard 363 master]  (0.1ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 363 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 32 [shard 364 master]  (0.1ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 364 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (40, 41) [shard 363 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (47, 48, 49) [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 45], ["value", 1]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 45], ["value", 2]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 33], ["value", 3]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 33], ["value", 4]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 33], ["value", 5]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 45 [shard 363 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 363 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 33 [shard 364 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 364 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (42, 43) [shard 363 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (50, 51, 52) [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 362], ["name", nil]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 363], ["name", "switchman_test_shard_363"]] [shard 362 master]  (0.2ms) COMMIT [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 364], ["name", "switchman_test_shard_364"]] [shard 362 master]  (0.2ms) COMMIT [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["owner_id", 704], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["value", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 32 LIMIT 1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 363 LIMIT 1 [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 364 LIMIT 1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master] SQL (16.0ms) DELETE FROM "switchman_shards" [shard 362 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 362], ["name", nil]] [shard 362 master]  (15.4ms) COMMIT [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 363], ["name", "switchman_test_shard_363"]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master]  (0.0ms) BEGIN [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 364], ["name", "switchman_test_shard_364"]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 363 LIMIT 1 [shard 362 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 46 AND "appendages"."id" = $1 LIMIT 1 [["id", 44]] [shard 363 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 34 AND "appendages"."id" = $1 LIMIT 1 [["id", 44]] [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 47], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 48], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 47]] [shard 363 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 47 AND "users"."id" = 49 LIMIT 1 [shard 363 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 47]] [shard 363 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 47 AND "users"."id" = 3640000000000036 LIMIT 1 [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 364 LIMIT 1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (15.9ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 46], ["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 52 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 54 [shard 363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 54]] [shard 363 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 54 [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 50]] [shard 363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 57 LIMIT 1 [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 51], ["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 3630000000000059], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 54], ["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["value", 2]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 59 AND "digits"."value" IS NULL [shard 363 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3630000000000059 AND "digits"."value" IS NULL [shard 364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 59]] [shard 363 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 59 AND "digits"."value" IS NULL [shard 363 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3630000000000059 AND "digits"."value" IS NULL [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 60], ["value", 1]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 3630000000000060], ["value", 2]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 60 [shard 363 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 60]] [shard 363 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 60 [shard 363 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 3630000000000060 [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 53], ["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["user_id", 3630000000000061], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:46 UTC +00:00], ["value", 2]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 61 AND "digits"."value" IS NULL [shard 363 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3630000000000061 AND "digits"."value" IS NULL [shard 364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [shard 363 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 61 AND "digits"."value" IS NULL [shard 363 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3630000000000061 AND "digits"."value" IS NULL [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", 62], ["value", 1]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", 3630000000000062], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 62 AND "appendages"."value" IS NULL [shard 363 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 3630000000000062 AND "appendages"."value" IS NULL [shard 364 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 62]] [shard 363 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 62 AND "appendages"."value" IS NULL [shard 363 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 3630000000000062 AND "appendages"."value" IS NULL [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", 63], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["value", 1]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", 3630000000000063], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 58], ["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["value", 2]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 63 [shard 363 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [shard 363 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 63 [shard 363 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3630000000000063 [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["value", 1]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", 3630000000000064], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 59], ["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["value", 2]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 64 AND (digits.value IS NOT NULL) [shard 363 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3630000000000064 AND (digits.value IS NOT NULL) [shard 364 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 64]] [shard 363 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 64 AND (digits.value IS NOT NULL) [shard 363 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3630000000000064 AND (digits.value IS NOT NULL) [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", 65], ["value", 1]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", 3630000000000065], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", 65], ["value", 2]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 65]] [shard 363 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 65 AND (appendages.value IS NOT NULL) [shard 363 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 3630000000000065 AND (appendages.value IS NOT NULL) [shard 364 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 65]] [shard 363 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 65 AND (appendages.value IS NOT NULL) [shard 363 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 3630000000000065 AND (appendages.value IS NOT NULL) [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", 3640000000000053]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 16]] [shard 362 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 53 LIMIT 1 [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["owner_id", 67], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["value", 1]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["owner_id", 3630000000000067], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["value", 2]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 67 AND "features"."owner_type" = 'User' [shard 363 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 67]] [shard 363 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 67 AND "features"."owner_type" = 'User' [shard 363 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 3630000000000067 AND "features"."owner_type" = 'User' [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["owner_id", 349], ["owner_type", "Appendage"], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["value", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 33]] [shard 362 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 349 LIMIT 1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master]  (0.2ms) UPDATE "features" SET "owner_id" = 3630000000000068, "owner_type" = 'User', "updated_at" = '2014-07-22 19:09:47.116189' WHERE "features"."id" = 33 [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master] Feature Load (0.1ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 33]] [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 69 LIMIT 1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 59]] [shard 363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 69 LIMIT 1 [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", 3640000000000057], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 60]] [shard 363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 57 LIMIT 1 [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", 3630000000000071], ["value", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", 3640000000000058], ["value", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", 705], ["value", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages"  [shard 362 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (705) [shard 362 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [shard 363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 364 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 71 [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", 72], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", 3630000000000072], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", 3630000000000072], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 61], ["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 62], ["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3640000000000062], ["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3640000000000063], ["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", 3640000000000059], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.0ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3630000000000062], ["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3640000000000064], ["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3640000000000065], ["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["value", nil]] [shard 363 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [shard 363 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (72) [shard 363 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (3630000000000072) [shard 364 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (61, 3640000000000062) [shard 363 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (62, 63) [shard 364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 364 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (59) [shard 364 master] Digit Load (0.1ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (64) [shard 364 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (3640000000000065) [shard 363 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", 3630000000000073], ["value", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 353], ["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["value", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", 3640000000000060], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3630000000000063], ["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["value", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits"  [shard 362 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (353) [shard 362 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (63) [shard 363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (73) [shard 363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [shard 364 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 73 [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.0ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", 74], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", 3630000000000074], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", 3640000000000061], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (74) [shard 363 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (74) [shard 363 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (3630000000000074) [shard 364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [shard 364 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (61) [shard 364 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 64 [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 362], ["name", nil]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 363], ["name", "switchman_test_shard_363"]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 364], ["name", "switchman_test_shard_364"]] [shard 362 master]  (0.2ms) COMMIT [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '29' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "29"], ["default", false], ["name", "public"]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_382 [shard 382 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 382 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 382 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 382 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 382 deploy]  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 382 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 382 deploy]  (0.3ms) COMMIT [shard 382 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 382 deploy]  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 382 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 382 deploy]  (0.3ms) COMMIT [shard 382 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 382 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 382 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 382 deploy]  (0.4ms) COMMIT [shard 382 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 382 deploy]  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 382 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 382 deploy]  (0.3ms) COMMIT [shard 382 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 382 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 382 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 382 deploy]  (0.4ms) COMMIT [shard 382 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 382 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 382 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 382 deploy]  (0.3ms) COMMIT [shard 382 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) BEGIN [shard 382 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 382 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 382 deploy]  (0.3ms) COMMIT [shard 382 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_382' WHERE "switchman_shards"."id" = 382 [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) BEGIN [shard 382 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 382 master]  (0.3ms) COMMIT [shard 382 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 382 master]  (4.9ms) DROP SCHEMA switchman_test_shard_382 CASCADE [shard 382 deploy]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 382 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 364 LIMIT 1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10364 LIMIT 1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 363 LIMIT 1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.0ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.0ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.0ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.0ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.0ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.0ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 383]] [shard 362 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 383 LIMIT 1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.0ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 384]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.0ms) ROLLBACK [shard 362 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.0ms) ROLLBACK [shard 362 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 362], ["name", nil]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (0.0ms) BEGIN [shard 362 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 363], ["name", "switchman_test_shard_363"]] [shard 362 master]  (0.3ms) COMMIT [shard 362 master]  (0.1ms) BEGIN [shard 362 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 364], ["name", "switchman_test_shard_364"]] [shard 362 master]  (0.2ms) COMMIT [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 363 LIMIT 1 [shard 362 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.0ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 363 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 364 master] SQL (1.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 363 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.1ms) BEGIN [shard 364 master]  (0.1ms) ROLLBACK [shard 364 master]  (0.1ms) ROLLBACK [shard 362 master]  (0.1ms) BEGIN [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 363]] [shard 362 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 364]] [shard 362 master]  (0.0ms) BEGIN [shard 364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 362 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:09:47 UTC +00:00]] [shard 362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 362 master]  (0.0ms) ROLLBACK [shard 364 master]  (0.0ms) ROLLBACK [shard 362 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 362 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 362 master]  (5.4ms) DROP SCHEMA switchman_test_shard_363 CASCADE [shard 363 deploy]  (0.0ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 363]]  (0.1ms) COMMIT  (6.8ms) DROP SCHEMA switchman_test_shard_364 CASCADE [shard 364 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 364]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.3ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (1.0ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_386 [shard 386 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 386 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 386 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 386 deploy] Migrating to CreateUsers (20130403132607)  (3.6ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 386 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 386 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 386 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 386 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 386 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 386 deploy] Migrating to CreateDigits (20131022202028)  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 386 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 386 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 386 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 386 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 386 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 386 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 386 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 386 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_386' WHERE "switchman_shards"."id" = 386 [shard 385 master]  (0.7ms) COMMIT [shard 385 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 385 master]  (0.2ms) COMMIT [shard 385 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_387 [shard 387 deploy]  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 387 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 387 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 387 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 387 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 387 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 387 deploy]  (0.3ms) COMMIT [shard 387 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 387 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 387 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 387 deploy]  (0.3ms) COMMIT [shard 387 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 387 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 387 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 387 deploy]  (0.3ms) COMMIT [shard 387 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 387 deploy]  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 387 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 387 deploy]  (0.3ms) COMMIT [shard 387 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 387 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 387 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 387 deploy]  (0.3ms) COMMIT [shard 387 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 387 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 387 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 387 deploy]  (0.2ms) COMMIT [shard 387 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 387 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 387 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 387 deploy]  (0.3ms) COMMIT [shard 387 deploy]  (0.1ms) BEGIN [shard 385 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_387' WHERE "switchman_shards"."id" = 387 [shard 385 master]  (0.3ms) COMMIT [shard 385 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.1ms) BEGIN [shard 385 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master]  (0.0ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 385], ["name", nil]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 386], ["name", "switchman_test_shard_386"]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 387], ["name", "switchman_test_shard_387"]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '7' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", "public"]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_388 [shard 388 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 388 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 388 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 388 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 388 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 388 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 388 deploy]  (0.3ms) COMMIT [shard 388 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 388 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 388 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 388 deploy]  (0.3ms) COMMIT [shard 388 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 388 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 388 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 388 deploy]  (0.3ms) COMMIT [shard 388 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 388 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 388 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 388 deploy]  (0.3ms) COMMIT [shard 388 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 388 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 388 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 388 deploy]  (0.3ms) COMMIT [shard 388 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 388 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 388 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 388 deploy]  (0.2ms) COMMIT [shard 388 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 388 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 388 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 388 deploy]  (0.3ms) COMMIT [shard 388 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_388' WHERE "switchman_shards"."id" = 388 [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) BEGIN [shard 388 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00]] [shard 388 master]  (0.3ms) COMMIT [shard 388 master]  (4.9ms) DROP SCHEMA switchman_test_shard_388 CASCADE [shard 388 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 388]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '8' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.0ms) select sqlite_version(*) [shard 389 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 389 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 389 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 389 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 389 deploy]  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 389 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 389 deploy]  (0.7ms) commit transaction [shard 389 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 389 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 389 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 389 deploy]  (0.6ms) commit transaction [shard 389 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 389 deploy]  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 389 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 389 deploy]  (0.6ms) commit transaction [shard 389 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 389 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 389 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 389 deploy]  (0.6ms) commit transaction [shard 389 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 389 deploy]  (0.3ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 389 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 389 deploy]  (0.7ms) commit transaction [shard 389 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 389 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 389 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 389 deploy]  (0.5ms) commit transaction [shard 389 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 389 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 389 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 389 deploy]  (0.7ms) commit transaction [shard 389 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_389.sqlite3' WHERE "switchman_shards"."id" = 389 [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.0ms) begin transaction [shard 389 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00]] [shard 389 master]  (0.8ms) commit transaction [shard 389 master] Drop failed: No such file or directory @ unlink_internal - db/shard_389.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 389]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 385 master]  (0.1ms) CREATE SCHEMA switchman_test_shard_390 [shard 390 deploy]  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 390 deploy]  (14.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 390 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 390 deploy] Migrating to CreateUsers (20130403132607)  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 390 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 390 deploy] Migrating to CreateAppendages (20130411202442)  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 390 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 390 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 390 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 390 deploy] Migrating to CreateDigits (20131022202028)  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 390 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 390 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 390 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 390 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 390 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 390 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 390 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 390 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_390' WHERE "switchman_shards"."id" = 390 [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 390 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00]] [shard 390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 390 master]  (2.8ms) DROP SCHEMA switchman_test_shard_390 CASCADE [shard 390 deploy]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 390]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (2.0ms) ROLLBACK [shard 385 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.1ms) BEGIN [shard 385 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master]  (0.0ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master]  (0.0ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 385], ["name", nil]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 386], ["name", "switchman_test_shard_386"]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master]  (0.0ms) BEGIN [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 387], ["name", "switchman_test_shard_387"]] [shard 385 master]  (0.2ms) COMMIT [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) ROLLBACK [shard 387 master]  (0.0ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 386 LIMIT 1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 391]] [shard 385 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 391 LIMIT 1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 392]] [shard 385 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.0ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '9' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", "public"]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_393 [shard 393 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 393 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 393 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 393 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 393 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 393 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 393 deploy]  (0.3ms) COMMIT [shard 393 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 393 deploy]  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 393 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 393 deploy]  (0.3ms) COMMIT [shard 393 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 393 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 393 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 393 deploy]  (0.3ms) COMMIT [shard 393 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 393 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 393 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 393 deploy]  (0.3ms) COMMIT [shard 393 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 393 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 393 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 393 deploy]  (0.4ms) COMMIT [shard 393 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 393 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 393 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 393 deploy]  (0.2ms) COMMIT [shard 393 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 393 deploy]  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 393 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 393 deploy]  (0.3ms) COMMIT [shard 393 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_393' WHERE "switchman_shards"."id" = 393 [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) BEGIN [shard 393 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00]] [shard 393 master]  (0.3ms) COMMIT [shard 393 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 393 master]  (4.9ms) DROP SCHEMA switchman_test_shard_393 CASCADE [shard 393 deploy]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 393 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 387 master]  (0.2ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10387 LIMIT 1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 387 LIMIT 1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) ROLLBACK [shard 387 master]  (0.0ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.2ms) ROLLBACK [shard 385 master] SQL (15.9ms) DELETE FROM "switchman_shards" [shard 385 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 385], ["name", nil]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 386], ["name", "switchman_test_shard_386"]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 387], ["name", "switchman_test_shard_387"]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.2ms) BEGIN [shard 385 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master] SQL (13.4ms) DELETE FROM "switchman_shards" [shard 385 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 385], ["name", nil]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 386], ["name", "switchman_test_shard_386"]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 387], ["name", "switchman_test_shard_387"]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 385], ["name", nil]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 386], ["name", "switchman_test_shard_386"]] [shard 385 master]  (0.2ms) COMMIT [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 387], ["name", "switchman_test_shard_387"]] [shard 385 master]  (0.2ms) COMMIT [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 385], ["name", nil]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.0ms) BEGIN [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 386], ["name", "switchman_test_shard_386"]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 387], ["name", "switchman_test_shard_387"]] [shard 385 master]  (0.2ms) COMMIT [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.0ms) BEGIN [shard 385 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 385 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master]  (0.0ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 385], ["name", nil]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.0ms) BEGIN [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 386], ["name", "switchman_test_shard_386"]] [shard 385 master]  (0.2ms) COMMIT [shard 385 master]  (0.0ms) BEGIN [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 387], ["name", "switchman_test_shard_387"]] [shard 385 master]  (0.2ms) COMMIT [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master]  (0.4ms) SELECT COUNT(*) FROM "users"  [shard 387 master]  (0.1ms) SAVEPOINT active_record_2 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 387 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 385], ["name", nil]] [shard 385 master]  (0.2ms) COMMIT [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 386], ["name", "switchman_test_shard_386"]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 387], ["name", "switchman_test_shard_387"]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 386 LIMIT 1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (16.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 385], ["name", nil]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 386], ["name", "switchman_test_shard_386"]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 387], ["name", "switchman_test_shard_387"]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 386 LIMIT 1 [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 387 LIMIT 1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00], ["owner_id", 712], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:10:33 UTC +00:00], ["value", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master] Feature Load (0.3ms) SELECT owner_id FROM "features" WHERE "features"."id" = 34 LIMIT 1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master] SQL (15.5ms) DELETE FROM "switchman_shards" [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.1ms) BEGIN [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", "non_existent_shard"]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.4ms) SELECT COUNT(*) FROM "users"  [shard 398 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (1.1ms) SELECT COUNT(*) FROM "users" [shard 399 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "17"], ["default", false], ["name", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "18"], ["default", false], ["name", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "19"], ["default", false], ["name", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "20"], ["default", false], ["name", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 385], ["name", nil]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 386], ["name", "switchman_test_shard_386"]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 387], ["name", "switchman_test_shard_387"]] [shard 385 master]  (0.2ms) COMMIT [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 385], ["name", nil]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.0ms) BEGIN [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 386], ["name", "switchman_test_shard_386"]] [shard 385 master]  (0.2ms) COMMIT [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 387], ["name", "switchman_test_shard_387"]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 4 LIMIT 1 [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 385 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 385 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 386 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 386 LIMIT 1 [shard 385 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 6 LIMIT 1 [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (7) LIMIT 1 [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 8]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3860000000000008 LIMIT 1 [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 9]] [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 385], ["name", nil]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 386], ["name", "switchman_test_shard_386"]] [shard 385 master]  (0.2ms) COMMIT [shard 385 master]  (0.0ms) BEGIN [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 387], ["name", "switchman_test_shard_387"]] [shard 385 master]  (0.2ms) COMMIT [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:34 UTC +00:00]] [shard 386 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.0ms) ROLLBACK [shard 387 master]  (0.0ms) ROLLBACK [shard 386 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 385], ["name", nil]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.0ms) BEGIN [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 386], ["name", "switchman_test_shard_386"]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 387], ["name", "switchman_test_shard_387"]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 11], ["value", 1]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 11], ["value", 2]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 4], ["value", 3]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 4], ["value", 4]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 4], ["value", 5]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 11 [shard 386 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 386 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 4 [shard 387 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 387 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 386 LIMIT 1 [shard 385 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 387 LIMIT 1 [shard 385 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (2, 3) [shard 386 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (2, 3, 4) [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 12], ["value", 1]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 12], ["value", 2]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 5], ["value", 3]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 5], ["value", 4]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 5], ["value", 5]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 12 [shard 386 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 386 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 5 [shard 387 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 387 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (4, 5) [shard 386 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (5, 6, 7) [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 13], ["value", 1]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 13], ["value", 2]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 6], ["value", 3]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 6], ["value", 4]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 6], ["value", 5]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 13 [shard 386 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 386 master]  (0.5ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 6 [shard 387 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 387 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (6, 7) [shard 386 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (8, 9, 10) [shard 387 master]  (0.2ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 14], ["value", 1]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 14], ["value", 2]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 7], ["value", 3]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 7], ["value", 4]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 7], ["value", 5]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 14 [shard 386 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 386 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 7 [shard 387 master]  (0.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 387 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (8, 9) [shard 386 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (11, 12, 13) [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 15], ["value", 1]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 15], ["value", 2]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 8], ["value", 3]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 8], ["value", 4]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 8], ["value", 5]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 15 [shard 386 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 386 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 8 [shard 387 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 387 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (10, 11) [shard 386 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (14, 15, 16) [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 12 [shard 386 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 17 [shard 387 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 12 [shard 386 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 17 [shard 387 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 12 [shard 386 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 17 [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (17) [shard 386 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (10) [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 14 [shard 386 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 387 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 14 [shard 386 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 387 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 14 [shard 386 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 19], ["value", 1]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 3870000000000012], ["value", 3]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 3860000000000019], ["value", 2]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 12], ["value", 4]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 12], ["value", 5]] [shard 387 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SHOW max_identifier_length [shard 386 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 386 master]  (0.2ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.0ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 21], ["value", 1]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 3870000000000013], ["value", 3]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 3860000000000021], ["value", 2]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 13], ["value", 4]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 13], ["value", 5]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 386 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 387 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 386 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 387 master]  (0.1ms) SHOW max_identifier_length [shard 387 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 386 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 387 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 386 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 386 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (13) [shard 387 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 387 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (13) [shard 387 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 22], ["value", 1]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 3870000000000014], ["value", 3]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 3860000000000022], ["value", 2]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 14], ["value", 4]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 14], ["value", 5]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 386 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 387 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 386 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 387 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 386 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 387 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 386 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 386 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (14) [shard 387 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 387 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (14) [shard 387 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 23], ["value", 1]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 3870000000000015], ["value", 3]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 3860000000000023], ["value", 2]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 15], ["value", 4]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 15], ["value", 5]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 386 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 387 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 386 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 387 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 386 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 387 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 386 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 386 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (15) [shard 387 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 387 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (15) [shard 387 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 24], ["value", 1]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 3870000000000016], ["value", 3]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 3860000000000024], ["value", 2]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 16], ["value", 4]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 16], ["value", 5]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 386 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 387 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 386 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 387 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 386 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 387 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 386 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 386 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (16) [shard 387 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 387 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (16) [shard 387 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 25], ["value", 1]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 3870000000000017], ["value", 3]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 3860000000000025], ["value", 2]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 17], ["value", 4]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 17], ["value", 5]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 386 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 387 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 386 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 387 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 386 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 387 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 386 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 386 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [shard 387 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 387 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [shard 387 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 385], ["name", nil]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 386], ["name", "switchman_test_shard_386"]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master]  (0.0ms) BEGIN [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 387], ["name", "switchman_test_shard_387"]] [shard 385 master]  (0.2ms) COMMIT [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 386 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 385 master] SQL (0.1ms) DELETE FROM "users" [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 385 master] SQL (0.1ms) DELETE FROM "users" [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 385 master] SQL (1.0ms) DELETE FROM "users" [shard 385 master] SQL (0.1ms) DELETE FROM "users" [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.4ms) COMMIT [shard 385 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 385 master] SQL (0.3ms) DELETE FROM "users" [shard 385 master] SQL (0.1ms) DELETE FROM "users" [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.2ms) COMMIT [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.2ms) COMMIT [shard 385 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 719]] [shard 385 master] CACHE (0.0ms) 385::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 719]] CACHE (0.0ms) 385::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 719]]  (0.1ms) BEGIN [shard 385 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-07-22 19:10:34.472878' WHERE "users"."id" = 719 [shard 385 master]  (0.2ms) COMMIT [shard 385 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 719]] [shard 385 master] CACHE (0.0ms) 385::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 719]] SQL (0.3ms) DELETE FROM "users" [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.4ms) COMMIT [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master] User Load (0.3ms) SELECT "users".* FROM "users" FOR UPDATE [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 385 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:10:34.525492' [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 385 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:10:34.530633' [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 385 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:10:34.534382' [shard 385 master] SQL (0.3ms) DELETE FROM "users" [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 385 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:10:34.538595' [shard 385 master] SQL (0.4ms) DELETE FROM "users" [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 385], ["name", nil]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.0ms) BEGIN [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 386], ["name", "switchman_test_shard_386"]] [shard 385 master]  (0.2ms) COMMIT [shard 385 master]  (0.0ms) BEGIN [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 387], ["name", "switchman_test_shard_387"]] [shard 385 master]  (0.2ms) COMMIT [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 728], ["value", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master]  (0.0ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 729], ["value", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 729], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 730], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 730]] [shard 385 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 729 LIMIT 1 [shard 385 master] User Load (0.4ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 729 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.2ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 732], ["value", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 386 LIMIT 1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 733], ["value", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 31], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 734], ["value", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 735], ["value", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 736], ["value", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 737], ["value", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 25], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 738], ["value", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 26], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 739], ["value", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 27], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 740], ["value", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master]  (0.0ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 741], ["value", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 742], ["value", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 743], ["value", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 31], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 744], ["value", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 745], ["value", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 385], ["name", nil]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 386], ["name", "switchman_test_shard_386"]] [shard 385 master]  (0.2ms) COMMIT [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 387], ["name", "switchman_test_shard_387"]] [shard 385 master]  (0.2ms) COMMIT [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 17]] [shard 385 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 17]] [shard 385 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 17 LIMIT 1 [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.0ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 385], ["name", nil]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.0ms) BEGIN [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 386], ["name", "switchman_test_shard_386"]] [shard 385 master]  (0.2ms) COMMIT [shard 385 master]  (0.0ms) BEGIN [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 387], ["name", "switchman_test_shard_387"]] [shard 385 master]  (0.2ms) COMMIT [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (385, 386) AND (id IN (386,387)) [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.0ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.1ms) BEGIN [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "21"], ["default", false], ["name", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "21"], ["default", false], ["name", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.0ms) BEGIN [shard 385 master]  (0.0ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 385], ["name", nil]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 386], ["name", "switchman_test_shard_386"]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 387], ["name", "switchman_test_shard_387"]] [shard 385 master]  (0.2ms) COMMIT [shard 385 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 44 [shard 386 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 746]] [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 386 LIMIT 1 [shard 385 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 44]] [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (747) [shard 385 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (45) [shard 386 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 747]] [shard 385 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 45]] [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 46 LIMIT 1 [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (749) [shard 385 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (47) [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 385], ["name", nil]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 386], ["name", "switchman_test_shard_386"]] [shard 385 master]  (0.2ms) COMMIT [shard 385 master]  (0.1ms) BEGIN [shard 385 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 387], ["name", "switchman_test_shard_387"]] [shard 385 master]  (0.3ms) COMMIT [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 51 [shard 386 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 386 LIMIT 1 [shard 385 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 51]] [shard 386 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 51 [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.3ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 53 AND "appendages"."id" = $1 LIMIT 1 [["id", 46]] [shard 386 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 38 AND "appendages"."id" = $1 LIMIT 1 [["id", 46]] [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 387 LIMIT 1 [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master] SQL (14.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 49], ["created_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:34 UTC +00:00], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master] Digit Load (0.6ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 56 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 57], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 58], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 57]] [shard 386 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 57 AND "users"."id" = 59 LIMIT 1 [shard 386 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 57]] [shard 386 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 57 AND "users"."id" = 3870000000000043 LIMIT 1 [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 51]] [shard 386 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 61 LIMIT 1 [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 63], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 52], ["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 52], ["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["value", 1]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 3860000000000063], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["value", 2]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 63 AND (digits.value IS NOT NULL) [shard 386 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3860000000000063 AND (digits.value IS NOT NULL) [shard 387 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [shard 386 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 63 AND (digits.value IS NOT NULL) [shard 386 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3860000000000063 AND (digits.value IS NOT NULL) [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 53], ["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["value", 1]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 3860000000000064], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["value", 2]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 64 [shard 386 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 64]] [shard 386 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 64 [shard 386 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3860000000000064 [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.0ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 65], ["value", 1]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.0ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 3860000000000065], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 65 AND "appendages"."value" IS NULL [shard 386 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 3860000000000065 AND "appendages"."value" IS NULL [shard 387 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 65]] [shard 386 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 65 AND "appendages"."value" IS NULL [shard 386 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 3860000000000065 AND "appendages"."value" IS NULL [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.0ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 66], ["value", 1]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 3860000000000066], ["value", 2]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 66 [shard 386 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 66]] [shard 386 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 66 [shard 386 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 3860000000000066 [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.0ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 67], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 3860000000000067], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 59], ["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["value", 2]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 67 AND "digits"."value" IS NULL [shard 386 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3860000000000067 AND "digits"."value" IS NULL [shard 387 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 67]] [shard 386 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 67 AND "digits"."value" IS NULL [shard 386 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3860000000000067 AND "digits"."value" IS NULL [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 68], ["value", 1]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 3860000000000068], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 68], ["value", 2]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 68]] [shard 386 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 68 AND (appendages.value IS NOT NULL) [shard 386 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 3860000000000068 AND (appendages.value IS NOT NULL) [shard 387 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 68]] [shard 386 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 68 AND (appendages.value IS NOT NULL) [shard 386 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 3860000000000068 AND (appendages.value IS NOT NULL) [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 59], ["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 3860000000000069], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 61], ["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["value", 2]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 69 AND "digits"."value" IS NULL [shard 386 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3860000000000069 AND "digits"."value" IS NULL [shard 387 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 69]] [shard 386 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 69 AND "digits"."value" IS NULL [shard 386 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3860000000000069 AND "digits"."value" IS NULL [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.3ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["owner_id", 371], ["owner_type", "Appendage"], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["value", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 35]] [shard 385 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 371 LIMIT 1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master]  (0.2ms) UPDATE "features" SET "owner_id" = 3860000000000070, "owner_type" = 'User', "updated_at" = '2014-07-22 19:10:35.190936' WHERE "features"."id" = 35 [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 35]] [shard 385 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.8ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["owner_id", 71], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["value", 1]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["owner_id", 3860000000000071], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["value", 2]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 71 AND "features"."owner_type" = 'User' [shard 386 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 71]] [shard 386 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 71 AND "features"."owner_type" = 'User' [shard 386 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 3860000000000071 AND "features"."owner_type" = 'User' [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 3870000000000056], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 60]] [shard 386 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 56 LIMIT 1 [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 73 LIMIT 1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 73], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 61]] [shard 386 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 73 LIMIT 1 [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 74], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 3860000000000074], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 3860000000000074], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 62], ["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 63], ["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3870000000000063], ["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3870000000000064], ["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 3870000000000058], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.0ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3860000000000063], ["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3870000000000065], ["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3870000000000066], ["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (74) [shard 386 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (74) [shard 386 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (3860000000000074) [shard 387 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (62, 3870000000000063) [shard 386 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (63, 64) [shard 387 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 387 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (58) [shard 387 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (65) [shard 387 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (3870000000000066) [shard 386 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.2ms) ROLLBACK [shard 386 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 3860000000000075], ["value", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 372], ["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["value", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 3870000000000059], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3860000000000064], ["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["value", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits"  [shard 385 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (372) [shard 385 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (64) [shard 386 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) [shard 386 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 387 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 75 [shard 386 master]  (0.2ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.1ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 76], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 3860000000000076], ["value", nil]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 3870000000000060], ["value", nil]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (76) [shard 386 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (76) [shard 386 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (3860000000000076) [shard 387 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [shard 387 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (60) [shard 387 master] SQL (0.1ms) DELETE FROM "appendages" WHERE "appendages"."id" = 65 [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.0ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.1ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 3860000000000077], ["value", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 3870000000000061], ["value", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 751], ["value", nil]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 385 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (751) [shard 385 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (77) [shard 386 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [shard 387 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 77 [shard 386 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 386 master]  (0.1ms) BEGIN [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 386]] [shard 385 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 387]] [shard 385 master]  (0.0ms) BEGIN [shard 387 master]  (0.0ms) SAVEPOINT active_record_1 [shard 386 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 386 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 386 master]  (0.0ms) SAVEPOINT active_record_1 [shard 387 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00]] [shard 387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 387 master]  (0.1ms) SAVEPOINT active_record_1 [shard 385 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:35 UTC +00:00], ["user_id", 3870000000000062]] [shard 385 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 385 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 17]] [shard 385 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 62 LIMIT 1 [shard 387 master]  (0.1ms) ROLLBACK [shard 387 master]  (0.1ms) ROLLBACK [shard 385 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 385 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 385 master]  (5.1ms) DROP SCHEMA switchman_test_shard_386 CASCADE [shard 386 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 386]]  (0.1ms) COMMIT  (5.3ms) DROP SCHEMA switchman_test_shard_387 CASCADE [shard 387 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 387]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.2ms) CREATE SCHEMA switchman_test_shard_409 [shard 409 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 409 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 409 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 409 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 409 deploy]  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 409 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 409 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 409 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 409 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 409 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 409 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 409 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 409 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 409 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 409 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 409 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 409 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 409 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_409' WHERE "switchman_shards"."id" = 409 [shard 408 master]  (0.5ms) COMMIT [shard 408 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_410 [shard 410 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 410 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 410 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 410 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 410 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 410 deploy]  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 410 deploy]  (0.3ms) COMMIT [shard 410 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 410 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 410 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 410 deploy]  (0.4ms) COMMIT [shard 410 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 410 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 410 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 410 deploy]  (0.4ms) COMMIT [shard 410 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 410 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 410 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 410 deploy]  (0.3ms) COMMIT [shard 410 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 410 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 410 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 410 deploy]  (0.3ms) COMMIT [shard 410 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 410 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 410 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 410 deploy]  (0.3ms) COMMIT [shard 410 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) BEGIN [shard 410 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 410 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 410 deploy]  (0.3ms) COMMIT [shard 410 deploy]  (0.1ms) BEGIN [shard 408 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_410' WHERE "switchman_shards"."id" = 410 [shard 408 master]  (0.4ms) COMMIT [shard 408 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 408 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master]  (0.0ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 408], ["name", nil]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 409], ["name", "switchman_test_shard_409"]] [shard 408 master]  (0.2ms) COMMIT [shard 408 master]  (0.0ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 410], ["name", "switchman_test_shard_410"]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 408], ["name", nil]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.0ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 409], ["name", "switchman_test_shard_409"]] [shard 408 master]  (0.2ms) COMMIT [shard 408 master]  (0.0ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 410], ["name", "switchman_test_shard_410"]] [shard 408 master]  (0.2ms) COMMIT [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (1.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 410 master]  (0.1ms) SAVEPOINT active_record_2 [shard 410 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 410 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 408], ["name", nil]] [shard 408 master]  (0.2ms) COMMIT [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 409], ["name", "switchman_test_shard_409"]] [shard 408 master]  (0.2ms) COMMIT [shard 408 master]  (0.0ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 410], ["name", "switchman_test_shard_410"]] [shard 408 master]  (0.2ms) COMMIT [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (408, 409) AND (id IN (409,410)) [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 408], ["name", nil]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.0ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 409], ["name", "switchman_test_shard_409"]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master]  (0.0ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 410], ["name", "switchman_test_shard_410"]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 409 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 408 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:10:39.276468' [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 408 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:10:39.281593' [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 408 master] SQL (1.1ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:10:39.285540' [shard 408 master] SQL (0.3ms) DELETE FROM "users" [shard 408 master]  (0.0ms) BEGIN [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 408 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:10:39.290539' [shard 408 master] SQL (0.3ms) DELETE FROM "users" [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 408 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.0ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.0ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 408 master] SQL (0.1ms) DELETE FROM "users" [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 408 master] SQL (0.2ms) DELETE FROM "users" [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 408 master]  (0.4ms) COMMIT [shard 408 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 408 master] SQL (0.3ms) DELETE FROM "users" [shard 408 master] SQL (0.1ms) DELETE FROM "users" [shard 408 master]  (0.0ms) BEGIN [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 408 master] SQL (0.3ms) DELETE FROM "users" [shard 408 master] SQL (0.1ms) DELETE FROM "users" [shard 408 master]  (0.0ms) BEGIN [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 408 master]  (0.2ms) COMMIT [shard 408 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 766]] [shard 408 master] CACHE (0.0ms) 408::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 766]] CACHE (0.0ms) 408::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 766]]  (0.1ms) BEGIN [shard 408 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-07-22 19:10:39.381916' WHERE "users"."id" = 766 [shard 408 master]  (0.3ms) COMMIT [shard 408 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 766]] [shard 408 master] CACHE (0.0ms) 408::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 766]] SQL (0.3ms) DELETE FROM "users" [shard 408 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 408], ["name", nil]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.0ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 409], ["name", "switchman_test_shard_409"]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master]  (0.0ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 410], ["name", "switchman_test_shard_410"]] [shard 408 master]  (0.2ms) COMMIT [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.0ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.0ms) ROLLBACK [shard 408 master] SQL (10.2ms) DELETE FROM "switchman_shards" [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 408], ["name", nil]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 409], ["name", "switchman_test_shard_409"]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 410], ["name", "switchman_test_shard_410"]] [shard 408 master]  (0.2ms) COMMIT [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 3 [shard 409 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 409 LIMIT 1 [shard 408 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 3]] [shard 409 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 3 [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 4], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 5], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 4]] [shard 409 master]  (0.1ms) SHOW max_identifier_length [shard 409 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 4 AND "users"."id" = 6 LIMIT 1 [shard 409 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 4]] [shard 409 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 4 AND "users"."id" = 4100000000000005 LIMIT 1 [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 9 AND "appendages"."id" = $1 LIMIT 1 [["id", 2]] [shard 409 master] Appendage Load (0.6ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 8 AND "appendages"."id" = $1 LIMIT 1 [["id", 2]] [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 3]] [shard 409 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 10 LIMIT 1 [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.2ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4], ["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 11 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 410 LIMIT 1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 4090000000000017], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2], ["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["value", 2]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17 AND "digits"."value" IS NULL [shard 409 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4090000000000017 AND "digits"."value" IS NULL [shard 410 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 409 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17 AND "digits"."value" IS NULL [shard 409 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4090000000000017 AND "digits"."value" IS NULL [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 18], ["value", 1]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 4090000000000018], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 18], ["value", 2]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 409 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 18 AND (appendages.value IS NOT NULL) [shard 409 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 4090000000000018 AND (appendages.value IS NOT NULL) [shard 410 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 409 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 18 AND (appendages.value IS NOT NULL) [shard 409 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 4090000000000018 AND (appendages.value IS NOT NULL) [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11], ["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 4090000000000019], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4], ["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["value", 2]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 19 AND "digits"."value" IS NULL [shard 409 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4090000000000019 AND "digits"."value" IS NULL [shard 410 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [shard 409 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 19 AND "digits"."value" IS NULL [shard 409 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4090000000000019 AND "digits"."value" IS NULL [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12], ["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12], ["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["value", 1]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 4090000000000020], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5], ["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["value", 2]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 20 AND (digits.value IS NOT NULL) [shard 409 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4090000000000020 AND (digits.value IS NOT NULL) [shard 410 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 409 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 20 AND (digits.value IS NOT NULL) [shard 409 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4090000000000020 AND (digits.value IS NOT NULL) [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 13], ["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["value", 1]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 4090000000000021], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6], ["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["value", 2]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 21 [shard 409 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 409 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 21 [shard 409 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4090000000000021 [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 22], ["value", 1]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 4090000000000022], ["value", 2]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 22 [shard 409 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 22]] [shard 409 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 22 [shard 409 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 4090000000000022 [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 23], ["value", 1]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 4090000000000023], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 23 AND "appendages"."value" IS NULL [shard 409 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 4090000000000023 AND "appendages"."value" IS NULL [shard 410 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 23]] [shard 409 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 23 AND "appendages"."value" IS NULL [shard 409 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 4090000000000023 AND "appendages"."value" IS NULL [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 4100000000000023]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 18]] [shard 408 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 23 LIMIT 1 [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 4100000000000024], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 16]] [shard 409 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 24 LIMIT 1 [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 26 LIMIT 1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 26], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 17]] [shard 409 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 26 LIMIT 1 [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 4090000000000027], ["value", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 4100000000000026], ["value", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 768], ["value", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages"  [shard 408 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (768) [shard 408 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 409 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 410 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 27 [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 4090000000000028], ["value", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 379], ["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["value", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 4100000000000027], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4090000000000018], ["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["value", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits"  [shard 408 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (379) [shard 408 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (18) [shard 409 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 409 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 410 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 28 [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 4090000000000029], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 4100000000000028], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [shard 409 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (29) [shard 409 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (4090000000000029) [shard 410 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 410 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (28) [shard 410 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 19 [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 4090000000000030], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 4090000000000030], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 21], ["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11], ["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4100000000000011], ["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4100000000000012], ["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 4100000000000029], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4090000000000022], ["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4100000000000013], ["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4100000000000014], ["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [shard 409 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (30) [shard 409 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (4090000000000030) [shard 410 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (21, 4100000000000011) [shard 409 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (11, 12) [shard 410 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [shard 410 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (29) [shard 410 master] Digit Load (0.1ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (13) [shard 410 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (4100000000000014) [shard 409 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["owner_id", 380], ["owner_type", "Appendage"], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["value", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 36]] [shard 408 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 380 LIMIT 1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master]  (0.3ms) UPDATE "features" SET "owner_id" = 4090000000000031, "owner_type" = 'User', "updated_at" = '2014-07-22 19:10:39.936310' WHERE "features"."id" = 36 [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 36]] [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["owner_id", 32], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["value", 1]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["owner_id", 4090000000000032], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["value", 2]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 32 AND "features"."owner_type" = 'User' [shard 409 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 32]] [shard 409 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 32 AND "features"."owner_type" = 'User' [shard 409 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 4090000000000032 AND "features"."owner_type" = 'User' [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 408], ["name", nil]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 409], ["name", "switchman_test_shard_409"]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 410], ["name", "switchman_test_shard_410"]] [shard 408 master]  (0.2ms) COMMIT [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 408], ["name", nil]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.0ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 409], ["name", "switchman_test_shard_409"]] [shard 408 master]  (0.2ms) COMMIT [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 410], ["name", "switchman_test_shard_410"]] [shard 408 master]  (0.2ms) COMMIT [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:39 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 409 LIMIT 1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.0ms) ROLLBACK [shard 408 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.0ms) BEGIN [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", "non_existent_shard"]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 413 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.7ms) SELECT COUNT(*) FROM "users" [shard 414 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", nil]] [shard 408 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 408], ["name", nil]] [shard 408 master]  (0.4ms) COMMIT [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 409], ["name", "switchman_test_shard_409"]] [shard 408 master]  (0.2ms) COMMIT [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 410], ["name", "switchman_test_shard_410"]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 408], ["name", nil]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 409], ["name", "switchman_test_shard_409"]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 410], ["name", "switchman_test_shard_410"]] [shard 408 master]  (0.2ms) COMMIT [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 36 LIMIT 1 [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 409 LIMIT 1 [shard 408 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (772) [shard 408 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 38 [shard 409 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 773]] [shard 408 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 38]] [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (774) [shard 408 master] SQL (0.1ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (39) [shard 409 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 774]] [shard 408 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 39]] [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 408], ["name", nil]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 409], ["name", "switchman_test_shard_409"]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 410], ["name", "switchman_test_shard_410"]] [shard 408 master]  (0.2ms) COMMIT [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 776], ["value", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 777], ["value", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 778], ["value", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 779], ["value", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 780], ["value", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 781], ["value", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 409 LIMIT 1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 782], ["value", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 783], ["value", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 784], ["value", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 785], ["value", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 786], ["value", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 787], ["value", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 788], ["value", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 789], ["value", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 790], ["value", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 791], ["value", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 791], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 792], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 792]] [shard 408 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 791 LIMIT 1 [shard 408 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 791 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 408], ["name", nil]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 409], ["name", "switchman_test_shard_409"]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 410], ["name", "switchman_test_shard_410"]] [shard 408 master]  (0.2ms) COMMIT [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 409 LIMIT 1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.0ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.0ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 425]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 425 LIMIT 1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 426]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '14' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", "public"]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_427 [shard 427 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 427 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 427 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 427 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 427 deploy]  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 427 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 427 deploy]  (0.3ms) COMMIT [shard 427 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 427 deploy]  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 427 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 427 deploy]  (0.3ms) COMMIT [shard 427 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 427 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 427 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 427 deploy]  (0.3ms) COMMIT [shard 427 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 427 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 427 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 427 deploy]  (0.3ms) COMMIT [shard 427 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 427 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 427 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 427 deploy]  (0.3ms) COMMIT [shard 427 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 427 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 427 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 427 deploy]  (0.3ms) COMMIT [shard 427 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 427 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 427 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 427 deploy]  (0.4ms) COMMIT [shard 427 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_427' WHERE "switchman_shards"."id" = 427 [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) BEGIN [shard 427 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 427 master]  (0.3ms) COMMIT [shard 427 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 427 master]  (4.7ms) DROP SCHEMA switchman_test_shard_427 CASCADE [shard 427 deploy]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 427 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10410 LIMIT 1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 410 LIMIT 1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.0ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.0ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.0ms) ROLLBACK [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 408], ["name", nil]] [shard 408 master]  (0.2ms) COMMIT [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 409], ["name", "switchman_test_shard_409"]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master]  (0.0ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 410], ["name", "switchman_test_shard_410"]] [shard 408 master]  (0.2ms) COMMIT [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.0ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master] MirrorUser Load (0.4ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 18]] [shard 408 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 18]] [shard 408 master] MirrorUser Load (0.4ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 18 LIMIT 1 [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 408], ["name", nil]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.0ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 409], ["name", "switchman_test_shard_409"]] [shard 408 master]  (0.2ms) COMMIT [shard 408 master]  (0.0ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 410], ["name", "switchman_test_shard_410"]] [shard 408 master]  (0.2ms) COMMIT [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 409 LIMIT 1 [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 410 LIMIT 1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["owner_id", 795], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["value", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 37 LIMIT 1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master] SQL (15.4ms) DELETE FROM "switchman_shards" [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 408], ["name", nil]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 409], ["name", "switchman_test_shard_409"]] [shard 408 master]  (0.2ms) COMMIT [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 410], ["name", "switchman_test_shard_410"]] [shard 408 master]  (0.2ms) COMMIT [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 409 LIMIT 1 [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 410 LIMIT 1 [shard 408 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (57) [shard 409 master] SQL (0.3ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (48) [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 409 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 410 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 409 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 410 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 409 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 409 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 410 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 409 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 410 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 409 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 60], ["value", 1]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 60], ["value", 2]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 51], ["value", 3]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 51], ["value", 4]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 51], ["value", 5]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 60 [shard 409 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 409 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 51 [shard 410 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 410 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (43, 44) [shard 409 master]  (0.5ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (35, 36, 37) [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 61], ["value", 1]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 61], ["value", 2]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 52], ["value", 3]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 52], ["value", 4]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 52], ["value", 5]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 61 [shard 409 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 409 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 52 [shard 410 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 410 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (45, 46) [shard 409 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (38, 39, 40) [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 62], ["value", 1]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 62], ["value", 2]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 53], ["value", 3]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 53], ["value", 4]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 53], ["value", 5]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 62 [shard 409 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 409 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 53 [shard 410 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 410 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (47, 48) [shard 409 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (41, 42, 43) [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 63], ["value", 1]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 63], ["value", 2]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 54], ["value", 3]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 54], ["value", 4]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 54], ["value", 5]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 63 [shard 409 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 409 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 54 [shard 410 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 410 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (49, 50) [shard 409 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (44, 45, 46) [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 64], ["value", 1]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 64], ["value", 2]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 55], ["value", 3]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 55], ["value", 4]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 55], ["value", 5]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 64 [shard 409 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 409 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 55 [shard 410 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 410 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (51, 52) [shard 409 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (47, 48, 49) [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 65], ["value", 1]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 4100000000000056], ["value", 3]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 4090000000000065], ["value", 2]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 56], ["value", 4]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 56], ["value", 5]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 65], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 66], ["value", nil]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SHOW max_identifier_length [shard 409 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 67], ["value", 1]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 4100000000000057], ["value", 3]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 4090000000000067], ["value", 2]] [shard 410 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 57], ["value", 4]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 57], ["value", 5]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 409 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 410 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 409 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 410 master]  (0.1ms) SHOW max_identifier_length [shard 410 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 409 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 410 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 409 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 409 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 410 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 410 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 410 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 68], ["value", 1]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 4100000000000058], ["value", 3]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 4090000000000068], ["value", 2]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 58], ["value", 4]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 58], ["value", 5]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 409 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 410 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 409 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 410 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 409 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 410 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 409 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (68) [shard 409 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 410 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 410 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 410 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (68) [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 69], ["value", 1]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 4100000000000059], ["value", 3]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 4090000000000069], ["value", 2]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 59], ["value", 4]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 59], ["value", 5]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 409 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 410 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 409 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 410 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 409 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 410 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 409 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (69) [shard 409 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 410 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 410 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 410 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (69) [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 70], ["value", 1]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 4100000000000060], ["value", 3]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 4090000000000070], ["value", 2]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:40 UTC +00:00], ["user_id", 60], ["value", 4]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00], ["user_id", 60], ["value", 5]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 409 master]  (0.5ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 410 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 409 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 410 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 409 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 410 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 409 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [shard 409 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [shard 410 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 410 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [shard 410 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00], ["user_id", 71], ["value", 1]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00], ["user_id", 4100000000000061], ["value", 3]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00], ["user_id", 4090000000000071], ["value", 2]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00], ["user_id", 61], ["value", 4]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00], ["user_id", 61], ["value", 5]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 409 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 410 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 409 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 410 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 409 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 410 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 409 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [shard 409 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [shard 410 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 410 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [shard 410 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master]  (0.0ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 408], ["name", nil]] [shard 408 master]  (0.4ms) COMMIT [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 409], ["name", "switchman_test_shard_409"]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master]  (0.0ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 410], ["name", "switchman_test_shard_410"]] [shard 408 master]  (0.2ms) COMMIT [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master]  (0.0ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 408], ["name", nil]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.0ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 409], ["name", "switchman_test_shard_409"]] [shard 408 master]  (0.2ms) COMMIT [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 410], ["name", "switchman_test_shard_410"]] [shard 408 master]  (0.2ms) COMMIT [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '33' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "33"], ["default", false], ["name", nil]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.0ms) select sqlite_version(*) [shard 428 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 428 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 428 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 428 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 428 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 428 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 428 deploy]  (0.6ms) commit transaction [shard 428 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) begin transaction [shard 428 deploy]  (0.3ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 428 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 428 deploy]  (0.6ms) commit transaction [shard 428 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 428 deploy]  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 428 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 428 deploy]  (0.6ms) commit transaction [shard 428 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) begin transaction [shard 428 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 428 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 428 deploy]  (0.7ms) commit transaction [shard 428 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 428 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 428 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 428 deploy]  (0.7ms) commit transaction [shard 428 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 428 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 428 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 428 deploy]  (0.6ms) commit transaction [shard 428 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 428 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 428 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 428 deploy]  (0.8ms) commit transaction [shard 428 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_428.sqlite3' WHERE "switchman_shards"."id" = 428 [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) begin transaction [shard 428 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00]] [shard 428 master]  (0.7ms) commit transaction [shard 428 master] Drop failed: No such file or directory @ unlink_internal - db/shard_428.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 428]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.2ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '34' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "34"], ["default", false], ["name", "public"]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (15.5ms) CREATE SCHEMA switchman_test_shard_429 [shard 429 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 429 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 429 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 429 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 429 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 429 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 429 deploy]  (0.3ms) COMMIT [shard 429 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 429 deploy]  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 429 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 429 deploy]  (0.3ms) COMMIT [shard 429 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 429 deploy]  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 429 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 429 deploy]  (0.3ms) COMMIT [shard 429 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 429 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 429 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 429 deploy]  (0.2ms) COMMIT [shard 429 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 429 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 429 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 429 deploy]  (0.3ms) COMMIT [shard 429 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 429 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 429 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 429 deploy]  (0.2ms) COMMIT [shard 429 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 429 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 429 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 429 deploy]  (0.3ms) COMMIT [shard 429 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_429' WHERE "switchman_shards"."id" = 429 [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) BEGIN [shard 429 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00]] [shard 429 master]  (0.3ms) COMMIT [shard 429 master]  (4.9ms) DROP SCHEMA switchman_test_shard_429 CASCADE [shard 429 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 429]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 408 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_430 [shard 430 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 430 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 430 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 430 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 430 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 430 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 430 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 430 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 430 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 430 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 430 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 430 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 430 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 430 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 430 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 430 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 430 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 430 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_430' WHERE "switchman_shards"."id" = 430 [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) SAVEPOINT active_record_1 [shard 430 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00]] [shard 430 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 430 master]  (2.7ms) DROP SCHEMA switchman_test_shard_430 CASCADE [shard 430 deploy]  (0.0ms) SAVEPOINT active_record_1 [shard 408 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 430]] [shard 408 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 408 master]  (0.1ms) ROLLBACK [shard 410 master]  (2.3ms) ROLLBACK [shard 408 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master]  (0.1ms) ROLLBACK [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 408], ["name", nil]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 409], ["name", "switchman_test_shard_409"]] [shard 408 master]  (0.2ms) COMMIT [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 410], ["name", "switchman_test_shard_410"]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 409 LIMIT 1 [shard 408 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 72]] [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 73 LIMIT 1 [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (74) LIMIT 1 [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.1ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 75]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 4090000000000075 LIMIT 1 [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.1ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 76 LIMIT 1 [shard 409 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00]] [shard 409 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.1ms) SAVEPOINT active_record_1 [shard 410 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:41 UTC +00:00]] [shard 410 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 410 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 408 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 408 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 409 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 410 master]  (0.1ms) ROLLBACK [shard 410 master]  (0.1ms) ROLLBACK [shard 409 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.0ms) BEGIN [shard 408 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 408], ["name", nil]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 409], ["name", "switchman_test_shard_409"]] [shard 408 master]  (0.3ms) COMMIT [shard 408 master]  (0.1ms) BEGIN [shard 408 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 410], ["name", "switchman_test_shard_410"]] [shard 408 master]  (0.2ms) COMMIT [shard 408 master]  (0.1ms) BEGIN [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 409]] [shard 408 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 410]] [shard 408 master]  (0.0ms) BEGIN [shard 410 master]  (0.0ms) SAVEPOINT active_record_1 [shard 409 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:41 UTC +00:00]] [shard 409 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 409 master]  (0.0ms) ROLLBACK [shard 410 master]  (0.0ms) ROLLBACK [shard 409 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 408 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 408 master]  (4.4ms) DROP SCHEMA switchman_test_shard_409 CASCADE [shard 409 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 409]]  (0.1ms) COMMIT  (5.8ms) DROP SCHEMA switchman_test_shard_410 CASCADE [shard 410 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 410]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "non_existent_shard"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "users" does not exist LINE 5: WHERE a.attrelid = '"users"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.3ms) SELECT COUNT(*) FROM "users" [shard 432 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.3ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_440 [shard 440 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 440 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 440 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 440 deploy] Migrating to CreateUsers (20130403132607)  (2.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 440 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 440 deploy] Migrating to CreateAppendages (20130411202442)  (2.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 440 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 440 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 440 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 440 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 440 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 440 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 440 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 440 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 440 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 440 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 440 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 440 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_440' WHERE "switchman_shards"."id" = 440 [shard 439 master]  (0.7ms) COMMIT [shard 439 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '8' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", "public"]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_441 [shard 441 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 441 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 441 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 441 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 441 deploy]  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 441 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 441 deploy]  (0.3ms) COMMIT [shard 441 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 441 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 441 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 441 deploy]  (0.3ms) COMMIT [shard 441 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 441 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 441 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 441 deploy]  (0.3ms) COMMIT [shard 441 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 441 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 441 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 441 deploy]  (0.3ms) COMMIT [shard 441 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 441 deploy]  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 441 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 441 deploy]  (0.3ms) COMMIT [shard 441 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 441 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 441 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 441 deploy]  (0.3ms) COMMIT [shard 441 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 441 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 441 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 441 deploy]  (0.3ms) COMMIT [shard 441 deploy]  (0.1ms) BEGIN [shard 439 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_441' WHERE "switchman_shards"."id" = 441 [shard 439 master]  (0.2ms) COMMIT [shard 439 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 439], ["name", nil]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 440], ["name", "switchman_test_shard_440"]] [shard 439 master]  (0.2ms) COMMIT [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 441], ["name", "switchman_test_shard_441"]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 440 LIMIT 1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (15.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 439], ["name", nil]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 440], ["name", "switchman_test_shard_440"]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master]  (0.0ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 441], ["name", "switchman_test_shard_441"]] [shard 439 master]  (0.2ms) COMMIT [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 19]] [shard 439 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 19]] [shard 439 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 19 LIMIT 1 [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 439], ["name", nil]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 440], ["name", "switchman_test_shard_440"]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master]  (0.0ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 441], ["name", "switchman_test_shard_441"]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (439, 440) AND (id IN (440,441)) [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 439], ["name", nil]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 440], ["name", "switchman_test_shard_440"]] [shard 439 master]  (0.2ms) COMMIT [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 441], ["name", "switchman_test_shard_441"]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 798], ["value", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 799], ["value", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 799], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 800], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 800]] [shard 439 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 799 LIMIT 1 [shard 439 master]  (0.1ms) SHOW max_identifier_length [shard 439 master] User Load (0.4ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 799 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 802], ["value", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 803], ["value", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 440 LIMIT 1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 804], ["value", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 805], ["value", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 806], ["value", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 807], ["value", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master]  (0.0ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 808], ["value", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 809], ["value", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 810], ["value", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 811], ["value", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 812], ["value", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 813], ["value", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 814], ["value", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 815], ["value", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:45 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 439], ["name", nil]] [shard 439 master]  (0.2ms) COMMIT [shard 439 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 440], ["name", "switchman_test_shard_440"]] [shard 439 master]  (0.2ms) COMMIT [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 441], ["name", "switchman_test_shard_441"]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 439 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 439], ["name", nil]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 440], ["name", "switchman_test_shard_440"]] [shard 439 master]  (0.2ms) COMMIT [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 441], ["name", "switchman_test_shard_441"]] [shard 439 master]  (0.2ms) COMMIT [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 440 LIMIT 1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 444]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 444 LIMIT 1 [shard 439 master]  (0.2ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 445]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 439 master]  (0.0ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 439 master]  (0.0ms) ROLLBACK [shard 441 master]  (0.0ms) ROLLBACK [shard 439 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) ROLLBACK [shard 441 master]  (0.0ms) ROLLBACK [shard 439 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) ROLLBACK [shard 441 master]  (0.0ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10441 LIMIT 1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 441 LIMIT 1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '11' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", "public"]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_446 [shard 446 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 446 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 446 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 446 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 446 deploy]  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 446 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 446 deploy]  (0.3ms) COMMIT [shard 446 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 446 deploy]  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 446 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 446 deploy]  (0.3ms) COMMIT [shard 446 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 446 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 446 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 446 deploy]  (0.3ms) COMMIT [shard 446 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 446 deploy]  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 446 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 446 deploy]  (0.3ms) COMMIT [shard 446 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 446 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 446 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 446 deploy]  (0.3ms) COMMIT [shard 446 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 446 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 446 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 446 deploy]  (0.2ms) COMMIT [shard 446 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 446 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 446 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 446 deploy]  (0.3ms) COMMIT [shard 446 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_446' WHERE "switchman_shards"."id" = 446 [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) BEGIN [shard 446 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 446 master]  (0.3ms) COMMIT [shard 446 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 446 master]  (4.8ms) DROP SCHEMA switchman_test_shard_446 CASCADE [shard 446 deploy]  (0.4ms) SELECT COUNT(*) FROM "users"  [shard 446 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.2ms) BEGIN [shard 439 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 439], ["name", nil]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 440], ["name", "switchman_test_shard_440"]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 441], ["name", "switchman_test_shard_441"]] [shard 439 master]  (0.2ms) COMMIT [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 20], ["value", 1]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 441 LIMIT 1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 4410000000000017], ["value", 3]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 440 LIMIT 1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 4400000000000020], ["value", 2]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 17], ["value", 4]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 17], ["value", 5]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SHOW max_identifier_length [shard 439 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 440 master]  (0.5ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 441 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 440 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 441 master]  (0.1ms) SHOW max_identifier_length [shard 441 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 440 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 441 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 440 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 440 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [shard 441 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 441 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [shard 441 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 21], ["value", 1]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 4410000000000018], ["value", 3]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 4400000000000021], ["value", 2]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 18], ["value", 4]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 18], ["value", 5]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 440 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 441 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 440 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 441 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 440 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 441 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 440 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 440 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 441 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 441 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 441 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 22], ["value", 1]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 4410000000000019], ["value", 3]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 4400000000000022], ["value", 2]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 19], ["value", 4]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 19], ["value", 5]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 440 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 441 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 440 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 441 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 440 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 441 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 440 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 440 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 441 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 441 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 441 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 23], ["value", 1]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 4410000000000020], ["value", 3]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 4400000000000023], ["value", 2]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 20], ["value", 4]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 20], ["value", 5]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 25], ["value", 1]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 4410000000000021], ["value", 3]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 4400000000000025], ["value", 2]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 21], ["value", 4]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 21], ["value", 5]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 440 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 441 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 440 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 441 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 440 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 441 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 440 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 440 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 441 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 441 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 441 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 26], ["value", 1]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 4410000000000022], ["value", 3]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 4400000000000026], ["value", 2]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 22], ["value", 4]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 22], ["value", 5]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 440 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 441 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 440 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 441 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 440 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 441 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 440 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 440 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 441 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 441 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 441 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 27], ["value", 1]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 27], ["value", 2]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 23], ["value", 3]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 23], ["value", 4]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 23], ["value", 5]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 27 [shard 440 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 440 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 23 [shard 441 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 441 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (32, 33) [shard 440 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (36, 37, 38) [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 28], ["value", 1]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 28], ["value", 2]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 24], ["value", 3]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 24], ["value", 4]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 24], ["value", 5]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 28 [shard 440 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 440 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 24 [shard 441 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 441 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (34, 35) [shard 440 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (39, 40, 41) [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 29], ["value", 1]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 29], ["value", 2]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 25], ["value", 3]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 25], ["value", 4]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 25], ["value", 5]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 29 [shard 440 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 440 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 25 [shard 441 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 441 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (36, 37) [shard 440 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (42, 43, 44) [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 30], ["value", 1]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 30], ["value", 2]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 26], ["value", 3]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 26], ["value", 4]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 26], ["value", 5]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 30 [shard 440 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 440 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 26 [shard 441 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 441 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (38, 39) [shard 440 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (45, 46, 47) [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 31], ["value", 1]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 31], ["value", 2]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 27], ["value", 3]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 27], ["value", 4]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 27], ["value", 5]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 31 [shard 440 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 440 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 27 [shard 441 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 441 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (40, 41) [shard 440 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (48, 49, 50) [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 440 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 441 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 440 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 441 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 440 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 440 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 441 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 440 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 441 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 440 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (34) [shard 440 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (30) [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 439 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 439], ["name", nil]] [shard 439 master]  (0.2ms) COMMIT [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 440], ["name", "switchman_test_shard_440"]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 441], ["name", "switchman_test_shard_441"]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 439], ["name", nil]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 440], ["name", "switchman_test_shard_440"]] [shard 439 master]  (0.2ms) COMMIT [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 441], ["name", "switchman_test_shard_441"]] [shard 439 master]  (0.2ms) COMMIT [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 441 master]  (0.1ms) SAVEPOINT active_record_2 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 441 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 439], ["name", nil]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 440], ["name", "switchman_test_shard_440"]] [shard 439 master]  (0.2ms) COMMIT [shard 439 master]  (0.0ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 441], ["name", "switchman_test_shard_441"]] [shard 439 master]  (0.2ms) COMMIT [shard 439 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master]  (0.0ms) ROLLBACK [shard 439 master]  (0.0ms) BEGIN [shard 439 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 439 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 439], ["name", nil]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 440], ["name", "switchman_test_shard_440"]] [shard 439 master]  (0.2ms) COMMIT [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 441], ["name", "switchman_test_shard_441"]] [shard 439 master]  (0.2ms) COMMIT [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["owner_id", 817], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["value", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 38 LIMIT 1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 440 LIMIT 1 [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 441 LIMIT 1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master] SQL (15.7ms) DELETE FROM "switchman_shards" [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 439], ["name", nil]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 440], ["name", "switchman_test_shard_440"]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 441], ["name", "switchman_test_shard_441"]] [shard 439 master]  (0.2ms) COMMIT [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 35 LIMIT 1 [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 439 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 439 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 440 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 37]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 4400000000000037 LIMIT 1 [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 440 LIMIT 1 [shard 439 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 38 LIMIT 1 [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) LIMIT 1 [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 40]] [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master] SQL (15.2ms) DELETE FROM "switchman_shards" [shard 439 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 439], ["name", nil]] [shard 439 master]  (0.4ms) COMMIT [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 440], ["name", "switchman_test_shard_440"]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 441], ["name", "switchman_test_shard_441"]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 439], ["name", nil]] [shard 439 master]  (0.2ms) COMMIT [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 440], ["name", "switchman_test_shard_440"]] [shard 439 master]  (0.2ms) COMMIT [shard 439 master]  (0.0ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 441], ["name", "switchman_test_shard_441"]] [shard 439 master]  (0.2ms) COMMIT [shard 439 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 41 [shard 440 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 440 LIMIT 1 [shard 439 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]] [shard 440 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 41 [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 46], ["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["value", nil]] [shard 440 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 440 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 43 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.0ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 48]] [shard 440 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 45 LIMIT 1 [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.0ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 46], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 47], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 440 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 46 AND "users"."id" = 48 LIMIT 1 [shard 440 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 440 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 46 AND "users"."id" = 4410000000000040 LIMIT 1 [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.0ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 441 LIMIT 1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 52 AND "appendages"."id" = $1 LIMIT 1 [["id", 51]] [shard 440 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 44 AND "appendages"."id" = $1 LIMIT 1 [["id", 51]] [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 52], ["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 4400000000000055], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["value", 2]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 55 AND "digits"."value" IS NULL [shard 440 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4400000000000055 AND "digits"."value" IS NULL [shard 441 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 55]] [shard 440 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 55 AND "digits"."value" IS NULL [shard 440 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4400000000000055 AND "digits"."value" IS NULL [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 53], ["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["value", 1]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 4400000000000056], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["value", 2]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 56 [shard 440 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 56]] [shard 440 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 56 [shard 440 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4400000000000056 [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 57], ["value", 1]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.0ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 4400000000000057], ["value", 2]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 57 [shard 440 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 57]] [shard 440 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 57 [shard 440 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 4400000000000057 [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:46 UTC +00:00], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["user_id", 4400000000000058], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 58], ["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["value", 2]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 58 AND "digits"."value" IS NULL [shard 440 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4400000000000058 AND "digits"."value" IS NULL [shard 441 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 58]] [shard 440 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 58 AND "digits"."value" IS NULL [shard 440 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4400000000000058 AND "digits"."value" IS NULL [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["value", 1]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["user_id", 4400000000000059], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 59], ["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["value", 2]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 59 AND (digits.value IS NOT NULL) [shard 440 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4400000000000059 AND (digits.value IS NOT NULL) [shard 441 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 59]] [shard 440 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 59 AND (digits.value IS NOT NULL) [shard 440 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4400000000000059 AND (digits.value IS NOT NULL) [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["user_id", 60], ["value", 1]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["user_id", 4400000000000060], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 60 AND "appendages"."value" IS NULL [shard 440 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 4400000000000060 AND "appendages"."value" IS NULL [shard 441 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 60]] [shard 440 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 60 AND "appendages"."value" IS NULL [shard 440 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 4400000000000060 AND "appendages"."value" IS NULL [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["user_id", 61], ["value", 1]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["user_id", 4400000000000061], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["user_id", 61], ["value", 2]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [shard 440 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 61 AND (appendages.value IS NOT NULL) [shard 440 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 4400000000000061 AND (appendages.value IS NOT NULL) [shard 441 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [shard 440 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 61 AND (appendages.value IS NOT NULL) [shard 440 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 4400000000000061 AND (appendages.value IS NOT NULL) [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["owner_id", 415], ["owner_type", "Appendage"], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["value", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 39]] [shard 439 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 415 LIMIT 1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master]  (0.2ms) UPDATE "features" SET "owner_id" = 4400000000000062, "owner_type" = 'User', "updated_at" = '2014-07-22 19:10:47.079640' WHERE "features"."id" = 39 [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 39]] [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.0ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["owner_id", 63], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["value", 1]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["owner_id", 4400000000000063], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["value", 2]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 63 AND "features"."owner_type" = 'User' [shard 440 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [shard 440 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 63 AND "features"."owner_type" = 'User' [shard 440 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 4400000000000063 AND "features"."owner_type" = 'User' [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["user_id", 4400000000000064], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["user_id", 4400000000000064], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 60], ["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master]  (0.0ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 62], ["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4410000000000062], ["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4410000000000063], ["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["user_id", 4410000000000056], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master]  (0.0ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.0ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4400000000000061], ["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4410000000000064], ["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4410000000000065], ["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [shard 440 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (64) [shard 440 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (4400000000000064) [shard 441 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (60, 4410000000000062) [shard 440 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (62, 63) [shard 441 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 441 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (56) [shard 441 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (64) [shard 441 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (4410000000000065) [shard 440 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 440 master]  (0.2ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["user_id", 65], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["user_id", 4400000000000065], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["user_id", 4410000000000057], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 440 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (65) [shard 440 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (4400000000000065) [shard 441 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 441 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (57) [shard 441 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 62 [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["user_id", 4400000000000066], ["value", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 416], ["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["value", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["user_id", 4410000000000058], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4400000000000064], ["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["value", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 439 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (416) [shard 439 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (64) [shard 440 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 440 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 441 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 66 [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["user_id", 4400000000000067], ["value", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["user_id", 4410000000000059], ["value", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["user_id", 819], ["value", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages"  [shard 439 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (819) [shard 439 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 440 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 441 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 67 [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["user_id", 4410000000000060], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 65]] [shard 440 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 60 LIMIT 1 [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 69 LIMIT 1 [shard 440 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 66]] [shard 440 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 69 LIMIT 1 [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.0ms) SAVEPOINT active_record_1 [shard 441 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 441 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["user_id", 4410000000000062]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master] Root Load (0.2ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 19]] [shard 439 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 62 LIMIT 1 [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 439], ["name", nil]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 440], ["name", "switchman_test_shard_440"]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master]  (0.0ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 441], ["name", "switchman_test_shard_441"]] [shard 439 master]  (0.2ms) COMMIT [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 72 [shard 440 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 821]] [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 440 LIMIT 1 [shard 439 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 72]] [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (822) [shard 439 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (73) [shard 440 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 822]] [shard 439 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 73]] [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 74 LIMIT 1 [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (824) [shard 439 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) [shard 440 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 440 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 439], ["name", nil]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 440], ["name", "switchman_test_shard_440"]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 441], ["name", "switchman_test_shard_441"]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:47 UTC +00:00]] [shard 440 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.0ms) ROLLBACK [shard 441 master]  (0.0ms) ROLLBACK [shard 440 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.0ms) BEGIN [shard 439 master]  (0.0ms) ROLLBACK [shard 439 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 439], ["name", nil]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 440], ["name", "switchman_test_shard_440"]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 441], ["name", "switchman_test_shard_441"]] [shard 439 master]  (0.2ms) COMMIT [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 439], ["name", nil]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.0ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 440], ["name", "switchman_test_shard_440"]] [shard 439 master]  (0.2ms) COMMIT [shard 439 master]  (0.0ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 441], ["name", "switchman_test_shard_441"]] [shard 439 master]  (0.2ms) COMMIT [shard 439 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '15' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", "public"]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_451 [shard 451 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 451 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 451 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 451 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 451 deploy]  (2.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 451 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 451 deploy]  (0.3ms) COMMIT [shard 451 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 451 deploy]  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 451 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 451 deploy]  (0.3ms) COMMIT [shard 451 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 451 deploy]  (2.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 451 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 451 deploy]  (0.3ms) COMMIT [shard 451 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 451 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 451 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 451 deploy]  (0.3ms) COMMIT [shard 451 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 451 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 451 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 451 deploy]  (0.3ms) COMMIT [shard 451 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 451 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 451 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 451 deploy]  (0.2ms) COMMIT [shard 451 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 451 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 451 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 451 deploy]  (0.3ms) COMMIT [shard 451 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_451' WHERE "switchman_shards"."id" = 451 [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) BEGIN [shard 451 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 451 master]  (0.2ms) COMMIT [shard 451 master]  (5.1ms) DROP SCHEMA switchman_test_shard_451 CASCADE [shard 451 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 451]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '16' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", nil]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.0ms) select sqlite_version(*) [shard 452 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 452 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 452 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 452 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 452 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 452 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 452 deploy]  (0.7ms) commit transaction [shard 452 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 452 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 452 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 452 deploy]  (0.7ms) commit transaction [shard 452 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 452 deploy]  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 452 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 452 deploy]  (0.7ms) commit transaction [shard 452 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 452 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 452 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 452 deploy]  (0.7ms) commit transaction [shard 452 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 452 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 452 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 452 deploy]  (0.7ms) commit transaction [shard 452 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 452 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 452 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 452 deploy]  (0.7ms) commit transaction [shard 452 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 452 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 452 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 452 deploy]  (0.6ms) commit transaction [shard 452 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_452.sqlite3' WHERE "switchman_shards"."id" = 452 [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.0ms) begin transaction [shard 452 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 452 master]  (0.8ms) commit transaction [shard 452 master] Drop failed: No such file or directory @ unlink_internal - db/shard_452.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 452]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 439 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_453 [shard 453 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 453 deploy]  (16.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 453 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 453 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 453 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 453 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 453 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 453 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 453 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 453 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 453 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 453 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 453 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 453 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 453 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 453 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 453 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 453 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_453' WHERE "switchman_shards"."id" = 453 [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 453 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 453 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 453 master]  (2.8ms) DROP SCHEMA switchman_test_shard_453 CASCADE [shard 453 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 453]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (2.1ms) ROLLBACK [shard 439 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master]  (0.0ms) ROLLBACK [shard 439 master]  (0.0ms) BEGIN [shard 439 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master]  (0.0ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 439], ["name", nil]] [shard 439 master]  (0.4ms) COMMIT [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 440], ["name", "switchman_test_shard_440"]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master]  (0.0ms) BEGIN [shard 439 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 441], ["name", "switchman_test_shard_441"]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 440 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 440 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 440 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 440 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 439 master] SQL (0.2ms) DELETE FROM "users" [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 439 master] SQL (0.1ms) DELETE FROM "users" [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 829]] [shard 439 master] CACHE (0.0ms) 439::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 829]] CACHE (0.0ms) 439::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 829]]  (0.1ms) BEGIN [shard 439 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-07-22 19:10:47.567363' WHERE "users"."id" = 829 [shard 439 master]  (0.3ms) COMMIT [shard 439 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 829]] [shard 439 master] CACHE (0.0ms) 439::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 829]] SQL (0.3ms) DELETE FROM "users" [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 439 master] SQL (0.9ms) DELETE FROM "users" [shard 439 master] SQL (0.1ms) DELETE FROM "users" [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 439 master] SQL (0.8ms) DELETE FROM "users" [shard 439 master] SQL (0.1ms) DELETE FROM "users" [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 439 master]  (0.0ms) BEGIN [shard 439 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:47 UTC +00:00]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:52 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:52 UTC +00:00]] [shard 439 master]  (6.4ms) COMMIT [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.2ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:52 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:52 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.2ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 439 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:52 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:52 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:52 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:52 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 439 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:10:52.655883' [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) SAVEPOINT active_record_1 [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:52 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:52 UTC +00:00]] [shard 439 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 439 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 439 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:10:52.661201' [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:52 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:52 UTC +00:00]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 439 master] SQL (1.1ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:10:52.664880' [shard 439 master] SQL (0.3ms) DELETE FROM "users" [shard 439 master]  (0.1ms) BEGIN [shard 439 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:10:52 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:10:52 UTC +00:00]] [shard 439 master]  (0.3ms) COMMIT [shard 439 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 439 master] SQL (0.6ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:10:52.669827' [shard 439 master] SQL (0.4ms) DELETE FROM "users" [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master] User Load (0.3ms) SELECT "users".* FROM "users"  [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 439 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.0ms) BEGIN [shard 441 master]  (0.0ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.0ms) BEGIN [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master]  (0.1ms) BEGIN [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 440]] [shard 439 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 441]] [shard 439 master]  (0.1ms) BEGIN [shard 441 master]  (0.1ms) ROLLBACK [shard 441 master]  (0.1ms) ROLLBACK [shard 439 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 439 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 439 master]  (4.2ms) DROP SCHEMA switchman_test_shard_440 CASCADE [shard 440 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 440]]  (0.1ms) COMMIT  (6.1ms) DROP SCHEMA switchman_test_shard_441 CASCADE [shard 441 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 441]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_455 [shard 455 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 455 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 455 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 455 deploy] Migrating to CreateUsers (20130403132607)  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 455 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 455 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 455 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 455 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 455 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 455 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 455 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 455 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 455 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 455 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 455 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 455 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 455 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 455 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_455' WHERE "switchman_shards"."id" = 455 [shard 454 master]  (0.5ms) COMMIT [shard 454 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 454 master]  (0.1ms) BEGIN [shard 454 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 454 master]  (0.2ms) COMMIT [shard 454 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_456 [shard 456 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 456 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 456 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 456 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 456 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 456 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 456 deploy]  (0.3ms) COMMIT [shard 456 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 456 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 456 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 456 deploy]  (0.3ms) COMMIT [shard 456 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 456 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 456 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 456 deploy]  (0.2ms) COMMIT [shard 456 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 456 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 456 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 456 deploy]  (0.3ms) COMMIT [shard 456 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 456 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 456 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 456 deploy]  (0.3ms) COMMIT [shard 456 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 456 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 456 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 456 deploy]  (0.3ms) COMMIT [shard 456 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) BEGIN [shard 456 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 456 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 456 deploy]  (0.3ms) COMMIT [shard 456 deploy]  (0.1ms) BEGIN [shard 454 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_456' WHERE "switchman_shards"."id" = 456 [shard 454 master]  (0.3ms) COMMIT [shard 454 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 454], ["name", nil]] [shard 454 master]  (0.3ms) COMMIT [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master]  (0.1ms) BEGIN [shard 454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 455], ["name", "switchman_test_shard_455"]] [shard 454 master]  (0.3ms) COMMIT [shard 454 master]  (0.1ms) BEGIN [shard 454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 456], ["name", "switchman_test_shard_456"]] [shard 454 master]  (0.3ms) COMMIT [shard 454 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 3], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2]] [shard 455 master]  (0.1ms) SHOW max_identifier_length [shard 455 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 2 AND "users"."id" = 4 LIMIT 1 [shard 455 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 455 LIMIT 1 [shard 454 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2]] [shard 455 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 2 AND "users"."id" = 4560000000000003 LIMIT 1 [shard 455 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 454 master] SQL (15.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.0ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 6 [shard 455 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 6]] [shard 455 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 6 [shard 455 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3], ["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 7 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 455 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 8 AND "appendages"."id" = $1 LIMIT 1 [["id", 4]] [shard 455 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 7 AND "appendages"."id" = $1 LIMIT 1 [["id", 4]] [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.8ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 5]] [shard 455 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 11 LIMIT 1 [shard 455 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 454 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 456 LIMIT 1 [shard 454 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.0ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 456 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.2ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 4550000000000015], ["value", nil]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2], ["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["value", 2]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15 AND "digits"."value" IS NULL [shard 455 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4550000000000015 AND "digits"."value" IS NULL [shard 456 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 15]] [shard 455 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15 AND "digits"."value" IS NULL [shard 455 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4550000000000015 AND "digits"."value" IS NULL [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 16], ["value", 1]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.0ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 4550000000000016], ["value", nil]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 16 AND "appendages"."value" IS NULL [shard 455 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 4550000000000016 AND "appendages"."value" IS NULL [shard 456 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 16]] [shard 455 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 16 AND "appendages"."value" IS NULL [shard 455 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 4550000000000016 AND "appendages"."value" IS NULL [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10], ["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["value", 1]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 4550000000000017], ["value", nil]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4], ["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["value", 2]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17 [shard 455 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 455 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17 [shard 455 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4550000000000017 [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11], ["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11], ["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["value", 1]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 4550000000000018], ["value", nil]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5], ["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["value", 2]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 18 AND (digits.value IS NOT NULL) [shard 455 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4550000000000018 AND (digits.value IS NOT NULL) [shard 456 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 455 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 18 AND (digits.value IS NOT NULL) [shard 455 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4550000000000018 AND (digits.value IS NOT NULL) [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 19], ["value", 1]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.0ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 4550000000000019], ["value", nil]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 19], ["value", 2]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [shard 455 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 19 AND (appendages.value IS NOT NULL) [shard 455 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 4550000000000019 AND (appendages.value IS NOT NULL) [shard 456 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [shard 455 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 19 AND (appendages.value IS NOT NULL) [shard 455 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 4550000000000019 AND (appendages.value IS NOT NULL) [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 14], ["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 4550000000000020], ["value", nil]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7], ["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["value", 2]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 20 AND "digits"."value" IS NULL [shard 455 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4550000000000020 AND "digits"."value" IS NULL [shard 456 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 455 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 20 AND "digits"."value" IS NULL [shard 455 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4550000000000020 AND "digits"."value" IS NULL [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 21], ["value", 1]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 4550000000000021], ["value", 2]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 21 [shard 455 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 455 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 21 [shard 455 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 4550000000000021 [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.0ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 4550000000000022], ["value", nil]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 4560000000000021], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 455 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (22) [shard 455 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (4550000000000022) [shard 456 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 456 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (21) [shard 456 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 16 [shard 455 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 4550000000000023], ["value", nil]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 4550000000000023], ["value", nil]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 18], ["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.0ms) SAVEPOINT active_record_1 [shard 454 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10], ["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["value", nil]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4560000000000010], ["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4560000000000011], ["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 4560000000000022], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.0ms) SAVEPOINT active_record_1 [shard 454 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master]  (0.0ms) SAVEPOINT active_record_1 [shard 454 master]  (0.0ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 454 master]  (0.0ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4550000000000019], ["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["value", nil]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4560000000000012], ["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4560000000000013], ["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 455 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (23) [shard 455 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (4550000000000023) [shard 456 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (18, 4560000000000010) [shard 455 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (10, 11) [shard 456 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 456 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (22) [shard 456 master] Digit Load (0.1ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (12) [shard 456 master] Digit Load (0.1ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (4560000000000013) [shard 455 master] SQL (0.1ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 455 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 4550000000000024], ["value", nil]] [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master]  (0.0ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 420], ["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["value", nil]] [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 4560000000000023], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.0ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4550000000000020], ["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["value", nil]] [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits"  [shard 454 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (420) [shard 454 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (20) [shard 455 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 455 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 456 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 24 [shard 455 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 4550000000000025], ["value", nil]] [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master]  (0.1ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 4560000000000024], ["value", nil]] [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master]  (0.1ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master]  (0.0ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", 840], ["value", nil]] [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 454 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (840) [shard 454 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 455 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 456 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 25 [shard 455 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master]  (0.1ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["owner_id", 424], ["owner_type", "Appendage"], ["updated_at", Tue, 22 Jul 2014 19:11:01 UTC +00:00], ["value", nil]] [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 40]] [shard 454 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 424 LIMIT 1 [shard 454 master]  (0.1ms) SAVEPOINT active_record_1 [shard 454 master]  (0.2ms) UPDATE "features" SET "owner_id" = 4550000000000026, "owner_type" = 'User', "updated_at" = '2014-07-22 19:11:01.999420' WHERE "features"."id" = 40 [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 40]] [shard 454 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["owner_id", 27], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["value", 1]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.8ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["owner_id", 4550000000000027], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["value", 2]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 27 AND "features"."owner_type" = 'User' [shard 455 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 27]] [shard 455 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 27 AND "features"."owner_type" = 'User' [shard 455 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 4550000000000027 AND "features"."owner_type" = 'User' [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 4560000000000027], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 21]] [shard 455 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 27 LIMIT 1 [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 29 LIMIT 1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 22]] [shard 455 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 29 LIMIT 1 [shard 455 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.0ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 4560000000000029]] [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 20]] [shard 454 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 29 LIMIT 1 [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 454], ["name", nil]] [shard 454 master]  (0.2ms) COMMIT [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master]  (0.1ms) BEGIN [shard 454 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 455], ["name", "switchman_test_shard_455"]] [shard 454 master]  (0.3ms) COMMIT [shard 454 master]  (0.1ms) BEGIN [shard 454 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 456], ["name", "switchman_test_shard_456"]] [shard 454 master]  (0.3ms) COMMIT [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", nil]] [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 20]] [shard 454 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 20]] [shard 454 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 20 LIMIT 1 [shard 455 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) ROLLBACK [shard 456 master]  (0.0ms) ROLLBACK [shard 454 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 454], ["name", nil]] [shard 454 master]  (0.3ms) COMMIT [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master]  (0.1ms) BEGIN [shard 454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 455], ["name", "switchman_test_shard_455"]] [shard 454 master]  (0.2ms) COMMIT [shard 454 master]  (0.1ms) BEGIN [shard 454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 456], ["name", "switchman_test_shard_456"]] [shard 454 master]  (0.3ms) COMMIT [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master]  (0.0ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 454], ["name", nil]] [shard 454 master]  (0.2ms) COMMIT [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master]  (0.1ms) BEGIN [shard 454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 455], ["name", "switchman_test_shard_455"]] [shard 454 master]  (0.3ms) COMMIT [shard 454 master]  (0.1ms) BEGIN [shard 454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 456], ["name", "switchman_test_shard_456"]] [shard 454 master]  (0.3ms) COMMIT [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SELECT COUNT(*) FROM "users"  [shard 456 master]  (0.0ms) SAVEPOINT active_record_2 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 456 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 454], ["name", nil]] [shard 454 master]  (0.3ms) COMMIT [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master]  (0.1ms) BEGIN [shard 454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 455], ["name", "switchman_test_shard_455"]] [shard 454 master]  (0.3ms) COMMIT [shard 454 master]  (0.0ms) BEGIN [shard 454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 456], ["name", "switchman_test_shard_456"]] [shard 454 master]  (0.2ms) COMMIT [shard 454 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.0ms) ROLLBACK [shard 456 master]  (0.0ms) ROLLBACK [shard 454 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master]  (0.1ms) BEGIN [shard 454 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master]  (0.0ms) ROLLBACK [shard 454 master]  (0.0ms) BEGIN [shard 454 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 454 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 454], ["name", nil]] [shard 454 master]  (0.2ms) COMMIT [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master]  (0.1ms) BEGIN [shard 454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 455], ["name", "switchman_test_shard_455"]] [shard 454 master]  (0.2ms) COMMIT [shard 454 master]  (0.0ms) BEGIN [shard 454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 456], ["name", "switchman_test_shard_456"]] [shard 454 master]  (0.2ms) COMMIT [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master]  (0.0ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["owner_id", 841], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["value", nil]] [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 41 LIMIT 1 [shard 454 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 455 LIMIT 1 [shard 454 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 456 LIMIT 1 [shard 454 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master] SQL (15.6ms) DELETE FROM "switchman_shards" [shard 454 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 454], ["name", nil]] [shard 454 master]  (0.4ms) COMMIT [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master]  (0.1ms) BEGIN [shard 454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 455], ["name", "switchman_test_shard_455"]] [shard 454 master]  (0.3ms) COMMIT [shard 454 master]  (0.1ms) BEGIN [shard 454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 456], ["name", "switchman_test_shard_456"]] [shard 454 master]  (0.2ms) COMMIT [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (6.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 31], ["value", 1]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 456 LIMIT 1 [shard 454 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 4560000000000032], ["value", 3]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 455 LIMIT 1 [shard 454 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 4550000000000031], ["value", 2]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 32], ["value", 4]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 32], ["value", 5]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 31], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 455 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 33], ["value", 1]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 4560000000000033], ["value", 3]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 4550000000000033], ["value", 2]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 33], ["value", 4]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 33], ["value", 5]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 455 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 456 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 455 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 456 master]  (0.1ms) SHOW max_identifier_length [shard 456 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 455 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 456 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 455 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (33) [shard 455 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (33) [shard 456 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 456 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (33) [shard 456 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (33) [shard 455 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.0ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 34], ["value", 1]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 4560000000000034], ["value", 3]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 4550000000000034], ["value", 2]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 34], ["value", 4]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 34], ["value", 5]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 455 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 456 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 455 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 456 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 455 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 456 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 455 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (34) [shard 455 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (34) [shard 456 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 456 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (34) [shard 456 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (34) [shard 455 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 35], ["value", 1]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 4560000000000035], ["value", 3]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 4550000000000035], ["value", 2]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 35], ["value", 4]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 35], ["value", 5]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 455 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 456 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 455 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 456 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 455 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 456 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 455 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35) [shard 455 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35) [shard 456 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 456 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35) [shard 456 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35) [shard 455 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 36], ["value", 1]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 4560000000000036], ["value", 3]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 4550000000000036], ["value", 2]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 36], ["value", 4]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 36], ["value", 5]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 455 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 456 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 455 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 456 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 455 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 456 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 455 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (36) [shard 455 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (36) [shard 456 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 456 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (36) [shard 456 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (36) [shard 455 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 37], ["value", 1]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 4560000000000037], ["value", 3]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 4550000000000037], ["value", 2]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 37], ["value", 4]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 37], ["value", 5]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 455 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 456 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 455 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 456 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 455 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 456 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 455 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 455 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 456 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 456 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 456 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 455 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 38], ["value", 1]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 38], ["value", 2]] [shard 455 master]  (0.3ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 38], ["value", 3]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 38], ["value", 4]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 38], ["value", 5]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 38 [shard 455 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 455 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 38 [shard 456 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 456 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (37, 38) [shard 455 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (33, 34, 35) [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 39], ["value", 1]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 39], ["value", 2]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 39], ["value", 3]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 39], ["value", 4]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 39], ["value", 5]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 39 [shard 455 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 455 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 39 [shard 456 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 456 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (39, 40) [shard 455 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (36, 37, 38) [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 40], ["value", 1]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 40], ["value", 2]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 40], ["value", 3]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 40], ["value", 4]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 40], ["value", 5]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 40 [shard 455 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 455 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 40 [shard 456 master]  (0.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 456 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (41, 42) [shard 455 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (39, 40, 41) [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 41], ["value", 1]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 41], ["value", 2]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 41], ["value", 3]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 41], ["value", 4]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 41], ["value", 5]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 41 [shard 455 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 455 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 41 [shard 456 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 456 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (43, 44) [shard 455 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (42, 43, 44) [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 42], ["value", 1]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 42], ["value", 2]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 42], ["value", 3]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 42], ["value", 4]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 42], ["value", 5]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 42 [shard 455 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 455 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 42 [shard 456 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 456 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (45, 46) [shard 455 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (45, 46, 47) [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 47 [shard 455 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 48 [shard 456 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 47 [shard 455 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 48 [shard 456 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 47 [shard 455 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 48 [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 48 [shard 455 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 49 [shard 456 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 48 [shard 455 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 49 [shard 456 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 48 [shard 455 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 49 [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 456 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 456 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (45) [shard 455 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (45) [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 455 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 454], ["name", nil]] [shard 454 master]  (0.3ms) COMMIT [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master]  (0.1ms) BEGIN [shard 454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 455], ["name", "switchman_test_shard_455"]] [shard 454 master]  (0.3ms) COMMIT [shard 454 master]  (0.1ms) BEGIN [shard 454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 456], ["name", "switchman_test_shard_456"]] [shard 454 master]  (0.2ms) COMMIT [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) ROLLBACK [shard 456 master]  (0.0ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.0ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) ROLLBACK [shard 456 master]  (0.0ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) ROLLBACK [shard 456 master]  (0.0ms) ROLLBACK [shard 454 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master]  (0.1ms) BEGIN [shard 454 master]  (0.1ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master]  (0.1ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master]  (0.0ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master]  (0.0ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 454], ["name", nil]] [shard 454 master]  (0.3ms) COMMIT [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master]  (0.1ms) BEGIN [shard 454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 455], ["name", "switchman_test_shard_455"]] [shard 454 master]  (0.3ms) COMMIT [shard 454 master]  (0.0ms) BEGIN [shard 454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 456], ["name", "switchman_test_shard_456"]] [shard 454 master]  (0.3ms) COMMIT [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 454 master]  (0.1ms) SAVEPOINT active_record_1 [shard 454 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 454 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '11' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 454 master]  (0.1ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", "public"]] [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_461 [shard 461 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 461 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 461 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 461 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 461 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 461 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 461 deploy]  (0.4ms) COMMIT [shard 461 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 461 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 461 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 461 deploy]  (0.3ms) COMMIT [shard 461 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 461 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 461 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 461 deploy]  (0.3ms) COMMIT [shard 461 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 461 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 461 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 461 deploy]  (0.3ms) COMMIT [shard 461 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 461 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 461 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 461 deploy]  (0.3ms) COMMIT [shard 461 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 461 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 461 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 461 deploy]  (0.2ms) COMMIT [shard 461 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 461 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 461 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 461 deploy]  (0.3ms) COMMIT [shard 461 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 454 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_461' WHERE "switchman_shards"."id" = 461 [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master]  (0.1ms) BEGIN [shard 461 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 461 master]  (0.3ms) COMMIT [shard 461 master]  (5.1ms) DROP SCHEMA switchman_test_shard_461 CASCADE [shard 461 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 461]] [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '12' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 454 master]  (0.1ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master]  (0.0ms) select sqlite_version(*) [shard 462 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 462 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 462 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 462 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 462 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 462 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 462 deploy]  (0.7ms) commit transaction [shard 462 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 462 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 462 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 462 deploy]  (0.8ms) commit transaction [shard 462 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 462 deploy]  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 462 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 462 deploy]  (0.7ms) commit transaction [shard 462 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 462 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 462 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 462 deploy]  (0.6ms) commit transaction [shard 462 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 462 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 462 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 462 deploy]  (0.7ms) commit transaction [shard 462 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 462 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 462 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 462 deploy]  (0.6ms) commit transaction [shard 462 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 462 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 462 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 462 deploy]  (0.6ms) commit transaction [shard 462 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 454 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_462.sqlite3' WHERE "switchman_shards"."id" = 462 [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master]  (0.0ms) begin transaction [shard 462 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 462 master]  (0.7ms) commit transaction [shard 462 master] Drop failed: No such file or directory @ unlink_internal - db/shard_462.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 462]] [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 454 master]  (0.1ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 454 master]  (0.1ms) CREATE SCHEMA switchman_test_shard_463 [shard 463 deploy]  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 463 deploy]  (15.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 463 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 463 deploy] Migrating to CreateUsers (20130403132607)  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 463 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 463 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 463 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 463 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 463 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 463 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 463 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 463 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 463 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 463 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 463 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 463 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 463 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 463 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_463' WHERE "switchman_shards"."id" = 463 [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master]  (0.1ms) SAVEPOINT active_record_1 [shard 463 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 463 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 463 master]  (2.6ms) DROP SCHEMA switchman_test_shard_463 CASCADE [shard 463 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 463]] [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master]  (0.1ms) ROLLBACK [shard 456 master]  (2.0ms) ROLLBACK [shard 454 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master]  (0.1ms) BEGIN [shard 454 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master]  (0.0ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master]  (0.0ms) ROLLBACK [shard 454 master]  (0.0ms) BEGIN [shard 454 master]  (0.0ms) ROLLBACK [shard 454 master]  (0.0ms) BEGIN [shard 454 master]  (0.0ms) ROLLBACK [shard 454 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 454], ["name", nil]] [shard 454 master]  (0.4ms) COMMIT [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master]  (0.1ms) BEGIN [shard 454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 455], ["name", "switchman_test_shard_455"]] [shard 454 master]  (0.3ms) COMMIT [shard 454 master]  (0.1ms) BEGIN [shard 454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 456], ["name", "switchman_test_shard_456"]] [shard 454 master]  (0.3ms) COMMIT [shard 454 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (454, 455) AND (id IN (455,456)) [shard 454 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) ROLLBACK [shard 456 master]  (0.0ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) ROLLBACK [shard 456 master]  (0.0ms) ROLLBACK [shard 454 master]  (0.0ms) BEGIN [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 454], ["name", nil]] [shard 454 master]  (0.3ms) COMMIT [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master]  (0.1ms) BEGIN [shard 454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 455], ["name", "switchman_test_shard_455"]] [shard 454 master]  (0.3ms) COMMIT [shard 454 master]  (0.0ms) BEGIN [shard 454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 456], ["name", "switchman_test_shard_456"]] [shard 454 master]  (0.2ms) COMMIT [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.0ms) SAVEPOINT active_record_1 [shard 455 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 455 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 455 master]  (0.0ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 455 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 454 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.1ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 454 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:11:02.778113' [shard 454 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 454 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:11:02.783105' [shard 454 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 454 master]  (0.2ms) COMMIT [shard 454 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 454 master] SQL (0.9ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:11:02.786563' [shard 454 master] SQL (0.3ms) DELETE FROM "users" [shard 454 master]  (0.1ms) BEGIN [shard 454 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:02 UTC +00:00]] [shard 454 master]  (0.3ms) COMMIT [shard 454 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 454 master] SQL (0.9ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:11:02.795743' [shard 454 master] SQL (0.3ms) DELETE FROM "users" [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.0ms) BEGIN [shard 456 master]  (0.0ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.2ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 454 master]  (0.1ms) BEGIN [shard 454 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:07 UTC +00:00]] [shard 454 master]  (0.4ms) COMMIT [shard 454 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 454 master]  (0.1ms) BEGIN [shard 454 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:07 UTC +00:00]] [shard 454 master]  (0.3ms) COMMIT [shard 454 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 454 master]  (0.1ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:07 UTC +00:00]] [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 454 master]  (0.1ms) SAVEPOINT active_record_1 [shard 454 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:07 UTC +00:00]] [shard 454 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 454 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master]  (0.1ms) BEGIN [shard 454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 455]] [shard 454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 456]] [shard 454 master]  (0.1ms) BEGIN [shard 456 master]  (0.1ms) ROLLBACK [shard 456 master]  (0.1ms) ROLLBACK [shard 454 master] SQL (6.6ms) DELETE FROM "switchman_shards" [shard 454 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 454 master]  (5.8ms) DROP SCHEMA switchman_test_shard_455 CASCADE [shard 455 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 455]]  (0.1ms) COMMIT  (5.4ms) DROP SCHEMA switchman_test_shard_456 CASCADE [shard 456 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 456]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.9ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.2ms) CREATE SCHEMA switchman_test_shard_465 [shard 465 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 465 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 465 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 465 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 465 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 465 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 465 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 465 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 465 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 465 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 465 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 465 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 465 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 465 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 465 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 465 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 465 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 465 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_465' WHERE "switchman_shards"."id" = 465 [shard 464 master]  (0.7ms) COMMIT [shard 464 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 464 master]  (0.2ms) COMMIT [shard 464 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_466 [shard 466 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 466 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 466 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 466 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 466 deploy]  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 466 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 466 deploy]  (0.3ms) COMMIT [shard 466 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 466 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 466 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 466 deploy]  (0.3ms) COMMIT [shard 466 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 466 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 466 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 466 deploy]  (0.3ms) COMMIT [shard 466 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 466 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 466 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 466 deploy]  (0.3ms) COMMIT [shard 466 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 466 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 466 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 466 deploy]  (0.3ms) COMMIT [shard 466 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 466 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 466 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 466 deploy]  (0.3ms) COMMIT [shard 466 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) BEGIN [shard 466 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 466 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 466 deploy]  (0.3ms) COMMIT [shard 466 deploy]  (0.1ms) BEGIN [shard 464 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_466' WHERE "switchman_shards"."id" = 466 [shard 464 master]  (0.3ms) COMMIT [shard 464 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 464], ["name", nil]] [shard 464 master]  (0.2ms) COMMIT [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.0ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 465], ["name", "switchman_test_shard_465"]] [shard 464 master]  (0.2ms) COMMIT [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 466], ["name", "switchman_test_shard_466"]] [shard 464 master]  (0.2ms) COMMIT [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (464, 465) AND (id IN (465,466)) [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 464], ["name", nil]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 465], ["name", "switchman_test_shard_465"]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master]  (0.0ms) BEGIN [shard 464 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 466], ["name", "switchman_test_shard_466"]] [shard 464 master]  (0.2ms) COMMIT [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 466 LIMIT 1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) ROLLBACK [shard 466 master]  (0.0ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10466 LIMIT 1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '3' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", "public"]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (15.7ms) CREATE SCHEMA switchman_test_shard_467 [shard 467 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 467 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 467 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 467 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 467 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 467 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 467 deploy]  (0.3ms) COMMIT [shard 467 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 467 deploy]  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 467 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 467 deploy]  (0.3ms) COMMIT [shard 467 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 467 deploy]  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 467 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 467 deploy]  (0.4ms) COMMIT [shard 467 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 467 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 467 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 467 deploy]  (0.3ms) COMMIT [shard 467 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 467 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 467 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 467 deploy]  (0.3ms) COMMIT [shard 467 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 467 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 467 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 467 deploy]  (0.3ms) COMMIT [shard 467 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 467 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 467 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 467 deploy]  (0.3ms) COMMIT [shard 467 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_467' WHERE "switchman_shards"."id" = 467 [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) BEGIN [shard 467 master] SQL (1.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00]] [shard 467 master]  (0.3ms) COMMIT [shard 467 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 467 master]  (5.0ms) DROP SCHEMA switchman_test_shard_467 CASCADE [shard 467 deploy]  (0.4ms) SELECT COUNT(*) FROM "users"  [shard 467 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 466 master]  (0.2ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 465 LIMIT 1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 468]] [shard 464 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 468 LIMIT 1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 469]] [shard 464 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) ROLLBACK [shard 466 master]  (0.0ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) ROLLBACK [shard 466 master]  (0.0ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) ROLLBACK [shard 466 master]  (0.0ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 464 master]  (0.0ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 464 master]  (0.0ms) ROLLBACK [shard 466 master]  (0.0ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.0ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) ROLLBACK [shard 466 master]  (0.0ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) ROLLBACK [shard 466 master]  (0.0ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) ROLLBACK [shard 466 master]  (0.0ms) ROLLBACK [shard 464 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 464 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 464], ["name", nil]] [shard 464 master]  (0.4ms) COMMIT [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 465], ["name", "switchman_test_shard_465"]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 466], ["name", "switchman_test_shard_466"]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 466 master]  (0.1ms) SAVEPOINT active_record_2 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 466 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 464], ["name", nil]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 465], ["name", "switchman_test_shard_465"]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 466], ["name", "switchman_test_shard_466"]] [shard 464 master]  (0.2ms) COMMIT [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 464 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", "non_existent_shard"]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 470 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (1.0ms) SELECT COUNT(*) FROM "users"  [shard 471 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 464], ["name", nil]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 465], ["name", "switchman_test_shard_465"]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 466], ["name", "switchman_test_shard_466"]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["user_id", 852], ["value", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["user_id", 853], ["value", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 853], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 854], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 854]] [shard 464 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 853 LIMIT 1 [shard 464 master]  (0.1ms) SHOW max_identifier_length [shard 464 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 853 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["user_id", 856], ["value", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00]] [shard 466 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 465 LIMIT 1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["user_id", 857], ["value", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["user_id", 858], ["value", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["user_id", 859], ["value", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["user_id", 860], ["value", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["user_id", 861], ["value", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:27 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 466 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 862], ["value", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 863], ["value", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 864], ["value", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 865], ["value", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 866], ["value", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 867], ["value", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 868], ["value", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 869], ["value", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 464], ["name", nil]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 465], ["name", "switchman_test_shard_465"]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 466], ["name", "switchman_test_shard_466"]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.0ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.0ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 464 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 464], ["name", nil]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 465], ["name", "switchman_test_shard_465"]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master]  (0.0ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 466], ["name", "switchman_test_shard_466"]] [shard 464 master]  (0.2ms) COMMIT [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:28 UTC +00:00]] [shard 465 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.0ms) ROLLBACK [shard 466 master]  (0.0ms) ROLLBACK [shard 465 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.0ms) BEGIN [shard 464 master]  (0.0ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 464], ["name", nil]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 465], ["name", "switchman_test_shard_465"]] [shard 464 master]  (0.4ms) COMMIT [shard 464 master]  (0.0ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 466], ["name", "switchman_test_shard_466"]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 21]] [shard 464 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 21]] [shard 464 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 21 LIMIT 1 [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 464], ["name", nil]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 465], ["name", "switchman_test_shard_465"]] [shard 464 master]  (0.2ms) COMMIT [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 466], ["name", "switchman_test_shard_466"]] [shard 464 master]  (0.2ms) COMMIT [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 465 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master] User Load (0.3ms) SELECT "users".* FROM "users" [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 464 master]  (0.0ms) BEGIN [shard 464 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 464 master] SQL (0.1ms) DELETE FROM "users" [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 464 master] SQL (0.1ms) DELETE FROM "users" [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 464 master]  (0.2ms) COMMIT [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 464 master]  (0.2ms) COMMIT [shard 464 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 878]] [shard 464 master] CACHE (0.0ms) 464::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 878]] CACHE (0.0ms) 464::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 878]]  (0.1ms) BEGIN [shard 464 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-07-22 19:11:28.288505' WHERE "users"."id" = 878 [shard 464 master]  (0.3ms) COMMIT [shard 464 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 878]] [shard 464 master] CACHE (0.0ms) 464::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 878]] SQL (0.3ms) DELETE FROM "users" [shard 464 master]  (0.0ms) BEGIN [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 464 master] SQL (0.5ms) DELETE FROM "users" [shard 464 master] SQL (0.1ms) DELETE FROM "users" [shard 464 master]  (0.0ms) BEGIN [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 464 master] SQL (0.3ms) DELETE FROM "users" [shard 464 master] SQL (0.1ms) DELETE FROM "users" [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.0ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 464 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:11:28.316571' [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 464 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:11:28.321910' [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 464 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:11:28.325743' [shard 464 master] SQL (0.3ms) DELETE FROM "users" [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 464 master]  (0.2ms) COMMIT [shard 464 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 464 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:11:28.330247' [shard 464 master] SQL (0.3ms) DELETE FROM "users" [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) ROLLBACK [shard 466 master]  (0.0ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.0ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 464], ["name", nil]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.0ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 465], ["name", "switchman_test_shard_465"]] [shard 464 master]  (0.2ms) COMMIT [shard 464 master]  (0.0ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 466], ["name", "switchman_test_shard_466"]] [shard 464 master]  (0.2ms) COMMIT [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) ROLLBACK [shard 466 master]  (0.0ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 465 LIMIT 1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master] SQL (15.0ms) DELETE FROM "switchman_shards" [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 464], ["name", nil]] [shard 464 master]  (0.2ms) COMMIT [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 465], ["name", "switchman_test_shard_465"]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 466], ["name", "switchman_test_shard_466"]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master] SQL (0.8ms) DELETE FROM "switchman_shards" [shard 464 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 464], ["name", nil]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 465], ["name", "switchman_test_shard_465"]] [shard 464 master]  (0.2ms) COMMIT [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 466], ["name", "switchman_test_shard_466"]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 464], ["name", nil]] [shard 464 master]  (0.2ms) COMMIT [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 465], ["name", "switchman_test_shard_465"]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master]  (0.0ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 466], ["name", "switchman_test_shard_466"]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 23], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 24], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 23]] [shard 465 master]  (0.1ms) SHOW max_identifier_length [shard 465 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 23 AND "users"."id" = 25 LIMIT 1 [shard 465 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 465 LIMIT 1 [shard 464 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 23]] [shard 465 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 23 AND "users"."id" = 4660000000000020 LIMIT 1 [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 26], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 466 master]  (0.4ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 466 LIMIT 1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 27], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 28 AND "appendages"."id" = $1 LIMIT 1 [["id", 20]] [shard 465 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 23 AND "appendages"."id" = $1 LIMIT 1 [["id", 20]] [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 22], ["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 30 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 31], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 23]] [shard 465 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 31 LIMIT 1 [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 35 [shard 465 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 35]] [shard 465 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 35 [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 25], ["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 4650000000000036], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 19], ["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["value", 2]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 36 AND "digits"."value" IS NULL [shard 465 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4650000000000036 AND "digits"."value" IS NULL [shard 466 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 36]] [shard 465 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 36 AND "digits"."value" IS NULL [shard 465 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4650000000000036 AND "digits"."value" IS NULL [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 26], ["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 26], ["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["value", 1]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 4650000000000037], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 20], ["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["value", 2]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 37 AND (digits.value IS NOT NULL) [shard 465 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4650000000000037 AND (digits.value IS NOT NULL) [shard 466 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 37]] [shard 465 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 37 AND (digits.value IS NOT NULL) [shard 465 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4650000000000037 AND (digits.value IS NOT NULL) [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 38], ["value", 1]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 4650000000000038], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 38 AND "appendages"."value" IS NULL [shard 465 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 4650000000000038 AND "appendages"."value" IS NULL [shard 466 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 38]] [shard 465 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 38 AND "appendages"."value" IS NULL [shard 465 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 4650000000000038 AND "appendages"."value" IS NULL [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 39], ["value", 1]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 4650000000000039], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 39], ["value", 2]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 39]] [shard 465 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 39 AND (appendages.value IS NOT NULL) [shard 465 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 4650000000000039 AND (appendages.value IS NOT NULL) [shard 466 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 39]] [shard 465 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 39 AND (appendages.value IS NOT NULL) [shard 465 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 4650000000000039 AND (appendages.value IS NOT NULL) [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 30], ["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 4650000000000040], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 23], ["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["value", 2]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 40 AND "digits"."value" IS NULL [shard 465 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4650000000000040 AND "digits"."value" IS NULL [shard 466 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 40]] [shard 465 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 40 AND "digits"."value" IS NULL [shard 465 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4650000000000040 AND "digits"."value" IS NULL [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 31], ["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["value", 1]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 4650000000000041], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 24], ["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["value", 2]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 41 [shard 465 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]] [shard 465 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 41 [shard 465 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4650000000000041 [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 42], ["value", 1]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 4650000000000042], ["value", 2]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 42 [shard 465 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 42]] [shard 465 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 42 [shard 465 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 4650000000000042 [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.2ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.8ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["owner_id", 43], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["value", 1]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["owner_id", 4650000000000043], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["value", 2]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 43 AND "features"."owner_type" = 'User' [shard 465 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 43]] [shard 465 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 43 AND "features"."owner_type" = 'User' [shard 465 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 4650000000000043 AND "features"."owner_type" = 'User' [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.2ms) ROLLBACK [shard 465 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["owner_id", 442], ["owner_type", "Appendage"], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["value", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 42]] [shard 464 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 442 LIMIT 1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master]  (0.2ms) UPDATE "features" SET "owner_id" = 4650000000000044, "owner_type" = 'User', "updated_at" = '2014-07-22 19:11:28.842387' WHERE "features"."id" = 42 [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 42]] [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 45 LIMIT 1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 33]] [shard 465 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 45 LIMIT 1 [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 4660000000000041], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 34]] [shard 465 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 41 LIMIT 1 [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 4650000000000047], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 4650000000000047], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 35], ["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 27], ["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4660000000000027], ["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4660000000000028], ["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 4660000000000042], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master]  (0.0ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4650000000000036], ["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4660000000000029], ["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4660000000000030], ["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (47) [shard 465 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (47) [shard 465 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (4650000000000047) [shard 466 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (35, 4660000000000027) [shard 465 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (27, 28) [shard 466 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [shard 466 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (42) [shard 466 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (29) [shard 466 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (4660000000000030) [shard 465 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 4650000000000048], ["value", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 443], ["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["value", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 4660000000000043], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4650000000000037], ["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["value", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits"  [shard 464 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (443) [shard 464 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (37) [shard 465 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (48) [shard 465 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) [shard 466 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 48 [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 4650000000000049], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 4660000000000044], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (49) [shard 465 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (49) [shard 465 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (4650000000000049) [shard 466 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (44) [shard 466 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (44) [shard 466 master] SQL (0.3ms) DELETE FROM "appendages" WHERE "appendages"."id" = 38 [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 4650000000000050], ["value", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 4660000000000045], ["value", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 888], ["value", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 464 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (888) [shard 464 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (50) [shard 465 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [shard 466 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 50 [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.6ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:28 UTC +00:00], ["user_id", 4660000000000046]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 21]] [shard 464 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 46 LIMIT 1 [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 464 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 464], ["name", nil]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 465], ["name", "switchman_test_shard_465"]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 466], ["name", "switchman_test_shard_466"]] [shard 464 master]  (0.2ms) COMMIT [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 465 LIMIT 1 [shard 464 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (890) [shard 464 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (54) [shard 465 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 890]] [shard 464 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 54]] [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 55 [shard 465 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 891]] [shard 464 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 55]] [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (892) [shard 464 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 57 LIMIT 1 [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 464], ["name", nil]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 465], ["name", "switchman_test_shard_465"]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 466], ["name", "switchman_test_shard_466"]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["owner_id", 894], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["value", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 43 LIMIT 1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 465 LIMIT 1 [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 466 LIMIT 1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master] SQL (16.0ms) DELETE FROM "switchman_shards" [shard 464 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 464], ["name", nil]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 465], ["name", "switchman_test_shard_465"]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 466], ["name", "switchman_test_shard_466"]] [shard 464 master]  (0.2ms) COMMIT [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '14' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", "public"]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_482 [shard 482 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 482 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 482 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 482 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 482 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 482 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 482 deploy]  (0.3ms) COMMIT [shard 482 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 482 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 482 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 482 deploy]  (0.3ms) COMMIT [shard 482 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 482 deploy]  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 482 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 482 deploy]  (0.3ms) COMMIT [shard 482 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 482 deploy]  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 482 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 482 deploy]  (0.3ms) COMMIT [shard 482 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 482 deploy]  (3.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 482 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 482 deploy]  (0.3ms) COMMIT [shard 482 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 482 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 482 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 482 deploy]  (0.2ms) COMMIT [shard 482 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 482 deploy]  (2.4ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 482 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 482 deploy]  (0.3ms) COMMIT [shard 482 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_482' WHERE "switchman_shards"."id" = 482 [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) BEGIN [shard 482 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 482 master]  (0.2ms) COMMIT [shard 482 master]  (5.0ms) DROP SCHEMA switchman_test_shard_482 CASCADE [shard 482 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 482]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '15' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.0ms) select sqlite_version(*) [shard 483 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 483 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 483 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 483 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 483 deploy]  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 483 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 483 deploy]  (0.7ms) commit transaction [shard 483 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 483 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 483 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 483 deploy]  (0.6ms) commit transaction [shard 483 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 483 deploy]  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 483 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 483 deploy]  (0.6ms) commit transaction [shard 483 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 483 deploy]  (0.3ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 483 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 483 deploy]  (0.6ms) commit transaction [shard 483 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 483 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 483 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 483 deploy]  (0.7ms) commit transaction [shard 483 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 483 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 483 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 483 deploy]  (0.6ms) commit transaction [shard 483 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 483 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 483 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 483 deploy]  (0.7ms) commit transaction [shard 483 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_483.sqlite3' WHERE "switchman_shards"."id" = 483 [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.0ms) begin transaction [shard 483 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 483 master]  (0.6ms) commit transaction [shard 483 master] Drop failed: No such file or directory @ unlink_internal - db/shard_483.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 483]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 464 master]  (0.2ms) CREATE SCHEMA switchman_test_shard_484 [shard 484 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 484 deploy]  (18.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 484 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 484 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 484 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 484 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 484 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 484 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 484 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 484 deploy] Migrating to CreateDigits (20131022202028)  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 484 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 484 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 484 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 484 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 484 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 484 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 484 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 484 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_484' WHERE "switchman_shards"."id" = 484 [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 484 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 484 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 484 master]  (2.8ms) DROP SCHEMA switchman_test_shard_484 CASCADE [shard 484 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 484]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (2.2ms) ROLLBACK [shard 464 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master]  (0.0ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master]  (0.0ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master]  (0.0ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master]  (0.0ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master]  (0.0ms) ROLLBACK [shard 464 master]  (0.0ms) BEGIN [shard 464 master]  (0.0ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 464], ["name", nil]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 465], ["name", "switchman_test_shard_465"]] [shard 464 master]  (0.2ms) COMMIT [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 466], ["name", "switchman_test_shard_466"]] [shard 464 master]  (0.2ms) COMMIT [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 464 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 464 master] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 465 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 59 LIMIT 1 [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 465 LIMIT 1 [shard 464 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) LIMIT 1 [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 61 LIMIT 1 [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 62]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 4650000000000062 LIMIT 1 [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master] SQL (14.6ms) DELETE FROM "switchman_shards" [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 464], ["name", nil]] [shard 464 master]  (0.2ms) COMMIT [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 465], ["name", "switchman_test_shard_465"]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 466], ["name", "switchman_test_shard_466"]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 64], ["value", 1]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 466 LIMIT 1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 4660000000000049], ["value", 3]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 465 LIMIT 1 [shard 464 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 4650000000000064], ["value", 2]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 49], ["value", 4]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 49], ["value", 5]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 465 master]  (0.4ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 466 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 465 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 466 master]  (0.1ms) SHOW max_identifier_length [shard 466 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 465 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 466 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 465 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [shard 465 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (49) [shard 466 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 466 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (49) [shard 466 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.0ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 65], ["value", 1]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 4660000000000050], ["value", 3]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 4650000000000065], ["value", 2]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 50], ["value", 4]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 50], ["value", 5]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 465 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 466 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 465 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 466 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 465 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 466 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 465 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 465 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (50) [shard 466 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 466 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (50) [shard 466 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 66], ["value", 1]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 4660000000000051], ["value", 3]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 4650000000000066], ["value", 2]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 51], ["value", 4]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 51], ["value", 5]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 465 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 466 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 465 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 466 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 465 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 466 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 465 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 465 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (51) [shard 466 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 466 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (51) [shard 466 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 67], ["value", 1]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 4660000000000052], ["value", 3]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 4650000000000067], ["value", 2]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 52], ["value", 4]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 52], ["value", 5]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 67], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 68], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.0ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 69], ["value", 1]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 4660000000000053], ["value", 3]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 4650000000000069], ["value", 2]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 53], ["value", 4]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 53], ["value", 5]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 465 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 466 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 465 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 466 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 465 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 466 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 465 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (69) [shard 465 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 466 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 466 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 466 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (69) [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.2ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 70], ["value", 1]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 4660000000000054], ["value", 3]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 4650000000000070], ["value", 2]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 54], ["value", 4]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 54], ["value", 5]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 465 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 466 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 465 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 466 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 465 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 466 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 465 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [shard 465 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 466 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 466 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 466 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [shard 465 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 71], ["value", 1]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 71], ["value", 2]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 55], ["value", 3]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 55], ["value", 4]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 55], ["value", 5]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 71 [shard 465 master]  (0.1ms) SELECT COUNT(*) FROM "appendages"  [shard 465 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 55 [shard 466 master]  (0.1ms) SELECT COUNT(*) FROM "appendages"  [shard 466 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (54, 55) [shard 465 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (50, 51, 52) [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 72], ["value", 1]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 72], ["value", 2]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 56], ["value", 3]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 56], ["value", 4]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 56], ["value", 5]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 72 [shard 465 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 465 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 56 [shard 466 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 466 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (56, 57) [shard 465 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (53, 54, 55) [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 73], ["value", 1]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 73], ["value", 2]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 57], ["value", 3]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 57], ["value", 4]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 57], ["value", 5]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 73 [shard 465 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 465 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 57 [shard 466 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 466 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (58, 59) [shard 465 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (56, 57, 58) [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 74], ["value", 1]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 74], ["value", 2]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 58], ["value", 3]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 58], ["value", 4]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 58], ["value", 5]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 74 [shard 465 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 465 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 58 [shard 466 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 466 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (60, 61) [shard 465 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (59, 60, 61) [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 75], ["value", 1]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 75], ["value", 2]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 59], ["value", 3]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 59], ["value", 4]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 59], ["value", 5]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 75 [shard 465 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 465 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 59 [shard 466 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 466 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (62, 63) [shard 465 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (62, 63, 64) [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.1ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 76], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 64 [shard 465 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 65 [shard 466 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 64 [shard 465 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 65 [shard 466 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 64 [shard 465 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 65 [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 77], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 65 [shard 465 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 66 [shard 466 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 65 [shard 465 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 66 [shard 466 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 65 [shard 465 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 66 [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.0ms) SAVEPOINT active_record_1 [shard 465 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 78], ["value", nil]] [shard 465 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 465 master]  (0.1ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master]  (0.0ms) SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:29 UTC +00:00], ["user_id", 62], ["value", nil]] [shard 466 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 466 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (78) [shard 465 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (62) [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 465 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.0ms) BEGIN [shard 464 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 464], ["name", nil]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 465], ["name", "switchman_test_shard_465"]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master]  (0.1ms) BEGIN [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 466], ["name", "switchman_test_shard_466"]] [shard 464 master]  (0.3ms) COMMIT [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master]  (0.1ms) BEGIN [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 465]] [shard 464 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 466]] [shard 464 master]  (0.0ms) BEGIN [shard 466 master]  (0.1ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "33"], ["default", false], ["name", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.0ms) SAVEPOINT active_record_1 [shard 464 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "33"], ["default", false], ["name", nil]] [shard 464 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 464 master]  (0.1ms) ROLLBACK [shard 466 master]  (0.1ms) ROLLBACK [shard 464 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 464 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 464 master]  (4.1ms) DROP SCHEMA switchman_test_shard_465 CASCADE [shard 465 deploy]  (0.0ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 465]]  (0.1ms) COMMIT  (6.9ms) DROP SCHEMA switchman_test_shard_466 CASCADE [shard 466 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 466]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "non_existent_shard"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "users" does not exist LINE 5: WHERE a.attrelid = '"users"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.3ms) SELECT COUNT(*) FROM "users" [shard 488 master]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_496 [shard 496 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 496 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 496 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 496 deploy] Migrating to CreateUsers (20130403132607)  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 496 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 496 deploy] Migrating to CreateAppendages (20130411202442)  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 496 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 496 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 496 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 496 deploy] Migrating to CreateDigits (20131022202028)  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 496 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 496 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 496 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 496 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 496 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 496 deploy] Migrating to CreateRoots (20140219183820)  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 496 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 496 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_496' WHERE "switchman_shards"."id" = 496 [shard 495 master]  (0.7ms) COMMIT [shard 495 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '8' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", "public"]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_497 [shard 497 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 497 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 497 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 497 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 497 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 497 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 497 deploy]  (0.3ms) COMMIT [shard 497 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 497 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 497 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 497 deploy]  (0.2ms) COMMIT [shard 497 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 497 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 497 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 497 deploy]  (0.3ms) COMMIT [shard 497 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 497 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 497 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 497 deploy]  (0.4ms) COMMIT [shard 497 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 497 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 497 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 497 deploy]  (0.3ms) COMMIT [shard 497 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 497 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 497 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 497 deploy]  (0.2ms) COMMIT [shard 497 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) BEGIN [shard 497 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 497 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 497 deploy]  (0.3ms) COMMIT [shard 497 deploy]  (0.1ms) BEGIN [shard 495 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_497' WHERE "switchman_shards"."id" = 497 [shard 495 master]  (0.2ms) COMMIT [shard 495 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 495], ["name", nil]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 496], ["name", "switchman_test_shard_496"]] [shard 495 master]  (0.2ms) COMMIT [shard 495 master]  (0.0ms) BEGIN [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 497], ["name", "switchman_test_shard_497"]] [shard 495 master]  (0.2ms) COMMIT [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 496 LIMIT 1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (25.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 495], ["name", nil]] [shard 495 master]  (0.2ms) COMMIT [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 496], ["name", "switchman_test_shard_496"]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master]  (0.0ms) BEGIN [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 497], ["name", "switchman_test_shard_497"]] [shard 495 master]  (0.2ms) COMMIT [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 22]] [shard 495 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 22]] [shard 495 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 22 LIMIT 1 [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 495], ["name", nil]] [shard 495 master]  (0.2ms) COMMIT [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 496], ["name", "switchman_test_shard_496"]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 497], ["name", "switchman_test_shard_497"]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (495, 496) AND (id IN (496,497)) [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 495], ["name", nil]] [shard 495 master]  (0.2ms) COMMIT [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 496], ["name", "switchman_test_shard_496"]] [shard 495 master]  (0.2ms) COMMIT [shard 495 master]  (0.0ms) BEGIN [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 497], ["name", "switchman_test_shard_497"]] [shard 495 master]  (0.2ms) COMMIT [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 898], ["value", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 495 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 899], ["value", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 899], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 900], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 900]] [shard 495 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 899 LIMIT 1 [shard 495 master]  (0.1ms) SHOW max_identifier_length [shard 495 master] User Load (0.5ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 899 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 902], ["value", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (1.0ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 903], ["value", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 496 LIMIT 1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 904], ["value", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 496 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 905], ["value", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 906], ["value", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 907], ["value", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 908], ["value", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 909], ["value", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 910], ["value", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 911], ["value", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 912], ["value", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["user_id", 913], ["value", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:55 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 914], ["value", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 915], ["value", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 495], ["name", nil]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 496], ["name", "switchman_test_shard_496"]] [shard 495 master]  (0.2ms) COMMIT [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 497], ["name", "switchman_test_shard_497"]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 495], ["name", nil]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 496], ["name", "switchman_test_shard_496"]] [shard 495 master]  (0.2ms) COMMIT [shard 495 master]  (0.0ms) BEGIN [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 497], ["name", "switchman_test_shard_497"]] [shard 495 master]  (0.2ms) COMMIT [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 496 LIMIT 1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.0ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 500]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 500 LIMIT 1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) ROLLBACK [shard 497 master]  (0.0ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) ROLLBACK [shard 497 master]  (0.0ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 501]] [shard 495 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) ROLLBACK [shard 497 master]  (0.0ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) ROLLBACK [shard 497 master]  (0.0ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) ROLLBACK [shard 497 master]  (0.0ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10497 LIMIT 1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) ROLLBACK [shard 497 master]  (0.0ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 497 LIMIT 1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.0ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.0ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) ROLLBACK [shard 497 master]  (0.0ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) ROLLBACK [shard 497 master]  (0.0ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) ROLLBACK [shard 497 master]  (0.0ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) ROLLBACK [shard 497 master]  (0.0ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) ROLLBACK [shard 497 master]  (0.0ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.2ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '11' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", "public"]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_502 [shard 502 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 502 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 502 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 502 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 502 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 502 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 502 deploy]  (0.3ms) COMMIT [shard 502 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 502 deploy]  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 502 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 502 deploy]  (0.3ms) COMMIT [shard 502 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 502 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 502 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 502 deploy]  (0.3ms) COMMIT [shard 502 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 502 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 502 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 502 deploy]  (0.3ms) COMMIT [shard 502 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 502 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 502 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 502 deploy]  (0.3ms) COMMIT [shard 502 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 502 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 502 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 502 deploy]  (0.3ms) COMMIT [shard 502 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 502 deploy]  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 502 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 502 deploy]  (0.4ms) COMMIT [shard 502 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_502' WHERE "switchman_shards"."id" = 502 [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) BEGIN [shard 502 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 502 master]  (0.3ms) COMMIT [shard 502 master]  (0.4ms) SELECT COUNT(*) FROM "users"  [shard 502 master]  (5.0ms) DROP SCHEMA switchman_test_shard_502 CASCADE [shard 502 deploy]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 502 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.2ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 495], ["name", nil]] [shard 495 master]  (0.4ms) COMMIT [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 496], ["name", "switchman_test_shard_496"]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 497], ["name", "switchman_test_shard_497"]] [shard 495 master]  (0.2ms) COMMIT [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 20], ["value", 1]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 497 LIMIT 1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 4970000000000017], ["value", 3]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 496 LIMIT 1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 4960000000000020], ["value", 2]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 17], ["value", 4]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 17], ["value", 5]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SHOW max_identifier_length [shard 495 master]  (0.5ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 496 master]  (0.5ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 497 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 496 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 497 master]  (0.1ms) SHOW max_identifier_length [shard 497 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 496 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 497 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 496 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 496 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [shard 497 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 497 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [shard 497 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 21], ["value", 1]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 4970000000000018], ["value", 3]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 4960000000000021], ["value", 2]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 18], ["value", 4]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 18], ["value", 5]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 496 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 497 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 496 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 497 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 496 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 497 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 496 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 496 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 497 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 497 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 497 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 22], ["value", 1]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 4970000000000019], ["value", 3]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 4960000000000022], ["value", 2]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 19], ["value", 4]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 19], ["value", 5]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 496 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 497 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 496 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 497 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 496 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 497 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 496 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 496 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 497 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 497 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 497 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 23], ["value", 1]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 4970000000000020], ["value", 3]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 4960000000000023], ["value", 2]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 20], ["value", 4]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 20], ["value", 5]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 25], ["value", 1]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 4970000000000021], ["value", 3]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 4960000000000025], ["value", 2]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 21], ["value", 4]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 21], ["value", 5]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 496 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 497 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 496 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 497 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 496 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 497 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 496 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 496 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 497 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 497 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 497 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 26], ["value", 1]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 4970000000000022], ["value", 3]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 4960000000000026], ["value", 2]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 22], ["value", 4]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 22], ["value", 5]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 496 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 497 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 496 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 497 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 496 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 497 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 496 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 496 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 497 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 497 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 497 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 27], ["value", 1]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 27], ["value", 2]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 23], ["value", 3]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 23], ["value", 4]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 23], ["value", 5]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 27 [shard 496 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 496 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 23 [shard 497 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 497 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (32, 33) [shard 496 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (36, 37, 38) [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 28], ["value", 1]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 28], ["value", 2]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 24], ["value", 3]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 24], ["value", 4]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 24], ["value", 5]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 28 [shard 496 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 496 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 24 [shard 497 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 497 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (34, 35) [shard 496 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (39, 40, 41) [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 29], ["value", 1]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 29], ["value", 2]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 25], ["value", 3]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 25], ["value", 4]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 25], ["value", 5]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 29 [shard 496 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 496 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 25 [shard 497 master]  (0.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 497 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (36, 37) [shard 496 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (42, 43, 44) [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 30], ["value", 1]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 30], ["value", 2]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 26], ["value", 3]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 26], ["value", 4]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 26], ["value", 5]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 30 [shard 496 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 496 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 26 [shard 497 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 497 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (38, 39) [shard 496 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (45, 46, 47) [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 31], ["value", 1]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 31], ["value", 2]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 27], ["value", 3]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 27], ["value", 4]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 27], ["value", 5]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 31 [shard 496 master]  (0.1ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 496 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 27 [shard 497 master]  (0.1ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 497 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (40, 41) [shard 496 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (48, 49, 50) [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 496 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 497 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 496 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 497 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 496 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 496 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 497 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 496 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 497 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 496 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (34) [shard 496 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (30) [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 495], ["name", nil]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 496], ["name", "switchman_test_shard_496"]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 497], ["name", "switchman_test_shard_497"]] [shard 495 master]  (0.2ms) COMMIT [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.0ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master] SQL (0.8ms) DELETE FROM "switchman_shards" [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 495], ["name", nil]] [shard 495 master]  (0.4ms) COMMIT [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 496], ["name", "switchman_test_shard_496"]] [shard 495 master]  (0.2ms) COMMIT [shard 495 master]  (0.0ms) BEGIN [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 497], ["name", "switchman_test_shard_497"]] [shard 495 master]  (0.2ms) COMMIT [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 497 master]  (0.1ms) SAVEPOINT active_record_2 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 497 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 495], ["name", nil]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.0ms) BEGIN [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 496], ["name", "switchman_test_shard_496"]] [shard 495 master]  (0.2ms) COMMIT [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 497], ["name", "switchman_test_shard_497"]] [shard 495 master]  (0.2ms) COMMIT [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.0ms) ROLLBACK [shard 497 master]  (0.0ms) ROLLBACK [shard 495 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master]  (0.0ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 495 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 495], ["name", nil]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 496], ["name", "switchman_test_shard_496"]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master]  (0.0ms) BEGIN [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 497], ["name", "switchman_test_shard_497"]] [shard 495 master]  (0.2ms) COMMIT [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["owner_id", 917], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["value", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master] Feature Load (0.3ms) SELECT owner_id FROM "features" WHERE "features"."id" = 44 LIMIT 1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 496 LIMIT 1 [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 497 LIMIT 1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master] SQL (27.4ms) DELETE FROM "switchman_shards" [shard 495 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 495], ["name", nil]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 496], ["name", "switchman_test_shard_496"]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 497], ["name", "switchman_test_shard_497"]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 35 LIMIT 1 [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 495 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 496 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 37]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 4960000000000037 LIMIT 1 [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 496 LIMIT 1 [shard 495 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 38 LIMIT 1 [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) LIMIT 1 [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 40]] [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master] SQL (15.1ms) DELETE FROM "switchman_shards" [shard 495 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 495], ["name", nil]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 496], ["name", "switchman_test_shard_496"]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 497], ["name", "switchman_test_shard_497"]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 495], ["name", nil]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 496], ["name", "switchman_test_shard_496"]] [shard 495 master]  (0.2ms) COMMIT [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 497], ["name", "switchman_test_shard_497"]] [shard 495 master]  (0.2ms) COMMIT [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 41 [shard 496 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 496 LIMIT 1 [shard 495 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]] [shard 496 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 41 [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.0ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 46], ["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 43 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.0ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 48]] [shard 496 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 45 LIMIT 1 [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 46], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 47], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 496 master]  (0.1ms) SHOW max_identifier_length [shard 496 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 46 AND "users"."id" = 48 LIMIT 1 [shard 496 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 496 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 46 AND "users"."id" = 4970000000000040 LIMIT 1 [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.0ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.0ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 497 LIMIT 1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:56 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 52 AND "appendages"."id" = $1 LIMIT 1 [["id", 51]] [shard 496 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 44 AND "appendages"."id" = $1 LIMIT 1 [["id", 51]] [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 52], ["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 4960000000000055], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["value", 2]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 55 AND "digits"."value" IS NULL [shard 496 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4960000000000055 AND "digits"."value" IS NULL [shard 497 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 55]] [shard 496 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 55 AND "digits"."value" IS NULL [shard 496 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4960000000000055 AND "digits"."value" IS NULL [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 53], ["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["value", 1]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 4960000000000056], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["value", 2]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 56 [shard 496 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 56]] [shard 496 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 56 [shard 496 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4960000000000056 [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 57], ["value", 1]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 4960000000000057], ["value", 2]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 57 [shard 496 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 57]] [shard 496 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 57 [shard 496 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 4960000000000057 [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 4960000000000058], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 58], ["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["value", 2]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 58 AND "digits"."value" IS NULL [shard 496 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4960000000000058 AND "digits"."value" IS NULL [shard 497 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 58]] [shard 496 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 58 AND "digits"."value" IS NULL [shard 496 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4960000000000058 AND "digits"."value" IS NULL [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["value", 1]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 4960000000000059], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 59], ["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["value", 2]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 59 AND (digits.value IS NOT NULL) [shard 496 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4960000000000059 AND (digits.value IS NOT NULL) [shard 497 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 59]] [shard 496 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 59 AND (digits.value IS NOT NULL) [shard 496 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4960000000000059 AND (digits.value IS NOT NULL) [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 60], ["value", 1]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 4960000000000060], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 60 AND "appendages"."value" IS NULL [shard 496 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 4960000000000060 AND "appendages"."value" IS NULL [shard 497 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 60]] [shard 496 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 60 AND "appendages"."value" IS NULL [shard 496 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 4960000000000060 AND "appendages"."value" IS NULL [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 61], ["value", 1]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 4960000000000061], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 61], ["value", 2]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [shard 496 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 61 AND (appendages.value IS NOT NULL) [shard 496 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 4960000000000061 AND (appendages.value IS NOT NULL) [shard 497 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [shard 496 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 61 AND (appendages.value IS NOT NULL) [shard 496 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 4960000000000061 AND (appendages.value IS NOT NULL) [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["owner_id", 465], ["owner_type", "Appendage"], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["value", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 45]] [shard 495 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 465 LIMIT 1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master]  (0.2ms) UPDATE "features" SET "owner_id" = 4960000000000062, "owner_type" = 'User', "updated_at" = '2014-07-22 19:11:57.168212' WHERE "features"."id" = 45 [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 45]] [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.8ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["owner_id", 63], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["value", 1]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["owner_id", 4960000000000063], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["value", 2]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 63 AND "features"."owner_type" = 'User' [shard 496 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [shard 496 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 63 AND "features"."owner_type" = 'User' [shard 496 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 4960000000000063 AND "features"."owner_type" = 'User' [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.2ms) ROLLBACK [shard 496 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 4960000000000064], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 4960000000000064], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 60], ["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 62], ["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4970000000000062], ["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4970000000000063], ["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 4970000000000056], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master]  (0.0ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.0ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4960000000000061], ["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4970000000000064], ["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["value", nil]] [shard 496 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4970000000000065], ["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [shard 496 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (64) [shard 496 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (4960000000000064) [shard 497 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (60, 4970000000000062) [shard 496 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (62, 63) [shard 497 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 497 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (56) [shard 497 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (64) [shard 497 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (4970000000000065) [shard 496 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 496 master]  (0.2ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 65], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 4960000000000065], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 4970000000000057], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 496 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (65) [shard 496 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (4960000000000065) [shard 497 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 497 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (57) [shard 497 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 62 [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 4960000000000066], ["value", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 466], ["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["value", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 4970000000000058], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4960000000000064], ["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["value", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 495 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (466) [shard 495 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (64) [shard 496 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 496 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 497 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 66 [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 4960000000000067], ["value", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 4970000000000059], ["value", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 919], ["value", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages"  [shard 495 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (919) [shard 495 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 496 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 497 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 67 [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 4970000000000060], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 65]] [shard 496 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 60 LIMIT 1 [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 69 LIMIT 1 [shard 496 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 66]] [shard 496 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 69 LIMIT 1 [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) SAVEPOINT active_record_1 [shard 497 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 497 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["user_id", 4970000000000062]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 22]] [shard 495 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 62 LIMIT 1 [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 495], ["name", nil]] [shard 495 master]  (0.2ms) COMMIT [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 496], ["name", "switchman_test_shard_496"]] [shard 495 master]  (0.2ms) COMMIT [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 497], ["name", "switchman_test_shard_497"]] [shard 495 master]  (0.2ms) COMMIT [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 72 [shard 496 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 921]] [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 496 LIMIT 1 [shard 495 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 72]] [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (922) [shard 495 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (73) [shard 496 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 922]] [shard 495 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 73]] [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 74 LIMIT 1 [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (924) [shard 495 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) [shard 496 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 496 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 495], ["name", nil]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.2ms) BEGIN [shard 495 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 496], ["name", "switchman_test_shard_496"]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 497], ["name", "switchman_test_shard_497"]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:57 UTC +00:00]] [shard 496 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.0ms) ROLLBACK [shard 497 master]  (0.0ms) ROLLBACK [shard 496 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master]  (0.0ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master]  (0.0ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 495], ["name", nil]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 496], ["name", "switchman_test_shard_496"]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 497], ["name", "switchman_test_shard_497"]] [shard 495 master]  (0.2ms) COMMIT [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master]  (0.0ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 495], ["name", nil]] [shard 495 master]  (0.4ms) COMMIT [shard 495 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 496], ["name", "switchman_test_shard_496"]] [shard 495 master]  (0.2ms) COMMIT [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 497], ["name", "switchman_test_shard_497"]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '15' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", "public"]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_507 [shard 507 deploy]  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 507 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 507 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 507 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 507 deploy]  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 507 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 507 deploy]  (0.4ms) COMMIT [shard 507 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 507 deploy]  (1.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 507 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 507 deploy]  (0.4ms) COMMIT [shard 507 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 507 deploy]  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 507 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 507 deploy]  (0.4ms) COMMIT [shard 507 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 507 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 507 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 507 deploy]  (0.3ms) COMMIT [shard 507 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 507 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 507 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 507 deploy]  (0.4ms) COMMIT [shard 507 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 507 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 507 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 507 deploy]  (0.2ms) COMMIT [shard 507 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 507 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 507 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 507 deploy]  (0.3ms) COMMIT [shard 507 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_507' WHERE "switchman_shards"."id" = 507 [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) BEGIN [shard 507 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 507 master]  (0.3ms) COMMIT [shard 507 master]  (4.9ms) DROP SCHEMA switchman_test_shard_507 CASCADE [shard 507 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 507]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '16' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", nil]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.0ms) select sqlite_version(*) [shard 508 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 508 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 508 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 508 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 508 deploy]  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 508 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 508 deploy]  (0.6ms) commit transaction [shard 508 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 508 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 508 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 508 deploy]  (0.5ms) commit transaction [shard 508 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 508 deploy]  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 508 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 508 deploy]  (0.5ms) commit transaction [shard 508 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 508 deploy]  (0.3ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 508 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 508 deploy]  (0.7ms) commit transaction [shard 508 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 508 deploy]  (0.3ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 508 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 508 deploy]  (0.7ms) commit transaction [shard 508 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 508 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 508 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 508 deploy]  (0.6ms) commit transaction [shard 508 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 508 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 508 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 508 deploy]  (0.7ms) commit transaction [shard 508 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_508.sqlite3' WHERE "switchman_shards"."id" = 508 [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.0ms) begin transaction [shard 508 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 508 master]  (0.7ms) commit transaction [shard 508 master] Drop failed: No such file or directory @ unlink_internal - db/shard_508.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 508]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 495 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_509 [shard 509 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 509 deploy]  (15.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 509 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 509 deploy] Migrating to CreateUsers (20130403132607)  (2.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 509 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 509 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 509 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 509 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 509 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 509 deploy] Migrating to CreateDigits (20131022202028)  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 509 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 509 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 509 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 509 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 509 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 509 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 509 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 509 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_509' WHERE "switchman_shards"."id" = 509 [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 509 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 509 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 509 master]  (2.8ms) DROP SCHEMA switchman_test_shard_509 CASCADE [shard 509 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 509]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (2.0ms) ROLLBACK [shard 495 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master]  (0.0ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master]  (0.0ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master]  (0.0ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 495], ["name", nil]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 496], ["name", "switchman_test_shard_496"]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 497], ["name", "switchman_test_shard_497"]] [shard 495 master]  (0.2ms) COMMIT [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.0ms) SAVEPOINT active_record_1 [shard 496 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 496 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 496 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 496 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 495 master] SQL (0.1ms) DELETE FROM "users" [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 495 master] SQL (0.1ms) DELETE FROM "users" [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 929]] [shard 495 master] CACHE (0.0ms) 495::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 929]] CACHE (0.0ms) 495::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 929]]  (0.1ms) BEGIN [shard 495 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-07-22 19:11:57.655100' WHERE "users"."id" = 929 [shard 495 master]  (0.3ms) COMMIT [shard 495 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 929]] [shard 495 master] CACHE (0.0ms) 495::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 929]] SQL (0.3ms) DELETE FROM "users" [shard 495 master]  (0.0ms) BEGIN [shard 495 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 495 master]  (0.2ms) COMMIT [shard 495 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 495 master] SQL (0.8ms) DELETE FROM "users" [shard 495 master] SQL (0.1ms) DELETE FROM "users" [shard 495 master]  (0.0ms) BEGIN [shard 495 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 495 master] SQL (0.3ms) DELETE FROM "users" [shard 495 master] SQL (0.1ms) DELETE FROM "users" [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 495 master]  (0.2ms) COMMIT [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 495 master]  (0.0ms) BEGIN [shard 495 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 495 master]  (0.0ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 495 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 495 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:11:57.713194' [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) SAVEPOINT active_record_1 [shard 495 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 495 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 495 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 495 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:11:57.718950' [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 495 master]  (0.3ms) COMMIT [shard 495 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 495 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:11:57.723374' [shard 495 master] SQL (0.2ms) DELETE FROM "users" [shard 495 master]  (0.0ms) BEGIN [shard 495 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:11:57 UTC +00:00]] [shard 495 master]  (0.2ms) COMMIT [shard 495 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 495 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:11:57.727673' [shard 495 master] SQL (0.4ms) DELETE FROM "users" [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 495 master]  (0.0ms) ROLLBACK [shard 497 master]  (0.0ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 495 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.0ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) ROLLBACK [shard 497 master]  (0.0ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.1ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.1ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.1ms) ROLLBACK [shard 497 master]  (0.1ms) ROLLBACK [shard 495 master]  (0.0ms) BEGIN [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 496]] [shard 495 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 497]] [shard 495 master]  (0.0ms) BEGIN [shard 497 master]  (0.0ms) ROLLBACK [shard 497 master]  (0.0ms) ROLLBACK [shard 495 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 495 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 495 master]  (4.3ms) DROP SCHEMA switchman_test_shard_496 CASCADE [shard 496 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 496]]  (0.1ms) COMMIT  (6.3ms) DROP SCHEMA switchman_test_shard_497 CASCADE [shard 497 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 497]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "non_existent_shard"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "users" does not exist LINE 5: WHERE a.attrelid = '"users"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (6.6ms) SELECT COUNT(*) FROM "users" [shard 511 master]  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_519 [shard 519 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 519 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 519 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 519 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 519 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 519 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 519 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 519 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 519 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 519 deploy] Migrating to CreateDigits (20131022202028)  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 519 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 519 deploy] Migrating to CreateFeatures (20131206172923)  (2.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 519 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 519 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 519 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 519 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 519 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 519 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_519' WHERE "switchman_shards"."id" = 519 [shard 518 master]  (0.6ms) COMMIT [shard 518 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '8' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", "public"]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_520 [shard 520 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 520 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 520 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 520 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 520 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 520 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 520 deploy]  (0.2ms) COMMIT [shard 520 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 520 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 520 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 520 deploy]  (0.3ms) COMMIT [shard 520 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 520 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 520 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 520 deploy]  (0.2ms) COMMIT [shard 520 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 520 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 520 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 520 deploy]  (0.3ms) COMMIT [shard 520 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 520 deploy]  (2.3ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 520 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 520 deploy]  (0.3ms) COMMIT [shard 520 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 520 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 520 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 520 deploy]  (0.2ms) COMMIT [shard 520 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 520 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 520 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 520 deploy]  (0.3ms) COMMIT [shard 520 deploy]  (0.1ms) BEGIN [shard 518 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_520' WHERE "switchman_shards"."id" = 520 [shard 518 master]  (0.2ms) COMMIT [shard 518 master] SQL (0.2ms) DELETE FROM "switchman_shards" [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 518], ["name", nil]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.0ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 519], ["name", "switchman_test_shard_519"]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 520], ["name", "switchman_test_shard_520"]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 519 LIMIT 1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (23.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.9ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 518], ["name", nil]] [shard 518 master]  (0.3ms) COMMIT [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 519], ["name", "switchman_test_shard_519"]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 520], ["name", "switchman_test_shard_520"]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 23]] [shard 518 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 23]] [shard 518 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 23 LIMIT 1 [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.0ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 518], ["name", nil]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 519], ["name", "switchman_test_shard_519"]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master]  (0.0ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 520], ["name", "switchman_test_shard_520"]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (518, 519) AND (id IN (519,520)) [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 518], ["name", nil]] [shard 518 master]  (0.3ms) COMMIT [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 519], ["name", "switchman_test_shard_519"]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 520], ["name", "switchman_test_shard_520"]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 942], ["value", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 943], ["value", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 943], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 944], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 944]] [shard 518 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 943 LIMIT 1 [shard 518 master]  (0.2ms) SHOW max_identifier_length [shard 518 master] User Load (0.4ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 943 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 946], ["value", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 947], ["value", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master]  (0.0ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 519 LIMIT 1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 948], ["value", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 949], ["value", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 950], ["value", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 951], ["value", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 952], ["value", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 953], ["value", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 954], ["value", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 955], ["value", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 956], ["value", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 957], ["value", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 958], ["value", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 520 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 959], ["value", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:14 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 518], ["name", nil]] [shard 518 master]  (0.3ms) COMMIT [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 519], ["name", "switchman_test_shard_519"]] [shard 518 master]  (0.4ms) COMMIT [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 520], ["name", "switchman_test_shard_520"]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 518], ["name", nil]] [shard 518 master]  (0.3ms) COMMIT [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.0ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 519], ["name", "switchman_test_shard_519"]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 520], ["name", "switchman_test_shard_520"]] [shard 518 master]  (0.3ms) COMMIT [shard 518 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 519 LIMIT 1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.2ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) ROLLBACK [shard 520 master]  (0.0ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 523]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 523 LIMIT 1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) ROLLBACK [shard 520 master]  (0.0ms) ROLLBACK [shard 518 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 524]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.0ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.0ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) ROLLBACK [shard 520 master]  (0.0ms) ROLLBACK [shard 518 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) ROLLBACK [shard 520 master]  (0.0ms) ROLLBACK [shard 518 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10520 LIMIT 1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 520 LIMIT 1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.0ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) ROLLBACK [shard 520 master]  (0.0ms) ROLLBACK [shard 518 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '11' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", "public"]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_525 [shard 525 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 525 deploy]  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 525 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 525 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 525 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 525 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 525 deploy]  (0.5ms) COMMIT [shard 525 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 525 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 525 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 525 deploy]  (0.3ms) COMMIT [shard 525 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 525 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 525 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 525 deploy]  (0.3ms) COMMIT [shard 525 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 525 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 525 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 525 deploy]  (0.3ms) COMMIT [shard 525 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 525 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 525 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 525 deploy]  (0.4ms) COMMIT [shard 525 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 525 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 525 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 525 deploy]  (0.3ms) COMMIT [shard 525 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 525 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 525 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 525 deploy]  (0.3ms) COMMIT [shard 525 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_525' WHERE "switchman_shards"."id" = 525 [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) BEGIN [shard 525 master] SQL (7.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 525 master]  (0.4ms) COMMIT [shard 525 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 525 master]  (4.8ms) DROP SCHEMA switchman_test_shard_525 CASCADE [shard 525 deploy]  (0.4ms) SELECT COUNT(*) FROM "users"  [shard 525 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.2ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 518], ["name", nil]] [shard 518 master]  (0.3ms) COMMIT [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.0ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 519], ["name", "switchman_test_shard_519"]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 520], ["name", "switchman_test_shard_520"]] [shard 518 master]  (0.3ms) COMMIT [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 20], ["value", 1]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 520 LIMIT 1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 5200000000000017], ["value", 3]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 519 LIMIT 1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 5190000000000020], ["value", 2]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 17], ["value", 4]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 17], ["value", 5]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SHOW max_identifier_length [shard 518 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 519 master]  (0.5ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 520 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 519 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 520 master]  (0.1ms) SHOW max_identifier_length [shard 520 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 519 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 520 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 519 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 519 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [shard 520 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 520 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [shard 520 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.0ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 21], ["value", 1]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 5200000000000018], ["value", 3]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 5190000000000021], ["value", 2]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 18], ["value", 4]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 18], ["value", 5]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 519 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 520 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 519 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 520 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 519 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 520 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 519 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 519 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 520 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 520 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 520 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 22], ["value", 1]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 5200000000000019], ["value", 3]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 5190000000000022], ["value", 2]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 19], ["value", 4]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 19], ["value", 5]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 519 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 520 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 519 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 520 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 519 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 520 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 519 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 519 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 520 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 520 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 520 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 23], ["value", 1]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 5200000000000020], ["value", 3]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 5190000000000023], ["value", 2]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 20], ["value", 4]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 20], ["value", 5]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 25], ["value", 1]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 5200000000000021], ["value", 3]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 5190000000000025], ["value", 2]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 21], ["value", 4]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 21], ["value", 5]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 519 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 520 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 519 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 520 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 519 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 520 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 519 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 519 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 520 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 520 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 520 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 26], ["value", 1]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 5200000000000022], ["value", 3]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 5190000000000026], ["value", 2]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 22], ["value", 4]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 22], ["value", 5]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.4ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 519 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 520 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 519 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 520 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 519 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 520 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 519 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 519 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 520 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 520 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 520 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 27], ["value", 1]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 27], ["value", 2]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 23], ["value", 3]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 23], ["value", 4]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 23], ["value", 5]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 27 [shard 519 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 519 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 23 [shard 520 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 520 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (32, 33) [shard 519 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (36, 37, 38) [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 28], ["value", 1]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 28], ["value", 2]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 24], ["value", 3]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 24], ["value", 4]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 24], ["value", 5]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 28 [shard 519 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 519 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 24 [shard 520 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 520 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (34, 35) [shard 519 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (39, 40, 41) [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 29], ["value", 1]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 29], ["value", 2]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 25], ["value", 3]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 25], ["value", 4]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 25], ["value", 5]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 29 [shard 519 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 519 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 25 [shard 520 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 520 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (36, 37) [shard 519 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (42, 43, 44) [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 30], ["value", 1]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 30], ["value", 2]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 26], ["value", 3]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 26], ["value", 4]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 26], ["value", 5]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 30 [shard 519 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 519 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 26 [shard 520 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 520 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (38, 39) [shard 519 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (45, 46, 47) [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 31], ["value", 1]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 31], ["value", 2]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 27], ["value", 3]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 27], ["value", 4]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 27], ["value", 5]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 31 [shard 519 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 519 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 27 [shard 520 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 520 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (40, 41) [shard 519 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (48, 49, 50) [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.2ms) ROLLBACK [shard 519 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 519 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 520 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 519 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 520 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 519 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 519 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 520 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 519 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 520 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 519 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (34) [shard 519 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (30) [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 518], ["name", nil]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 519], ["name", "switchman_test_shard_519"]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 520], ["name", "switchman_test_shard_520"]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 518], ["name", nil]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 519], ["name", "switchman_test_shard_519"]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 520], ["name", "switchman_test_shard_520"]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 520 master]  (0.1ms) SAVEPOINT active_record_2 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 520 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 518], ["name", nil]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 519], ["name", "switchman_test_shard_519"]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 520], ["name", "switchman_test_shard_520"]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master]  (0.0ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.0ms) BEGIN [shard 518 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 518 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 518], ["name", nil]] [shard 518 master]  (0.3ms) COMMIT [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.0ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 519], ["name", "switchman_test_shard_519"]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master]  (0.0ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 520], ["name", "switchman_test_shard_520"]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["owner_id", 961], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["value", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 46 LIMIT 1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 519 LIMIT 1 [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 520 LIMIT 1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master] SQL (15.9ms) DELETE FROM "switchman_shards" [shard 518 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 518], ["name", nil]] [shard 518 master]  (14.5ms) COMMIT [shard 518 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 519], ["name", "switchman_test_shard_519"]] [shard 518 master]  (0.3ms) COMMIT [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 520], ["name", "switchman_test_shard_520"]] [shard 518 master]  (0.3ms) COMMIT [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 35 LIMIT 1 [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 518 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 518 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 519 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 37]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 5190000000000037 LIMIT 1 [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 519 LIMIT 1 [shard 518 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 38 LIMIT 1 [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) LIMIT 1 [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 40]] [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master] SQL (15.4ms) DELETE FROM "switchman_shards" [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 518], ["name", nil]] [shard 518 master]  (0.3ms) COMMIT [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 519], ["name", "switchman_test_shard_519"]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 520], ["name", "switchman_test_shard_520"]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 518], ["name", nil]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.0ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 519], ["name", "switchman_test_shard_519"]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master]  (0.0ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 520], ["name", "switchman_test_shard_520"]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 41 [shard 519 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 519 LIMIT 1 [shard 518 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]] [shard 519 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 41 [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.0ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 46], ["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 43 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 48]] [shard 519 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 45 LIMIT 1 [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 46], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 47], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 519 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 46 AND "users"."id" = 48 LIMIT 1 [shard 519 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 519 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 46 AND "users"."id" = 5200000000000040 LIMIT 1 [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.0ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 520 LIMIT 1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 52 AND "appendages"."id" = $1 LIMIT 1 [["id", 51]] [shard 519 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 44 AND "appendages"."id" = $1 LIMIT 1 [["id", 51]] [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.2ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.0ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 52], ["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 5190000000000055], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["value", 2]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 55 AND "digits"."value" IS NULL [shard 519 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5190000000000055 AND "digits"."value" IS NULL [shard 520 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 55]] [shard 519 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 55 AND "digits"."value" IS NULL [shard 519 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5190000000000055 AND "digits"."value" IS NULL [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 53], ["created_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:15 UTC +00:00], ["value", 1]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", 5190000000000056], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["value", 2]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 56 [shard 519 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 56]] [shard 519 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 56 [shard 519 master] Digit Load (0.6ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5190000000000056 [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.2ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", 57], ["value", 1]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", 5190000000000057], ["value", 2]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 57 [shard 519 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 57]] [shard 519 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 57 [shard 519 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 5190000000000057 [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", 5190000000000058], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 58], ["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["value", 2]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 58 AND "digits"."value" IS NULL [shard 519 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5190000000000058 AND "digits"."value" IS NULL [shard 520 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 58]] [shard 519 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 58 AND "digits"."value" IS NULL [shard 519 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5190000000000058 AND "digits"."value" IS NULL [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["value", 1]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", 5190000000000059], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 59], ["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["value", 2]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 59 AND (digits.value IS NOT NULL) [shard 519 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5190000000000059 AND (digits.value IS NOT NULL) [shard 520 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 59]] [shard 519 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 59 AND (digits.value IS NOT NULL) [shard 519 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5190000000000059 AND (digits.value IS NOT NULL) [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", 60], ["value", 1]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", 5190000000000060], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 60 AND "appendages"."value" IS NULL [shard 519 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 5190000000000060 AND "appendages"."value" IS NULL [shard 520 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 60]] [shard 519 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 60 AND "appendages"."value" IS NULL [shard 519 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 5190000000000060 AND "appendages"."value" IS NULL [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", 61], ["value", 1]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", 5190000000000061], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", 61], ["value", 2]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [shard 519 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 61 AND (appendages.value IS NOT NULL) [shard 519 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 5190000000000061 AND (appendages.value IS NOT NULL) [shard 520 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [shard 519 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 61 AND (appendages.value IS NOT NULL) [shard 519 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 5190000000000061 AND (appendages.value IS NOT NULL) [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["owner_id", 487], ["owner_type", "Appendage"], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["value", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 47]] [shard 518 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 487 LIMIT 1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master]  (0.2ms) UPDATE "features" SET "owner_id" = 5190000000000062, "owner_type" = 'User', "updated_at" = '2014-07-22 19:12:16.111041' WHERE "features"."id" = 47 [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 47]] [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["owner_id", 63], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["value", 1]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["owner_id", 5190000000000063], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["value", 2]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 63 AND "features"."owner_type" = 'User' [shard 519 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [shard 519 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 63 AND "features"."owner_type" = 'User' [shard 519 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 5190000000000063 AND "features"."owner_type" = 'User' [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", 5190000000000064], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", 5190000000000064], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 60], ["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 62], ["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5200000000000062], ["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5200000000000063], ["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", 5200000000000056], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master]  (0.0ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5190000000000061], ["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5200000000000064], ["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5200000000000065], ["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [shard 519 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (64) [shard 519 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (5190000000000064) [shard 520 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (60, 5200000000000062) [shard 519 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (62, 63) [shard 520 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 520 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (56) [shard 520 master] Digit Load (0.1ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (64) [shard 520 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (5200000000000065) [shard 519 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", 65], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", 5190000000000065], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", 5200000000000057], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 519 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (65) [shard 519 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (5190000000000065) [shard 520 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 520 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (57) [shard 520 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 62 [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", 5190000000000066], ["value", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 488], ["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["value", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", 5200000000000058], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5190000000000064], ["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["value", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 518 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (488) [shard 518 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (64) [shard 519 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 519 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 520 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 66 [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", 5190000000000067], ["value", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", 5200000000000059], ["value", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", 963], ["value", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages"  [shard 518 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (963) [shard 518 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 519 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 520 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 67 [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", 5200000000000060], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 65]] [shard 519 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 60 LIMIT 1 [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 69 LIMIT 1 [shard 519 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 66]] [shard 519 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 69 LIMIT 1 [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) SAVEPOINT active_record_1 [shard 520 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 520 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["user_id", 5200000000000062]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 23]] [shard 518 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 62 LIMIT 1 [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 518], ["name", nil]] [shard 518 master]  (0.3ms) COMMIT [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 519], ["name", "switchman_test_shard_519"]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 520], ["name", "switchman_test_shard_520"]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 72 [shard 519 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 965]] [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 519 LIMIT 1 [shard 518 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 72]] [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (966) [shard 518 master] SQL (0.1ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (73) [shard 519 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 966]] [shard 518 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 73]] [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 74 LIMIT 1 [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (968) [shard 518 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) [shard 519 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 519 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 518], ["name", nil]] [shard 518 master]  (0.3ms) COMMIT [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 519], ["name", "switchman_test_shard_519"]] [shard 518 master]  (0.3ms) COMMIT [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 520], ["name", "switchman_test_shard_520"]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:16 UTC +00:00]] [shard 519 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.0ms) ROLLBACK [shard 520 master]  (0.0ms) ROLLBACK [shard 519 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 518 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master]  (0.0ms) ROLLBACK [shard 518 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 518], ["name", nil]] [shard 518 master]  (0.3ms) COMMIT [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 519], ["name", "switchman_test_shard_519"]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 520], ["name", "switchman_test_shard_520"]] [shard 518 master]  (0.3ms) COMMIT [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.0ms) BEGIN [shard 518 master]  (0.0ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 518], ["name", nil]] [shard 518 master]  (0.3ms) COMMIT [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.0ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 519], ["name", "switchman_test_shard_519"]] [shard 518 master]  (0.3ms) COMMIT [shard 518 master]  (0.0ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 520], ["name", "switchman_test_shard_520"]] [shard 518 master]  (0.3ms) COMMIT [shard 518 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '15' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", "public"]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_530 [shard 530 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 530 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 530 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 530 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 530 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 530 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 530 deploy]  (0.2ms) COMMIT [shard 530 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 530 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 530 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 530 deploy]  (0.3ms) COMMIT [shard 530 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 530 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 530 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 530 deploy]  (0.4ms) COMMIT [shard 530 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 530 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 530 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 530 deploy]  (0.3ms) COMMIT [shard 530 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 530 deploy]  (2.3ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 530 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 530 deploy]  (0.3ms) COMMIT [shard 530 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 530 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 530 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 530 deploy]  (0.2ms) COMMIT [shard 530 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) BEGIN [shard 530 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 530 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 530 deploy]  (0.3ms) COMMIT [shard 530 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_530' WHERE "switchman_shards"."id" = 530 [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) BEGIN [shard 530 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 530 master]  (0.3ms) COMMIT [shard 530 master]  (4.8ms) DROP SCHEMA switchman_test_shard_530 CASCADE [shard 530 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 530]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '16' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", nil]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.0ms) select sqlite_version(*) [shard 531 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 531 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 531 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 531 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 531 deploy]  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 531 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 531 deploy]  (0.7ms) commit transaction [shard 531 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 531 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 531 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 531 deploy]  (0.7ms) commit transaction [shard 531 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 531 deploy]  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 531 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 531 deploy]  (0.6ms) commit transaction [shard 531 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 531 deploy]  (0.3ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 531 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 531 deploy]  (0.7ms) commit transaction [shard 531 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 531 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 531 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 531 deploy]  (0.6ms) commit transaction [shard 531 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 531 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 531 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 531 deploy]  (0.7ms) commit transaction [shard 531 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 531 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 531 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 531 deploy]  (0.7ms) commit transaction [shard 531 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_531.sqlite3' WHERE "switchman_shards"."id" = 531 [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.0ms) begin transaction [shard 531 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 531 master]  (0.7ms) commit transaction [shard 531 master] Drop failed: No such file or directory @ unlink_internal - db/shard_531.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 531]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 518 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_532 [shard 532 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 532 deploy]  (15.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 532 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 532 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 532 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 532 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 532 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 532 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 532 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 532 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 532 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 532 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 532 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 532 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 532 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 532 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 532 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 532 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_532' WHERE "switchman_shards"."id" = 532 [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 532 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 532 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 532 master]  (2.7ms) DROP SCHEMA switchman_test_shard_532 CASCADE [shard 532 deploy]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 532]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (2.1ms) ROLLBACK [shard 518 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.0ms) BEGIN [shard 518 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.0ms) BEGIN [shard 518 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 518], ["name", nil]] [shard 518 master]  (0.3ms) COMMIT [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 519], ["name", "switchman_test_shard_519"]] [shard 518 master]  (0.3ms) COMMIT [shard 518 master]  (0.0ms) BEGIN [shard 518 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 520], ["name", "switchman_test_shard_520"]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.0ms) SAVEPOINT active_record_1 [shard 519 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 519 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 519 master]  (0.0ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 519 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 518 master] SQL (0.1ms) DELETE FROM "users" [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 518 master] SQL (0.2ms) DELETE FROM "users" [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 518 master]  (0.3ms) COMMIT [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 518 master]  (0.3ms) COMMIT [shard 518 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 973]] [shard 518 master] CACHE (0.0ms) 518::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 973]] CACHE (0.0ms) 518::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 973]]  (0.1ms) BEGIN [shard 518 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-07-22 19:12:16.598172' WHERE "users"."id" = 973 [shard 518 master]  (0.3ms) COMMIT [shard 518 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 973]] [shard 518 master] CACHE (0.0ms) 518::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 973]] SQL (0.3ms) DELETE FROM "users" [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 518 master]  (0.3ms) COMMIT [shard 518 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 518 master] SQL (0.9ms) DELETE FROM "users" [shard 518 master] SQL (0.1ms) DELETE FROM "users" [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 518 master]  (0.2ms) COMMIT [shard 518 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 518 master] SQL (0.9ms) DELETE FROM "users" [shard 518 master] SQL (0.1ms) DELETE FROM "users" [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 518 master]  (0.0ms) BEGIN [shard 518 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:16 UTC +00:00]] [shard 518 master]  (0.4ms) COMMIT [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.2ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:21 UTC +00:00]] [shard 518 master]  (0.4ms) COMMIT [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.2ms) BEGIN [shard 520 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:21 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 518 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:21 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:21 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 518 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:12:21.680056' [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) SAVEPOINT active_record_1 [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:21 UTC +00:00]] [shard 518 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 518 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 518 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:12:21.685859' [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:21 UTC +00:00]] [shard 518 master]  (0.3ms) COMMIT [shard 518 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 518 master] SQL (1.0ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:12:21.689950' [shard 518 master] SQL (0.3ms) DELETE FROM "users" [shard 518 master]  (0.1ms) BEGIN [shard 518 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:21 UTC +00:00]] [shard 518 master]  (0.3ms) COMMIT [shard 518 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 518 master] SQL (0.5ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:12:21.694911' [shard 518 master] SQL (0.3ms) DELETE FROM "users" [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master] User Load (0.3ms) SELECT "users".* FROM "users"  [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 518 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.1ms) BEGIN [shard 520 master]  (0.1ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) ROLLBACK [shard 520 master]  (0.1ms) ROLLBACK [shard 518 master]  (0.1ms) BEGIN [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [shard 518 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 520]] [shard 518 master]  (0.0ms) BEGIN [shard 520 master]  (0.0ms) ROLLBACK [shard 520 master]  (0.0ms) ROLLBACK [shard 518 master] SQL (6.3ms) DELETE FROM "switchman_shards" [shard 518 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 518 master]  (4.1ms) DROP SCHEMA switchman_test_shard_519 CASCADE [shard 519 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 519]]  (0.1ms) COMMIT  (5.4ms) DROP SCHEMA switchman_test_shard_520 CASCADE [shard 520 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 520]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "non_existent_shard"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "users" does not exist LINE 5: WHERE a.attrelid = '"users"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) SELECT COUNT(*) FROM "users" [shard 534 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_542 [shard 542 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 542 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 542 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 542 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 542 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 542 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 542 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 542 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 542 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 542 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 542 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 542 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 542 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 542 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 542 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 542 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 542 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 542 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_542' WHERE "switchman_shards"."id" = 542 [shard 541 master]  (0.6ms) COMMIT [shard 541 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '8' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", "public"]] [shard 541 master]  (0.2ms) COMMIT [shard 541 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_543 [shard 543 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 543 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 543 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 543 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 543 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 543 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 543 deploy]  (0.3ms) COMMIT [shard 543 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 543 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 543 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 543 deploy]  (0.4ms) COMMIT [shard 543 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 543 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 543 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 543 deploy]  (0.3ms) COMMIT [shard 543 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 543 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 543 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 543 deploy]  (0.3ms) COMMIT [shard 543 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 543 deploy]  (2.3ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 543 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 543 deploy]  (0.3ms) COMMIT [shard 543 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 543 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 543 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 543 deploy]  (0.2ms) COMMIT [shard 543 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 543 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 543 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 543 deploy]  (0.3ms) COMMIT [shard 543 deploy]  (0.1ms) BEGIN [shard 541 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_543' WHERE "switchman_shards"."id" = 543 [shard 541 master]  (0.3ms) COMMIT [shard 541 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 541], ["name", nil]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 542], ["name", "switchman_test_shard_542"]] [shard 541 master]  (0.2ms) COMMIT [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 543], ["name", "switchman_test_shard_543"]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 542 LIMIT 1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (15.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 541], ["name", nil]] [shard 541 master]  (0.2ms) COMMIT [shard 541 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 542], ["name", "switchman_test_shard_542"]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 543], ["name", "switchman_test_shard_543"]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 24]] [shard 541 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 24]] [shard 541 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 24 LIMIT 1 [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 541], ["name", nil]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 542], ["name", "switchman_test_shard_542"]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master]  (0.0ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 543], ["name", "switchman_test_shard_543"]] [shard 541 master]  (0.2ms) COMMIT [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) ROLLBACK [shard 543 master]  (0.0ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (541, 542) AND (id IN (542,543)) [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.0ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 541], ["name", nil]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 542], ["name", "switchman_test_shard_542"]] [shard 541 master]  (0.2ms) COMMIT [shard 541 master]  (0.0ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 543], ["name", "switchman_test_shard_543"]] [shard 541 master]  (0.2ms) COMMIT [shard 541 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 986], ["value", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 987], ["value", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 987], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 988], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 988]] [shard 541 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 987 LIMIT 1 [shard 541 master]  (0.1ms) SHOW max_identifier_length [shard 541 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 987 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.2ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 990], ["value", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 991], ["value", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 542 LIMIT 1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 992], ["value", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 993], ["value", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 994], ["value", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 995], ["value", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.2ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 996], ["value", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 997], ["value", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 998], ["value", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 999], ["value", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master]  (0.0ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 1000], ["value", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 1001], ["value", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 1002], ["value", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 1003], ["value", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 541], ["name", nil]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 542], ["name", "switchman_test_shard_542"]] [shard 541 master]  (0.4ms) COMMIT [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 543], ["name", "switchman_test_shard_543"]] [shard 541 master]  (0.2ms) COMMIT [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 541 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 541], ["name", nil]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 542], ["name", "switchman_test_shard_542"]] [shard 541 master]  (0.4ms) COMMIT [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 543], ["name", "switchman_test_shard_543"]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.0ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 542 LIMIT 1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) ROLLBACK [shard 543 master]  (0.0ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.2ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) ROLLBACK [shard 543 master]  (0.0ms) ROLLBACK [shard 541 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 546]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 546 LIMIT 1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 547]] [shard 541 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10543 LIMIT 1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 543 LIMIT 1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) ROLLBACK [shard 543 master]  (0.0ms) ROLLBACK [shard 541 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.0ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) ROLLBACK [shard 543 master]  (0.0ms) ROLLBACK [shard 541 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) ROLLBACK [shard 543 master]  (0.0ms) ROLLBACK [shard 541 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '11' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", "public"]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_548 [shard 548 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 548 deploy]  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 548 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 548 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 548 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 548 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 548 deploy]  (0.3ms) COMMIT [shard 548 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 548 deploy]  (1.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 548 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 548 deploy]  (0.3ms) COMMIT [shard 548 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 548 deploy]  (2.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 548 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 548 deploy]  (0.3ms) COMMIT [shard 548 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 548 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 548 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 548 deploy]  (0.4ms) COMMIT [shard 548 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 548 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 548 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 548 deploy]  (0.3ms) COMMIT [shard 548 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 548 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 548 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 548 deploy]  (0.2ms) COMMIT [shard 548 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 548 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 548 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 548 deploy]  (0.3ms) COMMIT [shard 548 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_548' WHERE "switchman_shards"."id" = 548 [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) BEGIN [shard 548 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:54 UTC +00:00]] [shard 548 master]  (0.3ms) COMMIT [shard 548 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 548 master]  (4.9ms) DROP SCHEMA switchman_test_shard_548 CASCADE [shard 548 deploy]  (0.5ms) SELECT COUNT(*) FROM "users"  [shard 548 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 543 master]  (0.2ms) ROLLBACK [shard 541 master]  (0.2ms) BEGIN [shard 541 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 541], ["name", nil]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 542], ["name", "switchman_test_shard_542"]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 543], ["name", "switchman_test_shard_543"]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 20], ["value", 1]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 543 LIMIT 1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 5430000000000017], ["value", 3]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 542 LIMIT 1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 5420000000000020], ["value", 2]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 17], ["value", 4]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 17], ["value", 5]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SHOW max_identifier_length [shard 541 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 542 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 543 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 542 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 543 master]  (0.1ms) SHOW max_identifier_length [shard 543 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 542 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 543 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 542 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 542 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [shard 543 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 543 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [shard 543 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 21], ["value", 1]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 5430000000000018], ["value", 3]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 5420000000000021], ["value", 2]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 18], ["value", 4]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 18], ["value", 5]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 542 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 543 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 542 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 543 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 542 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 543 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 542 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 542 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 543 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 543 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 543 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 22], ["value", 1]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 5430000000000019], ["value", 3]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 5420000000000022], ["value", 2]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 19], ["value", 4]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 19], ["value", 5]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.5ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 542 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 543 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 542 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 543 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 542 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 543 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 542 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 542 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 543 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 543 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 543 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 23], ["value", 1]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 5430000000000020], ["value", 3]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 5420000000000023], ["value", 2]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 20], ["value", 4]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 20], ["value", 5]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 25], ["value", 1]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 5430000000000021], ["value", 3]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 5420000000000025], ["value", 2]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 21], ["value", 4]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 21], ["value", 5]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 542 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 543 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 542 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 543 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 542 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 543 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 542 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 542 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 543 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 543 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 543 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 26], ["value", 1]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 5430000000000022], ["value", 3]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 5420000000000026], ["value", 2]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 22], ["value", 4]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 22], ["value", 5]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 542 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 543 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 542 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 543 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 542 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 543 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 542 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 542 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 543 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 543 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 543 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 27], ["value", 1]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 27], ["value", 2]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 23], ["value", 3]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 23], ["value", 4]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 23], ["value", 5]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 27 [shard 542 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 542 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 23 [shard 543 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 543 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (32, 33) [shard 542 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (36, 37, 38) [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 28], ["value", 1]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 28], ["value", 2]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 24], ["value", 3]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 24], ["value", 4]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 24], ["value", 5]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 28 [shard 542 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 542 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 24 [shard 543 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 543 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (34, 35) [shard 542 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (39, 40, 41) [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 29], ["value", 1]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 29], ["value", 2]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 25], ["value", 3]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 25], ["value", 4]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 25], ["value", 5]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 29 [shard 542 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 542 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 25 [shard 543 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 543 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (36, 37) [shard 542 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (42, 43, 44) [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 30], ["value", 1]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 30], ["value", 2]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 26], ["value", 3]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 26], ["value", 4]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 26], ["value", 5]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 30 [shard 542 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 542 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 26 [shard 543 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 543 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (38, 39) [shard 542 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (45, 46, 47) [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 31], ["value", 1]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 31], ["value", 2]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 27], ["value", 3]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 27], ["value", 4]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 27], ["value", 5]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 31 [shard 542 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 542 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 27 [shard 543 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 543 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (40, 41) [shard 542 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (48, 49, 50) [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 542 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 543 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 542 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 543 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 542 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master] SQL (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 542 master] SQL (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 543 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 542 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 543 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 542 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (34) [shard 542 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (30) [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 541], ["name", nil]] [shard 541 master]  (0.2ms) COMMIT [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 542], ["name", "switchman_test_shard_542"]] [shard 541 master]  (0.2ms) COMMIT [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 543], ["name", "switchman_test_shard_543"]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 541], ["name", nil]] [shard 541 master]  (0.2ms) COMMIT [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 542], ["name", "switchman_test_shard_542"]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 543], ["name", "switchman_test_shard_543"]] [shard 541 master]  (0.2ms) COMMIT [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 543 master]  (0.1ms) SAVEPOINT active_record_2 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 543 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 541], ["name", nil]] [shard 541 master]  (0.2ms) COMMIT [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.0ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 542], ["name", "switchman_test_shard_542"]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master]  (0.0ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 543], ["name", "switchman_test_shard_543"]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.0ms) ROLLBACK [shard 543 master]  (0.0ms) ROLLBACK [shard 541 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 541 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 541], ["name", nil]] [shard 541 master]  (0.2ms) COMMIT [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 542], ["name", "switchman_test_shard_542"]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 543], ["name", "switchman_test_shard_543"]] [shard 541 master]  (0.2ms) COMMIT [shard 541 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["owner_id", 1005], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["value", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 48 LIMIT 1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 542 LIMIT 1 [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 543 LIMIT 1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master] SQL (15.6ms) DELETE FROM "switchman_shards" [shard 541 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 541], ["name", nil]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 542], ["name", "switchman_test_shard_542"]] [shard 541 master]  (0.2ms) COMMIT [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 543], ["name", "switchman_test_shard_543"]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 35 LIMIT 1 [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 541 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 541 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 542 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 37]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 5420000000000037 LIMIT 1 [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 542 LIMIT 1 [shard 541 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 38 LIMIT 1 [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) LIMIT 1 [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 40]] [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master] SQL (15.0ms) DELETE FROM "switchman_shards" [shard 541 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 541], ["name", nil]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 542], ["name", "switchman_test_shard_542"]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 543], ["name", "switchman_test_shard_543"]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 541], ["name", nil]] [shard 541 master]  (0.2ms) COMMIT [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 542], ["name", "switchman_test_shard_542"]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 543], ["name", "switchman_test_shard_543"]] [shard 541 master]  (0.2ms) COMMIT [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 41 [shard 542 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 542 LIMIT 1 [shard 541 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]] [shard 542 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 41 [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 46], ["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 43 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 48]] [shard 542 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 45 LIMIT 1 [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 46], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 47], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 542 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 46 AND "users"."id" = 48 LIMIT 1 [shard 542 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 542 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 46 AND "users"."id" = 5430000000000040 LIMIT 1 [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 543 LIMIT 1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 52 AND "appendages"."id" = $1 LIMIT 1 [["id", 51]] [shard 542 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 44 AND "appendages"."id" = $1 LIMIT 1 [["id", 51]] [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 52], ["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 5420000000000055], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["value", 2]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 55 AND "digits"."value" IS NULL [shard 542 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5420000000000055 AND "digits"."value" IS NULL [shard 543 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 55]] [shard 542 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 55 AND "digits"."value" IS NULL [shard 542 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5420000000000055 AND "digits"."value" IS NULL [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 53], ["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["value", 1]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 5420000000000056], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["value", 2]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 56 [shard 542 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 56]] [shard 542 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 56 [shard 542 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5420000000000056 [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 57], ["value", 1]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 5420000000000057], ["value", 2]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 57 [shard 542 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 57]] [shard 542 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 57 [shard 542 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 5420000000000057 [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 5420000000000058], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 58], ["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["value", 2]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 58 AND "digits"."value" IS NULL [shard 542 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5420000000000058 AND "digits"."value" IS NULL [shard 543 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 58]] [shard 542 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 58 AND "digits"."value" IS NULL [shard 542 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5420000000000058 AND "digits"."value" IS NULL [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["value", 1]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 5420000000000059], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 59], ["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["value", 2]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 59 AND (digits.value IS NOT NULL) [shard 542 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5420000000000059 AND (digits.value IS NOT NULL) [shard 543 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 59]] [shard 542 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 59 AND (digits.value IS NOT NULL) [shard 542 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5420000000000059 AND (digits.value IS NOT NULL) [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 60], ["value", 1]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 5420000000000060], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 60 AND "appendages"."value" IS NULL [shard 542 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 5420000000000060 AND "appendages"."value" IS NULL [shard 543 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 60]] [shard 542 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 60 AND "appendages"."value" IS NULL [shard 542 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 5420000000000060 AND "appendages"."value" IS NULL [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 61], ["value", 1]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 5420000000000061], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 61], ["value", 2]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [shard 542 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 61 AND (appendages.value IS NOT NULL) [shard 542 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 5420000000000061 AND (appendages.value IS NOT NULL) [shard 543 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [shard 542 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 61 AND (appendages.value IS NOT NULL) [shard 542 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 5420000000000061 AND (appendages.value IS NOT NULL) [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["owner_id", 509], ["owner_type", "Appendage"], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["value", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 49]] [shard 541 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 509 LIMIT 1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master]  (0.2ms) UPDATE "features" SET "owner_id" = 5420000000000062, "owner_type" = 'User', "updated_at" = '2014-07-22 19:12:55.850666' WHERE "features"."id" = 49 [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 49]] [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["owner_id", 63], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["value", 1]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.8ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["owner_id", 5420000000000063], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["value", 2]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 63 AND "features"."owner_type" = 'User' [shard 542 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [shard 542 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 63 AND "features"."owner_type" = 'User' [shard 542 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 5420000000000063 AND "features"."owner_type" = 'User' [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.2ms) ROLLBACK [shard 542 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 5420000000000064], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 5420000000000064], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 60], ["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 62], ["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.2ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5430000000000062], ["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5430000000000063], ["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 5430000000000056], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master]  (0.0ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.0ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5420000000000061], ["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5430000000000064], ["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5430000000000065], ["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [shard 542 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (64) [shard 542 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (5420000000000064) [shard 543 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (60, 5430000000000062) [shard 542 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (62, 63) [shard 543 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 543 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (56) [shard 543 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (64) [shard 543 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (5430000000000065) [shard 542 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 65], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 5420000000000065], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 5430000000000057], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 542 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (65) [shard 542 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (5420000000000065) [shard 543 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 543 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (57) [shard 543 master] SQL (0.1ms) DELETE FROM "appendages" WHERE "appendages"."id" = 62 [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 5420000000000066], ["value", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 510], ["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["value", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 5430000000000058], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5420000000000064], ["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["value", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 541 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (510) [shard 541 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (64) [shard 542 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 542 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 543 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 66 [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 5420000000000067], ["value", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 5430000000000059], ["value", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 1007], ["value", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages"  [shard 541 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1007) [shard 541 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 542 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 543 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 67 [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 5430000000000060], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 65]] [shard 542 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 60 LIMIT 1 [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 69 LIMIT 1 [shard 542 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 66]] [shard 542 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 69 LIMIT 1 [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) SAVEPOINT active_record_1 [shard 543 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:55 UTC +00:00]] [shard 543 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.6ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00], ["user_id", 5430000000000062]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master] Root Load (0.4ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 24]] [shard 541 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 62 LIMIT 1 [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 541], ["name", nil]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 542], ["name", "switchman_test_shard_542"]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 543], ["name", "switchman_test_shard_543"]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 72 [shard 542 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1009]] [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 542 LIMIT 1 [shard 541 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 72]] [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (1010) [shard 541 master] SQL (0.1ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (73) [shard 542 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1010]] [shard 541 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 73]] [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 74 LIMIT 1 [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1012) [shard 541 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) [shard 542 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 542 master] SQL (6.1ms) DELETE FROM "switchman_shards" [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 541], ["name", nil]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 542], ["name", "switchman_test_shard_542"]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 543], ["name", "switchman_test_shard_543"]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:56 UTC +00:00]] [shard 542 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) ROLLBACK [shard 543 master]  (0.0ms) ROLLBACK [shard 542 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.0ms) BEGIN [shard 541 master]  (0.0ms) ROLLBACK [shard 541 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 541], ["name", nil]] [shard 541 master]  (0.4ms) COMMIT [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 542], ["name", "switchman_test_shard_542"]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 543], ["name", "switchman_test_shard_543"]] [shard 541 master]  (0.2ms) COMMIT [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 541], ["name", nil]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.0ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 542], ["name", "switchman_test_shard_542"]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 543], ["name", "switchman_test_shard_543"]] [shard 541 master]  (0.2ms) COMMIT [shard 541 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '15' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", "public"]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_553 [shard 553 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 553 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 553 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 553 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 553 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 553 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 553 deploy]  (0.3ms) COMMIT [shard 553 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 553 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 553 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 553 deploy]  (0.3ms) COMMIT [shard 553 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 553 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 553 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 553 deploy]  (0.4ms) COMMIT [shard 553 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 553 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 553 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 553 deploy]  (0.3ms) COMMIT [shard 553 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 553 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 553 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 553 deploy]  (0.3ms) COMMIT [shard 553 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 553 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 553 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 553 deploy]  (0.2ms) COMMIT [shard 553 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 553 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 553 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 553 deploy]  (0.3ms) COMMIT [shard 553 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_553' WHERE "switchman_shards"."id" = 553 [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) BEGIN [shard 553 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00]] [shard 553 master]  (0.2ms) COMMIT [shard 553 master]  (4.8ms) DROP SCHEMA switchman_test_shard_553 CASCADE [shard 553 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 553]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '16' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", nil]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.0ms) select sqlite_version(*) [shard 554 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 554 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 554 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 554 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 554 deploy]  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 554 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 554 deploy]  (0.8ms) commit transaction [shard 554 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 554 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 554 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 554 deploy]  (0.7ms) commit transaction [shard 554 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 554 deploy]  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 554 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 554 deploy]  (0.5ms) commit transaction [shard 554 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 554 deploy]  (0.3ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 554 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 554 deploy]  (0.7ms) commit transaction [shard 554 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 554 deploy]  (0.3ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 554 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 554 deploy]  (0.7ms) commit transaction [shard 554 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 554 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 554 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 554 deploy]  (0.5ms) commit transaction [shard 554 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 554 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 554 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 554 deploy]  (0.6ms) commit transaction [shard 554 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_554.sqlite3' WHERE "switchman_shards"."id" = 554 [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.0ms) begin transaction [shard 554 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00]] [shard 554 master]  (0.7ms) commit transaction [shard 554 master] Drop failed: No such file or directory @ unlink_internal - db/shard_554.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 554]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 541 master]  (0.2ms) CREATE SCHEMA switchman_test_shard_555 [shard 555 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 555 deploy]  (15.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 555 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 555 deploy] Migrating to CreateUsers (20130403132607)  (2.6ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 555 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 555 deploy] Migrating to CreateAppendages (20130411202442)  (2.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 555 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 555 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 555 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 555 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 555 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 555 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 555 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 555 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 555 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 555 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 555 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 555 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_555' WHERE "switchman_shards"."id" = 555 [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 555 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00]] [shard 555 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 555 master]  (2.7ms) DROP SCHEMA switchman_test_shard_555 CASCADE [shard 555 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 555]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (2.0ms) ROLLBACK [shard 541 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master]  (0.0ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 541], ["name", nil]] [shard 541 master]  (0.2ms) COMMIT [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 542], ["name", "switchman_test_shard_542"]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 543], ["name", "switchman_test_shard_543"]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 542 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00]] [shard 542 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 542 master]  (0.0ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 542 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 541 master] SQL (0.1ms) DELETE FROM "users" [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 541 master] SQL (0.1ms) DELETE FROM "users" [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00]] [shard 541 master]  (15.6ms) COMMIT [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00]] [shard 541 master]  (15.4ms) COMMIT [shard 541 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1017]] [shard 541 master] CACHE (0.0ms) 541::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1017]] CACHE (0.0ms) 541::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1017]]  (0.1ms) BEGIN [shard 541 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-07-22 19:12:56.382567' WHERE "users"."id" = 1017 [shard 541 master]  (15.3ms) COMMIT [shard 541 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1017]] [shard 541 master] CACHE (0.0ms) 541::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1017]] SQL (14.8ms) DELETE FROM "users" [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00]] [shard 541 master]  (0.4ms) COMMIT [shard 541 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 541 master] SQL (1.1ms) DELETE FROM "users" [shard 541 master] SQL (0.1ms) DELETE FROM "users" [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 541 master] SQL (0.9ms) DELETE FROM "users" [shard 541 master] SQL (0.1ms) DELETE FROM "users" [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:12:56 UTC +00:00]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master]  (0.2ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:01 UTC +00:00]] [shard 541 master]  (6.3ms) COMMIT [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.2ms) BEGIN [shard 541 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master] User Load (0.4ms) SELECT "users".* FROM "users"  [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:01 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 541 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:01 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.0ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) ROLLBACK [shard 543 master]  (0.0ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:01 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 541 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:13:01.497777' [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.0ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) SAVEPOINT active_record_1 [shard 541 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:01 UTC +00:00]] [shard 541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 541 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 541 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:13:01.503512' [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:01 UTC +00:00]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 541 master] SQL (1.0ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:13:01.507598' [shard 541 master] SQL (0.4ms) DELETE FROM "users" [shard 541 master]  (0.1ms) BEGIN [shard 541 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:01 UTC +00:00]] [shard 541 master]  (0.3ms) COMMIT [shard 541 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 541 master] SQL (0.7ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:13:01.512820' [shard 541 master] SQL (0.3ms) DELETE FROM "users" [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 541 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.0ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.0ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master]  (0.1ms) BEGIN [shard 541 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [shard 541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [shard 541 master]  (0.1ms) BEGIN [shard 543 master]  (0.1ms) ROLLBACK [shard 543 master]  (0.1ms) ROLLBACK [shard 541 master] SQL (6.5ms) DELETE FROM "switchman_shards" [shard 541 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 541 master]  (5.0ms) DROP SCHEMA switchman_test_shard_542 CASCADE [shard 542 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 542]]  (0.1ms) COMMIT  (6.5ms) DROP SCHEMA switchman_test_shard_543 CASCADE [shard 543 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 543]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "non_existent_shard"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "users" does not exist LINE 5: WHERE a.attrelid = '"users"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) SELECT COUNT(*) FROM "users" [shard 557 master]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_565 [shard 565 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 565 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 565 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 565 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 565 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 565 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 565 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 565 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 565 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 565 deploy] Migrating to CreateDigits (20131022202028)  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 565 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 565 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 565 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 565 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 565 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 565 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 565 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 565 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_565' WHERE "switchman_shards"."id" = 565 [shard 564 master]  (1.2ms) COMMIT [shard 564 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '8' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", "public"]] [shard 564 master]  (0.2ms) COMMIT [shard 564 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_566 [shard 566 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 566 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 566 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 566 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 566 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 566 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 566 deploy]  (0.3ms) COMMIT [shard 566 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 566 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 566 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 566 deploy]  (0.3ms) COMMIT [shard 566 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 566 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 566 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 566 deploy]  (0.3ms) COMMIT [shard 566 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 566 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 566 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 566 deploy]  (0.4ms) COMMIT [shard 566 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 566 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 566 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 566 deploy]  (0.3ms) COMMIT [shard 566 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 566 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 566 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 566 deploy]  (0.3ms) COMMIT [shard 566 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 566 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 566 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 566 deploy]  (0.3ms) COMMIT [shard 566 deploy]  (0.1ms) BEGIN [shard 564 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_566' WHERE "switchman_shards"."id" = 566 [shard 564 master]  (0.2ms) COMMIT [shard 564 master] SQL (0.2ms) DELETE FROM "switchman_shards" [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 564], ["name", nil]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 565], ["name", "switchman_test_shard_565"]] [shard 564 master]  (0.2ms) COMMIT [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 566], ["name", "switchman_test_shard_566"]] [shard 564 master]  (0.2ms) COMMIT [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 565 LIMIT 1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (21.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Exists (0.4ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 564], ["name", nil]] [shard 564 master]  (0.2ms) COMMIT [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 565], ["name", "switchman_test_shard_565"]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master]  (0.0ms) BEGIN [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 566], ["name", "switchman_test_shard_566"]] [shard 564 master]  (0.2ms) COMMIT [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 25]] [shard 564 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 25]] [shard 564 master] MirrorUser Load (0.5ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 25 LIMIT 1 [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 564], ["name", nil]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 565], ["name", "switchman_test_shard_565"]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 566], ["name", "switchman_test_shard_566"]] [shard 564 master]  (0.2ms) COMMIT [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (564, 565) AND (id IN (565,566)) [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.0ms) ROLLBACK [shard 564 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 564], ["name", nil]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 565], ["name", "switchman_test_shard_565"]] [shard 564 master]  (0.2ms) COMMIT [shard 564 master]  (0.0ms) BEGIN [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 566], ["name", "switchman_test_shard_566"]] [shard 564 master]  (0.2ms) COMMIT [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 1030], ["value", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 1031], ["value", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master]  (0.0ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1031], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1032], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1032]] [shard 564 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1031 LIMIT 1 [shard 564 master]  (0.1ms) SHOW max_identifier_length [shard 564 master] User Load (0.4ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 1031 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 1034], ["value", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 1035], ["value", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 565 LIMIT 1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 1036], ["value", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 1037], ["value", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 1038], ["value", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.2ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 1039], ["value", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 1040], ["value", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 1041], ["value", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 1042], ["value", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 1043], ["value", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 1044], ["value", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 1045], ["value", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 1046], ["value", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 1047], ["value", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 564], ["name", nil]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 565], ["name", "switchman_test_shard_565"]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 566], ["name", "switchman_test_shard_566"]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 564], ["name", nil]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 565], ["name", "switchman_test_shard_565"]] [shard 564 master]  (0.2ms) COMMIT [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 566], ["name", "switchman_test_shard_566"]] [shard 564 master]  (0.2ms) COMMIT [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.0ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 565 LIMIT 1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.0ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.0ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 569]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 569 LIMIT 1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 570]] [shard 564 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.0ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.0ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.0ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.0ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.0ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10566 LIMIT 1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 566 LIMIT 1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.0ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '11' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", "public"]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_571 [shard 571 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 571 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 571 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 571 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 571 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 571 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 571 deploy]  (0.3ms) COMMIT [shard 571 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 571 deploy]  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 571 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 571 deploy]  (0.3ms) COMMIT [shard 571 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 571 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 571 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 571 deploy]  (0.3ms) COMMIT [shard 571 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 571 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 571 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 571 deploy]  (0.4ms) COMMIT [shard 571 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 571 deploy]  (2.3ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 571 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 571 deploy]  (0.3ms) COMMIT [shard 571 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 571 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 571 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 571 deploy]  (0.2ms) COMMIT [shard 571 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 571 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 571 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 571 deploy]  (0.3ms) COMMIT [shard 571 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_571' WHERE "switchman_shards"."id" = 571 [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) BEGIN [shard 571 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 571 master]  (0.3ms) COMMIT [shard 571 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 571 master]  (4.9ms) DROP SCHEMA switchman_test_shard_571 CASCADE [shard 571 deploy]  (7.2ms) SELECT COUNT(*) FROM "users"  [shard 571 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 564], ["name", nil]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 565], ["name", "switchman_test_shard_565"]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 566], ["name", "switchman_test_shard_566"]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 20], ["value", 1]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 566 LIMIT 1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 5660000000000017], ["value", 3]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 565 LIMIT 1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:39 UTC +00:00], ["user_id", 5650000000000020], ["value", 2]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 17], ["value", 4]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 17], ["value", 5]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.2ms) SHOW max_identifier_length [shard 564 master]  (0.5ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 565 master]  (0.6ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 566 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 565 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 566 master]  (0.1ms) SHOW max_identifier_length [shard 566 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 565 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 566 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 565 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 565 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [shard 566 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 566 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [shard 566 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 21], ["value", 1]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 5660000000000018], ["value", 3]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 5650000000000021], ["value", 2]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 18], ["value", 4]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 18], ["value", 5]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 565 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 566 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 565 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 566 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 565 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 566 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 565 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 565 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 566 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 566 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 566 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 22], ["value", 1]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 5660000000000019], ["value", 3]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 5650000000000022], ["value", 2]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 19], ["value", 4]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 19], ["value", 5]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 565 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 566 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 565 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 566 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 565 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 566 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 565 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 565 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 566 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 566 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 566 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 23], ["value", 1]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 5660000000000020], ["value", 3]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 5650000000000023], ["value", 2]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 20], ["value", 4]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 20], ["value", 5]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.2ms) ROLLBACK [shard 565 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 25], ["value", 1]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 5660000000000021], ["value", 3]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 5650000000000025], ["value", 2]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 21], ["value", 4]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 21], ["value", 5]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 565 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 566 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 565 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 566 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 565 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 566 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 565 master] User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 565 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 566 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 566 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 566 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 26], ["value", 1]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 5660000000000022], ["value", 3]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 5650000000000026], ["value", 2]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 22], ["value", 4]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 22], ["value", 5]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 565 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 566 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 565 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 566 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 565 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 566 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 565 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 565 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 566 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 566 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 566 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 27], ["value", 1]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 27], ["value", 2]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 23], ["value", 3]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 23], ["value", 4]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 23], ["value", 5]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 27 [shard 565 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 565 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 23 [shard 566 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 566 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (32, 33) [shard 565 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (36, 37, 38) [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 28], ["value", 1]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 28], ["value", 2]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 24], ["value", 3]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 24], ["value", 4]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 24], ["value", 5]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 28 [shard 565 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 565 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 24 [shard 566 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 566 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (34, 35) [shard 565 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (39, 40, 41) [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 29], ["value", 1]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 29], ["value", 2]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 25], ["value", 3]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 25], ["value", 4]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 25], ["value", 5]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 29 [shard 565 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 565 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 25 [shard 566 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 566 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (36, 37) [shard 565 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (42, 43, 44) [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 30], ["value", 1]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 30], ["value", 2]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 26], ["value", 3]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 26], ["value", 4]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 26], ["value", 5]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 30 [shard 565 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 565 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 26 [shard 566 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 566 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (38, 39) [shard 565 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (45, 46, 47) [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 31], ["value", 1]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 31], ["value", 2]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 27], ["value", 3]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 27], ["value", 4]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 27], ["value", 5]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 31 [shard 565 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 565 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 27 [shard 566 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 566 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (40, 41) [shard 565 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (48, 49, 50) [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 565 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 566 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 565 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 566 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 565 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 565 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 566 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 565 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 566 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 565 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (34) [shard 565 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (30) [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 564], ["name", nil]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 565], ["name", "switchman_test_shard_565"]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master]  (0.0ms) BEGIN [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 566], ["name", "switchman_test_shard_566"]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master] SQL (0.8ms) DELETE FROM "switchman_shards" [shard 564 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 564], ["name", nil]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.0ms) BEGIN [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 565], ["name", "switchman_test_shard_565"]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 566], ["name", "switchman_test_shard_566"]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 566 master]  (0.1ms) SAVEPOINT active_record_2 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 566 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 564], ["name", nil]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 565], ["name", "switchman_test_shard_565"]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 566], ["name", "switchman_test_shard_566"]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.0ms) BEGIN [shard 564 master]  (0.0ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 564 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 564], ["name", nil]] [shard 564 master]  (0.2ms) COMMIT [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 565], ["name", "switchman_test_shard_565"]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 566], ["name", "switchman_test_shard_566"]] [shard 564 master]  (0.2ms) COMMIT [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["owner_id", 1049], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["value", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master] Feature Load (0.3ms) SELECT owner_id FROM "features" WHERE "features"."id" = 50 LIMIT 1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 565 LIMIT 1 [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 566 LIMIT 1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.0ms) ROLLBACK [shard 564 master] SQL (15.4ms) DELETE FROM "switchman_shards" [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 564], ["name", nil]] [shard 564 master]  (14.4ms) COMMIT [shard 564 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 565], ["name", "switchman_test_shard_565"]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 566], ["name", "switchman_test_shard_566"]] [shard 564 master]  (0.2ms) COMMIT [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 35 LIMIT 1 [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 564 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 564 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 565 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 37]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 5650000000000037 LIMIT 1 [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 565 LIMIT 1 [shard 564 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 38 LIMIT 1 [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) LIMIT 1 [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 40]] [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master] SQL (15.4ms) DELETE FROM "switchman_shards" [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 564], ["name", nil]] [shard 564 master]  (0.4ms) COMMIT [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 565], ["name", "switchman_test_shard_565"]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 566], ["name", "switchman_test_shard_566"]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.0ms) ROLLBACK [shard 564 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 564], ["name", nil]] [shard 564 master]  (0.2ms) COMMIT [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.0ms) BEGIN [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 565], ["name", "switchman_test_shard_565"]] [shard 564 master]  (0.2ms) COMMIT [shard 564 master]  (0.0ms) BEGIN [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 566], ["name", "switchman_test_shard_566"]] [shard 564 master]  (0.2ms) COMMIT [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 41 [shard 565 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 565 LIMIT 1 [shard 564 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]] [shard 565 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 41 [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 46], ["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 43 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 48]] [shard 565 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 45 LIMIT 1 [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 46], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 47], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 565 master]  (0.1ms) SHOW max_identifier_length [shard 565 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 46 AND "users"."id" = 48 LIMIT 1 [shard 565 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 565 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 46 AND "users"."id" = 5660000000000040 LIMIT 1 [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 566 LIMIT 1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 52 AND "appendages"."id" = $1 LIMIT 1 [["id", 51]] [shard 565 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 44 AND "appendages"."id" = $1 LIMIT 1 [["id", 51]] [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 52], ["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 5650000000000055], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["value", 2]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 55 AND "digits"."value" IS NULL [shard 565 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5650000000000055 AND "digits"."value" IS NULL [shard 566 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 55]] [shard 565 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 55 AND "digits"."value" IS NULL [shard 565 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5650000000000055 AND "digits"."value" IS NULL [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 53], ["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["value", 1]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 5650000000000056], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["value", 2]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 56 [shard 565 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 56]] [shard 565 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 56 [shard 565 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5650000000000056 [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 57], ["value", 1]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 5650000000000057], ["value", 2]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 57 [shard 565 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 57]] [shard 565 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 57 [shard 565 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 5650000000000057 [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 5650000000000058], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 58], ["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["value", 2]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 58 AND "digits"."value" IS NULL [shard 565 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5650000000000058 AND "digits"."value" IS NULL [shard 566 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 58]] [shard 565 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 58 AND "digits"."value" IS NULL [shard 565 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5650000000000058 AND "digits"."value" IS NULL [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["value", 1]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 5650000000000059], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 59], ["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["value", 2]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 59 AND (digits.value IS NOT NULL) [shard 565 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5650000000000059 AND (digits.value IS NOT NULL) [shard 566 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 59]] [shard 565 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 59 AND (digits.value IS NOT NULL) [shard 565 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5650000000000059 AND (digits.value IS NOT NULL) [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 60], ["value", 1]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 5650000000000060], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 60 AND "appendages"."value" IS NULL [shard 565 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 5650000000000060 AND "appendages"."value" IS NULL [shard 566 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 60]] [shard 565 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 60 AND "appendages"."value" IS NULL [shard 565 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 5650000000000060 AND "appendages"."value" IS NULL [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 61], ["value", 1]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 5650000000000061], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 61], ["value", 2]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [shard 565 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 61 AND (appendages.value IS NOT NULL) [shard 565 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 5650000000000061 AND (appendages.value IS NOT NULL) [shard 566 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [shard 565 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 61 AND (appendages.value IS NOT NULL) [shard 565 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 5650000000000061 AND (appendages.value IS NOT NULL) [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.3ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["owner_id", 531], ["owner_type", "Appendage"], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["value", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 51]] [shard 564 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 531 LIMIT 1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master]  (0.2ms) UPDATE "features" SET "owner_id" = 5650000000000062, "owner_type" = 'User', "updated_at" = '2014-07-22 19:13:40.837905' WHERE "features"."id" = 51 [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 51]] [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["owner_id", 63], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["value", 1]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["owner_id", 5650000000000063], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["value", 2]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 63 AND "features"."owner_type" = 'User' [shard 565 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [shard 565 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 63 AND "features"."owner_type" = 'User' [shard 565 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 5650000000000063 AND "features"."owner_type" = 'User' [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 5650000000000064], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 5650000000000064], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 60], ["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 62], ["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5660000000000062], ["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5660000000000063], ["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["value", nil]] [shard 565 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 5660000000000056], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master]  (0.0ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.0ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5650000000000061], ["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5660000000000064], ["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5660000000000065], ["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [shard 565 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (64) [shard 565 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (5650000000000064) [shard 566 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (60, 5660000000000062) [shard 565 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (62, 63) [shard 566 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 566 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (56) [shard 566 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (64) [shard 566 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (5660000000000065) [shard 565 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 565 master]  (0.2ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 65], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 5650000000000065], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 5660000000000057], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 565 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (65) [shard 565 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (5650000000000065) [shard 566 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 566 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (57) [shard 566 master] SQL (0.1ms) DELETE FROM "appendages" WHERE "appendages"."id" = 62 [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 5650000000000066], ["value", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 532], ["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["value", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 5660000000000058], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5650000000000064], ["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["value", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits"  [shard 564 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (532) [shard 564 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (64) [shard 565 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 565 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 566 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 66 [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 5650000000000067], ["value", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 5660000000000059], ["value", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 1051], ["value", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 564 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1051) [shard 564 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 565 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 566 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 67 [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 5660000000000060], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 65]] [shard 565 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 60 LIMIT 1 [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 69 LIMIT 1 [shard 565 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 66]] [shard 565 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 69 LIMIT 1 [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 566 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00]] [shard 566 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.6ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:40 UTC +00:00], ["user_id", 5660000000000062]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master] Root Load (0.4ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 25]] [shard 564 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 62 LIMIT 1 [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 564], ["name", nil]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 565], ["name", "switchman_test_shard_565"]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 566], ["name", "switchman_test_shard_566"]] [shard 564 master]  (0.2ms) COMMIT [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 72 [shard 565 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1053]] [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 565 LIMIT 1 [shard 564 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 72]] [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (1054) [shard 564 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (73) [shard 565 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1054]] [shard 564 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 73]] [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 74 LIMIT 1 [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1056) [shard 564 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) [shard 565 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 565 master] SQL (5.6ms) DELETE FROM "switchman_shards" [shard 564 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 564], ["name", nil]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 565], ["name", "switchman_test_shard_565"]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 566], ["name", "switchman_test_shard_566"]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:41 UTC +00:00]] [shard 565 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.0ms) ROLLBACK [shard 565 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.0ms) BEGIN [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master]  (0.0ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 564], ["name", nil]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.0ms) BEGIN [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 565], ["name", "switchman_test_shard_565"]] [shard 564 master]  (0.2ms) COMMIT [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 566], ["name", "switchman_test_shard_566"]] [shard 564 master]  (0.2ms) COMMIT [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 564], ["name", nil]] [shard 564 master]  (0.2ms) COMMIT [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 565], ["name", "switchman_test_shard_565"]] [shard 564 master]  (0.2ms) COMMIT [shard 564 master]  (0.0ms) BEGIN [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 566], ["name", "switchman_test_shard_566"]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '15' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", "public"]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_576 [shard 576 deploy]  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 576 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 576 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 576 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 576 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 576 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 576 deploy]  (0.3ms) COMMIT [shard 576 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 576 deploy]  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 576 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 576 deploy]  (0.3ms) COMMIT [shard 576 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 576 deploy]  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 576 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 576 deploy]  (0.3ms) COMMIT [shard 576 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 576 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 576 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 576 deploy]  (0.3ms) COMMIT [shard 576 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 576 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 576 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 576 deploy]  (0.3ms) COMMIT [shard 576 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 576 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 576 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 576 deploy]  (0.3ms) COMMIT [shard 576 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 576 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 576 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 576 deploy]  (0.3ms) COMMIT [shard 576 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_576' WHERE "switchman_shards"."id" = 576 [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) BEGIN [shard 576 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 576 master]  (0.3ms) COMMIT [shard 576 master]  (4.8ms) DROP SCHEMA switchman_test_shard_576 CASCADE [shard 576 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 576]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '16' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", nil]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) select sqlite_version(*) [shard 577 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 577 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 577 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 577 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 577 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 577 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 577 deploy]  (0.8ms) commit transaction [shard 577 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 577 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 577 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 577 deploy]  (0.6ms) commit transaction [shard 577 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 577 deploy]  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 577 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 577 deploy]  (0.6ms) commit transaction [shard 577 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 577 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 577 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 577 deploy]  (0.6ms) commit transaction [shard 577 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 577 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 577 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 577 deploy]  (0.5ms) commit transaction [shard 577 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 577 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 577 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 577 deploy]  (0.7ms) commit transaction [shard 577 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 577 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 577 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 577 deploy]  (0.6ms) commit transaction [shard 577 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_577.sqlite3' WHERE "switchman_shards"."id" = 577 [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.0ms) begin transaction [shard 577 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 577 master]  (0.6ms) commit transaction [shard 577 master] Drop failed: No such file or directory @ unlink_internal - db/shard_577.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 577]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 564 master]  (0.2ms) CREATE SCHEMA switchman_test_shard_578 [shard 578 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 578 deploy]  (15.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 578 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 578 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 578 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 578 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 578 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 578 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 578 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 578 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 578 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 578 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 578 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 578 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 578 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 578 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 578 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 578 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_578' WHERE "switchman_shards"."id" = 578 [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 578 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 578 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 578 master]  (2.8ms) DROP SCHEMA switchman_test_shard_578 CASCADE [shard 578 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 578]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (2.2ms) ROLLBACK [shard 564 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master]  (0.0ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master]  (0.0ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master]  (0.0ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master]  (0.0ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master]  (0.0ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 564], ["name", nil]] [shard 564 master]  (0.4ms) COMMIT [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 565], ["name", "switchman_test_shard_565"]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 566], ["name", "switchman_test_shard_566"]] [shard 564 master]  (0.2ms) COMMIT [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.1ms) SAVEPOINT active_record_1 [shard 565 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 565 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 565 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 564 master] SQL (0.1ms) DELETE FROM "users" [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 564 master] SQL (0.1ms) DELETE FROM "users" [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master]  (0.0ms) BEGIN [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 564 master]  (0.2ms) COMMIT [shard 564 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1061]] [shard 564 master] CACHE (0.0ms) 564::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1061]] CACHE (0.0ms) 564::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1061]]  (0.1ms) BEGIN [shard 564 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-07-22 19:13:41.332941' WHERE "users"."id" = 1061 [shard 564 master]  (0.2ms) COMMIT [shard 564 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1061]] [shard 564 master] CACHE (0.0ms) 564::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1061]] SQL (0.4ms) DELETE FROM "users" [shard 564 master]  (0.0ms) BEGIN [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 564 master] SQL (0.8ms) DELETE FROM "users" [shard 564 master] SQL (0.1ms) DELETE FROM "users" [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 564 master] SQL (0.3ms) DELETE FROM "users" [shard 564 master] SQL (0.1ms) DELETE FROM "users" [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 564 master]  (0.3ms) COMMIT [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 564 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.0ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.0ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.0ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 564 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 564 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 564 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:13:41.388385' [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) SAVEPOINT active_record_1 [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 564 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 564 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 564 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:13:41.393992' [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 564 master]  (0.4ms) COMMIT [shard 564 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 564 master] SQL (0.5ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:13:41.397785' [shard 564 master] SQL (15.5ms) DELETE FROM "users" [shard 564 master]  (0.1ms) BEGIN [shard 564 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:41 UTC +00:00]] [shard 564 master]  (15.2ms) COMMIT [shard 564 master] User Load (0.3ms) SELECT "users".* FROM "users" [shard 564 master] SQL (15.4ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:13:41.433759' [shard 564 master] SQL (15.3ms) DELETE FROM "users" [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 564 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.0ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 564 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.0ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.0ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.1ms) BEGIN [shard 566 master]  (0.1ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master]  (0.1ms) BEGIN [shard 564 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 565]] [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [shard 564 master]  (0.0ms) BEGIN [shard 566 master]  (0.0ms) ROLLBACK [shard 566 master]  (0.1ms) ROLLBACK [shard 564 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 564 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 564 master]  (4.2ms) DROP SCHEMA switchman_test_shard_565 CASCADE [shard 565 deploy]  (0.0ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 565]]  (0.1ms) COMMIT  (6.0ms) DROP SCHEMA switchman_test_shard_566 CASCADE [shard 566 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 566]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "non_existent_shard"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "users" does not exist LINE 5: WHERE a.attrelid = '"users"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.3ms) SELECT COUNT(*) FROM "users" [shard 580 master]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.2ms) CREATE SCHEMA switchman_test_shard_588 [shard 588 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 588 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 588 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 588 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 588 deploy]  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 588 deploy] Migrating to CreateAppendages (20130411202442)  (2.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 588 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 588 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 588 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 588 deploy] Migrating to CreateDigits (20131022202028)  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 588 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 588 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 588 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 588 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 588 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 588 deploy] Migrating to CreateRoots (20140219183820)  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 588 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 588 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_588' WHERE "switchman_shards"."id" = 588 [shard 587 master]  (0.8ms) COMMIT [shard 587 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '8' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", "public"]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_589 [shard 589 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 589 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 589 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 589 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 589 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 589 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 589 deploy]  (0.3ms) COMMIT [shard 589 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 589 deploy]  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 589 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 589 deploy]  (0.3ms) COMMIT [shard 589 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 589 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 589 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 589 deploy]  (0.3ms) COMMIT [shard 589 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 589 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 589 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 589 deploy]  (0.3ms) COMMIT [shard 589 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 589 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 589 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 589 deploy]  (0.3ms) COMMIT [shard 589 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 589 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 589 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 589 deploy]  (0.2ms) COMMIT [shard 589 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 589 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 589 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 589 deploy]  (0.3ms) COMMIT [shard 589 deploy]  (0.1ms) BEGIN [shard 587 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_589' WHERE "switchman_shards"."id" = 589 [shard 587 master]  (0.3ms) COMMIT [shard 587 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 587], ["name", nil]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 588], ["name", "switchman_test_shard_588"]] [shard 587 master]  (0.2ms) COMMIT [shard 587 master]  (0.0ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 589], ["name", "switchman_test_shard_589"]] [shard 587 master]  (0.2ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:58 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:58 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 588 LIMIT 1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:58 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (14.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:58 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:58 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:58 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:58 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:58 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:58 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 587], ["name", nil]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 588], ["name", "switchman_test_shard_588"]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 589], ["name", "switchman_test_shard_589"]] [shard 587 master]  (0.2ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:58 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:58 UTC +00:00], ["user_id", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 26]] [shard 587 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 26]] [shard 587 master] MirrorUser Load (0.4ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 26 LIMIT 1 [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 587], ["name", nil]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 588], ["name", "switchman_test_shard_588"]] [shard 587 master]  (0.2ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 589], ["name", "switchman_test_shard_589"]] [shard 587 master]  (0.2ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.2ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (587, 588) AND (id IN (588,589)) [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.0ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.0ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.0ms) ROLLBACK [shard 587 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 587], ["name", nil]] [shard 587 master]  (0.2ms) COMMIT [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 588], ["name", "switchman_test_shard_588"]] [shard 587 master]  (0.2ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 589], ["name", "switchman_test_shard_589"]] [shard 587 master]  (0.2ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 1074], ["value", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 1075], ["value", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1075], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1076], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1076]] [shard 587 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1075 LIMIT 1 [shard 587 master]  (0.2ms) SHOW max_identifier_length [shard 587 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 1075 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 1078], ["value", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 1079], ["value", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 588 LIMIT 1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 1080], ["value", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 1081], ["value", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 1082], ["value", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.2ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 1083], ["value", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 1084], ["value", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 1085], ["value", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 1086], ["value", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 1087], ["value", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 1088], ["value", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 1089], ["value", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 1090], ["value", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 1091], ["value", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 587], ["name", nil]] [shard 587 master]  (0.4ms) COMMIT [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 588], ["name", "switchman_test_shard_588"]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 589], ["name", "switchman_test_shard_589"]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 587 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 587 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 587], ["name", nil]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 588], ["name", "switchman_test_shard_588"]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 589], ["name", "switchman_test_shard_589"]] [shard 587 master]  (0.2ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 588 LIMIT 1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.0ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.0ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 592]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 592 LIMIT 1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.0ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 593]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.0ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.0ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10589 LIMIT 1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.0ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 589 LIMIT 1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.0ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '11' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", "public"]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_594 [shard 594 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 594 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 594 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 594 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 594 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 594 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 594 deploy]  (0.3ms) COMMIT [shard 594 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 594 deploy]  (2.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 594 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 594 deploy]  (0.3ms) COMMIT [shard 594 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 594 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 594 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 594 deploy]  (0.4ms) COMMIT [shard 594 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 594 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 594 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 594 deploy]  (0.3ms) COMMIT [shard 594 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 594 deploy]  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 594 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 594 deploy]  (0.4ms) COMMIT [shard 594 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 594 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 594 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 594 deploy]  (0.2ms) COMMIT [shard 594 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 594 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 594 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 594 deploy]  (0.3ms) COMMIT [shard 594 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_594' WHERE "switchman_shards"."id" = 594 [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) BEGIN [shard 594 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 594 master]  (0.3ms) COMMIT [shard 594 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 594 master]  (4.7ms) DROP SCHEMA switchman_test_shard_594 CASCADE [shard 594 deploy]  (0.4ms) SELECT COUNT(*) FROM "users"  [shard 594 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 587], ["name", nil]] [shard 587 master]  (0.2ms) COMMIT [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.0ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 588], ["name", "switchman_test_shard_588"]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 589], ["name", "switchman_test_shard_589"]] [shard 587 master]  (0.2ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 20], ["value", 1]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 589 LIMIT 1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 5890000000000017], ["value", 3]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 588 LIMIT 1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 5880000000000020], ["value", 2]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 17], ["value", 4]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 17], ["value", 5]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SHOW max_identifier_length [shard 587 master]  (0.6ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 588 master]  (0.5ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 589 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 588 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 589 master]  (0.1ms) SHOW max_identifier_length [shard 589 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 588 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 589 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 588 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 588 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [shard 589 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 589 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [shard 589 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.0ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 21], ["value", 1]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 5890000000000018], ["value", 3]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 5880000000000021], ["value", 2]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 18], ["value", 4]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 18], ["value", 5]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 588 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 589 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 588 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 589 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 588 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 589 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 588 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 588 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 589 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 589 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 589 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.0ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 22], ["value", 1]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 5890000000000019], ["value", 3]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 5880000000000022], ["value", 2]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 19], ["value", 4]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 19], ["value", 5]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 588 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 589 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 588 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 589 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 588 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 589 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 588 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 588 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 589 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 589 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 589 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 23], ["value", 1]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 5890000000000020], ["value", 3]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 5880000000000023], ["value", 2]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 20], ["value", 4]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 20], ["value", 5]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 25], ["value", 1]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 5890000000000021], ["value", 3]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 5880000000000025], ["value", 2]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 21], ["value", 4]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 21], ["value", 5]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 588 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 589 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 588 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 589 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 588 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 589 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 588 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 588 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 589 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 589 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 589 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 26], ["value", 1]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 5890000000000022], ["value", 3]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 5880000000000026], ["value", 2]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 22], ["value", 4]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 22], ["value", 5]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 588 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 589 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 588 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 589 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 588 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 589 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 588 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 588 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 589 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 589 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 589 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 27], ["value", 1]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 27], ["value", 2]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 23], ["value", 3]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 23], ["value", 4]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 23], ["value", 5]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 27 [shard 588 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 588 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 23 [shard 589 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 589 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (32, 33) [shard 588 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (36, 37, 38) [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 28], ["value", 1]] [shard 588 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 28], ["value", 2]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 24], ["value", 3]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 24], ["value", 4]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 24], ["value", 5]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 28 [shard 588 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 588 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 24 [shard 589 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 589 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (34, 35) [shard 588 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (39, 40, 41) [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 29], ["value", 1]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 29], ["value", 2]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 25], ["value", 3]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 25], ["value", 4]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 25], ["value", 5]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 29 [shard 588 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 588 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 25 [shard 589 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 589 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (36, 37) [shard 588 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (42, 43, 44) [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 30], ["value", 1]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 30], ["value", 2]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 26], ["value", 3]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 26], ["value", 4]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 26], ["value", 5]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 30 [shard 588 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 588 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 26 [shard 589 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 589 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (38, 39) [shard 588 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (45, 46, 47) [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 31], ["value", 1]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 31], ["value", 2]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 27], ["value", 3]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 27], ["value", 4]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 27], ["value", 5]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 31 [shard 588 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 588 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 27 [shard 589 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 589 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (40, 41) [shard 588 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (48, 49, 50) [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 588 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 589 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 588 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 589 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 588 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 588 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 589 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 588 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 589 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 588 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (34) [shard 588 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (30) [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 587], ["name", nil]] [shard 587 master]  (0.5ms) COMMIT [shard 587 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.2ms) BEGIN [shard 587 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 588], ["name", "switchman_test_shard_588"]] [shard 587 master]  (0.2ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 589], ["name", "switchman_test_shard_589"]] [shard 587 master]  (0.2ms) COMMIT [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master] SQL (0.8ms) DELETE FROM "switchman_shards" [shard 587 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 587], ["name", nil]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.0ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 588], ["name", "switchman_test_shard_588"]] [shard 587 master]  (0.2ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 589], ["name", "switchman_test_shard_589"]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master]  (0.7ms) SELECT COUNT(*) FROM "users" [shard 589 master]  (0.1ms) SAVEPOINT active_record_2 [shard 589 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 589 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 587], ["name", nil]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.0ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 588], ["name", "switchman_test_shard_588"]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master]  (0.0ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 589], ["name", "switchman_test_shard_589"]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.0ms) BEGIN [shard 587 master]  (0.0ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master]  (0.0ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 587 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 587], ["name", nil]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 588], ["name", "switchman_test_shard_588"]] [shard 587 master]  (0.2ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 589], ["name", "switchman_test_shard_589"]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["owner_id", 1093], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:13:59 UTC +00:00], ["value", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master] Feature Load (0.3ms) SELECT owner_id FROM "features" WHERE "features"."id" = 52 LIMIT 1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 588 LIMIT 1 [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 589 LIMIT 1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master] SQL (15.9ms) DELETE FROM "switchman_shards" [shard 587 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 587], ["name", nil]] [shard 587 master]  (0.2ms) COMMIT [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 588], ["name", "switchman_test_shard_588"]] [shard 587 master]  (0.2ms) COMMIT [shard 587 master]  (0.0ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 589], ["name", "switchman_test_shard_589"]] [shard 587 master]  (0.2ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 35 LIMIT 1 [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 587 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 587 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 588 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 37]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 5880000000000037 LIMIT 1 [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 588 LIMIT 1 [shard 587 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 38 LIMIT 1 [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) LIMIT 1 [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 40]] [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master] SQL (15.4ms) DELETE FROM "switchman_shards" [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 587], ["name", nil]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 588], ["name", "switchman_test_shard_588"]] [shard 587 master]  (0.2ms) COMMIT [shard 587 master]  (0.0ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 589], ["name", "switchman_test_shard_589"]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.0ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.0ms) ROLLBACK [shard 587 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 587], ["name", nil]] [shard 587 master]  (0.2ms) COMMIT [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.0ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 588], ["name", "switchman_test_shard_588"]] [shard 587 master]  (0.2ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 589], ["name", "switchman_test_shard_589"]] [shard 587 master]  (0.2ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 41 [shard 588 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 588 LIMIT 1 [shard 587 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]] [shard 588 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 41 [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 46], ["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 43 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.0ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 48]] [shard 588 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 45 LIMIT 1 [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 46], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 47], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 588 master]  (0.1ms) SHOW max_identifier_length [shard 588 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 46 AND "users"."id" = 48 LIMIT 1 [shard 588 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 588 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 46 AND "users"."id" = 5890000000000040 LIMIT 1 [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.0ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 589 LIMIT 1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 52 AND "appendages"."id" = $1 LIMIT 1 [["id", 51]] [shard 588 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 44 AND "appendages"."id" = $1 LIMIT 1 [["id", 51]] [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.0ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 52], ["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 5880000000000055], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["value", 2]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 55 AND "digits"."value" IS NULL [shard 588 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5880000000000055 AND "digits"."value" IS NULL [shard 589 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 55]] [shard 588 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 55 AND "digits"."value" IS NULL [shard 588 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5880000000000055 AND "digits"."value" IS NULL [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 53], ["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["value", 1]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 5880000000000056], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["value", 2]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 56 [shard 588 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 56]] [shard 588 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 56 [shard 588 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5880000000000056 [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 57], ["value", 1]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 5880000000000057], ["value", 2]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 57 [shard 588 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 57]] [shard 588 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 57 [shard 588 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 5880000000000057 [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 5880000000000058], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 58], ["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["value", 2]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 58 AND "digits"."value" IS NULL [shard 588 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5880000000000058 AND "digits"."value" IS NULL [shard 589 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 58]] [shard 588 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 58 AND "digits"."value" IS NULL [shard 588 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5880000000000058 AND "digits"."value" IS NULL [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["value", 1]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 5880000000000059], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 59], ["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["value", 2]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 59 AND (digits.value IS NOT NULL) [shard 588 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5880000000000059 AND (digits.value IS NOT NULL) [shard 589 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 59]] [shard 588 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 59 AND (digits.value IS NOT NULL) [shard 588 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5880000000000059 AND (digits.value IS NOT NULL) [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 60], ["value", 1]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.0ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 5880000000000060], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 60 AND "appendages"."value" IS NULL [shard 588 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 5880000000000060 AND "appendages"."value" IS NULL [shard 589 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 60]] [shard 588 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 60 AND "appendages"."value" IS NULL [shard 588 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 5880000000000060 AND "appendages"."value" IS NULL [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 61], ["value", 1]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 5880000000000061], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 61], ["value", 2]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [shard 588 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 61 AND (appendages.value IS NOT NULL) [shard 588 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 5880000000000061 AND (appendages.value IS NOT NULL) [shard 589 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [shard 588 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 61 AND (appendages.value IS NOT NULL) [shard 588 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 5880000000000061 AND (appendages.value IS NOT NULL) [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["owner_id", 553], ["owner_type", "Appendage"], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["value", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 53]] [shard 587 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 553 LIMIT 1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master]  (0.2ms) UPDATE "features" SET "owner_id" = 5880000000000062, "owner_type" = 'User', "updated_at" = '2014-07-22 19:14:00.403241' WHERE "features"."id" = 53 [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 53]] [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.0ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["owner_id", 63], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["value", 1]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["owner_id", 5880000000000063], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["value", 2]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 63 AND "features"."owner_type" = 'User' [shard 588 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [shard 588 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 63 AND "features"."owner_type" = 'User' [shard 588 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 5880000000000063 AND "features"."owner_type" = 'User' [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 5880000000000064], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 5880000000000064], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 60], ["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 62], ["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5890000000000062], ["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5890000000000063], ["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 5890000000000056], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master]  (0.0ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5880000000000061], ["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5890000000000064], ["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5890000000000065], ["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [shard 588 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (64) [shard 588 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (5880000000000064) [shard 589 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (60, 5890000000000062) [shard 588 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (62, 63) [shard 589 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 589 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (56) [shard 589 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (64) [shard 589 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (5890000000000065) [shard 588 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 65], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 5880000000000065], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 5890000000000057], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 588 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (65) [shard 588 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (5880000000000065) [shard 589 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 589 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (57) [shard 589 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 62 [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 5880000000000066], ["value", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 554], ["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["value", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 5890000000000058], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5880000000000064], ["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["value", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits"  [shard 587 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (554) [shard 587 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (64) [shard 588 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 588 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 589 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 66 [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 5880000000000067], ["value", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 5890000000000059], ["value", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 1095], ["value", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 587 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1095) [shard 587 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 588 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 589 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 67 [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.0ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 5890000000000060], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 65]] [shard 588 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 60 LIMIT 1 [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 69 LIMIT 1 [shard 588 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 66]] [shard 588 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 69 LIMIT 1 [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) SAVEPOINT active_record_1 [shard 589 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["user_id", 5890000000000062]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 26]] [shard 587 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 62 LIMIT 1 [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 587], ["name", nil]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 588], ["name", "switchman_test_shard_588"]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 589], ["name", "switchman_test_shard_589"]] [shard 587 master]  (0.2ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 72 [shard 588 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1097]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 588 LIMIT 1 [shard 587 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 72]] [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (1098) [shard 587 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (73) [shard 588 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1098]] [shard 587 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 73]] [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 74 LIMIT 1 [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1100) [shard 587 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) [shard 588 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 588 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 587], ["name", nil]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 588], ["name", "switchman_test_shard_588"]] [shard 587 master]  (0.2ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 589], ["name", "switchman_test_shard_589"]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:15:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:15:00 UTC +00:00]] [shard 588 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.0ms) ROLLBACK [shard 588 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master]  (0.0ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 587], ["name", nil]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 588], ["name", "switchman_test_shard_588"]] [shard 587 master]  (0.2ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 589], ["name", "switchman_test_shard_589"]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master]  (0.0ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 587], ["name", nil]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.0ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 588], ["name", "switchman_test_shard_588"]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 589], ["name", "switchman_test_shard_589"]] [shard 587 master]  (0.2ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '15' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", "public"]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_599 [shard 599 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 599 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 599 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 599 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 599 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 599 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 599 deploy]  (0.3ms) COMMIT [shard 599 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 599 deploy]  (1.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 599 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 599 deploy]  (0.3ms) COMMIT [shard 599 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 599 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 599 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 599 deploy]  (0.3ms) COMMIT [shard 599 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 599 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 599 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 599 deploy]  (0.3ms) COMMIT [shard 599 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 599 deploy]  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 599 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 599 deploy]  (0.3ms) COMMIT [shard 599 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 599 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 599 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 599 deploy]  (0.3ms) COMMIT [shard 599 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 599 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 599 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 599 deploy]  (0.4ms) COMMIT [shard 599 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_599' WHERE "switchman_shards"."id" = 599 [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) BEGIN [shard 599 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 599 master]  (0.3ms) COMMIT [shard 599 master]  (5.0ms) DROP SCHEMA switchman_test_shard_599 CASCADE [shard 599 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 599]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '16' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", nil]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.0ms) select sqlite_version(*) [shard 600 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 600 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 600 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 600 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 600 deploy]  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 600 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 600 deploy]  (0.7ms) commit transaction [shard 600 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 600 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 600 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 600 deploy]  (0.7ms) commit transaction [shard 600 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) begin transaction [shard 600 deploy]  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 600 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 600 deploy]  (0.6ms) commit transaction [shard 600 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 600 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 600 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 600 deploy]  (0.7ms) commit transaction [shard 600 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 600 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 600 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 600 deploy]  (0.7ms) commit transaction [shard 600 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 600 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 600 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 600 deploy]  (0.6ms) commit transaction [shard 600 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 600 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 600 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 600 deploy]  (0.7ms) commit transaction [shard 600 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_600.sqlite3' WHERE "switchman_shards"."id" = 600 [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.0ms) begin transaction [shard 600 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 600 master]  (0.6ms) commit transaction [shard 600 master] Drop failed: No such file or directory @ unlink_internal - db/shard_600.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 600]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 587 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_601 [shard 601 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 601 deploy]  (15.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 601 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 601 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 601 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 601 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 601 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 601 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 601 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 601 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 601 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 601 deploy] Migrating to CreateFeatures (20131206172923)  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 601 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 601 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 601 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 601 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 601 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 601 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_601' WHERE "switchman_shards"."id" = 601 [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 601 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 601 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 601 master]  (2.7ms) DROP SCHEMA switchman_test_shard_601 CASCADE [shard 601 deploy]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 601]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (2.1ms) ROLLBACK [shard 587 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master]  (0.0ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master]  (0.0ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master]  (0.0ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master]  (0.0ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 587], ["name", nil]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 588], ["name", "switchman_test_shard_588"]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 589], ["name", "switchman_test_shard_589"]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.0ms) SAVEPOINT active_record_1 [shard 588 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 588 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 588 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 588 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 587 master] SQL (0.1ms) DELETE FROM "users" [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 587 master] SQL (0.1ms) DELETE FROM "users" [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1105]] [shard 587 master] CACHE (0.0ms) 587::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1105]] CACHE (0.0ms) 587::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1105]]  (0.1ms) BEGIN [shard 587 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-07-22 19:14:00.891732' WHERE "users"."id" = 1105 [shard 587 master]  (0.3ms) COMMIT [shard 587 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1105]] [shard 587 master] CACHE (0.0ms) 587::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1105]] SQL (0.4ms) DELETE FROM "users" [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 587 master] SQL (1.0ms) DELETE FROM "users" [shard 587 master] SQL (0.2ms) DELETE FROM "users" [shard 587 master]  (0.0ms) BEGIN [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 587 master] SQL (0.3ms) DELETE FROM "users" [shard 587 master] SQL (0.2ms) DELETE FROM "users" [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 587 master]  (0.0ms) BEGIN [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 587 master]  (0.4ms) COMMIT [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 587 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 587 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:14:00.950744' [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) SAVEPOINT active_record_1 [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 587 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 587 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 587 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:14:00.955796' [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 587 master]  (0.4ms) COMMIT [shard 587 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 587 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:14:00.959619' [shard 587 master] SQL (0.4ms) DELETE FROM "users" [shard 587 master]  (0.1ms) BEGIN [shard 587 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:00 UTC +00:00]] [shard 587 master]  (0.3ms) COMMIT [shard 587 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 587 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:14:00.963964' [shard 587 master] SQL (0.3ms) DELETE FROM "users" [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master] User Load (0.5ms) SELECT "users".* FROM "users" FOR UPDATE [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 587 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.1ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.0ms) ROLLBACK [shard 589 master]  (0.0ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.0ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.1ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master]  (0.0ms) BEGIN [shard 587 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 588]] [shard 587 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 589]] [shard 587 master]  (0.1ms) BEGIN [shard 589 master]  (0.2ms) ROLLBACK [shard 589 master]  (0.1ms) ROLLBACK [shard 587 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 587 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 587 master]  (4.1ms) DROP SCHEMA switchman_test_shard_588 CASCADE [shard 588 deploy]  (0.0ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 588]]  (0.1ms) COMMIT  (6.2ms) DROP SCHEMA switchman_test_shard_589 CASCADE [shard 589 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 589]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "non_existent_shard"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "users" does not exist LINE 5: WHERE a.attrelid = '"users"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.3ms) SELECT COUNT(*) FROM "users" [shard 603 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.2ms) CREATE SCHEMA switchman_test_shard_611 [shard 611 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 611 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 611 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 611 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 611 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 611 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 611 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 611 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 611 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 611 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 611 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 611 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 611 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 611 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 611 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 611 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 611 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 611 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_611' WHERE "switchman_shards"."id" = 611 [shard 610 master]  (0.7ms) COMMIT [shard 610 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '8' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", "public"]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_612 [shard 612 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 612 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 612 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 612 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 612 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 612 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 612 deploy]  (0.3ms) COMMIT [shard 612 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 612 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 612 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 612 deploy]  (0.3ms) COMMIT [shard 612 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 612 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 612 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 612 deploy]  (0.3ms) COMMIT [shard 612 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 612 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 612 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 612 deploy]  (0.3ms) COMMIT [shard 612 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 612 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 612 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 612 deploy]  (0.3ms) COMMIT [shard 612 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 612 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 612 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 612 deploy]  (0.2ms) COMMIT [shard 612 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 612 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 612 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 612 deploy]  (0.3ms) COMMIT [shard 612 deploy]  (0.1ms) BEGIN [shard 610 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_612' WHERE "switchman_shards"."id" = 612 [shard 610 master]  (0.3ms) COMMIT [shard 610 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 610], ["name", nil]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 611], ["name", "switchman_test_shard_611"]] [shard 610 master]  (0.2ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 612], ["name", "switchman_test_shard_612"]] [shard 610 master]  (0.2ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 611 LIMIT 1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (15.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 610], ["name", nil]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 611], ["name", "switchman_test_shard_611"]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master]  (0.0ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 612], ["name", "switchman_test_shard_612"]] [shard 610 master]  (0.2ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["user_id", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master] MirrorUser Load (0.4ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 27]] [shard 610 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 27]] [shard 610 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 27 LIMIT 1 [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 610], ["name", nil]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 611], ["name", "switchman_test_shard_611"]] [shard 610 master]  (0.2ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 612], ["name", "switchman_test_shard_612"]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) ROLLBACK [shard 612 master]  (0.0ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (610, 611) AND (id IN (611,612)) [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.0ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) ROLLBACK [shard 612 master]  (0.0ms) ROLLBACK [shard 610 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 610], ["name", nil]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 611], ["name", "switchman_test_shard_611"]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 612], ["name", "switchman_test_shard_612"]] [shard 610 master]  (0.2ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["user_id", 1118], ["value", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["user_id", 1119], ["value", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1119], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1120], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1120]] [shard 610 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1119 LIMIT 1 [shard 610 master]  (0.1ms) SHOW max_identifier_length [shard 610 master] User Load (0.4ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 1119 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["user_id", 1122], ["value", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["user_id", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["user_id", 1123], ["value", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 611 LIMIT 1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["user_id", 1124], ["value", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:03 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 1125], ["value", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 1126], ["value", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.2ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 1127], ["value", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 1128], ["value", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 1129], ["value", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 1130], ["value", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 1131], ["value", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 1132], ["value", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 1133], ["value", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 1134], ["value", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 1135], ["value", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 610], ["name", nil]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 611], ["name", "switchman_test_shard_611"]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 612], ["name", "switchman_test_shard_612"]] [shard 610 master]  (0.2ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 610], ["name", nil]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 611], ["name", "switchman_test_shard_611"]] [shard 610 master]  (0.2ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 612], ["name", "switchman_test_shard_612"]] [shard 610 master]  (0.2ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 611 LIMIT 1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) ROLLBACK [shard 612 master]  (0.0ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.0ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 615]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 615 LIMIT 1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 616]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) ROLLBACK [shard 612 master]  (0.0ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) ROLLBACK [shard 612 master]  (0.0ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10612 LIMIT 1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 612 LIMIT 1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) ROLLBACK [shard 612 master]  (0.0ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.0ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '11' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", "public"]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_617 [shard 617 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 617 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 617 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 617 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 617 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 617 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 617 deploy]  (0.3ms) COMMIT [shard 617 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 617 deploy]  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 617 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 617 deploy]  (0.3ms) COMMIT [shard 617 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 617 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 617 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 617 deploy]  (0.4ms) COMMIT [shard 617 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 617 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 617 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 617 deploy]  (0.3ms) COMMIT [shard 617 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 617 deploy]  (1.4ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 617 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 617 deploy]  (0.3ms) COMMIT [shard 617 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 617 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 617 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 617 deploy]  (0.2ms) COMMIT [shard 617 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 617 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 617 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 617 deploy]  (0.3ms) COMMIT [shard 617 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_617' WHERE "switchman_shards"."id" = 617 [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) BEGIN [shard 617 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 617 master]  (0.3ms) COMMIT [shard 617 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 617 master]  (4.8ms) DROP SCHEMA switchman_test_shard_617 CASCADE [shard 617 deploy]  (0.4ms) SELECT COUNT(*) FROM "users"  [shard 617 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 610], ["name", nil]] [shard 610 master]  (0.2ms) COMMIT [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 611], ["name", "switchman_test_shard_611"]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master]  (0.5ms) BEGIN [shard 610 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 612], ["name", "switchman_test_shard_612"]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 20], ["value", 1]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 612 LIMIT 1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 6120000000000017], ["value", 3]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 611 LIMIT 1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 6110000000000020], ["value", 2]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 17], ["value", 4]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 17], ["value", 5]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SHOW max_identifier_length [shard 610 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 611 master]  (0.5ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 612 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 611 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 612 master]  (0.1ms) SHOW max_identifier_length [shard 612 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 611 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 612 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 611 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 611 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [shard 612 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 612 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [shard 612 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 21], ["value", 1]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 6120000000000018], ["value", 3]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 6110000000000021], ["value", 2]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 18], ["value", 4]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 18], ["value", 5]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 611 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 612 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 611 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 612 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 611 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 612 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 611 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 611 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 612 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 612 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 612 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.0ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 22], ["value", 1]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 6120000000000019], ["value", 3]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 6110000000000022], ["value", 2]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 19], ["value", 4]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 19], ["value", 5]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 611 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 612 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 611 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 612 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 611 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 612 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 611 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 611 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 612 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 612 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 612 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.0ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 23], ["value", 1]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 6120000000000020], ["value", 3]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 6110000000000023], ["value", 2]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 20], ["value", 4]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 20], ["value", 5]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 25], ["value", 1]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 6120000000000021], ["value", 3]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 6110000000000025], ["value", 2]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 21], ["value", 4]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 21], ["value", 5]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 611 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 612 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 611 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 612 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 611 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 612 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 611 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 611 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 612 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 612 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 612 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 26], ["value", 1]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 6120000000000022], ["value", 3]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 6110000000000026], ["value", 2]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 22], ["value", 4]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 22], ["value", 5]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 611 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 612 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 611 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 612 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 611 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 612 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 611 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 611 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 612 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 612 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 612 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 27], ["value", 1]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 27], ["value", 2]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 23], ["value", 3]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 23], ["value", 4]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 23], ["value", 5]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 27 [shard 611 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 611 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 23 [shard 612 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 612 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (32, 33) [shard 611 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (36, 37, 38) [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 28], ["value", 1]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 28], ["value", 2]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 24], ["value", 3]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 24], ["value", 4]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 24], ["value", 5]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 28 [shard 611 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 611 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 24 [shard 612 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 612 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (34, 35) [shard 611 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (39, 40, 41) [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.2ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 29], ["value", 1]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 29], ["value", 2]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 25], ["value", 3]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 25], ["value", 4]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 25], ["value", 5]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 29 [shard 611 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 611 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 25 [shard 612 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 612 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (36, 37) [shard 611 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (42, 43, 44) [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 30], ["value", 1]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 30], ["value", 2]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 26], ["value", 3]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 26], ["value", 4]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 26], ["value", 5]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 30 [shard 611 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 611 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 26 [shard 612 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 612 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (38, 39) [shard 611 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (45, 46, 47) [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 31], ["value", 1]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 31], ["value", 2]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 27], ["value", 3]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 27], ["value", 4]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 27], ["value", 5]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 31 [shard 611 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 611 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 27 [shard 612 master]  (0.1ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 612 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (40, 41) [shard 611 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (48, 49, 50) [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 611 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 612 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 611 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 612 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 611 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 611 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 612 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 611 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 612 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 611 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (34) [shard 611 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (30) [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 610], ["name", nil]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 611], ["name", "switchman_test_shard_611"]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 612], ["name", "switchman_test_shard_612"]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master] SQL (0.9ms) DELETE FROM "switchman_shards" [shard 610 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 610], ["name", nil]] [shard 610 master]  (0.4ms) COMMIT [shard 610 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 611], ["name", "switchman_test_shard_611"]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 612], ["name", "switchman_test_shard_612"]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 612 master]  (0.1ms) SAVEPOINT active_record_2 [shard 612 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 612 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 610], ["name", nil]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 611], ["name", "switchman_test_shard_611"]] [shard 610 master]  (0.2ms) COMMIT [shard 610 master]  (0.0ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 612], ["name", "switchman_test_shard_612"]] [shard 610 master]  (0.2ms) COMMIT [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.0ms) BEGIN [shard 610 master]  (0.0ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master]  (0.0ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 610 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 610], ["name", nil]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.0ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 611], ["name", "switchman_test_shard_611"]] [shard 610 master]  (0.2ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 612], ["name", "switchman_test_shard_612"]] [shard 610 master]  (0.2ms) COMMIT [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["owner_id", 1137], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["value", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master] Feature Load (0.3ms) SELECT owner_id FROM "features" WHERE "features"."id" = 54 LIMIT 1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 611 LIMIT 1 [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 612 LIMIT 1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master] SQL (15.8ms) DELETE FROM "switchman_shards" [shard 610 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 610], ["name", nil]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 611], ["name", "switchman_test_shard_611"]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 612], ["name", "switchman_test_shard_612"]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 35 LIMIT 1 [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 610 master] User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 610 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 611 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 37]] [shard 611 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 611 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 6110000000000037 LIMIT 1 [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 611 LIMIT 1 [shard 610 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 38 LIMIT 1 [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) LIMIT 1 [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:04 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 40]] [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master] SQL (14.7ms) DELETE FROM "switchman_shards" [shard 610 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 610], ["name", nil]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 611], ["name", "switchman_test_shard_611"]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 612], ["name", "switchman_test_shard_612"]] [shard 610 master]  (0.2ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 610], ["name", nil]] [shard 610 master]  (0.2ms) COMMIT [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 611], ["name", "switchman_test_shard_611"]] [shard 610 master]  (0.2ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 612], ["name", "switchman_test_shard_612"]] [shard 610 master]  (0.2ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 41 [shard 611 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 611 LIMIT 1 [shard 610 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]] [shard 611 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 41 [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 46], ["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master] Digit Load (0.6ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 43 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 48]] [shard 611 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 45 LIMIT 1 [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 46], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 47], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 611 master]  (0.1ms) SHOW max_identifier_length [shard 611 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 46 AND "users"."id" = 48 LIMIT 1 [shard 611 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 611 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 46 AND "users"."id" = 6120000000000040 LIMIT 1 [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 612 LIMIT 1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.0ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 52 AND "appendages"."id" = $1 LIMIT 1 [["id", 51]] [shard 611 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 44 AND "appendages"."id" = $1 LIMIT 1 [["id", 51]] [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 52], ["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 6110000000000055], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["value", 2]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 55 AND "digits"."value" IS NULL [shard 611 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6110000000000055 AND "digits"."value" IS NULL [shard 612 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 55]] [shard 611 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 55 AND "digits"."value" IS NULL [shard 611 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6110000000000055 AND "digits"."value" IS NULL [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 53], ["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["value", 1]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 6110000000000056], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["value", 2]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 56 [shard 611 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 56]] [shard 611 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 56 [shard 611 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6110000000000056 [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 57], ["value", 1]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 6110000000000057], ["value", 2]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 57 [shard 611 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 57]] [shard 611 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 57 [shard 611 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 6110000000000057 [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 6110000000000058], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 58], ["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["value", 2]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 58 AND "digits"."value" IS NULL [shard 611 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6110000000000058 AND "digits"."value" IS NULL [shard 612 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 58]] [shard 611 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 58 AND "digits"."value" IS NULL [shard 611 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6110000000000058 AND "digits"."value" IS NULL [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["value", 1]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 6110000000000059], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 59], ["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["value", 2]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 59 AND (digits.value IS NOT NULL) [shard 611 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6110000000000059 AND (digits.value IS NOT NULL) [shard 612 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 59]] [shard 611 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 59 AND (digits.value IS NOT NULL) [shard 611 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6110000000000059 AND (digits.value IS NOT NULL) [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 60], ["value", 1]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 6110000000000060], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 60 AND "appendages"."value" IS NULL [shard 611 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 6110000000000060 AND "appendages"."value" IS NULL [shard 612 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 60]] [shard 611 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 60 AND "appendages"."value" IS NULL [shard 611 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 6110000000000060 AND "appendages"."value" IS NULL [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 61], ["value", 1]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 6110000000000061], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 61], ["value", 2]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [shard 611 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 61 AND (appendages.value IS NOT NULL) [shard 611 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 6110000000000061 AND (appendages.value IS NOT NULL) [shard 612 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [shard 611 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 61 AND (appendages.value IS NOT NULL) [shard 611 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 6110000000000061 AND (appendages.value IS NOT NULL) [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["owner_id", 575], ["owner_type", "Appendage"], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["value", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 55]] [shard 610 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 575 LIMIT 1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master]  (0.3ms) UPDATE "features" SET "owner_id" = 6110000000000062, "owner_type" = 'User', "updated_at" = '2014-07-22 19:14:05.294959' WHERE "features"."id" = 55 [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 55]] [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.2ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["owner_id", 63], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["value", 1]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.8ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["owner_id", 6110000000000063], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["value", 2]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 63 AND "features"."owner_type" = 'User' [shard 611 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [shard 611 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 63 AND "features"."owner_type" = 'User' [shard 611 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 6110000000000063 AND "features"."owner_type" = 'User' [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.2ms) ROLLBACK [shard 611 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 6110000000000064], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 6110000000000064], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 60], ["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 62], ["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6120000000000062], ["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6120000000000063], ["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 6120000000000056], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6110000000000061], ["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6120000000000064], ["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6120000000000065], ["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [shard 611 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (64) [shard 611 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (6110000000000064) [shard 612 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (60, 6120000000000062) [shard 611 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (62, 63) [shard 612 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 612 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (56) [shard 612 master] Digit Load (0.1ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (64) [shard 612 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (6120000000000065) [shard 611 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 65], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 6110000000000065], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 6120000000000057], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 611 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (65) [shard 611 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (6110000000000065) [shard 612 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 612 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (57) [shard 612 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 62 [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 6110000000000066], ["value", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 576], ["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["value", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 6120000000000058], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6110000000000064], ["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["value", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits"  [shard 610 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (576) [shard 610 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (64) [shard 611 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 611 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 612 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 66 [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 6110000000000067], ["value", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 6120000000000059], ["value", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 1139], ["value", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 610 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1139) [shard 610 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 611 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 612 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 67 [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 6120000000000060], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 65]] [shard 611 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 60 LIMIT 1 [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 69 LIMIT 1 [shard 611 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 66]] [shard 611 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 69 LIMIT 1 [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) SAVEPOINT active_record_1 [shard 612 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 612 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.7ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["user_id", 6120000000000062]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master] Root Load (0.4ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 27]] [shard 610 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 62 LIMIT 1 [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 610], ["name", nil]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 611], ["name", "switchman_test_shard_611"]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 612], ["name", "switchman_test_shard_612"]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 72 [shard 611 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1141]] [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 611 LIMIT 1 [shard 610 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 72]] [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (1142) [shard 610 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (73) [shard 611 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1142]] [shard 610 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 73]] [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 74 LIMIT 1 [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1144) [shard 610 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) [shard 611 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 611 master] SQL (4.7ms) DELETE FROM "switchman_shards" [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 610], ["name", nil]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 611], ["name", "switchman_test_shard_611"]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 612], ["name", "switchman_test_shard_612"]] [shard 610 master]  (0.2ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:15:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:15:05 UTC +00:00]] [shard 611 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.0ms) ROLLBACK [shard 612 master]  (0.0ms) ROLLBACK [shard 611 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master]  (0.0ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 610], ["name", nil]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 611], ["name", "switchman_test_shard_611"]] [shard 610 master]  (0.2ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 612], ["name", "switchman_test_shard_612"]] [shard 610 master]  (0.2ms) COMMIT [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 610], ["name", nil]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 611], ["name", "switchman_test_shard_611"]] [shard 610 master]  (0.2ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 612], ["name", "switchman_test_shard_612"]] [shard 610 master]  (0.2ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '15' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", "public"]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_622 [shard 622 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 622 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 622 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 622 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 622 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 622 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 622 deploy]  (0.3ms) COMMIT [shard 622 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 622 deploy]  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 622 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 622 deploy]  (0.3ms) COMMIT [shard 622 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 622 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 622 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 622 deploy]  (0.3ms) COMMIT [shard 622 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 622 deploy]  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 622 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 622 deploy]  (0.3ms) COMMIT [shard 622 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 622 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 622 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 622 deploy]  (0.3ms) COMMIT [shard 622 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 622 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 622 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 622 deploy]  (0.2ms) COMMIT [shard 622 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 622 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 622 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 622 deploy]  (0.3ms) COMMIT [shard 622 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_622' WHERE "switchman_shards"."id" = 622 [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) BEGIN [shard 622 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 622 master]  (0.2ms) COMMIT [shard 622 master]  (4.8ms) DROP SCHEMA switchman_test_shard_622 CASCADE [shard 622 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 622]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '16' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", nil]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.0ms) select sqlite_version(*) [shard 623 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 623 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 623 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 623 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 623 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 623 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 623 deploy]  (0.7ms) commit transaction [shard 623 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 623 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 623 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 623 deploy]  (0.7ms) commit transaction [shard 623 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 623 deploy]  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 623 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 623 deploy]  (0.6ms) commit transaction [shard 623 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 623 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 623 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 623 deploy]  (0.7ms) commit transaction [shard 623 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 623 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 623 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 623 deploy]  (0.7ms) commit transaction [shard 623 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 623 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 623 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 623 deploy]  (0.6ms) commit transaction [shard 623 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 623 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 623 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 623 deploy]  (0.6ms) commit transaction [shard 623 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_623.sqlite3' WHERE "switchman_shards"."id" = 623 [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.0ms) begin transaction [shard 623 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 623 master]  (0.6ms) commit transaction [shard 623 master] Drop failed: No such file or directory @ unlink_internal - db/shard_623.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 623]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 610 master]  (0.2ms) CREATE SCHEMA switchman_test_shard_624 [shard 624 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 624 deploy]  (15.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 624 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 624 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 624 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 624 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 624 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 624 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 624 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 624 deploy] Migrating to CreateDigits (20131022202028)  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 624 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 624 deploy] Migrating to CreateFeatures (20131206172923)  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 624 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 624 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 624 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 624 deploy] Migrating to CreateRoots (20140219183820)  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 624 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 624 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_624' WHERE "switchman_shards"."id" = 624 [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 624 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 624 master]  (2.8ms) DROP SCHEMA switchman_test_shard_624 CASCADE [shard 624 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 624]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (2.2ms) ROLLBACK [shard 610 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master]  (0.0ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master]  (0.0ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master]  (0.0ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 610], ["name", nil]] [shard 610 master]  (0.4ms) COMMIT [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 611], ["name", "switchman_test_shard_611"]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 612], ["name", "switchman_test_shard_612"]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.0ms) SAVEPOINT active_record_1 [shard 611 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 611 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 611 master]  (0.0ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 611 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 610 master] SQL (0.1ms) DELETE FROM "users" [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 610 master] SQL (0.1ms) DELETE FROM "users" [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 610 master]  (0.4ms) COMMIT [shard 610 master]  (0.0ms) BEGIN [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1149]] [shard 610 master] CACHE (0.0ms) 610::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1149]] CACHE (0.0ms) 610::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1149]]  (0.1ms) BEGIN [shard 610 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-07-22 19:14:05.804063' WHERE "users"."id" = 1149 [shard 610 master]  (0.3ms) COMMIT [shard 610 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1149]] [shard 610 master] CACHE (0.0ms) 610::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1149]] SQL (0.3ms) DELETE FROM "users" [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 610 master] SQL (0.9ms) DELETE FROM "users" [shard 610 master] SQL (0.2ms) DELETE FROM "users" [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 610 master]  (0.4ms) COMMIT [shard 610 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 610 master] SQL (0.4ms) DELETE FROM "users" [shard 610 master] SQL (0.1ms) DELETE FROM "users" [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 610 master]  (0.2ms) COMMIT [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 610 master]  (0.0ms) BEGIN [shard 610 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 610 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.0ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 610 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:14:05.860078' [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) SAVEPOINT active_record_1 [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 610 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 610 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 610 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:14:05.865268' [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 610 master]  (0.3ms) COMMIT [shard 610 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 610 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:14:05.869491' [shard 610 master] SQL (0.3ms) DELETE FROM "users" [shard 610 master]  (0.1ms) BEGIN [shard 610 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:05 UTC +00:00]] [shard 610 master]  (0.2ms) COMMIT [shard 610 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 610 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:14:05.873816' [shard 610 master] SQL (0.3ms) DELETE FROM "users" [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 610 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.1ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.1ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.1ms) BEGIN [shard 612 master]  (0.0ms) ROLLBACK [shard 612 master]  (0.1ms) ROLLBACK [shard 610 master]  (0.0ms) BEGIN [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 611]] [shard 610 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 612]] [shard 610 master]  (0.0ms) BEGIN [shard 612 master]  (0.0ms) ROLLBACK [shard 612 master]  (0.0ms) ROLLBACK [shard 610 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 610 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 610 master]  (4.2ms) DROP SCHEMA switchman_test_shard_611 CASCADE [shard 611 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 611]]  (0.1ms) COMMIT  (6.5ms) DROP SCHEMA switchman_test_shard_612 CASCADE [shard 612 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 612]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "non_existent_shard"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "users" does not exist LINE 5: WHERE a.attrelid = '"users"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.3ms) SELECT COUNT(*) FROM "users" [shard 626 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.3ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.4ms) CREATE SCHEMA switchman_test_shard_634 [shard 634 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 634 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 634 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 634 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 634 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 634 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 634 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 634 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 634 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 634 deploy] Migrating to CreateDigits (20131022202028)  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 634 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 634 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 634 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 634 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 634 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 634 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 634 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 634 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_634' WHERE "switchman_shards"."id" = 634 [shard 633 master]  (0.7ms) COMMIT [shard 633 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '8' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", "public"]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_635 [shard 635 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 635 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 635 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 635 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 635 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 635 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 635 deploy]  (0.3ms) COMMIT [shard 635 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 635 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 635 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 635 deploy]  (0.3ms) COMMIT [shard 635 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 635 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 635 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 635 deploy]  (0.3ms) COMMIT [shard 635 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 635 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 635 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 635 deploy]  (0.3ms) COMMIT [shard 635 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 635 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 635 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 635 deploy]  (0.3ms) COMMIT [shard 635 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 635 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 635 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 635 deploy]  (0.2ms) COMMIT [shard 635 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) BEGIN [shard 635 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 635 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 635 deploy]  (0.3ms) COMMIT [shard 635 deploy]  (0.1ms) BEGIN [shard 633 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_635' WHERE "switchman_shards"."id" = 635 [shard 633 master]  (0.3ms) COMMIT [shard 633 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 633], ["name", nil]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 634], ["name", "switchman_test_shard_634"]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master]  (0.0ms) BEGIN [shard 633 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 635], ["name", "switchman_test_shard_635"]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 634 LIMIT 1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (14.9ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 633], ["name", nil]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 634], ["name", "switchman_test_shard_634"]] [shard 633 master]  (0.4ms) COMMIT [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 635], ["name", "switchman_test_shard_635"]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master] MirrorUser Load (0.4ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 28]] [shard 633 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 28]] [shard 633 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 28 LIMIT 1 [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.0ms) ROLLBACK [shard 633 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 633], ["name", nil]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 634], ["name", "switchman_test_shard_634"]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 635], ["name", "switchman_test_shard_635"]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.0ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (633, 634) AND (id IN (634,635)) [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 633], ["name", nil]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 634], ["name", "switchman_test_shard_634"]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master]  (0.0ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 635], ["name", "switchman_test_shard_635"]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 1162], ["value", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 1163], ["value", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1163], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1164], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1164]] [shard 633 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1163 LIMIT 1 [shard 633 master]  (0.1ms) SHOW max_identifier_length [shard 633 master] User Load (0.4ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 1163 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 1166], ["value", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 1167], ["value", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 634 LIMIT 1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 1168], ["value", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 1169], ["value", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 1170], ["value", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 1171], ["value", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 1172], ["value", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 1173], ["value", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 1174], ["value", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 1175], ["value", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 1176], ["value", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 1177], ["value", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 1178], ["value", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 1179], ["value", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:08 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 633], ["name", nil]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 634], ["name", "switchman_test_shard_634"]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 635], ["name", "switchman_test_shard_635"]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 633], ["name", nil]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 634], ["name", "switchman_test_shard_634"]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 635], ["name", "switchman_test_shard_635"]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 634 LIMIT 1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 638]] [shard 633 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 638 LIMIT 1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 639]] [shard 633 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 633 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.0ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.0ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10635 LIMIT 1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 635 LIMIT 1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.0ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.0ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '11' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", "public"]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_640 [shard 640 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 640 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 640 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 640 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 640 deploy]  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 640 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 640 deploy]  (0.3ms) COMMIT [shard 640 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 640 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 640 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 640 deploy]  (0.3ms) COMMIT [shard 640 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) BEGIN [shard 640 deploy]  (2.3ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 640 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 640 deploy]  (0.3ms) COMMIT [shard 640 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 640 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 640 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 640 deploy]  (0.3ms) COMMIT [shard 640 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 640 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 640 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 640 deploy]  (0.3ms) COMMIT [shard 640 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 640 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 640 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 640 deploy]  (0.3ms) COMMIT [shard 640 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) BEGIN [shard 640 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 640 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 640 deploy]  (0.3ms) COMMIT [shard 640 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_640' WHERE "switchman_shards"."id" = 640 [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) BEGIN [shard 640 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 640 master]  (0.3ms) COMMIT [shard 640 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 640 master]  (4.9ms) DROP SCHEMA switchman_test_shard_640 CASCADE [shard 640 deploy]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 640 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 633], ["name", nil]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 634], ["name", "switchman_test_shard_634"]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 635], ["name", "switchman_test_shard_635"]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 20], ["value", 1]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 635 LIMIT 1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 6350000000000017], ["value", 3]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 634 LIMIT 1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 6340000000000020], ["value", 2]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 17], ["value", 4]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 17], ["value", 5]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SHOW max_identifier_length [shard 633 master]  (0.5ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 634 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 635 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 634 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 635 master]  (0.1ms) SHOW max_identifier_length [shard 635 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 634 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 635 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 634 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 634 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [shard 635 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 635 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [shard 635 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 21], ["value", 1]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 6350000000000018], ["value", 3]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 6340000000000021], ["value", 2]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 18], ["value", 4]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 18], ["value", 5]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 634 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 635 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 634 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 635 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 634 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 635 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 634 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 634 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 635 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 635 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 635 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.0ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 22], ["value", 1]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 6350000000000019], ["value", 3]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 6340000000000022], ["value", 2]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 19], ["value", 4]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 19], ["value", 5]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 634 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 635 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 634 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 635 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 634 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 635 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 634 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 634 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 635 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 635 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 635 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 23], ["value", 1]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 6350000000000020], ["value", 3]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 6340000000000023], ["value", 2]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 20], ["value", 4]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 20], ["value", 5]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 25], ["value", 1]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 6350000000000021], ["value", 3]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 6340000000000025], ["value", 2]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 21], ["value", 4]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 21], ["value", 5]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 634 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 635 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 634 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 635 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 634 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 635 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 634 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 634 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 635 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 635 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 635 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.0ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 26], ["value", 1]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 6350000000000022], ["value", 3]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 6340000000000026], ["value", 2]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 22], ["value", 4]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 22], ["value", 5]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 634 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 635 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 634 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 635 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 634 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 635 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 634 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 634 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 635 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 635 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 635 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 27], ["value", 1]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 27], ["value", 2]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 23], ["value", 3]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 23], ["value", 4]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 23], ["value", 5]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 27 [shard 634 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 634 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 23 [shard 635 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 635 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (32, 33) [shard 634 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (36, 37, 38) [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 28], ["value", 1]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 28], ["value", 2]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 24], ["value", 3]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 24], ["value", 4]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 24], ["value", 5]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 28 [shard 634 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 634 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 24 [shard 635 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 635 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (34, 35) [shard 634 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (39, 40, 41) [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 29], ["value", 1]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 29], ["value", 2]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 25], ["value", 3]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 25], ["value", 4]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 25], ["value", 5]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 29 [shard 634 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 634 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 25 [shard 635 master]  (0.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 635 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (36, 37) [shard 634 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (42, 43, 44) [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 30], ["value", 1]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 30], ["value", 2]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 26], ["value", 3]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 26], ["value", 4]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 26], ["value", 5]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 30 [shard 634 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 634 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 26 [shard 635 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 635 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (38, 39) [shard 634 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (45, 46, 47) [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 31], ["value", 1]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 31], ["value", 2]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 27], ["value", 3]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 27], ["value", 4]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 27], ["value", 5]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 31 [shard 634 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 634 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 27 [shard 635 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 635 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (40, 41) [shard 634 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (48, 49, 50) [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 634 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 635 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 634 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 635 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 634 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 634 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 635 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 634 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 635 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 634 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (34) [shard 634 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (30) [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 633], ["name", nil]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 634], ["name", "switchman_test_shard_634"]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 635], ["name", "switchman_test_shard_635"]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.2ms) ROLLBACK [shard 633 master] SQL (0.8ms) DELETE FROM "switchman_shards" [shard 633 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 633], ["name", nil]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 634], ["name", "switchman_test_shard_634"]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master]  (0.0ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 635], ["name", "switchman_test_shard_635"]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (1.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master]  (0.6ms) SELECT COUNT(*) FROM "users" [shard 635 master]  (0.1ms) SAVEPOINT active_record_2 [shard 635 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 635 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 633], ["name", nil]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 634], ["name", "switchman_test_shard_634"]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 635], ["name", "switchman_test_shard_635"]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.0ms) BEGIN [shard 633 master]  (0.0ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 633 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 633], ["name", nil]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 634], ["name", "switchman_test_shard_634"]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master]  (0.0ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 635], ["name", "switchman_test_shard_635"]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["owner_id", 1181], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["value", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master] Feature Load (0.3ms) SELECT owner_id FROM "features" WHERE "features"."id" = 56 LIMIT 1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 634 LIMIT 1 [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 635 LIMIT 1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master] SQL (15.4ms) DELETE FROM "switchman_shards" [shard 633 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 633], ["name", nil]] [shard 633 master]  (14.6ms) COMMIT [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 634], ["name", "switchman_test_shard_634"]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 635], ["name", "switchman_test_shard_635"]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 35 LIMIT 1 [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 633 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 633 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 634 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 37]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 6340000000000037 LIMIT 1 [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 634 LIMIT 1 [shard 633 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 38 LIMIT 1 [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) LIMIT 1 [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 40]] [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master] SQL (15.4ms) DELETE FROM "switchman_shards" [shard 633 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 633], ["name", nil]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 634], ["name", "switchman_test_shard_634"]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 635], ["name", "switchman_test_shard_635"]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.0ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.0ms) ROLLBACK [shard 633 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 633], ["name", nil]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.0ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 634], ["name", "switchman_test_shard_634"]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 635], ["name", "switchman_test_shard_635"]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 41 [shard 634 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 634 LIMIT 1 [shard 633 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]] [shard 634 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 41 [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.0ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.0ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 46], ["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 43 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 48]] [shard 634 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 45 LIMIT 1 [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 46], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 47], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 634 master]  (0.1ms) SHOW max_identifier_length [shard 634 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 46 AND "users"."id" = 48 LIMIT 1 [shard 634 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 634 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 46 AND "users"."id" = 6350000000000040 LIMIT 1 [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 635 LIMIT 1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 52 AND "appendages"."id" = $1 LIMIT 1 [["id", 51]] [shard 634 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 44 AND "appendages"."id" = $1 LIMIT 1 [["id", 51]] [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.0ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:09 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 52], ["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 6340000000000055], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["value", 2]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 55 AND "digits"."value" IS NULL [shard 634 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6340000000000055 AND "digits"."value" IS NULL [shard 635 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 55]] [shard 634 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 55 AND "digits"."value" IS NULL [shard 634 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6340000000000055 AND "digits"."value" IS NULL [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 53], ["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["value", 1]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 6340000000000056], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["value", 2]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 56 [shard 634 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 56]] [shard 634 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 56 [shard 634 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6340000000000056 [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.0ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 57], ["value", 1]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.0ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 6340000000000057], ["value", 2]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 57 [shard 634 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 57]] [shard 634 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 57 [shard 634 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 6340000000000057 [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 6340000000000058], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 58], ["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["value", 2]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 58 AND "digits"."value" IS NULL [shard 634 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6340000000000058 AND "digits"."value" IS NULL [shard 635 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 58]] [shard 634 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 58 AND "digits"."value" IS NULL [shard 634 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6340000000000058 AND "digits"."value" IS NULL [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["value", 1]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 6340000000000059], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 59], ["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["value", 2]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 59 AND (digits.value IS NOT NULL) [shard 634 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6340000000000059 AND (digits.value IS NOT NULL) [shard 635 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 59]] [shard 634 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 59 AND (digits.value IS NOT NULL) [shard 634 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6340000000000059 AND (digits.value IS NOT NULL) [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 60], ["value", 1]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.0ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 6340000000000060], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 60 AND "appendages"."value" IS NULL [shard 634 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 6340000000000060 AND "appendages"."value" IS NULL [shard 635 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 60]] [shard 634 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 60 AND "appendages"."value" IS NULL [shard 634 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 6340000000000060 AND "appendages"."value" IS NULL [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 61], ["value", 1]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 6340000000000061], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 61], ["value", 2]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [shard 634 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 61 AND (appendages.value IS NOT NULL) [shard 634 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 6340000000000061 AND (appendages.value IS NOT NULL) [shard 635 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [shard 634 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 61 AND (appendages.value IS NOT NULL) [shard 634 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 6340000000000061 AND (appendages.value IS NOT NULL) [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.0ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["owner_id", 597], ["owner_type", "Appendage"], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["value", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 57]] [shard 633 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 597 LIMIT 1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master]  (0.2ms) UPDATE "features" SET "owner_id" = 6340000000000062, "owner_type" = 'User', "updated_at" = '2014-07-22 19:14:10.144294' WHERE "features"."id" = 57 [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master] Feature Load (0.1ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 57]] [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["owner_id", 63], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["value", 1]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.9ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["owner_id", 6340000000000063], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["value", 2]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 63 AND "features"."owner_type" = 'User' [shard 634 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [shard 634 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 63 AND "features"."owner_type" = 'User' [shard 634 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 6340000000000063 AND "features"."owner_type" = 'User' [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 6340000000000064], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 6340000000000064], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.2ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 60], ["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["value", nil]] [shard 634 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 62], ["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6350000000000062], ["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6350000000000063], ["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 6350000000000056], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master]  (0.0ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6340000000000061], ["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6350000000000064], ["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6350000000000065], ["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [shard 634 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (64) [shard 634 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (6340000000000064) [shard 635 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (60, 6350000000000062) [shard 634 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (62, 63) [shard 635 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 635 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (56) [shard 635 master] Digit Load (0.1ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (64) [shard 635 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (6350000000000065) [shard 634 master] SQL (0.1ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 65], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 6340000000000065], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 6350000000000057], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 634 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (65) [shard 634 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (6340000000000065) [shard 635 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 635 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (57) [shard 635 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 62 [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 6340000000000066], ["value", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 598], ["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["value", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 6350000000000058], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6340000000000064], ["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["value", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits"  [shard 633 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (598) [shard 633 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (64) [shard 634 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 634 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 635 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 66 [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 6340000000000067], ["value", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 6350000000000059], ["value", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 1183], ["value", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 633 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1183) [shard 633 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 634 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 635 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 67 [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.2ms) ROLLBACK [shard 634 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 6350000000000060], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 65]] [shard 634 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 60 LIMIT 1 [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.0ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 635 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 69 LIMIT 1 [shard 634 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 66]] [shard 634 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 69 LIMIT 1 [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 635 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 635 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["user_id", 6350000000000062]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 28]] [shard 633 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 62 LIMIT 1 [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 633], ["name", nil]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 634], ["name", "switchman_test_shard_634"]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 635], ["name", "switchman_test_shard_635"]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 72 [shard 634 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1185]] [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 634 LIMIT 1 [shard 633 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 72]] [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (1186) [shard 633 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (73) [shard 634 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1186]] [shard 633 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 73]] [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 74 LIMIT 1 [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1188) [shard 633 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) [shard 634 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 634 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 633], ["name", nil]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 634], ["name", "switchman_test_shard_634"]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master]  (0.0ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 635], ["name", "switchman_test_shard_635"]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:15:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:15:10 UTC +00:00]] [shard 634 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.0ms) ROLLBACK [shard 634 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 633], ["name", nil]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 634], ["name", "switchman_test_shard_634"]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 635], ["name", "switchman_test_shard_635"]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 633 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master]  (0.0ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 633], ["name", nil]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 634], ["name", "switchman_test_shard_634"]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 635], ["name", "switchman_test_shard_635"]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '15' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", "public"]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_645 [shard 645 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 645 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 645 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 645 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 645 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 645 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 645 deploy]  (0.3ms) COMMIT [shard 645 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 645 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 645 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 645 deploy]  (0.4ms) COMMIT [shard 645 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 645 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 645 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 645 deploy]  (0.3ms) COMMIT [shard 645 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 645 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 645 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 645 deploy]  (0.3ms) COMMIT [shard 645 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 645 deploy]  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 645 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 645 deploy]  (0.3ms) COMMIT [shard 645 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 645 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 645 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 645 deploy]  (0.2ms) COMMIT [shard 645 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 645 deploy]  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 645 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 645 deploy]  (0.3ms) COMMIT [shard 645 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_645' WHERE "switchman_shards"."id" = 645 [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) BEGIN [shard 645 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 645 master]  (0.3ms) COMMIT [shard 645 master]  (6.4ms) DROP SCHEMA switchman_test_shard_645 CASCADE [shard 645 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 645]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '16' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", nil]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.0ms) select sqlite_version(*) [shard 646 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 646 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 646 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 646 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 646 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 646 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 646 deploy]  (0.7ms) commit transaction [shard 646 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 646 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 646 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 646 deploy]  (0.5ms) commit transaction [shard 646 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 646 deploy]  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 646 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 646 deploy]  (0.6ms) commit transaction [shard 646 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 646 deploy]  (0.3ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 646 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 646 deploy]  (0.6ms) commit transaction [shard 646 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 646 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 646 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 646 deploy]  (0.7ms) commit transaction [shard 646 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 646 deploy]  (0.3ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 646 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 646 deploy]  (0.7ms) commit transaction [shard 646 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 646 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 646 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 646 deploy]  (0.6ms) commit transaction [shard 646 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_646.sqlite3' WHERE "switchman_shards"."id" = 646 [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.0ms) begin transaction [shard 646 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 646 master]  (0.6ms) commit transaction [shard 646 master] Drop failed: No such file or directory @ unlink_internal - db/shard_646.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 646]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 633 master]  (0.2ms) CREATE SCHEMA switchman_test_shard_647 [shard 647 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 647 deploy]  (15.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 647 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 647 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 647 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 647 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 647 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 647 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 647 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 647 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 647 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 647 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 647 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 647 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 647 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 647 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 647 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 647 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_647' WHERE "switchman_shards"."id" = 647 [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 647 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 647 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 647 master]  (2.8ms) DROP SCHEMA switchman_test_shard_647 CASCADE [shard 647 deploy]  (0.0ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 647]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (2.7ms) ROLLBACK [shard 633 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master]  (0.0ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master]  (0.0ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master]  (0.0ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 633], ["name", nil]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 634], ["name", "switchman_test_shard_634"]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master]  (0.0ms) BEGIN [shard 633 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 635], ["name", "switchman_test_shard_635"]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.0ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 634 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 634 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 634 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 634 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 633 master] SQL (0.1ms) DELETE FROM "users" [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 633 master] SQL (0.1ms) DELETE FROM "users" [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 633 master]  (0.4ms) COMMIT [shard 633 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1193]] [shard 633 master] CACHE (0.0ms) 633::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1193]] CACHE (0.0ms) 633::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1193]]  (0.1ms) BEGIN [shard 633 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-07-22 19:14:10.650663' WHERE "users"."id" = 1193 [shard 633 master]  (0.3ms) COMMIT [shard 633 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1193]] [shard 633 master] CACHE (0.0ms) 633::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1193]] SQL (0.3ms) DELETE FROM "users" [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 633 master] SQL (0.9ms) DELETE FROM "users" [shard 633 master] SQL (0.2ms) DELETE FROM "users" [shard 633 master]  (0.0ms) BEGIN [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 633 master] SQL (0.4ms) DELETE FROM "users" [shard 633 master] SQL (0.1ms) DELETE FROM "users" [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 633 master]  (0.3ms) COMMIT [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 633 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 633 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:14:10.707169' [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) SAVEPOINT active_record_1 [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 633 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 633 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 633 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:14:10.712591' [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 633 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:14:10.716879' [shard 633 master] SQL (0.3ms) DELETE FROM "users" [shard 633 master]  (0.1ms) BEGIN [shard 633 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:14:10 UTC +00:00]] [shard 633 master]  (0.2ms) COMMIT [shard 633 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 633 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:14:10.721311' [shard 633 master] SQL (0.3ms) DELETE FROM "users" [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 633 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.1ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.1ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.1ms) BEGIN [shard 635 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.1ms) ROLLBACK [shard 633 master]  (0.0ms) BEGIN [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 634]] [shard 633 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 635]] [shard 633 master]  (0.0ms) BEGIN [shard 635 master]  (0.0ms) ROLLBACK [shard 635 master]  (0.0ms) ROLLBACK [shard 633 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 633 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 633 master]  (4.2ms) DROP SCHEMA switchman_test_shard_634 CASCADE [shard 634 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 634]]  (0.1ms) COMMIT  (6.2ms) DROP SCHEMA switchman_test_shard_635 CASCADE [shard 635 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 635]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (15.2ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_649 [shard 649 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 649 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 649 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 649 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 649 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 649 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 649 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 649 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 649 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 649 deploy] Migrating to CreateDigits (20131022202028)  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 649 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 649 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 649 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 649 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 649 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 649 deploy] Migrating to CreateRoots (20140219183820)  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 649 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 649 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_649' WHERE "switchman_shards"."id" = 649 [shard 648 master]  (1.0ms) COMMIT [shard 648 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_650 [shard 650 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 650 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 650 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 650 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 650 deploy]  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 650 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 650 deploy]  (0.3ms) COMMIT [shard 650 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 650 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 650 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 650 deploy]  (0.3ms) COMMIT [shard 650 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 650 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 650 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 650 deploy]  (0.3ms) COMMIT [shard 650 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 650 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 650 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 650 deploy]  (0.2ms) COMMIT [shard 650 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 650 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 650 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 650 deploy]  (0.3ms) COMMIT [shard 650 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 650 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 650 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 650 deploy]  (0.3ms) COMMIT [shard 650 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 650 deploy]  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 650 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 650 deploy]  (0.3ms) COMMIT [shard 650 deploy]  (0.1ms) BEGIN [shard 648 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_650' WHERE "switchman_shards"."id" = 650 [shard 648 master]  (0.2ms) COMMIT [shard 648 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 648], ["name", nil]] [shard 648 master]  (0.2ms) COMMIT [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.0ms) BEGIN [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 649], ["name", "switchman_test_shard_649"]] [shard 648 master]  (0.2ms) COMMIT [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 650], ["name", "switchman_test_shard_650"]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master] SQL (0.8ms) DELETE FROM "switchman_shards" [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 648], ["name", nil]] [shard 648 master]  (0.2ms) COMMIT [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 649], ["name", "switchman_test_shard_649"]] [shard 648 master]  (0.2ms) COMMIT [shard 648 master]  (0.0ms) BEGIN [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 650], ["name", "switchman_test_shard_650"]] [shard 648 master]  (0.2ms) COMMIT [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 649 LIMIT 1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 653]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 653 LIMIT 1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) ROLLBACK [shard 650 master]  (0.0ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 654]] [shard 648 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.0ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.0ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.0ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 650 LIMIT 1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10650 LIMIT 1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) ROLLBACK [shard 650 master]  (0.0ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) ROLLBACK [shard 650 master]  (0.0ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.0ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) ROLLBACK [shard 650 master]  (0.0ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.0ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '5' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", "public"]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_655 [shard 655 deploy]  (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 655 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 655 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 655 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 655 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 655 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 655 deploy]  (0.3ms) COMMIT [shard 655 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 655 deploy]  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 655 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 655 deploy]  (0.3ms) COMMIT [shard 655 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 655 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 655 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 655 deploy]  (0.3ms) COMMIT [shard 655 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 655 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 655 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 655 deploy]  (0.4ms) COMMIT [shard 655 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 655 deploy]  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 655 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 655 deploy]  (0.4ms) COMMIT [shard 655 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 655 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 655 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 655 deploy]  (0.2ms) COMMIT [shard 655 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 655 deploy]  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 655 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 655 deploy]  (0.3ms) COMMIT [shard 655 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master]  (0.4ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_655' WHERE "switchman_shards"."id" = 655 [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) BEGIN [shard 655 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 655 master]  (0.3ms) COMMIT [shard 655 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 655 master]  (4.9ms) DROP SCHEMA switchman_test_shard_655 CASCADE [shard 655 deploy]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 655 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.1ms) BEGIN [shard 648 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 648], ["name", nil]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 649], ["name", "switchman_test_shard_649"]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 650], ["name", "switchman_test_shard_650"]] [shard 648 master]  (0.2ms) COMMIT [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 648], ["name", nil]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.0ms) BEGIN [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 649], ["name", "switchman_test_shard_649"]] [shard 648 master]  (0.2ms) COMMIT [shard 648 master]  (0.0ms) BEGIN [shard 648 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 650], ["name", "switchman_test_shard_650"]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:35:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:35:29 UTC +00:00]] [shard 649 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.0ms) ROLLBACK [shard 650 master]  (0.0ms) ROLLBACK [shard 649 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 648], ["name", nil]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 649], ["name", "switchman_test_shard_649"]] [shard 648 master]  (0.2ms) COMMIT [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 650], ["name", "switchman_test_shard_650"]] [shard 648 master]  (0.2ms) COMMIT [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 648], ["name", nil]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 649], ["name", "switchman_test_shard_649"]] [shard 648 master]  (0.2ms) COMMIT [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 650], ["name", "switchman_test_shard_650"]] [shard 648 master]  (0.2ms) COMMIT [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 1205], ["value", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 1206], ["value", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1206], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1207], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1207]] [shard 648 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1206 LIMIT 1 [shard 648 master]  (0.1ms) SHOW max_identifier_length [shard 648 master] User Load (0.6ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 1206 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 1209], ["value", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 649 LIMIT 1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 1210], ["value", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 1211], ["value", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 1212], ["value", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 1213], ["value", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 1214], ["value", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 1215], ["value", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 1216], ["value", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 1217], ["value", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 1218], ["value", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 1219], ["value", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 648 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 1220], ["value", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 1221], ["value", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 1222], ["value", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.1ms) BEGIN [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", "non_existent_shard"]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.4ms) SELECT COUNT(*) FROM "users"  [shard 658 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.8ms) SELECT COUNT(*) FROM "users" [shard 659 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.2ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 648], ["name", nil]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 649], ["name", "switchman_test_shard_649"]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 650], ["name", "switchman_test_shard_650"]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (648, 649) AND (id IN (649,650)) [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.0ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 648], ["name", nil]] [shard 648 master]  (0.4ms) COMMIT [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 649], ["name", "switchman_test_shard_649"]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 650], ["name", "switchman_test_shard_650"]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:29 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 649 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 648 master]  (0.0ms) BEGIN [shard 648 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.0ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 648 master]  (0.2ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 648 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:34:30.078633' [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 648 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:34:30.084400' [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 648 master]  (0.4ms) COMMIT [shard 648 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 648 master] SQL (0.6ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:34:30.088527' [shard 648 master] SQL (0.4ms) DELETE FROM "users" [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 648 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:34:30.093585' [shard 648 master] SQL (0.4ms) DELETE FROM "users" [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 648 master] SQL (0.1ms) DELETE FROM "users" [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 648 master] SQL (0.1ms) DELETE FROM "users" [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 648 master]  (0.2ms) COMMIT [shard 648 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 648 master] SQL (0.3ms) DELETE FROM "users" [shard 648 master] SQL (0.1ms) DELETE FROM "users" [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 648 master] SQL (0.4ms) DELETE FROM "users" [shard 648 master] SQL (0.1ms) DELETE FROM "users" [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 648 master]  (0.2ms) COMMIT [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1237]] [shard 648 master] CACHE (0.0ms) 648::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1237]] CACHE (0.0ms) 648::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1237]]  (0.1ms) BEGIN [shard 648 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-07-22 19:34:30.121258' WHERE "users"."id" = 1237 [shard 648 master]  (0.3ms) COMMIT [shard 648 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1237]] [shard 648 master] CACHE (0.0ms) 648::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1237]] SQL (0.4ms) DELETE FROM "users" [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) ROLLBACK [shard 650 master]  (0.0ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.0ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.0ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 648], ["name", nil]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.0ms) BEGIN [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 649], ["name", "switchman_test_shard_649"]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master]  (0.0ms) BEGIN [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 650], ["name", "switchman_test_shard_650"]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 649 LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 650 LIMIT 1 [shard 648 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (20) [shard 649 master] SQL (0.3ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (17) [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 18 [shard 649 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 18 [shard 650 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 18 [shard 649 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 18 [shard 650 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 18 [shard 649 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 18 [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 649 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 650 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 649 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 650 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 649 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 23], ["value", 1]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 23], ["value", 2]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 20], ["value", 3]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 20], ["value", 4]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 20], ["value", 5]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 23 [shard 649 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 649 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 20 [shard 650 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 650 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (20, 21) [shard 649 master]  (0.4ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (20, 21, 22) [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 24], ["value", 1]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 24], ["value", 2]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 21], ["value", 3]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 21], ["value", 4]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 21], ["value", 5]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 24 [shard 649 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 649 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 21 [shard 650 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 650 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (22, 23) [shard 649 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (23, 24, 25) [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 25], ["value", 1]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 25], ["value", 2]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 22], ["value", 3]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 22], ["value", 4]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 22], ["value", 5]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 25 [shard 649 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 649 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 22 [shard 650 master]  (0.1ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 650 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (24, 25) [shard 649 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (26, 27, 28) [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 26], ["value", 1]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 26], ["value", 2]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 23], ["value", 3]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 23], ["value", 4]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 23], ["value", 5]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 26 [shard 649 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 649 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 23 [shard 650 master]  (0.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 650 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (26, 27) [shard 649 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (29, 30, 31) [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 27], ["value", 1]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 27], ["value", 2]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 24], ["value", 3]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 24], ["value", 4]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 24], ["value", 5]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 27 [shard 649 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 649 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 24 [shard 650 master]  (0.1ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 650 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (28, 29) [shard 649 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (32, 33, 34) [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.0ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 28], ["value", 1]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 6500000000000025], ["value", 3]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 6490000000000028], ["value", 2]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 25], ["value", 4]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 25], ["value", 5]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 649 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 650 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 649 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 650 master]  (0.1ms) SHOW max_identifier_length [shard 650 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 649 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 650 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 650 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 29], ["value", 1]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 6500000000000026], ["value", 3]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 6490000000000029], ["value", 2]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 26], ["value", 4]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 26], ["value", 5]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 649 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 650 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 649 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 650 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 649 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 650 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [shard 649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 650 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 30], ["value", 1]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 6500000000000027], ["value", 3]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 6490000000000030], ["value", 2]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 27], ["value", 4]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 27], ["value", 5]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 649 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 650 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 649 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 650 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 649 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 650 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [shard 649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 650 master]  (0.4ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 31], ["value", 1]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 6500000000000028], ["value", 3]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 6490000000000031], ["value", 2]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 28], ["value", 4]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 28], ["value", 5]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 31], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 33], ["value", 1]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 6500000000000029], ["value", 3]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 6490000000000033], ["value", 2]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 29], ["value", 4]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 29], ["value", 5]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 649 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 650 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 649 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 650 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 649 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 650 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (33) [shard 649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [shard 650 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [shard 650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (33) [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 34], ["value", 1]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 6500000000000030], ["value", 3]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 6490000000000034], ["value", 2]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 30], ["value", 4]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 30], ["value", 5]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 649 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 650 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 649 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 650 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 649 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 650 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (34) [shard 649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [shard 650 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [shard 650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (34) [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 648], ["name", nil]] [shard 648 master]  (0.4ms) COMMIT [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 649], ["name", "switchman_test_shard_649"]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 650], ["name", "switchman_test_shard_650"]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 649 LIMIT 1 [shard 648 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1238) [shard 648 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35) [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 36 LIMIT 1 [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (1240) [shard 648 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (37) [shard 649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1240]] [shard 648 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 37]] [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 38 [shard 649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1241]] [shard 648 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 38]] [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.1ms) BEGIN [shard 648 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 648 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master]  (0.0ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 648], ["name", nil]] [shard 648 master]  (15.6ms) COMMIT [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 649], ["name", "switchman_test_shard_649"]] [shard 648 master]  (15.4ms) COMMIT [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 650], ["name", "switchman_test_shard_650"]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 648], ["name", nil]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.0ms) BEGIN [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 649], ["name", "switchman_test_shard_649"]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master]  (0.0ms) BEGIN [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 650], ["name", "switchman_test_shard_650"]] [shard 648 master]  (0.2ms) COMMIT [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 650 master]  (0.1ms) SAVEPOINT active_record_2 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 650 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 650 master]  (0.2ms) ROLLBACK [shard 650 master] SQL (15.9ms) DELETE FROM "switchman_shards" [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 648], ["name", nil]] [shard 648 master]  (15.3ms) COMMIT [shard 648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 649], ["name", "switchman_test_shard_649"]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 650], ["name", "switchman_test_shard_650"]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 40], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 41], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 40]] [shard 649 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 40 AND "users"."id" = 42 LIMIT 1 [shard 649 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 649 LIMIT 1 [shard 648 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 40]] [shard 649 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 40 AND "users"."id" = 6500000000000034 LIMIT 1 [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 45]] [shard 649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 45 LIMIT 1 [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.0ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 650 LIMIT 1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (15.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 47], ["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 48 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 49 [shard 649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 49]] [shard 649 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 49 [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.0ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 52 AND "appendages"."id" = $1 LIMIT 1 [["id", 50]] [shard 649 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 44 AND "appendages"."id" = $1 LIMIT 1 [["id", 50]] [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 51], ["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["value", 1]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 6490000000000053], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 54], ["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["value", 2]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 53 [shard 649 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 53]] [shard 649 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 53 [shard 649 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6490000000000053 [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 54], ["value", 1]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 6490000000000054], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 54], ["value", 2]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 54]] [shard 649 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 54 AND (appendages.value IS NOT NULL) [shard 649 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 6490000000000054 AND (appendages.value IS NOT NULL) [shard 650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 54]] [shard 649 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 54 AND (appendages.value IS NOT NULL) [shard 649 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 6490000000000054 AND (appendages.value IS NOT NULL) [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 55], ["value", 1]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 6490000000000055], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 55 AND "appendages"."value" IS NULL [shard 649 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 6490000000000055 AND "appendages"."value" IS NULL [shard 650 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 55]] [shard 649 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 55 AND "appendages"."value" IS NULL [shard 649 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 6490000000000055 AND "appendages"."value" IS NULL [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["value", 1]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 6490000000000056], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 57], ["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["value", 2]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 56 AND (digits.value IS NOT NULL) [shard 649 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6490000000000056 AND (digits.value IS NOT NULL) [shard 650 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 56]] [shard 649 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 56 AND (digits.value IS NOT NULL) [shard 649 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6490000000000056 AND (digits.value IS NOT NULL) [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 57], ["value", 1]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 6490000000000057], ["value", 2]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 57 [shard 649 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 57]] [shard 649 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 57 [shard 649 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 6490000000000057 [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 57], ["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 6490000000000058], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 59], ["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["value", 2]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 58 AND "digits"."value" IS NULL [shard 649 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6490000000000058 AND "digits"."value" IS NULL [shard 650 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 58]] [shard 649 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 58 AND "digits"."value" IS NULL [shard 649 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6490000000000058 AND "digits"."value" IS NULL [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 58], ["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 6490000000000059], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 60], ["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["value", 2]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 59 AND "digits"."value" IS NULL [shard 649 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6490000000000059 AND "digits"."value" IS NULL [shard 650 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 59]] [shard 649 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 59 AND "digits"."value" IS NULL [shard 649 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6490000000000059 AND "digits"."value" IS NULL [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.0ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["owner_id", 60], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["value", 1]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["owner_id", 6490000000000060], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["value", 2]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 60 AND "features"."owner_type" = 'User' [shard 649 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 60]] [shard 649 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 60 AND "features"."owner_type" = 'User' [shard 649 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 6490000000000060 AND "features"."owner_type" = 'User' [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["owner_id", 618], ["owner_type", "Appendage"], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["value", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 58]] [shard 648 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 618 LIMIT 1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master]  (0.2ms) UPDATE "features" SET "owner_id" = 6490000000000061, "owner_type" = 'User', "updated_at" = '2014-07-22 19:34:30.889961' WHERE "features"."id" = 58 [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 58]] [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 62 LIMIT 1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 62], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 59]] [shard 649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 62 LIMIT 1 [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 6500000000000055], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 60]] [shard 649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 55 LIMIT 1 [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 6500000000000056]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master] Root Load (0.4ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 29]] [shard 648 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 56 LIMIT 1 [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 65], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 6490000000000065], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 6490000000000065], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 61], ["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 62], ["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6500000000000062], ["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6500000000000063], ["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 6500000000000057], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6490000000000062], ["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6500000000000064], ["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6500000000000065], ["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 649 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (65) [shard 649 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (6490000000000065) [shard 650 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (61, 6500000000000062) [shard 649 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (62, 63) [shard 650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 650 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (57) [shard 650 master] Digit Load (0.1ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (64) [shard 650 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (6500000000000065) [shard 649 master] SQL (0.1ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 6490000000000066], ["value", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 619], ["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["value", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["user_id", 6500000000000058], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6490000000000063], ["created_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:30 UTC +00:00], ["value", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits"  [shard 648 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (619) [shard 648 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (63) [shard 649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 650 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 66 [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["user_id", 6490000000000067], ["value", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["user_id", 6500000000000059], ["value", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["user_id", 1243], ["value", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 648 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1243) [shard 648 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 650 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 67 [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["user_id", 68], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["user_id", 6490000000000068], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["user_id", 6500000000000060], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (68) [shard 649 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (68) [shard 649 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (6490000000000068) [shard 650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [shard 650 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (60) [shard 650 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 64 [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.1ms) BEGIN [shard 648 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 648], ["name", nil]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 649], ["name", "switchman_test_shard_649"]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 650], ["name", "switchman_test_shard_650"]] [shard 648 master]  (0.2ms) COMMIT [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["user_id", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 29]] [shard 648 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 29]] [shard 648 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 29 LIMIT 1 [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 648], ["name", nil]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.0ms) BEGIN [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 649], ["name", "switchman_test_shard_649"]] [shard 648 master]  (0.2ms) COMMIT [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 650], ["name", "switchman_test_shard_650"]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 649 LIMIT 1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.0ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) ROLLBACK [shard 650 master]  (0.0ms) ROLLBACK [shard 648 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 648], ["name", nil]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 649], ["name", "switchman_test_shard_649"]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 650], ["name", "switchman_test_shard_650"]] [shard 648 master]  (0.2ms) COMMIT [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.0ms) ROLLBACK [shard 650 master]  (0.0ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 648], ["name", nil]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 649], ["name", "switchman_test_shard_649"]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 650], ["name", "switchman_test_shard_650"]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00]] [shard 650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 650 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 648 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 648 master] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 649 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 650 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 74 LIMIT 1 [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 649 LIMIT 1 [shard 648 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) LIMIT 1 [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 76 LIMIT 1 [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 77]] [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master]  (0.0ms) SAVEPOINT active_record_1 [shard 649 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 78]] [shard 649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 6490000000000078 LIMIT 1 [shard 649 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 649 master] SQL (15.5ms) DELETE FROM "switchman_shards" [shard 648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 648], ["name", nil]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 649], ["name", "switchman_test_shard_649"]] [shard 648 master]  (0.4ms) COMMIT [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 650], ["name", "switchman_test_shard_650"]] [shard 648 master]  (0.2ms) COMMIT [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 649 LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 650 LIMIT 1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["owner_id", 1247], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["value", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 59 LIMIT 1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master] SQL (16.1ms) DELETE FROM "switchman_shards" [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 648], ["name", nil]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 649], ["name", "switchman_test_shard_649"]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master]  (0.1ms) BEGIN [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 650], ["name", "switchman_test_shard_650"]] [shard 648 master]  (0.3ms) COMMIT [shard 648 master]  (0.0ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '15' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", nil]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.0ms) select sqlite_version(*) [shard 668 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 668 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 668 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 668 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 668 deploy]  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 668 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 668 deploy]  (0.7ms) commit transaction [shard 668 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 668 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 668 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 668 deploy]  (0.6ms) commit transaction [shard 668 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 668 deploy]  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 668 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 668 deploy]  (0.5ms) commit transaction [shard 668 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 668 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 668 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 668 deploy]  (0.7ms) commit transaction [shard 668 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 668 deploy]  (0.3ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 668 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 668 deploy]  (0.7ms) commit transaction [shard 668 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 668 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 668 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 668 deploy]  (0.6ms) commit transaction [shard 668 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 668 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 668 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 668 deploy]  (0.7ms) commit transaction [shard 668 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_668.sqlite3' WHERE "switchman_shards"."id" = 668 [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.0ms) begin transaction [shard 668 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00]] [shard 668 master]  (0.8ms) commit transaction [shard 668 master] Drop failed: No such file or directory @ unlink_internal - db/shard_668.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 668]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.1ms) BEGIN [shard 650 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '16' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", "public"]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (15.7ms) CREATE SCHEMA switchman_test_shard_669 [shard 669 deploy]  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 669 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 669 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 669 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 669 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 669 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 669 deploy]  (0.3ms) COMMIT [shard 669 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 669 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 669 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 669 deploy]  (0.3ms) COMMIT [shard 669 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 669 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 669 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 669 deploy]  (0.3ms) COMMIT [shard 669 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 669 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 669 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 669 deploy]  (0.3ms) COMMIT [shard 669 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 669 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 669 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 669 deploy]  (0.3ms) COMMIT [shard 669 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 669 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 669 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 669 deploy]  (0.2ms) COMMIT [shard 669 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) BEGIN [shard 669 deploy]  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 669 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 669 deploy]  (0.3ms) COMMIT [shard 669 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_669' WHERE "switchman_shards"."id" = 669 [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) BEGIN [shard 669 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00]] [shard 669 master]  (0.3ms) COMMIT [shard 669 master]  (4.9ms) DROP SCHEMA switchman_test_shard_669 CASCADE [shard 669 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 669]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 649]] [shard 648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [shard 648 master]  (0.0ms) BEGIN [shard 650 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 648 master]  (0.2ms) CREATE SCHEMA switchman_test_shard_670 [shard 670 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 670 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 670 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 670 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 670 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 670 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 670 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 670 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 670 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 670 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 670 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 670 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 670 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 670 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 670 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 670 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 670 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 670 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_670' WHERE "switchman_shards"."id" = 670 [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.2ms) SAVEPOINT active_record_1 [shard 670 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:34:31 UTC +00:00]] [shard 670 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 670 master]  (2.7ms) DROP SCHEMA switchman_test_shard_670 CASCADE [shard 670 deploy]  (0.0ms) SAVEPOINT active_record_1 [shard 648 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 670]] [shard 648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 648 master]  (0.1ms) ROLLBACK [shard 650 master]  (2.0ms) ROLLBACK [shard 648 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 648 master]  (0.1ms) BEGIN [shard 648 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master]  (0.1ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master]  (0.0ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master]  (0.0ms) ROLLBACK [shard 648 master]  (0.1ms) BEGIN [shard 648 master]  (0.0ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master]  (0.0ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master]  (0.0ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master]  (0.0ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master]  (0.0ms) ROLLBACK [shard 648 master]  (0.0ms) BEGIN [shard 648 master]  (0.0ms) ROLLBACK [shard 648 master]  (19.7ms) DROP SCHEMA switchman_test_shard_649 CASCADE [shard 649 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 649]]  (0.1ms) COMMIT  (6.6ms) DROP SCHEMA switchman_test_shard_650 CASCADE [shard 650 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 650]]  (0.1ms) COMMIT  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.2ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (15.8ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_672 [shard 672 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 672 deploy]  (16.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 672 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 672 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 672 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 672 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 672 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 672 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 672 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 672 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 672 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 672 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 672 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 672 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 672 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 672 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 672 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 672 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 672 [["name", "switchman_test_shard_672"]] [shard 671 master]  (0.6ms) COMMIT [shard 671 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_673 [shard 673 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 673 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 673 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 673 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 673 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 673 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 673 deploy]  (0.3ms) COMMIT [shard 673 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 673 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 673 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 673 deploy]  (0.3ms) COMMIT [shard 673 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 673 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 673 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 673 deploy]  (0.3ms) COMMIT [shard 673 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 673 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 673 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 673 deploy]  (0.3ms) COMMIT [shard 673 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 673 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 673 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 673 deploy]  (0.3ms) COMMIT [shard 673 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 673 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 673 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 673 deploy]  (0.3ms) COMMIT [shard 673 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 673 deploy]  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 673 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 673 deploy]  (0.3ms) COMMIT [shard 673 deploy]  (0.2ms) BEGIN [shard 671 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 673 [["name", "switchman_test_shard_673"]] [shard 671 master]  (0.2ms) COMMIT [shard 671 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 671]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 672], ["name", "switchman_test_shard_672"]] [shard 671 master]  (0.2ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 673], ["name", "switchman_test_shard_673"]] [shard 671 master]  (0.2ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 671]] [shard 671 master]  (0.2ms) COMMIT [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 672], ["name", "switchman_test_shard_672"]] [shard 671 master]  (0.2ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 673], ["name", "switchman_test_shard_673"]] [shard 671 master]  (0.2ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:53.245714"], ["updated_at", "2014-07-22 19:34:53.245714"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.3ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.260177"], ["owner_id", 1248], ["owner_type", "User"], ["updated_at", "2014-07-22 19:34:53.260177"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master] Feature Load (0.3ms) SELECT "features"."owner_id" FROM "features" WHERE "features"."id" = 60 ORDER BY "features"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:53.275899"], ["updated_at", "2014-07-22 19:34:53.275899"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 672 LIMIT 1 [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 673 LIMIT 1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:53.289850"], ["updated_at", "2014-07-22 19:34:53.289850"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master] SQL (24.4ms) DELETE FROM "switchman_shards" [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 671]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 672], ["name", "switchman_test_shard_672"]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 673], ["name", "switchman_test_shard_673"]] [shard 671 master]  (0.2ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.328051"], ["name", "user1"], ["updated_at", "2014-07-22 19:34:53.328051"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.330105"], ["name", "user2"], ["updated_at", "2014-07-22 19:34:53.330105"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.332287"], ["updated_at", "2014-07-22 19:34:53.332287"], ["user_id", 1], ["value", 1]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 673 LIMIT 1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.336984"], ["updated_at", "2014-07-22 19:34:53.336984"], ["user_id", 6730000000000001], ["value", 3]] [shard 672 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 672 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 672 LIMIT 1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (15.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.341594"], ["updated_at", "2014-07-22 19:34:53.341594"], ["user_id", 6720000000000001], ["value", 2]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.359338"], ["updated_at", "2014-07-22 19:34:53.359338"], ["user_id", 1], ["value", 4]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.361203"], ["updated_at", "2014-07-22 19:34:53.361203"], ["user_id", 1], ["value", 5]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 672 master]  (0.4ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 673 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 672 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 673 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 672 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 673 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 672 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1) [shard 672 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1) [shard 673 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1) [shard 673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1) [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.378993"], ["name", "user1"], ["updated_at", "2014-07-22 19:34:53.378993"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.380561"], ["name", "user2"], ["updated_at", "2014-07-22 19:34:53.380561"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.382210"], ["updated_at", "2014-07-22 19:34:53.382210"], ["user_id", 2], ["value", 1]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.384241"], ["updated_at", "2014-07-22 19:34:53.384241"], ["user_id", 6730000000000002], ["value", 3]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.386123"], ["updated_at", "2014-07-22 19:34:53.386123"], ["user_id", 6720000000000002], ["value", 2]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.387816"], ["updated_at", "2014-07-22 19:34:53.387816"], ["user_id", 2], ["value", 4]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.389649"], ["updated_at", "2014-07-22 19:34:53.389649"], ["user_id", 2], ["value", 5]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.2ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.398552"], ["updated_at", "2014-07-22 19:34:53.398552"], ["user_id", 2]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:53.400424"], ["updated_at", "2014-07-22 19:34:53.400424"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.402718"], ["updated_at", "2014-07-22 19:34:53.402718"], ["user_id", 3]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 672 master]  (0.2ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.408948"], ["name", "user1"], ["updated_at", "2014-07-22 19:34:53.408948"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.410483"], ["name", "user2"], ["updated_at", "2014-07-22 19:34:53.410483"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.412046"], ["updated_at", "2014-07-22 19:34:53.412046"], ["user_id", 4], ["value", 1]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.413878"], ["updated_at", "2014-07-22 19:34:53.413878"], ["user_id", 6730000000000003], ["value", 3]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.415693"], ["updated_at", "2014-07-22 19:34:53.415693"], ["user_id", 6720000000000004], ["value", 2]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.417097"], ["updated_at", "2014-07-22 19:34:53.417097"], ["user_id", 3], ["value", 4]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.418529"], ["updated_at", "2014-07-22 19:34:53.418529"], ["user_id", 3], ["value", 5]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 672 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 673 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 672 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 673 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 672 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 673 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (4) [shard 672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (3) [shard 673 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (3) [shard 673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (4) [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.433138"], ["name", "user1"], ["updated_at", "2014-07-22 19:34:53.433138"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.434696"], ["name", "user2"], ["updated_at", "2014-07-22 19:34:53.434696"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.436214"], ["updated_at", "2014-07-22 19:34:53.436214"], ["user_id", 5], ["value", 1]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.438037"], ["updated_at", "2014-07-22 19:34:53.438037"], ["user_id", 6730000000000004], ["value", 3]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.439739"], ["updated_at", "2014-07-22 19:34:53.439739"], ["user_id", 6720000000000005], ["value", 2]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.441294"], ["updated_at", "2014-07-22 19:34:53.441294"], ["user_id", 4], ["value", 4]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.442692"], ["updated_at", "2014-07-22 19:34:53.442692"], ["user_id", 4], ["value", 5]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 672 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 673 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 672 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 673 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 672 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 673 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [shard 672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (4) [shard 673 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (4) [shard 673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.456357"], ["name", "user1"], ["updated_at", "2014-07-22 19:34:53.456357"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.457901"], ["name", "user2"], ["updated_at", "2014-07-22 19:34:53.457901"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.459640"], ["updated_at", "2014-07-22 19:34:53.459640"], ["user_id", 6], ["value", 1]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.461650"], ["updated_at", "2014-07-22 19:34:53.461650"], ["user_id", 6730000000000005], ["value", 3]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.463622"], ["updated_at", "2014-07-22 19:34:53.463622"], ["user_id", 6720000000000006], ["value", 2]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.465066"], ["updated_at", "2014-07-22 19:34:53.465066"], ["user_id", 5], ["value", 4]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.466491"], ["updated_at", "2014-07-22 19:34:53.466491"], ["user_id", 5], ["value", 5]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 672 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 673 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 672 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 673 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 672 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 673 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) [shard 672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [shard 673 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [shard 673 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.483669"], ["name", "user1"], ["updated_at", "2014-07-22 19:34:53.483669"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.485224"], ["name", "user2"], ["updated_at", "2014-07-22 19:34:53.485224"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.486684"], ["updated_at", "2014-07-22 19:34:53.486684"], ["user_id", 7], ["value", 1]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.488653"], ["updated_at", "2014-07-22 19:34:53.488653"], ["user_id", 6730000000000006], ["value", 3]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.490560"], ["updated_at", "2014-07-22 19:34:53.490560"], ["user_id", 6720000000000007], ["value", 2]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.492119"], ["updated_at", "2014-07-22 19:34:53.492119"], ["user_id", 6], ["value", 4]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.493551"], ["updated_at", "2014-07-22 19:34:53.493551"], ["user_id", 6], ["value", 5]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 672 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 673 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 672 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 673 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 672 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 673 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (7) [shard 672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) [shard 673 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) [shard 673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (7) [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.2ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.507631"], ["name", "user1"], ["updated_at", "2014-07-22 19:34:53.507631"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.509995"], ["updated_at", "2014-07-22 19:34:53.509995"], ["user_id", 8], ["value", 1]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.511750"], ["updated_at", "2014-07-22 19:34:53.511750"], ["user_id", 8], ["value", 2]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.513318"], ["name", "user2"], ["updated_at", "2014-07-22 19:34:53.513318"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.516489"], ["updated_at", "2014-07-22 19:34:53.516489"], ["user_id", 7], ["value", 3]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.518280"], ["updated_at", "2014-07-22 19:34:53.518280"], ["user_id", 7], ["value", 4]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.519955"], ["updated_at", "2014-07-22 19:34:53.519955"], ["user_id", 7], ["value", 5]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 8]] [shard 672 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 672 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 7]] [shard 673 master]  (0.1ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 673 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (15, 16) [shard 672 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (19, 20, 21) [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.529663"], ["name", "user1"], ["updated_at", "2014-07-22 19:34:53.529663"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.531983"], ["updated_at", "2014-07-22 19:34:53.531983"], ["user_id", 9], ["value", 1]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.533728"], ["updated_at", "2014-07-22 19:34:53.533728"], ["user_id", 9], ["value", 2]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.535199"], ["name", "user2"], ["updated_at", "2014-07-22 19:34:53.535199"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.537446"], ["updated_at", "2014-07-22 19:34:53.537446"], ["user_id", 8], ["value", 3]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.539321"], ["updated_at", "2014-07-22 19:34:53.539321"], ["user_id", 8], ["value", 4]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.541140"], ["updated_at", "2014-07-22 19:34:53.541140"], ["user_id", 8], ["value", 5]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 9]] [shard 672 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 672 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 8]] [shard 673 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 673 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (17, 18) [shard 672 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (22, 23, 24) [shard 673 master]  (0.2ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.550904"], ["name", "user1"], ["updated_at", "2014-07-22 19:34:53.550904"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.553196"], ["updated_at", "2014-07-22 19:34:53.553196"], ["user_id", 10], ["value", 1]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.554998"], ["updated_at", "2014-07-22 19:34:53.554998"], ["user_id", 10], ["value", 2]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.556508"], ["name", "user2"], ["updated_at", "2014-07-22 19:34:53.556508"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.558657"], ["updated_at", "2014-07-22 19:34:53.558657"], ["user_id", 9], ["value", 3]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.560387"], ["updated_at", "2014-07-22 19:34:53.560387"], ["user_id", 9], ["value", 4]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.562103"], ["updated_at", "2014-07-22 19:34:53.562103"], ["user_id", 9], ["value", 5]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 10]] [shard 672 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 672 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 9]] [shard 673 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 673 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (19, 20) [shard 672 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (25, 26, 27) [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.571955"], ["name", "user1"], ["updated_at", "2014-07-22 19:34:53.571955"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.574363"], ["updated_at", "2014-07-22 19:34:53.574363"], ["user_id", 11], ["value", 1]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.2ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.576187"], ["updated_at", "2014-07-22 19:34:53.576187"], ["user_id", 11], ["value", 2]] [shard 672 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.578077"], ["name", "user2"], ["updated_at", "2014-07-22 19:34:53.578077"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.580364"], ["updated_at", "2014-07-22 19:34:53.580364"], ["user_id", 10], ["value", 3]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.582203"], ["updated_at", "2014-07-22 19:34:53.582203"], ["user_id", 10], ["value", 4]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.584067"], ["updated_at", "2014-07-22 19:34:53.584067"], ["user_id", 10], ["value", 5]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 11]] [shard 672 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 672 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 10]] [shard 673 master]  (0.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 673 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (21, 22) [shard 672 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (28, 29, 30) [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.594058"], ["name", "user1"], ["updated_at", "2014-07-22 19:34:53.594058"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.596351"], ["updated_at", "2014-07-22 19:34:53.596351"], ["user_id", 12], ["value", 1]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.598441"], ["updated_at", "2014-07-22 19:34:53.598441"], ["user_id", 12], ["value", 2]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.600266"], ["name", "user2"], ["updated_at", "2014-07-22 19:34:53.600266"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.602971"], ["updated_at", "2014-07-22 19:34:53.602971"], ["user_id", 11], ["value", 3]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.605268"], ["updated_at", "2014-07-22 19:34:53.605268"], ["user_id", 11], ["value", 4]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:53.607506"], ["updated_at", "2014-07-22 19:34:53.607506"], ["user_id", 11], ["value", 5]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 12]] [shard 672 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 672 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 11]] [shard 673 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 673 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (23, 24) [shard 672 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (31, 32, 33) [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.619196"], ["name", "user1"], ["updated_at", "2014-07-22 19:34:53.619196"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.621705"], ["updated_at", "2014-07-22 19:34:53.621705"], ["user_id", 13]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.623282"], ["name", "user2"], ["updated_at", "2014-07-22 19:34:53.623282"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.625943"], ["updated_at", "2014-07-22 19:34:53.625943"], ["user_id", 12]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 25 [shard 672 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 673 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 25 [shard 672 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 673 master]  (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 25 [shard 672 master]  (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.636098"], ["name", "user1"], ["updated_at", "2014-07-22 19:34:53.636098"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.638335"], ["updated_at", "2014-07-22 19:34:53.638335"], ["user_id", 14]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.639783"], ["name", "user2"], ["updated_at", "2014-07-22 19:34:53.639783"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.641854"], ["updated_at", "2014-07-22 19:34:53.641854"], ["user_id", 13]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 26 [shard 672 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 673 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 26 [shard 672 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 673 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 26 [shard 672 master]  (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.651065"], ["name", "user1"], ["updated_at", "2014-07-22 19:34:53.651065"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.653288"], ["updated_at", "2014-07-22 19:34:53.653288"], ["user_id", 15]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.654797"], ["name", "user2"], ["updated_at", "2014-07-22 19:34:53.654797"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:53.656826"], ["updated_at", "2014-07-22 19:34:53.656826"], ["user_id", 14]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (15) [shard 672 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (14) [shard 673 master]  (0.2ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 671]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 672], ["name", "switchman_test_shard_672"]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 673], ["name", "switchman_test_shard_673"]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.3ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:53.694552"], ["updated_at", "2014-07-22 19:34:53.694552"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 30]] [shard 671 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 30]] [shard 671 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 30 ORDER BY "mirror_users"."id" ASC LIMIT 1 [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 671]] [shard 671 master]  (0.5ms) COMMIT [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 672], ["name", "switchman_test_shard_672"]] [shard 671 master]  (0.4ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 673], ["name", "switchman_test_shard_673"]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.2ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "3"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:53.737601"], ["updated_at", "2014-07-22 19:34:53.737601"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master] SQL (0.7ms) DELETE FROM "switchman_shards" [shard 671 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 671]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 672], ["name", "switchman_test_shard_672"]] [shard 671 master]  (0.2ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 673], ["name", "switchman_test_shard_673"]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.2ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 671]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 672], ["name", "switchman_test_shard_672"]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 673], ["name", "switchman_test_shard_673"]] [shard 671 master]  (0.2ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:53.898971"], ["updated_at", "2014-07-22 19:34:53.898971"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 673 master]  (0.1ms) SAVEPOINT active_record_2 [shard 673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:53.904860"], ["updated_at", "2014-07-22 19:34:53.904860"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 673 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 671]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 672], ["name", "switchman_test_shard_672"]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 673], ["name", "switchman_test_shard_673"]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 671 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 671]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 672], ["name", "switchman_test_shard_672"]] [shard 671 master]  (0.2ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 673], ["name", "switchman_test_shard_673"]] [shard 671 master]  (0.2ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.0ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:53.930327"], ["updated_at", "2014-07-22 19:35:53.930327"]] [shard 672 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.0ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 671]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 672], ["name", "switchman_test_shard_672"]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 673], ["name", "switchman_test_shard_673"]] [shard 671 master]  (0.2ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:53.947592"], ["updated_at", "2014-07-22 19:34:53.947592"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:53.952902"], ["updated_at", "2014-07-22 19:34:53.952902"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:53.954914"], ["updated_at", "2014-07-22 19:34:53.954914"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.2ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:53.961402"], ["updated_at", "2014-07-22 19:34:53.961402"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:53.963142"], ["updated_at", "2014-07-22 19:34:53.963142"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 672 LIMIT 1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:53.968035"], ["updated_at", "2014-07-22 19:34:53.968035"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:53.980052"], ["updated_at", "2014-07-22 19:34:53.980052"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master] SQL (18.0ms) DELETE FROM "switchman_shards" [shard 671 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 671]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.2ms) BEGIN [shard 671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 672], ["name", "switchman_test_shard_672"]] [shard 671 master]  (0.4ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 673], ["name", "switchman_test_shard_673"]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.2ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.2ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 672 LIMIT 1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '4' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "4"], ["name", "public"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (15.3ms) CREATE SCHEMA switchman_test_shard_676 [shard 676 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 676 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 676 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 676 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 676 deploy]  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 676 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 676 deploy]  (0.3ms) COMMIT [shard 676 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 676 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 676 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 676 deploy]  (0.4ms) COMMIT [shard 676 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 676 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 676 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 676 deploy]  (0.4ms) COMMIT [shard 676 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 676 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 676 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 676 deploy]  (0.4ms) COMMIT [shard 676 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 676 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 676 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 676 deploy]  (0.4ms) COMMIT [shard 676 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 676 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 676 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 676 deploy]  (0.3ms) COMMIT [shard 676 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 676 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 676 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 676 deploy]  (0.3ms) COMMIT [shard 676 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 676 [["name", "switchman_test_shard_676"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) BEGIN [shard 676 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.129638"], ["updated_at", "2014-07-22 19:34:54.129638"]] [shard 676 master]  (0.3ms) COMMIT [shard 676 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 676 master]  (4.8ms) DROP SCHEMA switchman_test_shard_676 CASCADE [shard 676 deploy]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 676 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 673 LIMIT 1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10673 LIMIT 1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.3ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 677]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 677 LIMIT 1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 678]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master]  (0.2ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 671]] [shard 671 master]  (15.5ms) COMMIT [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 672], ["name", "switchman_test_shard_672"]] [shard 671 master]  (15.2ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 673], ["name", "switchman_test_shard_673"]] [shard 671 master]  (0.4ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.2ms) BEGIN [shard 673 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '15' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "15"], ["name", "public"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_679 [shard 679 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 679 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 679 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 679 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 679 deploy]  (2.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 679 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 679 deploy]  (0.4ms) COMMIT [shard 679 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 679 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 679 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 679 deploy]  (0.3ms) COMMIT [shard 679 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 679 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 679 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 679 deploy]  (0.4ms) COMMIT [shard 679 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 679 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 679 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 679 deploy]  (0.3ms) COMMIT [shard 679 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 679 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 679 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 679 deploy]  (0.3ms) COMMIT [shard 679 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 679 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 679 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 679 deploy]  (0.4ms) COMMIT [shard 679 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 679 deploy]  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 679 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 679 deploy]  (0.3ms) COMMIT [shard 679 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 679 [["name", "switchman_test_shard_679"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) BEGIN [shard 679 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.432418"], ["updated_at", "2014-07-22 19:34:54.432418"]] [shard 679 master]  (0.3ms) COMMIT [shard 679 master]  (4.6ms) DROP SCHEMA switchman_test_shard_679 CASCADE [shard 679 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 679]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '16' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "16"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 680 deploy]  (0.1ms) select sqlite_version(*) [shard 680 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 680 deploy] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 680 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 680 deploy]  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime, "updated_at" datetime) [shard 680 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130403132607"]] [shard 680 deploy]  (0.7ms) commit transaction [shard 680 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 680 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [shard 680 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202442"]] [shard 680 deploy]  (0.7ms) commit transaction [shard 680 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 680 deploy]  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [shard 680 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202551"]] [shard 680 deploy]  (0.6ms) commit transaction [shard 680 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 680 deploy]  (0.3ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [shard 680 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131022202028"]] [shard 680 deploy]  (0.6ms) commit transaction [shard 680 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 680 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime, "updated_at" datetime) [shard 680 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131206172923"]] [shard 680 deploy]  (0.7ms) commit transaction [shard 680 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 680 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 680 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140123154135"]] [shard 680 deploy]  (0.7ms) commit transaction [shard 680 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 680 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [shard 680 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219183820"]] [shard 680 deploy]  (0.7ms) commit transaction [shard 680 deploy]  (0.2ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 680 [["name", "db/shard_680.sqlite3"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.0ms) begin transaction [shard 680 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-07-22 19:34:54.477080"], ["updated_at", "2014-07-22 19:34:54.477080"]] [shard 680 master]  (0.8ms) commit transaction [shard 680 master] Drop failed: No such file or directory @ unlink_internal - db/shard_680.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 680]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.2ms) BEGIN [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [shard 671 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_681 [shard 681 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 681 deploy]  (18.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 681 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 681 deploy] Migrating to CreateUsers (20130403132607)  (2.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 681 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 681 deploy] Migrating to CreateAppendages (20130411202442)  (2.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 681 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 681 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 681 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 681 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 681 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 681 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 681 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 681 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 681 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 681 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 681 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 681 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 681 [["name", "switchman_test_shard_681"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 681 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.556746"], ["updated_at", "2014-07-22 19:34:54.556746"]] [shard 681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 681 master]  (2.5ms) DROP SCHEMA switchman_test_shard_681 CASCADE [shard 681 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 681]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (2.1ms) ROLLBACK [shard 671 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 671]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 672], ["name", "switchman_test_shard_672"]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 673], ["name", "switchman_test_shard_673"]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (672,673)) AND "switchman_shards"."id" IN (671, 672) [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.2ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 671]] [shard 671 master]  (0.2ms) COMMIT [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 672], ["name", "switchman_test_shard_672"]] [shard 671 master]  (0.2ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 673], ["name", "switchman_test_shard_673"]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.613644"], ["updated_at", "2014-07-22 19:34:54.613644"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.615428"], ["updated_at", "2014-07-22 19:34:54.615428"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.626645"], ["updated_at", "2014-07-22 19:34:54.626645"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.628182"], ["updated_at", "2014-07-22 19:34:54.628182"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:54.630829"], ["updated_at", "2014-07-22 19:34:54.630829"], ["user_id", 21]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 21]] [shard 672 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 672 LIMIT 1 [shard 671 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 672 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 21]] [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.642203"], ["updated_at", "2014-07-22 19:34:54.642203"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.643714"], ["updated_at", "2014-07-22 19:34:54.643714"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:54.646642"], ["updated_at", "2014-07-22 19:34:54.646642"], ["user_id", 22]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 22], ["id", 30]] [shard 672 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 19], ["id", 30]] [shard 673 master]  (0.2ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.659632"], ["updated_at", "2014-07-22 19:34:54.659632"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.661563"], ["updated_at", "2014-07-22 19:34:54.661563"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:54.664381"], ["updated_at", "2014-07-22 19:34:54.664381"], ["user_id", 23]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 31], ["created_at", "2014-07-22 19:34:54.675356"], ["updated_at", "2014-07-22 19:34:54.675356"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 23], ["id", 1]] [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.690670"], ["updated_at", "2014-07-22 19:34:54.690670"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.692293"], ["updated_at", "2014-07-22 19:34:54.692293"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:54.695676"], ["parent_id", 24], ["updated_at", "2014-07-22 19:34:54.695676"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:54.698449"], ["parent_id", 25], ["updated_at", "2014-07-22 19:34:54.698449"]] [shard 672 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 24]] [shard 672 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 26 LIMIT 1 [["parent_id", 24]] [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:54.705607"], ["id", 26], ["updated_at", "2014-07-22 19:34:54.705607"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 24]] [shard 672 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 6730000000000026 LIMIT 1 [["parent_id", 24]] [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.2ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.715639"], ["updated_at", "2014-07-22 19:34:54.715639"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.717283"], ["updated_at", "2014-07-22 19:34:54.717283"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.724392"], ["updated_at", "2014-07-22 19:34:54.724392"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.726003"], ["updated_at", "2014-07-22 19:34:54.726003"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:54.728824"], ["updated_at", "2014-07-22 19:34:54.728824"], ["user_id", 28]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 32]] [shard 672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 28]] [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.737066"], ["updated_at", "2014-07-22 19:34:54.737066"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.738587"], ["updated_at", "2014-07-22 19:34:54.738587"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:54.741387"], ["updated_at", "2014-07-22 19:34:54.741387"], ["user_id", 29]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.747036"], ["updated_at", "2014-07-22 19:34:54.747036"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.748895"], ["updated_at", "2014-07-22 19:34:54.748895"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.754836"], ["updated_at", "2014-07-22 19:34:54.754836"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.763722"], ["updated_at", "2014-07-22 19:34:54.763722"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.765403"], ["updated_at", "2014-07-22 19:34:54.765403"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:54.768373"], ["updated_at", "2014-07-22 19:34:54.768373"], ["user_id", 31]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:54.771309"], ["updated_at", "2014-07-22 19:34:54.771309"], ["user_id", 26]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 673 LIMIT 1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.780293"], ["updated_at", "2014-07-22 19:34:54.780293"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.781738"], ["updated_at", "2014-07-22 19:34:54.781738"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:54.784367"], ["updated_at", "2014-07-22 19:34:54.784367"], ["user_id", 32]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.791092"], ["updated_at", "2014-07-22 19:34:54.791092"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.792578"], ["updated_at", "2014-07-22 19:34:54.792578"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.799972"], ["updated_at", "2014-07-22 19:34:54.799972"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.801503"], ["updated_at", "2014-07-22 19:34:54.801503"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:54.803041"], ["updated_at", "2014-07-22 19:34:54.803041"], ["user_id", 34]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 36], ["created_at", "2014-07-22 19:34:54.805567"], ["updated_at", "2014-07-22 19:34:54.805567"]] [shard 672 master]  (0.6ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:54.807956"], ["updated_at", "2014-07-22 19:34:54.807956"], ["user_id", 6720000000000034]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 39], ["created_at", "2014-07-22 19:34:54.811147"], ["updated_at", "2014-07-22 19:34:54.811147"], ["value", 2]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 34]] [shard 672 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 6720000000000034]] [shard 673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 34]] [shard 672 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 34]] [shard 672 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 6720000000000034]] [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.2ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.826799"], ["updated_at", "2014-07-22 19:34:54.826799"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.828336"], ["updated_at", "2014-07-22 19:34:54.828336"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:54.829781"], ["updated_at", "2014-07-22 19:34:54.829781"], ["user_id", 35], ["value", 1]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:54.831819"], ["updated_at", "2014-07-22 19:34:54.831819"], ["user_id", 6720000000000035]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 35]] [shard 672 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 6720000000000035]] [shard 673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 35]] [shard 672 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 35]] [shard 672 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 6720000000000035]] [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.842066"], ["updated_at", "2014-07-22 19:34:54.842066"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.843486"], ["updated_at", "2014-07-22 19:34:54.843486"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:54.844872"], ["updated_at", "2014-07-22 19:34:54.844872"], ["user_id", 36], ["value", 1]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:54.846892"], ["updated_at", "2014-07-22 19:34:54.846892"], ["user_id", 6720000000000036]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:54.849435"], ["updated_at", "2014-07-22 19:34:54.849435"], ["user_id", 36], ["value", 2]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 36]] [shard 672 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 36]] [shard 672 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 6720000000000036]] [shard 673 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 36]] [shard 672 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 36]] [shard 672 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 6720000000000036]] [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.860452"], ["updated_at", "2014-07-22 19:34:54.860452"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.862115"], ["updated_at", "2014-07-22 19:34:54.862115"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:54.863685"], ["updated_at", "2014-07-22 19:34:54.863685"], ["user_id", 37]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 40], ["created_at", "2014-07-22 19:34:54.865875"], ["updated_at", "2014-07-22 19:34:54.865875"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 40], ["created_at", "2014-07-22 19:34:54.867544"], ["updated_at", "2014-07-22 19:34:54.867544"], ["value", 1]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:54.869572"], ["updated_at", "2014-07-22 19:34:54.869572"], ["user_id", 6720000000000037]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 42], ["created_at", "2014-07-22 19:34:54.871704"], ["updated_at", "2014-07-22 19:34:54.871704"], ["value", 2]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 37]] [shard 672 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 6720000000000037]] [shard 673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 37]] [shard 672 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 37]] [shard 672 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 6720000000000037]] [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.884138"], ["updated_at", "2014-07-22 19:34:54.884138"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.885531"], ["updated_at", "2014-07-22 19:34:54.885531"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:54.887120"], ["updated_at", "2014-07-22 19:34:54.887120"], ["user_id", 38]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 41], ["created_at", "2014-07-22 19:34:54.889428"], ["updated_at", "2014-07-22 19:34:54.889428"], ["value", 1]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:54.891346"], ["updated_at", "2014-07-22 19:34:54.891346"], ["user_id", 6720000000000038]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 43], ["created_at", "2014-07-22 19:34:54.893592"], ["updated_at", "2014-07-22 19:34:54.893592"], ["value", 2]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 38]] [shard 672 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 38]] [shard 672 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 38]] [shard 672 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 6720000000000038]] [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.904401"], ["updated_at", "2014-07-22 19:34:54.904401"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.905966"], ["updated_at", "2014-07-22 19:34:54.905966"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:54.907506"], ["updated_at", "2014-07-22 19:34:54.907506"], ["user_id", 39], ["value", 1]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:54.909473"], ["updated_at", "2014-07-22 19:34:54.909473"], ["user_id", 6720000000000039], ["value", 2]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 39]] [shard 672 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 39]] [shard 672 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 39]] [shard 672 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 6720000000000039]] [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.920563"], ["updated_at", "2014-07-22 19:34:54.920563"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.922292"], ["updated_at", "2014-07-22 19:34:54.922292"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:54.924090"], ["updated_at", "2014-07-22 19:34:54.924090"], ["user_id", 40]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 43], ["created_at", "2014-07-22 19:34:54.926860"], ["updated_at", "2014-07-22 19:34:54.926860"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:54.929115"], ["updated_at", "2014-07-22 19:34:54.929115"], ["user_id", 6720000000000040]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 45], ["created_at", "2014-07-22 19:34:54.931643"], ["updated_at", "2014-07-22 19:34:54.931643"], ["value", 2]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 40]] [shard 672 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 6720000000000040]] [shard 673 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 40]] [shard 672 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 40]] [shard 672 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 6720000000000040]] [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.944410"], ["updated_at", "2014-07-22 19:34:54.944410"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.946001"], ["updated_at", "2014-07-22 19:34:54.946001"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:54.948738"], ["updated_at", "2014-07-22 19:34:54.948738"], ["user_id", 41]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:54.950683"], ["updated_at", "2014-07-22 19:34:54.950683"], ["user_id", 6720000000000041]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:54.952402"], ["updated_at", "2014-07-22 19:34:54.952402"], ["user_id", 6730000000000036]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [shard 672 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (41) [shard 672 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (6720000000000041) [shard 673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (36) [shard 673 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (36) [shard 673 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 44 [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.970261"], ["updated_at", "2014-07-22 19:34:54.970261"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:54.972315"], ["updated_at", "2014-07-22 19:34:54.972315"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:54.974715"], ["updated_at", "2014-07-22 19:34:54.974715"], ["user_id", 6720000000000042]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 625], ["created_at", "2014-07-22 19:34:54.977653"], ["updated_at", "2014-07-22 19:34:54.977653"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:54.980229"], ["updated_at", "2014-07-22 19:34:54.980229"], ["user_id", 6730000000000037]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 6720000000000046], ["created_at", "2014-07-22 19:34:54.982242"], ["updated_at", "2014-07-22 19:34:54.982242"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 671 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (625) [shard 671 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (46) [shard 672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [shard 672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 673 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 42 [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.001042"], ["updated_at", "2014-07-22 19:34:55.001042"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.002794"], ["updated_at", "2014-07-22 19:34:55.002794"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.005610"], ["updated_at", "2014-07-22 19:34:55.005610"], ["user_id", 6720000000000043]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.008049"], ["updated_at", "2014-07-22 19:34:55.008049"], ["user_id", 6730000000000038]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.009989"], ["updated_at", "2014-07-22 19:34:55.009989"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.013081"], ["updated_at", "2014-07-22 19:34:55.013081"], ["user_id", 1253]] [shard 671 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 671 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 671 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1253) [shard 671 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) [shard 672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38) [shard 673 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 43 [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.024315"], ["updated_at", "2014-07-22 19:34:55.024315"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.025834"], ["updated_at", "2014-07-22 19:34:55.025834"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.028444"], ["updated_at", "2014-07-22 19:34:55.028444"], ["user_id", 44]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.030282"], ["updated_at", "2014-07-22 19:34:55.030282"], ["user_id", 6720000000000044]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.031871"], ["updated_at", "2014-07-22 19:34:55.031871"], ["user_id", 6720000000000044]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 47], ["created_at", "2014-07-22 19:34:55.034741"], ["updated_at", "2014-07-22 19:34:55.034741"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 47], ["created_at", "2014-07-22 19:34:55.037476"], ["updated_at", "2014-07-22 19:34:55.037476"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 6730000000000047], ["created_at", "2014-07-22 19:34:55.039822"], ["updated_at", "2014-07-22 19:34:55.039822"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 6730000000000048], ["created_at", "2014-07-22 19:34:55.041392"], ["updated_at", "2014-07-22 19:34:55.041392"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.042872"], ["updated_at", "2014-07-22 19:34:55.042872"], ["user_id", 6730000000000039]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.045963"], ["updated_at", "2014-07-22 19:34:55.045963"], ["user_id", 39]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.048539"], ["updated_at", "2014-07-22 19:34:55.048539"], ["user_id", 39]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 6720000000000048], ["created_at", "2014-07-22 19:34:55.050640"], ["updated_at", "2014-07-22 19:34:55.050640"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 6730000000000049], ["created_at", "2014-07-22 19:34:55.052417"], ["updated_at", "2014-07-22 19:34:55.052417"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 6730000000000050], ["created_at", "2014-07-22 19:34:55.054060"], ["updated_at", "2014-07-22 19:34:55.054060"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (44) [shard 672 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (44) [shard 672 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (6720000000000044) [shard 673 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (47, 6730000000000047) [shard 672 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (47, 48) [shard 673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) [shard 673 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (39) [shard 673 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (49) [shard 673 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (6730000000000050) [shard 672 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.077436"], ["updated_at", "2014-07-22 19:34:55.077436"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.079030"], ["updated_at", "2014-07-22 19:34:55.079030"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.081007"], ["updated_at", "2014-07-22 19:34:55.081007"], ["user_id", 6730000000000040]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 49]] [shard 672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 40]] [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.087872"], ["updated_at", "2014-07-22 19:34:55.087872"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.089329"], ["updated_at", "2014-07-22 19:34:55.089329"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.090790"], ["updated_at", "2014-07-22 19:34:55.090790"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.093185"], ["updated_at", "2014-07-22 19:34:55.093185"], ["user_id", 46]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 50]] [shard 672 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.2ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.099828"], ["updated_at", "2014-07-22 19:34:55.099828"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.101243"], ["updated_at", "2014-07-22 19:34:55.101243"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.3ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.110197"], ["updated_at", "2014-07-22 19:34:55.110197"], ["user_id", 6730000000000042]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master] Root Load (0.2ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 30]] [shard 671 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 42]] [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.119301"], ["updated_at", "2014-07-22 19:34:55.119301"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.120918"], ["updated_at", "2014-07-22 19:34:55.120918"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.122591"], ["updated_at", "2014-07-22 19:34:55.122591"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.3ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:34:55.127813"], ["owner_id", 629], ["owner_type", "Appendage"], ["updated_at", "2014-07-22 19:34:55.127813"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 61]] [shard 671 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 629]] [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) UPDATE "features" SET "owner_id" = $1, "owner_type" = $2, "updated_at" = $3 WHERE "features"."id" = 61 [["owner_id", 6720000000000048], ["owner_type", "User"], ["updated_at", "2014-07-22 19:34:55.131975"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master] Feature Load (0.1ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 61]] [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.138046"], ["updated_at", "2014-07-22 19:34:55.138046"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.139453"], ["updated_at", "2014-07-22 19:34:55.139453"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-07-22 19:34:55.141485"], ["owner_id", 49], ["owner_type", "User"], ["updated_at", "2014-07-22 19:34:55.141485"], ["value", 1]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-07-22 19:34:55.144033"], ["owner_id", 6720000000000049], ["owner_type", "User"], ["updated_at", "2014-07-22 19:34:55.144033"], ["value", 2]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 49], ["owner_type", "User"]] [shard 672 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 49]] [shard 672 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 49], ["owner_type", "User"]] [shard 672 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 6720000000000049], ["owner_type", "User"]] [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "17"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "17"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "18"], ["name", "non_existent_shard"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "18"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 684 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.5ms) SELECT COUNT(*) FROM "users" [shard 685 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "19"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "20"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "21"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.2ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "22"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "23"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "24"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 671]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 672], ["name", "switchman_test_shard_672"]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 673], ["name", "switchman_test_shard_673"]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.240896"], ["updated_at", "2014-07-22 19:34:55.240896"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.243209"], ["updated_at", "2014-07-22 19:34:55.243209"], ["user_id", 1254]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.244813"], ["updated_at", "2014-07-22 19:34:55.244813"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.247232"], ["updated_at", "2014-07-22 19:34:55.247232"], ["user_id", 50]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.248732"], ["updated_at", "2014-07-22 19:34:55.248732"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.251247"], ["updated_at", "2014-07-22 19:34:55.251247"], ["user_id", 45]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.256271"], ["updated_at", "2014-07-22 19:34:55.256271"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.258440"], ["updated_at", "2014-07-22 19:34:55.258440"], ["user_id", 1255]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.259980"], ["updated_at", "2014-07-22 19:34:55.259980"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.262339"], ["updated_at", "2014-07-22 19:34:55.262339"], ["user_id", 51]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.263780"], ["updated_at", "2014-07-22 19:34:55.263780"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.266409"], ["updated_at", "2014-07-22 19:34:55.266409"], ["user_id", 46]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 672 LIMIT 1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.273340"], ["updated_at", "2014-07-22 19:34:55.273340"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.275538"], ["updated_at", "2014-07-22 19:34:55.275538"], ["user_id", 1256]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.277111"], ["updated_at", "2014-07-22 19:34:55.277111"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.279361"], ["updated_at", "2014-07-22 19:34:55.279361"], ["user_id", 52]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.281049"], ["updated_at", "2014-07-22 19:34:55.281049"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.283858"], ["updated_at", "2014-07-22 19:34:55.283858"], ["user_id", 47]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.2ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.289942"], ["updated_at", "2014-07-22 19:34:55.289942"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.292123"], ["updated_at", "2014-07-22 19:34:55.292123"], ["user_id", 1257]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.293642"], ["updated_at", "2014-07-22 19:34:55.293642"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.322696"], ["updated_at", "2014-07-22 19:34:55.322696"], ["user_id", 53]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.324325"], ["updated_at", "2014-07-22 19:34:55.324325"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.327149"], ["updated_at", "2014-07-22 19:34:55.327149"], ["user_id", 48]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.332655"], ["updated_at", "2014-07-22 19:34:55.332655"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.334879"], ["updated_at", "2014-07-22 19:34:55.334879"], ["user_id", 1258]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.336947"], ["updated_at", "2014-07-22 19:34:55.336947"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.340111"], ["updated_at", "2014-07-22 19:34:55.340111"], ["user_id", 54]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.341809"], ["updated_at", "2014-07-22 19:34:55.341809"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.344502"], ["updated_at", "2014-07-22 19:34:55.344502"], ["user_id", 49]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.346831"], ["updated_at", "2014-07-22 19:34:55.346831"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.2ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.353184"], ["updated_at", "2014-07-22 19:34:55.353184"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.356440"], ["updated_at", "2014-07-22 19:34:55.356440"], ["user_id", 1259]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.358275"], ["updated_at", "2014-07-22 19:34:55.358275"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.361246"], ["updated_at", "2014-07-22 19:34:55.361246"], ["user_id", 55]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.363819"], ["updated_at", "2014-07-22 19:34:55.363819"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.366672"], ["updated_at", "2014-07-22 19:34:55.366672"], ["user_id", 50]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.373630"], ["updated_at", "2014-07-22 19:34:55.373630"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.375900"], ["updated_at", "2014-07-22 19:34:55.375900"], ["user_id", 1260]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.377952"], ["updated_at", "2014-07-22 19:34:55.377952"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.380274"], ["updated_at", "2014-07-22 19:34:55.380274"], ["user_id", 56]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.381602"], ["updated_at", "2014-07-22 19:34:55.381602"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.385187"], ["updated_at", "2014-07-22 19:34:55.385187"], ["user_id", 51]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.391386"], ["updated_at", "2014-07-22 19:34:55.391386"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.393600"], ["updated_at", "2014-07-22 19:34:55.393600"], ["user_id", 1261]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.395362"], ["updated_at", "2014-07-22 19:34:55.395362"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.397946"], ["updated_at", "2014-07-22 19:34:55.397946"], ["user_id", 57]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.399568"], ["updated_at", "2014-07-22 19:34:55.399568"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.402117"], ["updated_at", "2014-07-22 19:34:55.402117"], ["user_id", 52]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.407347"], ["updated_at", "2014-07-22 19:34:55.407347"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.409752"], ["updated_at", "2014-07-22 19:34:55.409752"], ["user_id", 1262]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.411530"], ["updated_at", "2014-07-22 19:34:55.411530"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.414117"], ["updated_at", "2014-07-22 19:34:55.414117"], ["user_id", 58]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.415645"], ["updated_at", "2014-07-22 19:34:55.415645"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.418296"], ["updated_at", "2014-07-22 19:34:55.418296"], ["user_id", 53]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.425278"], ["updated_at", "2014-07-22 19:34:55.425278"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.427877"], ["updated_at", "2014-07-22 19:34:55.427877"], ["user_id", 1263]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.429510"], ["updated_at", "2014-07-22 19:34:55.429510"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.432021"], ["updated_at", "2014-07-22 19:34:55.432021"], ["user_id", 59]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.433532"], ["updated_at", "2014-07-22 19:34:55.433532"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.436032"], ["updated_at", "2014-07-22 19:34:55.436032"], ["user_id", 54]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.441141"], ["updated_at", "2014-07-22 19:34:55.441141"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.443361"], ["updated_at", "2014-07-22 19:34:55.443361"], ["user_id", 1264]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.445083"], ["updated_at", "2014-07-22 19:34:55.445083"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.447814"], ["updated_at", "2014-07-22 19:34:55.447814"], ["user_id", 60]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.449436"], ["updated_at", "2014-07-22 19:34:55.449436"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.452086"], ["updated_at", "2014-07-22 19:34:55.452086"], ["user_id", 55]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.457827"], ["updated_at", "2014-07-22 19:34:55.457827"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.460056"], ["updated_at", "2014-07-22 19:34:55.460056"], ["user_id", 1265]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.461682"], ["updated_at", "2014-07-22 19:34:55.461682"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.464108"], ["updated_at", "2014-07-22 19:34:55.464108"], ["user_id", 61]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.465615"], ["updated_at", "2014-07-22 19:34:55.465615"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.468161"], ["updated_at", "2014-07-22 19:34:55.468161"], ["user_id", 56]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.473043"], ["updated_at", "2014-07-22 19:34:55.473043"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.475183"], ["updated_at", "2014-07-22 19:34:55.475183"], ["user_id", 1266]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.476766"], ["updated_at", "2014-07-22 19:34:55.476766"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.479334"], ["updated_at", "2014-07-22 19:34:55.479334"], ["user_id", 62]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.480920"], ["updated_at", "2014-07-22 19:34:55.480920"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.483432"], ["updated_at", "2014-07-22 19:34:55.483432"], ["user_id", 57]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.488421"], ["updated_at", "2014-07-22 19:34:55.488421"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.490717"], ["updated_at", "2014-07-22 19:34:55.490717"], ["user_id", 1267]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.492518"], ["updated_at", "2014-07-22 19:34:55.492518"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.495182"], ["updated_at", "2014-07-22 19:34:55.495182"], ["user_id", 63]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.496679"], ["updated_at", "2014-07-22 19:34:55.496679"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.499266"], ["updated_at", "2014-07-22 19:34:55.499266"], ["user_id", 58]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.504167"], ["updated_at", "2014-07-22 19:34:55.504167"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.506311"], ["updated_at", "2014-07-22 19:34:55.506311"], ["user_id", 1268]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.507910"], ["updated_at", "2014-07-22 19:34:55.507910"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.510263"], ["updated_at", "2014-07-22 19:34:55.510263"], ["user_id", 64]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.511670"], ["updated_at", "2014-07-22 19:34:55.511670"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.514300"], ["updated_at", "2014-07-22 19:34:55.514300"], ["user_id", 59]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.519301"], ["updated_at", "2014-07-22 19:34:55.519301"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.521439"], ["updated_at", "2014-07-22 19:34:55.521439"], ["user_id", 1269]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.523040"], ["updated_at", "2014-07-22 19:34:55.523040"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.525545"], ["updated_at", "2014-07-22 19:34:55.525545"], ["user_id", 65]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.527055"], ["updated_at", "2014-07-22 19:34:55.527055"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.529624"], ["updated_at", "2014-07-22 19:34:55.529624"], ["user_id", 60]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.531979"], ["parent_id", 1269], ["updated_at", "2014-07-22 19:34:55.531979"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.534094"], ["parent_id", 1270], ["updated_at", "2014-07-22 19:34:55.534094"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1270]] [shard 671 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1269]] [shard 671 master] User Load (0.2ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 [["parent_id", 1269]] [shard 671 master]  (0.2ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 671]] [shard 671 master]  (0.2ms) COMMIT [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 672], ["name", "switchman_test_shard_672"]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 673], ["name", "switchman_test_shard_673"]] [shard 671 master]  (0.2ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "25"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "25"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 671]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 672], ["name", "switchman_test_shard_672"]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 673], ["name", "switchman_test_shard_673"]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.569475"], ["updated_at", "2014-07-22 19:34:55.569475"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.571188"], ["updated_at", "2014-07-22 19:34:55.571188"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.572716"], ["updated_at", "2014-07-22 19:34:55.572716"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 672 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 671 master]  (0.2ms) BEGIN [shard 671 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.591242"], ["updated_at", "2014-07-22 19:34:55.591242"]] [shard 671 master]  (0.5ms) COMMIT [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master] User Load (0.3ms) SELECT "users".* FROM "users" [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.605436"], ["updated_at", "2014-07-22 19:34:55.605436"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.612808"], ["updated_at", "2014-07-22 19:34:55.612808"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.619790"], ["updated_at", "2014-07-22 19:34:55.619790"]] [shard 671 master]  (0.2ms) COMMIT [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.669036"], ["updated_at", "2014-07-22 19:34:55.669036"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 671 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:34:55.670741' [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.675388"], ["updated_at", "2014-07-22 19:34:55.675388"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 671 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:34:55.677221' [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.679317"], ["updated_at", "2014-07-22 19:34:55.679317"]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 671 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:34:55.681314' [shard 671 master] SQL (0.3ms) DELETE FROM "users" [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.684234"], ["updated_at", "2014-07-22 19:34:55.684234"]] [shard 671 master]  (0.2ms) COMMIT [shard 671 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 671 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:34:55.686082' [shard 671 master] SQL (0.3ms) DELETE FROM "users" [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.706007"], ["updated_at", "2014-07-22 19:34:55.706007"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 671 master] SQL (0.1ms) DELETE FROM "users" [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.712558"], ["updated_at", "2014-07-22 19:34:55.712558"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 671 master] SQL (0.1ms) DELETE FROM "users" [shard 671 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.716521"], ["updated_at", "2014-07-22 19:34:55.716521"]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.718300"], ["name", "a"], ["updated_at", "2014-07-22 19:34:55.718300"]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1284]] [shard 671 master] CACHE (0.0ms) 671::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1284]] CACHE (0.0ms) 671::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1284]]  (0.1ms) BEGIN [shard 671 master] SQL (0.2ms) UPDATE "users" SET "name" = $1, "updated_at" = $2 WHERE "users"."id" = 1284 [["name", "b"], ["updated_at", "2014-07-22 19:34:55.721980"]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1284]] [shard 671 master] CACHE (0.0ms) 671::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1284]] SQL (0.3ms) DELETE FROM "users" [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.726133"], ["updated_at", "2014-07-22 19:34:55.726133"]] [shard 671 master]  (0.4ms) COMMIT [shard 671 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 671 master] SQL (0.4ms) DELETE FROM "users" [shard 671 master] SQL (0.1ms) DELETE FROM "users" [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.731007"], ["updated_at", "2014-07-22 19:34:55.731007"]] [shard 671 master]  (0.4ms) COMMIT [shard 671 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 671 master] SQL (0.3ms) DELETE FROM "users" [shard 671 master] SQL (0.2ms) DELETE FROM "users" [shard 671 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 671]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 672], ["name", "switchman_test_shard_672"]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 673], ["name", "switchman_test_shard_673"]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.745296"], ["updated_at", "2014-07-22 19:34:55.745296"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 68]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 6720000000000068 ORDER BY "users"."id" ASC LIMIT 1 [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.754728"], ["updated_at", "2014-07-22 19:34:55.754728"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 672 LIMIT 1 [shard 671 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 69 LIMIT 1 [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.764479"], ["updated_at", "2014-07-22 19:34:55.764479"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) LIMIT 1 [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.773103"], ["updated_at", "2014-07-22 19:34:55.773103"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 71]] [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.781025"], ["updated_at", "2014-07-22 19:34:55.781025"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 72 LIMIT 1 [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:34:55.788685"], ["updated_at", "2014-07-22 19:34:55.788685"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.790302"], ["name", "multi-shard exists"], ["updated_at", "2014-07-22 19:34:55.790302"]] [shard 673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 673 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 671 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 671 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 672 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 673 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 671 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 671]] [shard 671 master]  (0.2ms) COMMIT [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 672], ["name", "switchman_test_shard_672"]] [shard 671 master]  (0.3ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 673], ["name", "switchman_test_shard_673"]] [shard 671 master]  (0.2ms) COMMIT [shard 671 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.809451"], ["name", "user1"], ["updated_at", "2014-07-22 19:34:55.809451"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.811637"], ["name", "user2"], ["updated_at", "2014-07-22 19:34:55.811637"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.818710"], ["name", "user1"], ["updated_at", "2014-07-22 19:34:55.818710"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.820658"], ["name", "user2"], ["updated_at", "2014-07-22 19:34:55.820658"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 75 [shard 672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1288]] [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 672 LIMIT 1 [shard 671 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 75]] [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.831664"], ["name", "user1"], ["updated_at", "2014-07-22 19:34:55.831664"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.833513"], ["name", "user2"], ["updated_at", "2014-07-22 19:34:55.833513"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master] SQL (0.3ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (1289) [shard 671 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (76) [shard 672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1289]] [shard 671 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 76]] [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.850917"], ["name", "user1"], ["updated_at", "2014-07-22 19:34:55.850917"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.852783"], ["name", "user2"], ["updated_at", "2014-07-22 19:34:55.852783"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 77 ORDER BY "users"."id" ASC LIMIT 1 [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master]  (0.1ms) BEGIN [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 672]] [shard 671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 673]] [shard 671 master]  (0.1ms) BEGIN [shard 673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.859027"], ["name", "user1"], ["updated_at", "2014-07-22 19:34:55.859027"]] [shard 671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:34:55.860714"], ["name", "user2"], ["updated_at", "2014-07-22 19:34:55.860714"]] [shard 672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 672 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1291) [shard 671 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (78) [shard 672 master]  (0.1ms) ROLLBACK [shard 673 master]  (0.1ms) ROLLBACK [shard 672 master] SQL (0.7ms) DELETE FROM "switchman_shards" [shard 671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 671 master]  (4.2ms) DROP SCHEMA switchman_test_shard_672 CASCADE [shard 672 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 672]]  (0.1ms) COMMIT  (5.8ms) DROP SCHEMA switchman_test_shard_673 CASCADE [shard 673 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 673]]  (0.1ms) COMMIT  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.4ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.2ms) CREATE SCHEMA switchman_test_shard_695 [shard 695 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 695 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 695 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 695 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 695 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 695 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 695 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 695 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 695 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 695 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 695 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 695 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 695 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 695 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 695 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 695 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 695 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 695 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 695 [["name", "switchman_test_shard_695"]] [shard 694 master]  (0.7ms) COMMIT [shard 694 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_696 [shard 696 deploy]  (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 696 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 696 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 696 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 696 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 696 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 696 deploy]  (0.3ms) COMMIT [shard 696 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 696 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 696 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 696 deploy]  (0.4ms) COMMIT [shard 696 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) BEGIN [shard 696 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 696 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 696 deploy]  (0.3ms) COMMIT [shard 696 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 696 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 696 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 696 deploy]  (0.3ms) COMMIT [shard 696 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 696 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 696 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 696 deploy]  (0.4ms) COMMIT [shard 696 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 696 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 696 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 696 deploy]  (0.2ms) COMMIT [shard 696 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 696 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 696 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 696 deploy]  (0.3ms) COMMIT [shard 696 deploy]  (0.2ms) BEGIN [shard 694 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 696 [["name", "switchman_test_shard_696"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 694]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 695], ["name", "switchman_test_shard_695"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 696], ["name", "switchman_test_shard_696"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.3ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:10.455296"], ["updated_at", "2014-07-22 19:35:10.455296"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 31]] [shard 694 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 31]] [shard 694 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 31 ORDER BY "mirror_users"."id" ASC LIMIT 1 [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.2ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 694]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 695], ["name", "switchman_test_shard_695"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 696], ["name", "switchman_test_shard_696"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.499494"], ["name", "user1"], ["updated_at", "2014-07-22 19:35:10.499494"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.518731"], ["updated_at", "2014-07-22 19:35:10.518731"], ["user_id", 1]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.521299"], ["name", "user2"], ["updated_at", "2014-07-22 19:35:10.521299"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.524885"], ["updated_at", "2014-07-22 19:35:10.524885"], ["user_id", 1]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 695 LIMIT 1 [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 696 LIMIT 1 [shard 694 master]  (0.3ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (1) [shard 695 master]  (0.3ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (1) [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.538188"], ["name", "user1"], ["updated_at", "2014-07-22 19:35:10.538188"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.540592"], ["updated_at", "2014-07-22 19:35:10.540592"], ["user_id", 2]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.542212"], ["name", "user2"], ["updated_at", "2014-07-22 19:35:10.542212"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.544492"], ["updated_at", "2014-07-22 19:35:10.544492"], ["user_id", 2]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 2 [shard 695 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 2 [shard 696 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 2 [shard 695 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 2 [shard 696 master]  (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 2 [shard 695 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 2 [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.554674"], ["name", "user1"], ["updated_at", "2014-07-22 19:35:10.554674"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.556999"], ["updated_at", "2014-07-22 19:35:10.556999"], ["user_id", 3]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.558506"], ["name", "user2"], ["updated_at", "2014-07-22 19:35:10.558506"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.560671"], ["updated_at", "2014-07-22 19:35:10.560671"], ["user_id", 3]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 3 [shard 695 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 3 [shard 696 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 3 [shard 695 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 3 [shard 696 master]  (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 3 [shard 695 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 3 [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.2ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.572080"], ["name", "user1"], ["updated_at", "2014-07-22 19:35:10.572080"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.575017"], ["updated_at", "2014-07-22 19:35:10.575017"], ["user_id", 4], ["value", 1]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.576940"], ["updated_at", "2014-07-22 19:35:10.576940"], ["user_id", 4], ["value", 2]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.578493"], ["name", "user2"], ["updated_at", "2014-07-22 19:35:10.578493"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.580674"], ["updated_at", "2014-07-22 19:35:10.580674"], ["user_id", 4], ["value", 3]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.582689"], ["updated_at", "2014-07-22 19:35:10.582689"], ["user_id", 4], ["value", 4]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.584538"], ["updated_at", "2014-07-22 19:35:10.584538"], ["user_id", 4], ["value", 5]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 4]] [shard 695 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 695 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 4]] [shard 696 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 696 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (4, 5) [shard 695 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (4, 5, 6) [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.595005"], ["name", "user1"], ["updated_at", "2014-07-22 19:35:10.595005"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.598114"], ["updated_at", "2014-07-22 19:35:10.598114"], ["user_id", 5], ["value", 1]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.600906"], ["updated_at", "2014-07-22 19:35:10.600906"], ["user_id", 5], ["value", 2]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.602826"], ["name", "user2"], ["updated_at", "2014-07-22 19:35:10.602826"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.605349"], ["updated_at", "2014-07-22 19:35:10.605349"], ["user_id", 5], ["value", 3]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.607572"], ["updated_at", "2014-07-22 19:35:10.607572"], ["user_id", 5], ["value", 4]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.610047"], ["updated_at", "2014-07-22 19:35:10.610047"], ["user_id", 5], ["value", 5]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 5]] [shard 695 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 695 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 5]] [shard 696 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 696 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (6, 7) [shard 695 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (7, 8, 9) [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.622141"], ["name", "user1"], ["updated_at", "2014-07-22 19:35:10.622141"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.624735"], ["updated_at", "2014-07-22 19:35:10.624735"], ["user_id", 6], ["value", 1]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.626908"], ["updated_at", "2014-07-22 19:35:10.626908"], ["user_id", 6], ["value", 2]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.628876"], ["name", "user2"], ["updated_at", "2014-07-22 19:35:10.628876"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.631341"], ["updated_at", "2014-07-22 19:35:10.631341"], ["user_id", 6], ["value", 3]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.633047"], ["updated_at", "2014-07-22 19:35:10.633047"], ["user_id", 6], ["value", 4]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.634782"], ["updated_at", "2014-07-22 19:35:10.634782"], ["user_id", 6], ["value", 5]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 6]] [shard 695 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 695 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 6]] [shard 696 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 696 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (8, 9) [shard 695 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (10, 11, 12) [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.645778"], ["name", "user1"], ["updated_at", "2014-07-22 19:35:10.645778"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.648180"], ["updated_at", "2014-07-22 19:35:10.648180"], ["user_id", 7], ["value", 1]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.649999"], ["updated_at", "2014-07-22 19:35:10.649999"], ["user_id", 7], ["value", 2]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.651589"], ["name", "user2"], ["updated_at", "2014-07-22 19:35:10.651589"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.653978"], ["updated_at", "2014-07-22 19:35:10.653978"], ["user_id", 7], ["value", 3]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.656041"], ["updated_at", "2014-07-22 19:35:10.656041"], ["user_id", 7], ["value", 4]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.657834"], ["updated_at", "2014-07-22 19:35:10.657834"], ["user_id", 7], ["value", 5]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 7]] [shard 695 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 695 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 7]] [shard 696 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 696 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (10, 11) [shard 695 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (13, 14, 15) [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.668295"], ["name", "user1"], ["updated_at", "2014-07-22 19:35:10.668295"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.670899"], ["updated_at", "2014-07-22 19:35:10.670899"], ["user_id", 8], ["value", 1]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.672872"], ["updated_at", "2014-07-22 19:35:10.672872"], ["user_id", 8], ["value", 2]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.674752"], ["name", "user2"], ["updated_at", "2014-07-22 19:35:10.674752"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.677595"], ["updated_at", "2014-07-22 19:35:10.677595"], ["user_id", 8], ["value", 3]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.679633"], ["updated_at", "2014-07-22 19:35:10.679633"], ["user_id", 8], ["value", 4]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.681586"], ["updated_at", "2014-07-22 19:35:10.681586"], ["user_id", 8], ["value", 5]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 8]] [shard 695 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 695 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 8]] [shard 696 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 696 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (12, 13) [shard 695 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (16, 17, 18) [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.692466"], ["name", "user1"], ["updated_at", "2014-07-22 19:35:10.692466"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.694046"], ["name", "user2"], ["updated_at", "2014-07-22 19:35:10.694046"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.695665"], ["updated_at", "2014-07-22 19:35:10.695665"], ["user_id", 9], ["value", 1]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.697640"], ["updated_at", "2014-07-22 19:35:10.697640"], ["user_id", 6960000000000009], ["value", 3]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.699430"], ["updated_at", "2014-07-22 19:35:10.699430"], ["user_id", 6950000000000009], ["value", 2]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.700933"], ["updated_at", "2014-07-22 19:35:10.700933"], ["user_id", 9], ["value", 4]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.702341"], ["updated_at", "2014-07-22 19:35:10.702341"], ["user_id", 9], ["value", 5]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 695 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 696 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 695 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 696 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 695 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 696 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (9) [shard 695 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (9) [shard 696 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 696 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (9) [shard 696 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (9) [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.719693"], ["name", "user1"], ["updated_at", "2014-07-22 19:35:10.719693"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.721663"], ["name", "user2"], ["updated_at", "2014-07-22 19:35:10.721663"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.723351"], ["updated_at", "2014-07-22 19:35:10.723351"], ["user_id", 10], ["value", 1]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.725887"], ["updated_at", "2014-07-22 19:35:10.725887"], ["user_id", 6960000000000010], ["value", 3]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.727855"], ["updated_at", "2014-07-22 19:35:10.727855"], ["user_id", 6950000000000010], ["value", 2]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.729935"], ["updated_at", "2014-07-22 19:35:10.729935"], ["user_id", 10], ["value", 4]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.731512"], ["updated_at", "2014-07-22 19:35:10.731512"], ["user_id", 10], ["value", 5]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 695 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 696 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 695 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 696 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 695 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 696 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [shard 695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [shard 696 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 696 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [shard 696 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.745730"], ["name", "user1"], ["updated_at", "2014-07-22 19:35:10.745730"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.747384"], ["name", "user2"], ["updated_at", "2014-07-22 19:35:10.747384"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.748874"], ["updated_at", "2014-07-22 19:35:10.748874"], ["user_id", 11], ["value", 1]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.750668"], ["updated_at", "2014-07-22 19:35:10.750668"], ["user_id", 6960000000000011], ["value", 3]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.752502"], ["updated_at", "2014-07-22 19:35:10.752502"], ["user_id", 6950000000000011], ["value", 2]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.753979"], ["updated_at", "2014-07-22 19:35:10.753979"], ["user_id", 11], ["value", 4]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.755447"], ["updated_at", "2014-07-22 19:35:10.755447"], ["user_id", 11], ["value", 5]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.757689"], ["updated_at", "2014-07-22 19:35:10.757689"], ["user_id", 11]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:10.759229"], ["updated_at", "2014-07-22 19:35:10.759229"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.761440"], ["updated_at", "2014-07-22 19:35:10.761440"], ["user_id", 12]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.2ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.767679"], ["name", "user1"], ["updated_at", "2014-07-22 19:35:10.767679"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.769292"], ["name", "user2"], ["updated_at", "2014-07-22 19:35:10.769292"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.771040"], ["updated_at", "2014-07-22 19:35:10.771040"], ["user_id", 13], ["value", 1]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.773580"], ["updated_at", "2014-07-22 19:35:10.773580"], ["user_id", 6960000000000012], ["value", 3]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.775709"], ["updated_at", "2014-07-22 19:35:10.775709"], ["user_id", 6950000000000013], ["value", 2]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.777154"], ["updated_at", "2014-07-22 19:35:10.777154"], ["user_id", 12], ["value", 4]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.778656"], ["updated_at", "2014-07-22 19:35:10.778656"], ["user_id", 12], ["value", 5]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 695 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 696 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 695 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 696 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 695 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 696 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (13) [shard 695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (12) [shard 696 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 696 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (12) [shard 696 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (13) [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.792662"], ["name", "user1"], ["updated_at", "2014-07-22 19:35:10.792662"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.794128"], ["name", "user2"], ["updated_at", "2014-07-22 19:35:10.794128"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.795550"], ["updated_at", "2014-07-22 19:35:10.795550"], ["user_id", 14], ["value", 1]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.797372"], ["updated_at", "2014-07-22 19:35:10.797372"], ["user_id", 6960000000000013], ["value", 3]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.799562"], ["updated_at", "2014-07-22 19:35:10.799562"], ["user_id", 6950000000000014], ["value", 2]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.801497"], ["updated_at", "2014-07-22 19:35:10.801497"], ["user_id", 13], ["value", 4]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.803200"], ["updated_at", "2014-07-22 19:35:10.803200"], ["user_id", 13], ["value", 5]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 695 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 696 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 695 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 696 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 695 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 696 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (14) [shard 695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (13) [shard 696 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 696 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (13) [shard 696 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (14) [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.818128"], ["name", "user1"], ["updated_at", "2014-07-22 19:35:10.818128"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:10.819683"], ["name", "user2"], ["updated_at", "2014-07-22 19:35:10.819683"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.821275"], ["updated_at", "2014-07-22 19:35:10.821275"], ["user_id", 15], ["value", 1]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.823120"], ["updated_at", "2014-07-22 19:35:10.823120"], ["user_id", 6960000000000014], ["value", 3]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.825052"], ["updated_at", "2014-07-22 19:35:10.825052"], ["user_id", 6950000000000015], ["value", 2]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.826628"], ["updated_at", "2014-07-22 19:35:10.826628"], ["user_id", 14], ["value", 4]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:10.828207"], ["updated_at", "2014-07-22 19:35:10.828207"], ["user_id", 14], ["value", 5]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 695 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 696 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 695 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 696 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 695 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 696 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (15) [shard 695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (14) [shard 696 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 696 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (14) [shard 696 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (15) [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 694]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 695], ["name", "switchman_test_shard_695"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 696], ["name", "switchman_test_shard_696"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 695 LIMIT 1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.2ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10696 LIMIT 1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 696 LIMIT 1 [shard 694 master]  (0.2ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '2' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "2"], ["name", "public"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (15.1ms) CREATE SCHEMA switchman_test_shard_697 [shard 697 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 697 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 697 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 697 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 697 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 697 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 697 deploy]  (0.4ms) COMMIT [shard 697 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 697 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 697 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 697 deploy]  (0.3ms) COMMIT [shard 697 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 697 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 697 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 697 deploy]  (0.3ms) COMMIT [shard 697 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 697 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 697 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 697 deploy]  (0.4ms) COMMIT [shard 697 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 697 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 697 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 697 deploy]  (0.3ms) COMMIT [shard 697 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 697 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 697 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 697 deploy]  (0.3ms) COMMIT [shard 697 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 697 deploy]  (2.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 697 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 697 deploy]  (0.4ms) COMMIT [shard 697 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 697 [["name", "switchman_test_shard_697"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) BEGIN [shard 697 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:10.979287"], ["updated_at", "2014-07-22 19:35:10.979287"]] [shard 697 master]  (0.3ms) COMMIT [shard 697 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 697 master]  (4.7ms) DROP SCHEMA switchman_test_shard_697 CASCADE [shard 697 deploy]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 697 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 698]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (6.9ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.2ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 699]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 699 LIMIT 1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master] SQL (16.0ms) DELETE FROM "switchman_shards" [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [shard 694 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 694]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 695], ["name", "switchman_test_shard_695"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 696], ["name", "switchman_test_shard_696"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 694]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 695], ["name", "switchman_test_shard_695"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 696], ["name", "switchman_test_shard_696"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.204543"], ["updated_at", "2014-07-22 19:35:11.204543"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 696 master]  (0.1ms) SAVEPOINT active_record_2 [shard 696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.210405"], ["updated_at", "2014-07-22 19:35:11.210405"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 696 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) SELECT COUNT(*) FROM "users" [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "4"], ["name", "non_existent_shard"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "4"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 700 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.6ms) SELECT COUNT(*) FROM "users" [shard 701 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "5"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "6"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "7"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "8"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "9"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "10"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 694]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 695], ["name", "switchman_test_shard_695"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 696], ["name", "switchman_test_shard_696"]] [shard 694 master]  (0.2ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.319701"], ["updated_at", "2014-07-22 19:35:11.319701"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.325372"], ["updated_at", "2014-07-22 19:35:11.325372"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 695 LIMIT 1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.330995"], ["updated_at", "2014-07-22 19:35:11.330995"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.342427"], ["updated_at", "2014-07-22 19:35:11.342427"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.351765"], ["updated_at", "2014-07-22 19:35:11.351765"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.353713"], ["updated_at", "2014-07-22 19:35:11.353713"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.358211"], ["updated_at", "2014-07-22 19:35:11.358211"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 694]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 695], ["name", "switchman_test_shard_695"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 696], ["name", "switchman_test_shard_696"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.375419"], ["updated_at", "2014-07-22 19:35:11.375419"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.377124"], ["updated_at", "2014-07-22 19:35:11.377124"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.380241"], ["updated_at", "2014-07-22 19:35:11.380241"], ["user_id", 19]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 19]] [shard 695 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 695 LIMIT 1 [shard 694 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [shard 695 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 19]] [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.391764"], ["updated_at", "2014-07-22 19:35:11.391764"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.393323"], ["updated_at", "2014-07-22 19:35:11.393323"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.396352"], ["updated_at", "2014-07-22 19:35:11.396352"], ["user_id", 20]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (15.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 30], ["created_at", "2014-07-22 19:35:11.406403"], ["updated_at", "2014-07-22 19:35:11.406403"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 20], ["id", 1]] [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.2ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.436018"], ["updated_at", "2014-07-22 19:35:11.436018"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.437896"], ["updated_at", "2014-07-22 19:35:11.437896"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.440859"], ["updated_at", "2014-07-22 19:35:11.440859"], ["user_id", 21]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 21], ["id", 31]] [shard 695 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 19], ["id", 31]] [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.451254"], ["updated_at", "2014-07-22 19:35:11.451254"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.452754"], ["updated_at", "2014-07-22 19:35:11.452754"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.458481"], ["updated_at", "2014-07-22 19:35:11.458481"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.459866"], ["updated_at", "2014-07-22 19:35:11.459866"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.462255"], ["updated_at", "2014-07-22 19:35:11.462255"], ["user_id", 23]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 32]] [shard 695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 23]] [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.470749"], ["updated_at", "2014-07-22 19:35:11.470749"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.472230"], ["updated_at", "2014-07-22 19:35:11.472230"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.474782"], ["updated_at", "2014-07-22 19:35:11.474782"], ["user_id", 24]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.480831"], ["updated_at", "2014-07-22 19:35:11.480831"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.482296"], ["updated_at", "2014-07-22 19:35:11.482296"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.484933"], ["parent_id", 25], ["updated_at", "2014-07-22 19:35:11.484933"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.487008"], ["parent_id", 26], ["updated_at", "2014-07-22 19:35:11.487008"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 25]] [shard 695 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 27 LIMIT 1 [["parent_id", 25]] [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.492243"], ["id", 27], ["updated_at", "2014-07-22 19:35:11.492243"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 25]] [shard 695 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 6960000000000027 LIMIT 1 [["parent_id", 25]] [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.500081"], ["updated_at", "2014-07-22 19:35:11.500081"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.501470"], ["updated_at", "2014-07-22 19:35:11.501470"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.2ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.507317"], ["updated_at", "2014-07-22 19:35:11.507317"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.508705"], ["updated_at", "2014-07-22 19:35:11.508705"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.511201"], ["updated_at", "2014-07-22 19:35:11.511201"], ["user_id", 29]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.516079"], ["updated_at", "2014-07-22 19:35:11.516079"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.517506"], ["updated_at", "2014-07-22 19:35:11.517506"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.519912"], ["updated_at", "2014-07-22 19:35:11.519912"], ["user_id", 30]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.522305"], ["updated_at", "2014-07-22 19:35:11.522305"], ["user_id", 26]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 696 LIMIT 1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.530439"], ["updated_at", "2014-07-22 19:35:11.530439"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.531887"], ["updated_at", "2014-07-22 19:35:11.531887"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (15.2ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.536299"], ["updated_at", "2014-07-22 19:35:11.536299"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.2ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.559186"], ["updated_at", "2014-07-22 19:35:11.559186"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.560617"], ["updated_at", "2014-07-22 19:35:11.560617"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:11.562103"], ["updated_at", "2014-07-22 19:35:11.562103"], ["user_id", 32], ["value", 1]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:11.564257"], ["updated_at", "2014-07-22 19:35:11.564257"], ["user_id", 6950000000000032], ["value", 2]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 32]] [shard 695 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 32]] [shard 695 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 32]] [shard 695 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 6950000000000032]] [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.573199"], ["updated_at", "2014-07-22 19:35:11.573199"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.574615"], ["updated_at", "2014-07-22 19:35:11.574615"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:11.576074"], ["updated_at", "2014-07-22 19:35:11.576074"], ["user_id", 33], ["value", 1]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.578360"], ["updated_at", "2014-07-22 19:35:11.578360"], ["user_id", 6950000000000033]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:11.581310"], ["updated_at", "2014-07-22 19:35:11.581310"], ["user_id", 33], ["value", 2]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 33]] [shard 695 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 33]] [shard 695 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 6950000000000033]] [shard 696 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 33]] [shard 695 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 33]] [shard 695 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 6950000000000033]] [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.594321"], ["updated_at", "2014-07-22 19:35:11.594321"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.595956"], ["updated_at", "2014-07-22 19:35:11.595956"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.597575"], ["updated_at", "2014-07-22 19:35:11.597575"], ["user_id", 34]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 39], ["created_at", "2014-07-22 19:35:11.599922"], ["updated_at", "2014-07-22 19:35:11.599922"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.601835"], ["updated_at", "2014-07-22 19:35:11.601835"], ["user_id", 6950000000000034]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 41], ["created_at", "2014-07-22 19:35:11.604748"], ["updated_at", "2014-07-22 19:35:11.604748"], ["value", 2]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 34]] [shard 695 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 6950000000000034]] [shard 696 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 34]] [shard 695 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 34]] [shard 695 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 6950000000000034]] [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.616897"], ["updated_at", "2014-07-22 19:35:11.616897"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.618398"], ["updated_at", "2014-07-22 19:35:11.618398"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.619882"], ["updated_at", "2014-07-22 19:35:11.619882"], ["user_id", 35]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 40], ["created_at", "2014-07-22 19:35:11.622124"], ["updated_at", "2014-07-22 19:35:11.622124"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.624030"], ["updated_at", "2014-07-22 19:35:11.624030"], ["user_id", 6950000000000035]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 42], ["created_at", "2014-07-22 19:35:11.626287"], ["updated_at", "2014-07-22 19:35:11.626287"], ["value", 2]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 35]] [shard 695 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 6950000000000035]] [shard 696 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 35]] [shard 695 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 35]] [shard 695 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 6950000000000035]] [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.638240"], ["updated_at", "2014-07-22 19:35:11.638240"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.639646"], ["updated_at", "2014-07-22 19:35:11.639646"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.641470"], ["updated_at", "2014-07-22 19:35:11.641470"], ["user_id", 36]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 41], ["created_at", "2014-07-22 19:35:11.644102"], ["updated_at", "2014-07-22 19:35:11.644102"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 41], ["created_at", "2014-07-22 19:35:11.646290"], ["updated_at", "2014-07-22 19:35:11.646290"], ["value", 1]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.648736"], ["updated_at", "2014-07-22 19:35:11.648736"], ["user_id", 6950000000000036]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 43], ["created_at", "2014-07-22 19:35:11.651051"], ["updated_at", "2014-07-22 19:35:11.651051"], ["value", 2]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 36]] [shard 695 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 6950000000000036]] [shard 696 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 36]] [shard 695 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 36]] [shard 695 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 6950000000000036]] [shard 696 master]  (0.2ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.663420"], ["updated_at", "2014-07-22 19:35:11.663420"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.664940"], ["updated_at", "2014-07-22 19:35:11.664940"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.666361"], ["updated_at", "2014-07-22 19:35:11.666361"], ["user_id", 37]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 42], ["created_at", "2014-07-22 19:35:11.668442"], ["updated_at", "2014-07-22 19:35:11.668442"], ["value", 1]] [shard 695 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.670783"], ["updated_at", "2014-07-22 19:35:11.670783"], ["user_id", 6950000000000037]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 44], ["created_at", "2014-07-22 19:35:11.673518"], ["updated_at", "2014-07-22 19:35:11.673518"], ["value", 2]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 37]] [shard 695 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 37]] [shard 695 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 37]] [shard 695 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 6950000000000037]] [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.683933"], ["updated_at", "2014-07-22 19:35:11.683933"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.685386"], ["updated_at", "2014-07-22 19:35:11.685386"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:11.686878"], ["updated_at", "2014-07-22 19:35:11.686878"], ["user_id", 38], ["value", 1]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.688742"], ["updated_at", "2014-07-22 19:35:11.688742"], ["user_id", 6950000000000038]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 38]] [shard 695 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 6950000000000038]] [shard 696 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 38]] [shard 695 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 38]] [shard 695 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 6950000000000038]] [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.698482"], ["updated_at", "2014-07-22 19:35:11.698482"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.699911"], ["updated_at", "2014-07-22 19:35:11.699911"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.3ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.708451"], ["updated_at", "2014-07-22 19:35:11.708451"], ["user_id", 6960000000000035]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master] Root Load (0.2ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 31]] [shard 694 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 35]] [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.716128"], ["updated_at", "2014-07-22 19:35:11.716128"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.717764"], ["updated_at", "2014-07-22 19:35:11.717764"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-07-22 19:35:11.726367"], ["owner_id", 40], ["owner_type", "User"], ["updated_at", "2014-07-22 19:35:11.726367"], ["value", 1]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-07-22 19:35:11.729594"], ["owner_id", 6950000000000040], ["owner_type", "User"], ["updated_at", "2014-07-22 19:35:11.729594"], ["value", 2]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 40], ["owner_type", "User"]] [shard 695 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 40]] [shard 695 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 40], ["owner_type", "User"]] [shard 695 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 6950000000000040], ["owner_type", "User"]] [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.742853"], ["updated_at", "2014-07-22 19:35:11.742853"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.744362"], ["updated_at", "2014-07-22 19:35:11.744362"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.746067"], ["updated_at", "2014-07-22 19:35:11.746067"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:11.747875"], ["owner_id", 646], ["owner_type", "Appendage"], ["updated_at", "2014-07-22 19:35:11.747875"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 62]] [shard 694 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 646]] [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) UPDATE "features" SET "owner_id" = $1, "owner_type" = $2, "updated_at" = $3 WHERE "features"."id" = 62 [["owner_id", 6950000000000041], ["owner_type", "User"], ["updated_at", "2014-07-22 19:35:11.751757"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 62]] [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.758113"], ["updated_at", "2014-07-22 19:35:11.758113"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.759585"], ["updated_at", "2014-07-22 19:35:11.759585"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.761047"], ["updated_at", "2014-07-22 19:35:11.761047"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 42]] [shard 695 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.763400"], ["updated_at", "2014-07-22 19:35:11.763400"], ["user_id", 42]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 44]] [shard 695 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 42]] [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.769504"], ["updated_at", "2014-07-22 19:35:11.769504"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.770811"], ["updated_at", "2014-07-22 19:35:11.770811"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.773213"], ["updated_at", "2014-07-22 19:35:11.773213"], ["user_id", 6960000000000039]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 45]] [shard 695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 39]] [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.780089"], ["updated_at", "2014-07-22 19:35:11.780089"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.781536"], ["updated_at", "2014-07-22 19:35:11.781536"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.783645"], ["updated_at", "2014-07-22 19:35:11.783645"], ["user_id", 6950000000000044]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.785542"], ["updated_at", "2014-07-22 19:35:11.785542"], ["user_id", 6960000000000040]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.786922"], ["updated_at", "2014-07-22 19:35:11.786922"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.789102"], ["updated_at", "2014-07-22 19:35:11.789102"], ["user_id", 1294]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 694 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1294) [shard 694 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (44) [shard 695 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) [shard 696 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 44 [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.802158"], ["updated_at", "2014-07-22 19:35:11.802158"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.804022"], ["updated_at", "2014-07-22 19:35:11.804022"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.807221"], ["updated_at", "2014-07-22 19:35:11.807221"], ["user_id", 45]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.809126"], ["updated_at", "2014-07-22 19:35:11.809126"], ["user_id", 6950000000000045]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.810725"], ["updated_at", "2014-07-22 19:35:11.810725"], ["user_id", 6950000000000045]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 46], ["created_at", "2014-07-22 19:35:11.814068"], ["updated_at", "2014-07-22 19:35:11.814068"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 47], ["created_at", "2014-07-22 19:35:11.817265"], ["updated_at", "2014-07-22 19:35:11.817265"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 6960000000000047], ["created_at", "2014-07-22 19:35:11.820094"], ["updated_at", "2014-07-22 19:35:11.820094"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 6960000000000048], ["created_at", "2014-07-22 19:35:11.821863"], ["updated_at", "2014-07-22 19:35:11.821863"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.823701"], ["updated_at", "2014-07-22 19:35:11.823701"], ["user_id", 6960000000000041]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.826493"], ["updated_at", "2014-07-22 19:35:11.826493"], ["user_id", 41]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.828772"], ["updated_at", "2014-07-22 19:35:11.828772"], ["user_id", 41]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 6950000000000047], ["created_at", "2014-07-22 19:35:11.830499"], ["updated_at", "2014-07-22 19:35:11.830499"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 6960000000000049], ["created_at", "2014-07-22 19:35:11.832147"], ["updated_at", "2014-07-22 19:35:11.832147"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 6960000000000050], ["created_at", "2014-07-22 19:35:11.833454"], ["updated_at", "2014-07-22 19:35:11.833454"]] [shard 695 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [shard 695 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (45) [shard 695 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (6950000000000045) [shard 696 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (46, 6960000000000047) [shard 695 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (47, 48) [shard 696 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [shard 696 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (41) [shard 696 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (49) [shard 696 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (6960000000000050) [shard 695 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.856722"], ["updated_at", "2014-07-22 19:35:11.856722"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.858171"], ["updated_at", "2014-07-22 19:35:11.858171"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.860267"], ["updated_at", "2014-07-22 19:35:11.860267"], ["user_id", 6950000000000046]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 650], ["created_at", "2014-07-22 19:35:11.862545"], ["updated_at", "2014-07-22 19:35:11.862545"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.864939"], ["updated_at", "2014-07-22 19:35:11.864939"], ["user_id", 6960000000000042]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 6950000000000048], ["created_at", "2014-07-22 19:35:11.866587"], ["updated_at", "2014-07-22 19:35:11.866587"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 694 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (650) [shard 694 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (48) [shard 695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (46) [shard 695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [shard 696 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 46 [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.886185"], ["updated_at", "2014-07-22 19:35:11.886185"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.887810"], ["updated_at", "2014-07-22 19:35:11.887810"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.890444"], ["updated_at", "2014-07-22 19:35:11.890444"], ["user_id", 47]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.892335"], ["updated_at", "2014-07-22 19:35:11.892335"], ["user_id", 6950000000000047]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:11.894218"], ["updated_at", "2014-07-22 19:35:11.894218"], ["user_id", 6960000000000043]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (47) [shard 695 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (47) [shard 695 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (6950000000000047) [shard 696 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) [shard 696 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (43) [shard 696 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 49 [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.908729"], ["updated_at", "2014-07-22 19:35:11.908729"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:11.910846"], ["updated_at", "2014-07-22 19:35:11.910846"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 694]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 695], ["name", "switchman_test_shard_695"]] [shard 694 master]  (0.4ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 696], ["name", "switchman_test_shard_696"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '25' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "25"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 708 deploy]  (0.1ms) select sqlite_version(*) [shard 708 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 708 deploy] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 708 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 708 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime, "updated_at" datetime) [shard 708 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130403132607"]] [shard 708 deploy]  (0.8ms) commit transaction [shard 708 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) begin transaction [shard 708 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [shard 708 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202442"]] [shard 708 deploy]  (0.7ms) commit transaction [shard 708 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 708 deploy]  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [shard 708 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202551"]] [shard 708 deploy]  (0.5ms) commit transaction [shard 708 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 708 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [shard 708 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131022202028"]] [shard 708 deploy]  (0.6ms) commit transaction [shard 708 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 708 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime, "updated_at" datetime) [shard 708 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131206172923"]] [shard 708 deploy]  (0.7ms) commit transaction [shard 708 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 708 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 708 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140123154135"]] [shard 708 deploy]  (0.6ms) commit transaction [shard 708 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 708 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [shard 708 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219183820"]] [shard 708 deploy]  (0.6ms) commit transaction [shard 708 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 708 [["name", "db/shard_708.sqlite3"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.0ms) begin transaction [shard 708 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-07-22 19:35:11.977546"], ["updated_at", "2014-07-22 19:35:11.977546"]] [shard 708 master]  (0.8ms) commit transaction [shard 708 master] Drop failed: No such file or directory @ unlink_internal - db/shard_708.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 708]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '26' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "26"], ["name", "public"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (13.3ms) CREATE SCHEMA switchman_test_shard_709 [shard 709 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 709 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 709 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 709 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 709 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 709 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 709 deploy]  (0.3ms) COMMIT [shard 709 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 709 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 709 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 709 deploy]  (0.3ms) COMMIT [shard 709 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 709 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 709 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 709 deploy]  (0.3ms) COMMIT [shard 709 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 709 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 709 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 709 deploy]  (0.4ms) COMMIT [shard 709 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 709 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 709 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 709 deploy]  (0.4ms) COMMIT [shard 709 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 709 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 709 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 709 deploy]  (0.2ms) COMMIT [shard 709 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 709 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 709 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 709 deploy]  (0.4ms) COMMIT [shard 709 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 709 [["name", "switchman_test_shard_709"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) BEGIN [shard 709 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.080698"], ["updated_at", "2014-07-22 19:35:12.080698"]] [shard 709 master]  (0.3ms) COMMIT [shard 709 master]  (4.7ms) DROP SCHEMA switchman_test_shard_709 CASCADE [shard 709 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 709]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.2ms) ROLLBACK [shard 696 master]  (0.2ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [shard 694 master]  (0.2ms) CREATE SCHEMA switchman_test_shard_710 [shard 710 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 710 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 710 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 710 deploy] Migrating to CreateUsers (20130403132607)  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 710 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 710 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 710 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 710 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 710 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 710 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 710 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 710 deploy] Migrating to CreateFeatures (20131206172923)  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 710 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 710 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 710 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 710 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 710 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 710 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 710 [["name", "switchman_test_shard_710"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 710 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.149812"], ["updated_at", "2014-07-22 19:35:12.149812"]] [shard 710 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 710 master]  (2.4ms) DROP SCHEMA switchman_test_shard_710 CASCADE [shard 710 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 710]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (2.1ms) ROLLBACK [shard 694 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 694]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 695], ["name", "switchman_test_shard_695"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 696], ["name", "switchman_test_shard_696"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "27"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.184069"], ["updated_at", "2014-07-22 19:35:12.184069"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "28"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master] SQL (0.7ms) DELETE FROM "switchman_shards" [shard 694 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 694]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 695], ["name", "switchman_test_shard_695"]] [shard 694 master]  (0.2ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 696], ["name", "switchman_test_shard_696"]] [shard 694 master]  (0.2ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.2ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "29"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "29"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 694]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 695], ["name", "switchman_test_shard_695"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 696], ["name", "switchman_test_shard_696"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 694]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 695], ["name", "switchman_test_shard_695"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 696], ["name", "switchman_test_shard_696"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.350053"], ["updated_at", "2014-07-22 19:35:12.350053"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.358034"], ["updated_at", "2014-07-22 19:35:12.358034"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 695 LIMIT 1 [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 696 LIMIT 1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.367366"], ["updated_at", "2014-07-22 19:35:12.367366"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.3ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 19:35:12.373244"], ["owner_id", 1297], ["owner_type", "User"], ["updated_at", "2014-07-22 19:35:12.373244"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master] Feature Load (0.3ms) SELECT "features"."owner_id" FROM "features" WHERE "features"."id" = 63 ORDER BY "features"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master] SQL (15.5ms) DELETE FROM "switchman_shards" [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 694]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 695], ["name", "switchman_test_shard_695"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 696], ["name", "switchman_test_shard_696"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.402992"], ["name", "user1"], ["updated_at", "2014-07-22 19:35:12.402992"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.404617"], ["name", "user2"], ["updated_at", "2014-07-22 19:35:12.404617"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 695 LIMIT 1 [shard 694 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1298) [shard 694 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (49) [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.413143"], ["name", "user1"], ["updated_at", "2014-07-22 19:35:12.413143"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.414925"], ["name", "user2"], ["updated_at", "2014-07-22 19:35:12.414925"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 50 ORDER BY "users"."id" ASC LIMIT 1 [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.420438"], ["name", "user1"], ["updated_at", "2014-07-22 19:35:12.420438"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.421980"], ["name", "user2"], ["updated_at", "2014-07-22 19:35:12.421980"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (1300) [shard 694 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (51) [shard 695 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1300]] [shard 694 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 51]] [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.430064"], ["name", "user1"], ["updated_at", "2014-07-22 19:35:12.430064"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.431681"], ["name", "user2"], ["updated_at", "2014-07-22 19:35:12.431681"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 52 [shard 695 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1301]] [shard 694 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 52]] [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.438593"], ["name", "user1"], ["updated_at", "2014-07-22 19:35:12.438593"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.440055"], ["name", "user2"], ["updated_at", "2014-07-22 19:35:12.440055"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 694]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 695], ["name", "switchman_test_shard_695"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 696], ["name", "switchman_test_shard_696"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 694]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 695], ["name", "switchman_test_shard_695"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 696], ["name", "switchman_test_shard_696"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (695,696)) AND "switchman_shards"."id" IN (694, 695) [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 694]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 695], ["name", "switchman_test_shard_695"]] [shard 694 master]  (0.2ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 696], ["name", "switchman_test_shard_696"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.533155"], ["updated_at", "2014-07-22 19:35:12.533155"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 695 LIMIT 1 [shard 694 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 54]] [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.541719"], ["updated_at", "2014-07-22 19:35:12.541719"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.543254"], ["name", "multi-shard exists"], ["updated_at", "2014-07-22 19:35:12.543254"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 694 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 694 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 695 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.557671"], ["updated_at", "2014-07-22 19:35:12.557671"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 56 LIMIT 1 [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.564179"], ["updated_at", "2014-07-22 19:35:12.564179"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) LIMIT 1 [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.570933"], ["updated_at", "2014-07-22 19:35:12.570933"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 58 LIMIT 1 [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.577572"], ["updated_at", "2014-07-22 19:35:12.577572"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 59]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 6950000000000059 ORDER BY "users"."id" ASC LIMIT 1 [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "30"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "30"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 694]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 695], ["name", "switchman_test_shard_695"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 696], ["name", "switchman_test_shard_696"]] [shard 694 master]  (0.2ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.598004"], ["updated_at", "2014-07-22 19:35:12.598004"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.599423"], ["updated_at", "2014-07-22 19:35:12.599423"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.600873"], ["updated_at", "2014-07-22 19:35:12.600873"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 695 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master] User Load (0.3ms) SELECT "users".* FROM "users" [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.632854"], ["updated_at", "2014-07-22 19:35:12.632854"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.638400"], ["updated_at", "2014-07-22 19:35:12.638400"]] [shard 694 master]  (0.4ms) COMMIT [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.644680"], ["updated_at", "2014-07-22 19:35:12.644680"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.650885"], ["updated_at", "2014-07-22 19:35:12.650885"]] [shard 694 master]  (0.4ms) COMMIT [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.698005"], ["updated_at", "2014-07-22 19:35:12.698005"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 694 master] SQL (0.2ms) DELETE FROM "users" [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.704962"], ["updated_at", "2014-07-22 19:35:12.704962"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 694 master] SQL (0.1ms) DELETE FROM "users" [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.709241"], ["updated_at", "2014-07-22 19:35:12.709241"]] [shard 694 master]  (0.4ms) COMMIT [shard 694 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 694 master] SQL (0.3ms) DELETE FROM "users" [shard 694 master] SQL (0.1ms) DELETE FROM "users" [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.713925"], ["updated_at", "2014-07-22 19:35:12.713925"]] [shard 694 master]  (0.2ms) COMMIT [shard 694 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 694 master] SQL (0.3ms) DELETE FROM "users" [shard 694 master] SQL (0.1ms) DELETE FROM "users" [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.718160"], ["updated_at", "2014-07-22 19:35:12.718160"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.719817"], ["name", "a"], ["updated_at", "2014-07-22 19:35:12.719817"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1313]] [shard 694 master] CACHE (0.0ms) 694::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1313]] CACHE (0.0ms) 694::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1313]]  (0.1ms) BEGIN [shard 694 master] SQL (0.2ms) UPDATE "users" SET "name" = $1, "updated_at" = $2 WHERE "users"."id" = 1313 [["name", "b"], ["updated_at", "2014-07-22 19:35:12.723222"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1313]] [shard 694 master] CACHE (0.0ms) 694::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1313]] SQL (0.4ms) DELETE FROM "users" [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.730342"], ["updated_at", "2014-07-22 19:35:12.730342"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 694 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:35:12.731916' [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.736803"], ["updated_at", "2014-07-22 19:35:12.736803"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 694 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:35:12.738462' [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.740735"], ["updated_at", "2014-07-22 19:35:12.740735"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 694 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:35:12.742597' [shard 694 master] SQL (0.4ms) DELETE FROM "users" [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.745889"], ["updated_at", "2014-07-22 19:35:12.745889"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 694 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-07-22 19:35:12.747897' [shard 694 master] SQL (0.3ms) DELETE FROM "users" [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 694]] [shard 694 master]  (0.2ms) COMMIT [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 695], ["name", "switchman_test_shard_695"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 696], ["name", "switchman_test_shard_696"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.767775"], ["updated_at", "2014-07-22 19:35:12.767775"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.771183"], ["updated_at", "2014-07-22 19:35:12.771183"], ["user_id", 1318]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.773107"], ["updated_at", "2014-07-22 19:35:12.773107"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.775917"], ["updated_at", "2014-07-22 19:35:12.775917"], ["user_id", 62]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.777706"], ["updated_at", "2014-07-22 19:35:12.777706"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.781249"], ["updated_at", "2014-07-22 19:35:12.781249"], ["user_id", 46]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.786808"], ["updated_at", "2014-07-22 19:35:12.786808"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.789207"], ["updated_at", "2014-07-22 19:35:12.789207"], ["user_id", 1319]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.791377"], ["updated_at", "2014-07-22 19:35:12.791377"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.794010"], ["updated_at", "2014-07-22 19:35:12.794010"], ["user_id", 63]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.795905"], ["updated_at", "2014-07-22 19:35:12.795905"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.798692"], ["updated_at", "2014-07-22 19:35:12.798692"], ["user_id", 47]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.803842"], ["updated_at", "2014-07-22 19:35:12.803842"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.806074"], ["updated_at", "2014-07-22 19:35:12.806074"], ["user_id", 1320]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.807751"], ["updated_at", "2014-07-22 19:35:12.807751"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.810261"], ["updated_at", "2014-07-22 19:35:12.810261"], ["user_id", 64]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.811798"], ["updated_at", "2014-07-22 19:35:12.811798"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.814382"], ["updated_at", "2014-07-22 19:35:12.814382"], ["user_id", 48]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.819914"], ["updated_at", "2014-07-22 19:35:12.819914"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.822128"], ["updated_at", "2014-07-22 19:35:12.822128"], ["user_id", 1321]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.823745"], ["updated_at", "2014-07-22 19:35:12.823745"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.826156"], ["updated_at", "2014-07-22 19:35:12.826156"], ["user_id", 65]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.827655"], ["updated_at", "2014-07-22 19:35:12.827655"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.830749"], ["updated_at", "2014-07-22 19:35:12.830749"], ["user_id", 49]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.836300"], ["updated_at", "2014-07-22 19:35:12.836300"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.838581"], ["updated_at", "2014-07-22 19:35:12.838581"], ["user_id", 1322]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.840130"], ["updated_at", "2014-07-22 19:35:12.840130"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.843208"], ["updated_at", "2014-07-22 19:35:12.843208"], ["user_id", 66]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.845029"], ["updated_at", "2014-07-22 19:35:12.845029"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.847876"], ["updated_at", "2014-07-22 19:35:12.847876"], ["user_id", 50]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.852995"], ["updated_at", "2014-07-22 19:35:12.852995"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.855242"], ["updated_at", "2014-07-22 19:35:12.855242"], ["user_id", 1323]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.856890"], ["updated_at", "2014-07-22 19:35:12.856890"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.859495"], ["updated_at", "2014-07-22 19:35:12.859495"], ["user_id", 67]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.861034"], ["updated_at", "2014-07-22 19:35:12.861034"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.863768"], ["updated_at", "2014-07-22 19:35:12.863768"], ["user_id", 51]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.866112"], ["parent_id", 1323], ["updated_at", "2014-07-22 19:35:12.866112"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.868313"], ["parent_id", 1324], ["updated_at", "2014-07-22 19:35:12.868313"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1324]] [shard 694 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1323]] [shard 694 master] User Load (0.2ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 [["parent_id", 1323]] [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.876445"], ["updated_at", "2014-07-22 19:35:12.876445"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.878882"], ["updated_at", "2014-07-22 19:35:12.878882"], ["user_id", 1326]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.880539"], ["updated_at", "2014-07-22 19:35:12.880539"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.883079"], ["updated_at", "2014-07-22 19:35:12.883079"], ["user_id", 68]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.884630"], ["updated_at", "2014-07-22 19:35:12.884630"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.887532"], ["updated_at", "2014-07-22 19:35:12.887532"], ["user_id", 52]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 695 LIMIT 1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.894648"], ["updated_at", "2014-07-22 19:35:12.894648"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.896844"], ["updated_at", "2014-07-22 19:35:12.896844"], ["user_id", 1327]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.898513"], ["updated_at", "2014-07-22 19:35:12.898513"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.901128"], ["updated_at", "2014-07-22 19:35:12.901128"], ["user_id", 69]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.902695"], ["updated_at", "2014-07-22 19:35:12.902695"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.905125"], ["updated_at", "2014-07-22 19:35:12.905125"], ["user_id", 53]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.910179"], ["updated_at", "2014-07-22 19:35:12.910179"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.912328"], ["updated_at", "2014-07-22 19:35:12.912328"], ["user_id", 1328]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.913923"], ["updated_at", "2014-07-22 19:35:12.913923"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.916416"], ["updated_at", "2014-07-22 19:35:12.916416"], ["user_id", 70]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.917820"], ["updated_at", "2014-07-22 19:35:12.917820"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.920684"], ["updated_at", "2014-07-22 19:35:12.920684"], ["user_id", 54]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.927243"], ["updated_at", "2014-07-22 19:35:12.927243"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.929724"], ["updated_at", "2014-07-22 19:35:12.929724"], ["user_id", 1329]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.931475"], ["updated_at", "2014-07-22 19:35:12.931475"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.934227"], ["updated_at", "2014-07-22 19:35:12.934227"], ["user_id", 71]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.935762"], ["updated_at", "2014-07-22 19:35:12.935762"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.938392"], ["updated_at", "2014-07-22 19:35:12.938392"], ["user_id", 55]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.943890"], ["updated_at", "2014-07-22 19:35:12.943890"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.946783"], ["updated_at", "2014-07-22 19:35:12.946783"], ["user_id", 1330]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.948815"], ["updated_at", "2014-07-22 19:35:12.948815"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.951467"], ["updated_at", "2014-07-22 19:35:12.951467"], ["user_id", 72]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.953088"], ["updated_at", "2014-07-22 19:35:12.953088"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.955956"], ["updated_at", "2014-07-22 19:35:12.955956"], ["user_id", 56]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.962068"], ["updated_at", "2014-07-22 19:35:12.962068"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.964393"], ["updated_at", "2014-07-22 19:35:12.964393"], ["user_id", 1331]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.966056"], ["updated_at", "2014-07-22 19:35:12.966056"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.968432"], ["updated_at", "2014-07-22 19:35:12.968432"], ["user_id", 73]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.969861"], ["updated_at", "2014-07-22 19:35:12.969861"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.972573"], ["updated_at", "2014-07-22 19:35:12.972573"], ["user_id", 57]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.978385"], ["updated_at", "2014-07-22 19:35:12.978385"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.980723"], ["updated_at", "2014-07-22 19:35:12.980723"], ["user_id", 1332]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.982326"], ["updated_at", "2014-07-22 19:35:12.982326"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.984706"], ["updated_at", "2014-07-22 19:35:12.984706"], ["user_id", 74]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.986193"], ["updated_at", "2014-07-22 19:35:12.986193"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.988742"], ["updated_at", "2014-07-22 19:35:12.988742"], ["user_id", 58]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.994184"], ["updated_at", "2014-07-22 19:35:12.994184"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:12.996538"], ["updated_at", "2014-07-22 19:35:12.996538"], ["user_id", 1333]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:12.998194"], ["updated_at", "2014-07-22 19:35:12.998194"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:13.000736"], ["updated_at", "2014-07-22 19:35:13.000736"], ["user_id", 75]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:13.002425"], ["updated_at", "2014-07-22 19:35:13.002425"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:13.005725"], ["updated_at", "2014-07-22 19:35:13.005725"], ["user_id", 59]] [shard 696 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:13.011737"], ["updated_at", "2014-07-22 19:35:13.011737"]] [shard 695 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:13.018907"], ["updated_at", "2014-07-22 19:35:13.018907"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:13.021321"], ["updated_at", "2014-07-22 19:35:13.021321"], ["user_id", 1334]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:13.022992"], ["updated_at", "2014-07-22 19:35:13.022992"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:13.025482"], ["updated_at", "2014-07-22 19:35:13.025482"], ["user_id", 76]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:13.026904"], ["updated_at", "2014-07-22 19:35:13.026904"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:13.029589"], ["updated_at", "2014-07-22 19:35:13.029589"], ["user_id", 60]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:13.036073"], ["updated_at", "2014-07-22 19:35:13.036073"]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:13.038409"], ["updated_at", "2014-07-22 19:35:13.038409"], ["user_id", 1335]] [shard 694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:13.040097"], ["updated_at", "2014-07-22 19:35:13.040097"]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:13.043030"], ["updated_at", "2014-07-22 19:35:13.043030"], ["user_id", 77]] [shard 695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:35:13.044934"], ["updated_at", "2014-07-22 19:35:13.044934"]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 19:35:13.048286"], ["updated_at", "2014-07-22 19:35:13.048286"], ["user_id", 61]] [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 694 master]  (0.1ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 694 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 694]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 695], ["name", "switchman_test_shard_695"]] [shard 694 master]  (0.3ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 696], ["name", "switchman_test_shard_696"]] [shard 694 master]  (0.2ms) COMMIT [shard 694 master]  (0.1ms) BEGIN [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 695]] [shard 694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 696]] [shard 694 master]  (0.1ms) BEGIN [shard 696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 695 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 19:36:13.061119"], ["updated_at", "2014-07-22 19:36:13.061119"]] [shard 695 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 695 master]  (0.0ms) ROLLBACK [shard 696 master]  (0.1ms) ROLLBACK [shard 695 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 694 master]  (5.3ms) DROP SCHEMA switchman_test_shard_695 CASCADE [shard 695 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 695]]  (0.1ms) COMMIT  (6.5ms) DROP SCHEMA switchman_test_shard_696 CASCADE [shard 696 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 696]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Connecting to database specified by database.yml  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_718 [shard 718 deploy]  (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 718 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 718 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 718 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 718 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 718 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 718 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 718 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 718 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 718 deploy] Migrating to CreateDigits (20131022202028)  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 718 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 718 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 718 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 718 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 718 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 718 deploy] Migrating to CreateRoots (20140219183820)  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 718 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 718 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_718' WHERE "switchman_shards"."id" = 718 [shard 717 master]  (1.3ms) COMMIT [shard 717 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 717 master]  (0.1ms) BEGIN [shard 717 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 717 master]  (0.4ms) COMMIT [shard 717 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_719 [shard 719 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 719 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 719 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 719 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 719 deploy]  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 719 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 719 deploy]  (0.4ms) COMMIT [shard 719 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 719 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 719 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 719 deploy]  (0.3ms) COMMIT [shard 719 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 719 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 719 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 719 deploy]  (0.3ms) COMMIT [shard 719 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 719 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 719 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 719 deploy]  (0.3ms) COMMIT [shard 719 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 719 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 719 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 719 deploy]  (0.4ms) COMMIT [shard 719 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 719 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 719 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 719 deploy]  (0.3ms) COMMIT [shard 719 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 719 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 719 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 719 deploy]  (0.4ms) COMMIT [shard 719 deploy]  (0.1ms) BEGIN [shard 717 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_719' WHERE "switchman_shards"."id" = 719 [shard 717 master]  (0.4ms) COMMIT [shard 717 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master]  (0.1ms) BEGIN [shard 717 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master] SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 717], ["name", nil]] [shard 717 master]  (0.3ms) COMMIT [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master]  (0.1ms) BEGIN [shard 717 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 718], ["name", "switchman_test_shard_718"]] [shard 717 master]  (0.3ms) COMMIT [shard 717 master]  (0.1ms) BEGIN [shard 717 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 719], ["name", "switchman_test_shard_719"]] [shard 717 master]  (0.3ms) COMMIT [shard 717 master]  (0.1ms) BEGIN [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 718]] [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 719]] [shard 717 master]  (0.1ms) BEGIN [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (1.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 717 master] SQL (1.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 718 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 718 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 718 LIMIT 1 [shard 717 master] Appendage Load (0.7ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 1]] [shard 718 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 [shard 718 master]  (0.1ms) ROLLBACK [shard 719 master]  (0.1ms) ROLLBACK [shard 718 master]  (0.1ms) BEGIN [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 718]] [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 719]] [shard 717 master]  (0.1ms) BEGIN [shard 719 master]  (0.2ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00]] [shard 718 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 717 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (1.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 719 LIMIT 1 [shard 717 master]  (0.1ms) ROLLBACK [shard 719 master]  (0.1ms) ROLLBACK [shard 717 master]  (0.1ms) BEGIN [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 718]] [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 719]] [shard 717 master]  (0.2ms) BEGIN [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) ROLLBACK [shard 719 master]  (0.1ms) ROLLBACK [shard 718 master]  (0.1ms) BEGIN [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 718]] [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 719]] [shard 717 master]  (0.1ms) BEGIN [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 717 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) ROLLBACK [shard 719 master]  (0.1ms) ROLLBACK [shard 718 master]  (0.1ms) BEGIN [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 718]] [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 719]] [shard 717 master]  (0.1ms) BEGIN [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 5], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 6], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 5]] [shard 718 master]  (0.2ms) SHOW max_identifier_length [shard 718 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 5 AND "users"."id" = 7 LIMIT 1 [shard 718 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 5]] [shard 718 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 5 AND "users"."id" = 7190000000000006 LIMIT 1 [shard 718 master]  (0.1ms) ROLLBACK [shard 719 master]  (0.2ms) ROLLBACK [shard 718 master]  (0.1ms) BEGIN [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 718]] [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 719]] [shard 717 master]  (0.1ms) BEGIN [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 717 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) ROLLBACK [shard 719 master]  (0.1ms) ROLLBACK [shard 718 master]  (0.1ms) BEGIN [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 718]] [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 719]] [shard 717 master]  (0.2ms) BEGIN [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) ROLLBACK [shard 719 master]  (0.1ms) ROLLBACK [shard 718 master]  (0.1ms) BEGIN [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 718]] [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 719]] [shard 717 master]  (0.1ms) BEGIN [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (1.1ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["user_id", nil]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.2ms) ROLLBACK [shard 719 master]  (0.1ms) ROLLBACK [shard 718 master]  (0.1ms) BEGIN [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 718]] [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 719]] [shard 717 master]  (0.1ms) BEGIN [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 717 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 717 master] SQL (1.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5], ["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["value", nil]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master] Digit Load (0.8ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 11 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 718 master]  (0.1ms) ROLLBACK [shard 719 master]  (0.1ms) ROLLBACK [shard 718 master]  (0.1ms) BEGIN [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 718]] [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 719]] [shard 717 master]  (0.1ms) BEGIN [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 717 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 12 AND "appendages"."id" = $1 LIMIT 1 [["id", 6]] [shard 718 master] Appendage Load (0.8ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 11 AND "appendages"."id" = $1 LIMIT 1 [["id", 6]] [shard 719 master]  (0.1ms) ROLLBACK [shard 719 master]  (0.1ms) ROLLBACK [shard 717 master]  (0.1ms) BEGIN [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 718]] [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 719]] [shard 717 master]  (0.1ms) BEGIN [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 717 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 13 [shard 718 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 13]] [shard 718 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 13 [shard 718 master]  (0.1ms) ROLLBACK [shard 719 master]  (0.1ms) ROLLBACK [shard 718 master]  (0.1ms) BEGIN [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 718]] [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 719]] [shard 717 master]  (0.1ms) BEGIN [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["user_id", 14], ["value", 1]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:10 UTC +00:00], ["user_id", 7180000000000014], ["value", nil]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 14 AND "appendages"."value" IS NULL [shard 718 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 7180000000000014 AND "appendages"."value" IS NULL [shard 719 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 14]] [shard 718 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 14 AND "appendages"."value" IS NULL [shard 718 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 7180000000000014 AND "appendages"."value" IS NULL [shard 719 master]  (0.1ms) ROLLBACK [shard 719 master]  (0.1ms) ROLLBACK [shard 718 master]  (0.1ms) BEGIN [shard 717 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 718]] [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 719]] [shard 717 master]  (0.1ms) BEGIN [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (1.0ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9], ["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["value", nil]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9], ["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["value", 1]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["user_id", 7180000000000015], ["value", nil]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (1.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3], ["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["value", 2]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.6ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15 AND (digits.value IS NOT NULL) [shard 718 master]  (0.5ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 7180000000000015 AND (digits.value IS NOT NULL) [shard 719 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 15]] [shard 718 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15 AND (digits.value IS NOT NULL) [shard 718 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 7180000000000015 AND (digits.value IS NOT NULL) [shard 719 master]  (0.1ms) ROLLBACK [shard 719 master]  (0.1ms) ROLLBACK [shard 718 master]  (0.1ms) BEGIN [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 718]] [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 719]] [shard 717 master]  (0.1ms) BEGIN [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10], ["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["value", 1]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["user_id", 7180000000000016], ["value", nil]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4], ["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["value", 2]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 16 [shard 718 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 16]] [shard 718 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 16 [shard 718 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 7180000000000016 [shard 719 master]  (0.1ms) ROLLBACK [shard 719 master]  (0.1ms) ROLLBACK [shard 718 master]  (0.1ms) BEGIN [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 718]] [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 719]] [shard 717 master]  (0.1ms) BEGIN [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["user_id", 17], ["value", 1]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["user_id", 7180000000000017], ["value", 2]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 17 [shard 718 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 718 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 17 [shard 718 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 7180000000000017 [shard 719 master]  (0.1ms) ROLLBACK [shard 719 master]  (0.2ms) ROLLBACK [shard 718 master]  (0.1ms) BEGIN [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 718]] [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 719]] [shard 717 master]  (0.1ms) BEGIN [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12], ["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["value", nil]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["user_id", 7180000000000018], ["value", nil]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6], ["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["value", 2]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 18 AND "digits"."value" IS NULL [shard 718 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 7180000000000018 AND "digits"."value" IS NULL [shard 719 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 718 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 18 AND "digits"."value" IS NULL [shard 718 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 7180000000000018 AND "digits"."value" IS NULL [shard 719 master]  (0.2ms) ROLLBACK [shard 719 master]  (0.1ms) ROLLBACK [shard 717 master]  (0.1ms) BEGIN [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 718]] [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 719]] [shard 717 master]  (0.1ms) BEGIN [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 13], ["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["value", nil]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["user_id", 7180000000000019], ["value", nil]] [shard 719 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7], ["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["value", 2]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 19 AND "digits"."value" IS NULL [shard 718 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 7180000000000019 AND "digits"."value" IS NULL [shard 719 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [shard 718 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 19 AND "digits"."value" IS NULL [shard 718 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 7180000000000019 AND "digits"."value" IS NULL [shard 719 master]  (0.1ms) ROLLBACK [shard 719 master]  (0.1ms) ROLLBACK [shard 718 master]  (0.1ms) BEGIN [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 718]] [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 719]] [shard 717 master]  (0.1ms) BEGIN [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["user_id", 20], ["value", 1]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["user_id", 7180000000000020], ["value", nil]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["user_id", 20], ["value", 2]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 718 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 20 AND (appendages.value IS NOT NULL) [shard 718 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 7180000000000020 AND (appendages.value IS NOT NULL) [shard 719 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 718 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 20 AND (appendages.value IS NOT NULL) [shard 718 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 7180000000000020 AND (appendages.value IS NOT NULL) [shard 719 master]  (0.1ms) ROLLBACK [shard 719 master]  (0.1ms) ROLLBACK [shard 718 master]  (0.1ms) BEGIN [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 718]] [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 719]] [shard 717 master]  (0.1ms) BEGIN [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (1.1ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["owner_id", 21], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["value", 1]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (1.1ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["owner_id", 7180000000000021], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["value", 2]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 21 AND "features"."owner_type" = 'User' [shard 718 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 718 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 21 AND "features"."owner_type" = 'User' [shard 718 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 7180000000000021 AND "features"."owner_type" = 'User' [shard 719 master]  (0.1ms) ROLLBACK [shard 719 master]  (0.1ms) ROLLBACK [shard 718 master]  (0.1ms) BEGIN [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 718]] [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 719]] [shard 717 master]  (0.1ms) BEGIN [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00]] [shard 719 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 717 master] SQL (1.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 717 master] SQL (1.1ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["owner_id", 668], ["owner_type", "Appendage"], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["value", nil]] [shard 717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 717 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 64]] [shard 717 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 668 LIMIT 1 [shard 717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 717 master]  (0.3ms) UPDATE "features" SET "owner_id" = 7180000000000022, "owner_type" = 'User', "updated_at" = '2014-07-22 19:44:11.601849' WHERE "features"."id" = 64 [shard 717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 717 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 64]] [shard 717 master]  (0.1ms) ROLLBACK [shard 719 master]  (0.1ms) ROLLBACK [shard 717 master]  (0.1ms) BEGIN [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 718]] [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 719]] [shard 717 master]  (0.1ms) BEGIN [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 23 LIMIT 1 [shard 718 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 16]] [shard 718 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 23 LIMIT 1 [shard 718 master]  (0.1ms) ROLLBACK [shard 719 master]  (0.1ms) ROLLBACK [shard 718 master]  (0.1ms) BEGIN [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 718]] [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 719]] [shard 717 master]  (0.1ms) BEGIN [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.9ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["user_id", 7190000000000023], ["value", nil]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 17]] [shard 718 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 23 LIMIT 1 [shard 719 master]  (0.2ms) ROLLBACK [shard 719 master]  (0.1ms) ROLLBACK [shard 718 master]  (0.1ms) BEGIN [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 718]] [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 719]] [shard 717 master]  (0.1ms) BEGIN [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 717 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["user_id", 25], ["value", nil]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["user_id", 7180000000000025], ["value", nil]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["user_id", 7180000000000025], ["value", nil]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 717 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 18], ["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["value", nil]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10], ["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["value", nil]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7190000000000010], ["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["value", nil]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7190000000000011], ["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["value", nil]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["user_id", 7190000000000024], ["value", nil]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7180000000000019], ["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["value", nil]] [shard 719 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7190000000000012], ["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["value", nil]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7190000000000013], ["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["value", nil]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 718 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (25) [shard 718 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (7180000000000025) [shard 719 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (18, 7190000000000010) [shard 718 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (10, 11) [shard 719 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 719 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (24) [shard 719 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (12) [shard 719 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (7190000000000013) [shard 718 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 718 master]  (0.2ms) ROLLBACK [shard 719 master]  (0.1ms) ROLLBACK [shard 718 master]  (0.1ms) BEGIN [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 718]] [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 719]] [shard 717 master]  (0.1ms) BEGIN [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 717 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["user_id", 7180000000000026], ["value", nil]] [shard 717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 717 master] SQL (1.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 669], ["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["value", nil]] [shard 717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["user_id", 7190000000000025], ["value", nil]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 717 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7180000000000020], ["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["value", nil]] [shard 717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 717 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" [shard 717 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (669) [shard 717 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (20) [shard 718 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 718 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 719 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 26 [shard 718 master]  (0.1ms) ROLLBACK [shard 719 master]  (0.1ms) ROLLBACK [shard 718 master]  (0.1ms) BEGIN [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 718]] [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 719]] [shard 717 master]  (0.1ms) BEGIN [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 717 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["user_id", 27], ["value", nil]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:11 UTC +00:00], ["user_id", 7180000000000027], ["value", nil]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:12 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:12 UTC +00:00], ["user_id", 7190000000000026], ["value", nil]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 718 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (27) [shard 718 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (7180000000000027) [shard 719 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 719 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (26) [shard 719 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 21 [shard 718 master]  (0.1ms) ROLLBACK [shard 719 master]  (0.1ms) ROLLBACK [shard 718 master]  (0.1ms) BEGIN [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 718]] [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 719]] [shard 717 master]  (0.1ms) BEGIN [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:12 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:12 UTC +00:00]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:12 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:12 UTC +00:00]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 717 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:12 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:12 UTC +00:00], ["user_id", 7180000000000028], ["value", nil]] [shard 717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 717 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:12 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:12 UTC +00:00], ["user_id", 7190000000000027], ["value", nil]] [shard 717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 717 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:12 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:12 UTC +00:00]] [shard 717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 717 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:12 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:12 UTC +00:00], ["user_id", 1336], ["value", nil]] [shard 717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 717 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages"  [shard 717 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1336) [shard 717 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 718 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 719 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 28 [shard 718 master]  (0.1ms) ROLLBACK [shard 719 master]  (0.1ms) ROLLBACK [shard 718 master]  (0.1ms) BEGIN [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 718]] [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 719]] [shard 717 master]  (0.1ms) BEGIN [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:12 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:12 UTC +00:00]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:12 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:12 UTC +00:00]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 717 master] SQL (0.9ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:12 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:44:12 UTC +00:00], ["user_id", 7190000000000028]] [shard 717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 717 master] Root Load (0.6ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 32]] [shard 717 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 28 LIMIT 1 [shard 719 master]  (0.1ms) ROLLBACK [shard 719 master]  (0.1ms) ROLLBACK [shard 717 master]  (0.1ms) BEGIN [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 718]] [shard 717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 719]] [shard 717 master]  (0.1ms) BEGIN [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:12 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:12 UTC +00:00]] [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 719 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:44:12 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 19:44:12 UTC +00:00]] [shard 719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 718 master]  (0.2ms) ROLLBACK [shard 719 master]  (0.1ms) ROLLBACK [shard 718 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 717 master]  (4.9ms) DROP SCHEMA switchman_test_shard_718 CASCADE [shard 718 deploy]  (0.1ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 718]]  (0.1ms) COMMIT  (5.0ms) DROP SCHEMA switchman_test_shard_719 CASCADE [shard 719 deploy]  (0.2ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 719]]  (0.1ms) COMMIT  (1.7ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.6ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.2ms) BEGIN Switchman::Shard Exists (0.5ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.8ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", true]]  (15.6ms) COMMIT Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.2ms) BEGIN SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_721 [shard 721 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 721 deploy]  (16.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 721 deploy] ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 721 deploy] Migrating to CreateUsers (20130403132607)  (2.6ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 721 deploy] SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 721 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 721 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 721 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 721 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 721 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 721 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 721 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 721 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 721 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 721 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 721 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 721 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 721 deploy] SQL (0.5ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 721 [["name", "switchman_test_shard_721"]] [shard 720 master]  (0.9ms) COMMIT [shard 720 master] Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master]  (0.2ms) BEGIN [shard 720 master] SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 720 master]  (0.5ms) COMMIT [shard 720 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_722 [shard 722 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 722 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 722 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 722 deploy] Migrating to CreateUsers (20130403132607)  (0.2ms) BEGIN [shard 722 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 722 deploy] SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 722 deploy]  (0.4ms) COMMIT [shard 722 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 722 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 722 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 722 deploy]  (0.5ms) COMMIT [shard 722 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) BEGIN [shard 722 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 722 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 722 deploy]  (0.5ms) COMMIT [shard 722 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 722 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 722 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 722 deploy]  (0.5ms) COMMIT [shard 722 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 722 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 722 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 722 deploy]  (0.5ms) COMMIT [shard 722 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 722 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 722 deploy] SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 722 deploy]  (0.5ms) COMMIT [shard 722 deploy] Migrating to CreateRoots (20140219183820)  (0.2ms) BEGIN [shard 722 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 722 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 722 deploy]  (0.5ms) COMMIT [shard 722 deploy]  (0.2ms) BEGIN [shard 720 master] SQL (0.5ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 722 [["name", "switchman_test_shard_722"]] [shard 720 master]  (0.4ms) COMMIT [shard 720 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master]  (0.2ms) BEGIN [shard 720 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 720 master] SQL (0.5ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 720]] [shard 720 master]  (0.4ms) COMMIT [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master]  (0.1ms) BEGIN [shard 720 master] SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 721], ["name", "switchman_test_shard_721"]] [shard 720 master]  (0.6ms) COMMIT [shard 720 master]  (0.2ms) BEGIN [shard 720 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 722], ["name", "switchman_test_shard_722"]] [shard 720 master]  (0.5ms) COMMIT [shard 720 master]  (0.2ms) BEGIN [shard 720 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 721]] [shard 720 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 722]] [shard 720 master]  (0.2ms) BEGIN [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (1.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.4ms) SAVEPOINT active_record_1 [shard 722 master] SQL (1.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00]] [shard 722 master]  (0.3ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 720 master] SQL (1.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00], ["user_id", 1]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.7ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 1]] [shard 721 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 721 LIMIT 1 [shard 720 master] User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] [shard 721 master]  (0.4ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 1]] [shard 721 master]  (0.2ms) ROLLBACK [shard 722 master]  (0.3ms) ROLLBACK [shard 721 master]  (0.2ms) BEGIN [shard 720 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 721]] [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 722]] [shard 720 master]  (0.2ms) BEGIN [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00]] [shard 722 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 720 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00], ["user_id", 2]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) ROLLBACK [shard 722 master]  (0.4ms) ROLLBACK [shard 721 master]  (0.2ms) BEGIN [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 721]] [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 722]] [shard 720 master]  (0.2ms) BEGIN [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.3ms) ROLLBACK [shard 722 master]  (0.2ms) ROLLBACK [shard 721 master]  (0.2ms) BEGIN [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 721]] [shard 720 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 722]] [shard 720 master]  (0.2ms) BEGIN [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.1ms) SAVEPOINT active_record_1 [shard 720 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00], ["user_id", 4]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master] Appendage Load (0.6ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 4], ["id", 3]] [shard 721 master] Appendage Load (0.8ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 4], ["id", 3]] [shard 722 master]  (0.2ms) ROLLBACK [shard 722 master]  (0.2ms) ROLLBACK [shard 720 master]  (0.2ms) BEGIN [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 721]] [shard 720 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 722]] [shard 720 master]  (0.2ms) BEGIN [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00], ["parent_id", 5], ["updated_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00], ["parent_id", 6], ["updated_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 5]] [shard 721 master] User Exists (0.8ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 7 LIMIT 1 [["parent_id", 5]] [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00], ["id", 7], ["updated_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 5]] [shard 721 master] User Exists (0.7ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 7220000000000007 LIMIT 1 [["parent_id", 5]] [shard 721 master]  (0.3ms) ROLLBACK [shard 722 master]  (0.2ms) ROLLBACK [shard 721 master]  (0.2ms) BEGIN [shard 720 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 721]] [shard 720 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 722]] [shard 720 master]  (0.2ms) BEGIN [shard 722 master]  (0.1ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 720 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:54 UTC +00:00], ["user_id", 8]] [shard 721 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 721 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 4]] [shard 721 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 8]] [shard 721 master]  (0.2ms) ROLLBACK [shard 722 master]  (0.2ms) ROLLBACK [shard 721 master]  (0.1ms) BEGIN [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 721]] [shard 720 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 722]] [shard 720 master]  (0.2ms) BEGIN [shard 722 master]  (0.1ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (1.2ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.3ms) ROLLBACK [shard 722 master]  (0.2ms) ROLLBACK [shard 721 master]  (0.2ms) BEGIN [shard 720 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 721]] [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 722]] [shard 720 master]  (0.3ms) BEGIN [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.3ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) ROLLBACK [shard 722 master]  (0.2ms) ROLLBACK [shard 721 master]  (0.2ms) BEGIN [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 721]] [shard 720 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 722]] [shard 720 master]  (0.1ms) BEGIN [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 720 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["user_id", 11]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) ROLLBACK [shard 722 master]  (0.2ms) ROLLBACK [shard 721 master]  (0.2ms) BEGIN [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 721]] [shard 720 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 722]] [shard 720 master]  (0.2ms) BEGIN [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 722 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.1ms) SAVEPOINT active_record_1 [shard 720 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["user_id", 12]] [shard 721 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 720 master] SQL (1.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 6], ["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 721 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 721 master] Digit Load (0.8ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 12], ["id", 1]] [shard 721 master]  (0.2ms) ROLLBACK [shard 722 master]  (0.2ms) ROLLBACK [shard 721 master]  (0.2ms) BEGIN [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 721]] [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 722]] [shard 720 master]  (0.1ms) BEGIN [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 722 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 720 master] SQL (0.9ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["user_id", 13]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 720 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (1.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["user_id", 11]] [shard 722 master]  (0.3ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 722 LIMIT 1 [shard 720 master]  (0.2ms) ROLLBACK [shard 722 master]  (0.2ms) ROLLBACK [shard 721 master]  (0.1ms) BEGIN [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 721]] [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 722]] [shard 720 master]  (0.2ms) BEGIN [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 722 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) ROLLBACK [shard 722 master]  (0.2ms) ROLLBACK [shard 721 master]  (0.2ms) BEGIN [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 721]] [shard 720 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 722]] [shard 720 master]  (0.2ms) BEGIN [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["user_id", 15]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 8], ["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["user_id", 7210000000000015]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (1.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2], ["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["value", 2]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.7ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 15]] [shard 721 master]  (0.6ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 7210000000000015]] [shard 722 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 15]] [shard 721 master] Digit Load (0.8ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 15]] [shard 721 master] Digit Load (0.7ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 7210000000000015]] [shard 722 master]  (0.3ms) ROLLBACK [shard 722 master]  (0.3ms) ROLLBACK [shard 721 master]  (0.2ms) BEGIN [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 721]] [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 722]] [shard 720 master]  (0.2ms) BEGIN [shard 722 master]  (0.1ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.3ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.9ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["user_id", 16], ["value", 1]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.9ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["user_id", 7210000000000016], ["value", 2]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master] Appendage Load (0.7ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 16]] [shard 721 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 16]] [shard 721 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 16]] [shard 721 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 7210000000000016]] [shard 722 master]  (0.2ms) ROLLBACK [shard 722 master]  (0.1ms) ROLLBACK [shard 721 master]  (0.1ms) BEGIN [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 721]] [shard 720 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 722]] [shard 720 master]  (0.3ms) BEGIN [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.1ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["user_id", 17]] [shard 721 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 10], ["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.9ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10], ["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["value", 1]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["user_id", 7210000000000017]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.9ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4], ["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["value", 2]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.9ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 17]] [shard 721 master]  (0.8ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 7210000000000017]] [shard 722 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 721 master]  (0.5ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 17]] [shard 721 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 7210000000000017]] [shard 722 master]  (0.2ms) ROLLBACK [shard 722 master]  (0.2ms) ROLLBACK [shard 721 master]  (0.2ms) BEGIN [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 721]] [shard 720 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 722]] [shard 720 master]  (0.2ms) BEGIN [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["user_id", 18], ["value", 1]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["user_id", 7210000000000018]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.9ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["user_id", 18], ["value", 2]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 721 master]  (0.5ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 18]] [shard 721 master]  (0.5ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 7210000000000018]] [shard 722 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 721 master]  (0.5ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 18]] [shard 721 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 7210000000000018]] [shard 722 master]  (0.2ms) ROLLBACK [shard 722 master]  (0.3ms) ROLLBACK [shard 721 master]  (0.2ms) BEGIN [shard 720 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 721]] [shard 720 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 722]] [shard 720 master]  (0.2ms) BEGIN [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["user_id", 19], ["value", 1]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["user_id", 7210000000000019]] [shard 722 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 722 master] Appendage Load (0.6ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 19]] [shard 721 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 7210000000000019]] [shard 722 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [shard 721 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 19]] [shard 721 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 7210000000000019]] [shard 722 master]  (0.2ms) ROLLBACK [shard 722 master]  (0.1ms) ROLLBACK [shard 721 master]  (0.1ms) BEGIN [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 721]] [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 722]] [shard 720 master]  (0.2ms) BEGIN [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["user_id", 20]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 14], ["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["user_id", 7210000000000020]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7], ["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["value", 2]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 20]] [shard 721 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 7210000000000020]] [shard 722 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 721 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 20]] [shard 721 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 7210000000000020]] [shard 722 master]  (0.2ms) ROLLBACK [shard 722 master]  (0.2ms) ROLLBACK [shard 721 master]  (0.2ms) BEGIN [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 721]] [shard 720 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 722]] [shard 720 master]  (0.2ms) BEGIN [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.1ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:55 UTC +00:00], ["user_id", 21]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.9ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15], ["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["value", 1]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.9ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["user_id", 7210000000000021]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["value", 2]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master] Digit Load (0.9ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 21]] [shard 721 master] User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 721 master] Digit Load (0.7ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 21]] [shard 721 master] Digit Load (0.7ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 7210000000000021]] [shard 722 master]  (0.2ms) ROLLBACK [shard 722 master]  (0.2ms) ROLLBACK [shard 721 master]  (0.2ms) BEGIN [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 721]] [shard 720 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 722]] [shard 720 master]  (0.2ms) BEGIN [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 720 master] SQL (1.1ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["user_id", 7220000000000020]] [shard 720 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 720 master] Root Load (0.7ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 33]] [shard 720 master] User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 722 master]  (0.2ms) ROLLBACK [shard 722 master]  (0.3ms) ROLLBACK [shard 720 master]  (0.2ms) BEGIN [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 721]] [shard 720 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 722]] [shard 720 master]  (0.3ms) BEGIN [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 720 master] SQL (1.1ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 720 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 720 master]  (0.2ms) SAVEPOINT active_record_1 [shard 720 master] SQL (1.1ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["owner_id", 673], ["owner_type", "Appendage"], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 720 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 720 master] Feature Load (0.7ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 65]] [shard 720 master] Appendage Load (0.9ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 673]] [shard 720 master]  (0.2ms) SAVEPOINT active_record_1 [shard 720 master] SQL (1.0ms) UPDATE "features" SET "owner_id" = $1, "owner_type" = $2, "updated_at" = $3 WHERE "features"."id" = 65 [["owner_id", 7210000000000023], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 720 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 720 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 65]] [shard 720 master]  (0.2ms) ROLLBACK [shard 722 master]  (0.2ms) ROLLBACK [shard 720 master]  (0.1ms) BEGIN [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 721]] [shard 720 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 722]] [shard 720 master]  (0.2ms) BEGIN [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 721 master]  (0.3ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (1.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["owner_id", 24], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["value", 1]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (16.8ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["owner_id", 7210000000000024], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["value", 2]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master] Feature Load (0.8ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 24], ["owner_type", "User"]] [shard 721 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 24]] [shard 721 master] Feature Load (0.6ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 24], ["owner_type", "User"]] [shard 721 master] Feature Load (0.9ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 7210000000000024], ["owner_type", "User"]] [shard 722 master]  (0.2ms) ROLLBACK [shard 722 master]  (0.3ms) ROLLBACK [shard 721 master]  (0.1ms) BEGIN [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 721]] [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 722]] [shard 720 master]  (0.2ms) BEGIN [shard 722 master]  (0.1ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.1ms) SAVEPOINT active_record_1 [shard 720 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["user_id", 7210000000000025]] [shard 720 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 720 master]  (0.2ms) SAVEPOINT active_record_1 [shard 720 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["user_id", 7220000000000023]] [shard 720 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 720 master]  (0.1ms) SAVEPOINT active_record_1 [shard 720 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 720 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 720 master]  (0.2ms) SAVEPOINT active_record_1 [shard 720 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["user_id", 1337]] [shard 720 master]  (0.3ms) RELEASE SAVEPOINT active_record_1 [shard 720 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" [shard 720 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1337) [shard 720 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 721 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 722 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = 25 [shard 721 master]  (0.2ms) ROLLBACK [shard 722 master]  (0.2ms) ROLLBACK [shard 721 master]  (0.2ms) BEGIN [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 721]] [shard 720 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 722]] [shard 720 master]  (0.2ms) BEGIN [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 720 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["user_id", 26]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.1ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["user_id", 7210000000000026]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.3ms) SAVEPOINT active_record_1 [shard 722 master] SQL (1.0ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["user_id", 7210000000000026]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 720 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 16], ["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 720 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 9], ["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.3ms) RELEASE SAVEPOINT active_record_1 [shard 720 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7220000000000009], ["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.9ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7220000000000010], ["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 721 master]  (0.3ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["user_id", 7220000000000024]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 720 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (1.0ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["user_id", 24]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 720 master]  (0.2ms) SAVEPOINT active_record_1 [shard 720 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["user_id", 24]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 720 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7210000000000017], ["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.1ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7220000000000011], ["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7220000000000012], ["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 721 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (26) [shard 721 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (7210000000000026) [shard 722 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (16, 7220000000000009) [shard 721 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (9, 10) [shard 722 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 722 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (24) [shard 722 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (11) [shard 722 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (7220000000000012) [shard 721 master] SQL (0.4ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 721 master]  (0.3ms) ROLLBACK [shard 722 master]  (0.2ms) ROLLBACK [shard 721 master]  (0.2ms) BEGIN [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 721]] [shard 720 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 722]] [shard 720 master]  (0.2ms) BEGIN [shard 722 master]  (0.1ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.1ms) SAVEPOINT active_record_1 [shard 720 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["user_id", 27]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["user_id", 7210000000000027]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["user_id", 7220000000000025]] [shard 721 master]  (0.3ms) RELEASE SAVEPOINT active_record_1 [shard 721 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 721 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (27) [shard 721 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (7210000000000027) [shard 722 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 722 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (25) [shard 722 master] SQL (0.3ms) DELETE FROM "appendages" WHERE "appendages"."id" = 18 [shard 721 master]  (0.2ms) ROLLBACK [shard 722 master]  (0.2ms) ROLLBACK [shard 721 master]  (0.2ms) BEGIN [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 721]] [shard 720 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 722]] [shard 720 master]  (0.2ms) BEGIN [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 720 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["user_id", 7210000000000028]] [shard 720 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 720 master]  (0.2ms) SAVEPOINT active_record_1 [shard 720 master] SQL (1.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 677], ["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 720 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 720 master]  (0.3ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.9ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["user_id", 7220000000000026]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 720 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7210000000000020], ["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 720 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 720 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" [shard 720 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (677) [shard 720 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (20) [shard 721 master] User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 721 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 722 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = 28 [shard 721 master]  (0.2ms) ROLLBACK [shard 722 master]  (0.2ms) ROLLBACK [shard 721 master]  (0.2ms) BEGIN [shard 720 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 721]] [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 722]] [shard 720 master]  (0.2ms) BEGIN [shard 722 master]  (0.1ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["user_id", 7220000000000027]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 21]] [shard 721 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 27]] [shard 722 master]  (0.2ms) ROLLBACK [shard 722 master]  (0.2ms) ROLLBACK [shard 721 master]  (0.2ms) BEGIN [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 721]] [shard 720 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 722]] [shard 720 master]  (0.2ms) BEGIN [shard 722 master]  (0.3ms) SAVEPOINT active_record_1 [shard 721 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 722 master] SQL (1.1ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00]] [shard 722 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 722 master]  (0.2ms) SAVEPOINT active_record_1 [shard 721 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 30]] [shard 721 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:47:56 UTC +00:00], ["user_id", 30]] [shard 721 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 721 master] Appendage Load (0.6ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 22]] [shard 721 master] User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 30]] [shard 721 master]  (0.2ms) ROLLBACK [shard 722 master]  (0.4ms) ROLLBACK [shard 721 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 720 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 720 master]  (4.9ms) DROP SCHEMA switchman_test_shard_721 CASCADE [shard 721 deploy]  (0.2ms) BEGIN SQL (0.6ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 721]]  (0.2ms) COMMIT  (5.1ms) DROP SCHEMA switchman_test_shard_722 CASCADE [shard 722 deploy]  (0.3ms) BEGIN SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 722]]  (0.2ms) COMMIT  (0.9ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.6ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", true]]  (6.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_724 [shard 724 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 724 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 724 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 724 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 724 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 724 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 724 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 724 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 724 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 724 deploy] Migrating to CreateDigits (20131022202028)  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 724 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 724 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 724 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 724 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 724 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 724 deploy] Migrating to CreateRoots (20140219183820)  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 724 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 724 deploy] SQL (0.4ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 724 [["name", "switchman_test_shard_724"]] [shard 723 master]  (0.7ms) COMMIT [shard 723 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master]  (0.1ms) BEGIN [shard 723 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 723 master]  (0.3ms) COMMIT [shard 723 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_725 [shard 725 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 725 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 725 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 725 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 725 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 725 deploy] SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 725 deploy]  (0.4ms) COMMIT [shard 725 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 725 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 725 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 725 deploy]  (0.4ms) COMMIT [shard 725 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 725 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 725 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 725 deploy]  (0.4ms) COMMIT [shard 725 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 725 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 725 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 725 deploy]  (0.4ms) COMMIT [shard 725 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 725 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 725 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 725 deploy]  (0.4ms) COMMIT [shard 725 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 725 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 725 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 725 deploy]  (0.3ms) COMMIT [shard 725 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 725 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 725 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 725 deploy]  (0.4ms) COMMIT [shard 725 deploy]  (0.1ms) BEGIN [shard 723 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 725 [["name", "switchman_test_shard_725"]] [shard 723 master]  (0.3ms) COMMIT [shard 723 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 723 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master]  (0.1ms) BEGIN [shard 723 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 723 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 723]] [shard 723 master]  (0.3ms) COMMIT [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master]  (0.1ms) BEGIN [shard 723 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 724], ["name", "switchman_test_shard_724"]] [shard 723 master]  (0.3ms) COMMIT [shard 723 master]  (0.1ms) BEGIN [shard 723 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 725], ["name", "switchman_test_shard_725"]] [shard 723 master]  (0.2ms) COMMIT [shard 723 master]  (0.1ms) BEGIN [shard 723 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 724]] [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 725]] [shard 723 master]  (0.1ms) BEGIN [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (1.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 723 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 1]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 724 LIMIT 1 [shard 723 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 1], ["id", 1]] [shard 724 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 1], ["id", 1]] [shard 725 master]  (0.1ms) ROLLBACK [shard 725 master]  (0.2ms) ROLLBACK [shard 723 master]  (0.1ms) BEGIN [shard 723 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 724]] [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 725]] [shard 723 master]  (0.1ms) BEGIN [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 723 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 2]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) ROLLBACK [shard 725 master]  (0.1ms) ROLLBACK [shard 724 master]  (0.1ms) BEGIN [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 724]] [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 725]] [shard 723 master]  (0.1ms) BEGIN [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) ROLLBACK [shard 725 master]  (0.1ms) ROLLBACK [shard 724 master]  (0.1ms) BEGIN [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 724]] [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 725]] [shard 723 master]  (0.1ms) BEGIN [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.2ms) SAVEPOINT active_record_1 [shard 723 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 4]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 723 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 3], ["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master] Digit Load (0.6ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 4], ["id", 1]] [shard 724 master]  (0.1ms) ROLLBACK [shard 725 master]  (0.1ms) ROLLBACK [shard 724 master]  (0.1ms) BEGIN [shard 723 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 724]] [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 725]] [shard 723 master]  (0.1ms) BEGIN [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["parent_id", 5], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["parent_id", 6], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 5]] [shard 724 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 7 LIMIT 1 [["parent_id", 5]] [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["id", 7], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 5]] [shard 724 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 7250000000000007 LIMIT 1 [["parent_id", 5]] [shard 724 master]  (0.1ms) ROLLBACK [shard 725 master]  (0.1ms) ROLLBACK [shard 724 master]  (0.1ms) BEGIN [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 724]] [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 725]] [shard 723 master]  (0.1ms) BEGIN [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 723 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 8]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 723 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 6]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 725 LIMIT 1 [shard 723 master]  (0.1ms) ROLLBACK [shard 725 master]  (0.1ms) ROLLBACK [shard 724 master]  (0.1ms) BEGIN [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 724]] [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 725]] [shard 723 master]  (0.1ms) BEGIN [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) ROLLBACK [shard 725 master]  (0.1ms) ROLLBACK [shard 724 master]  (0.1ms) BEGIN [shard 723 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 724]] [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 725]] [shard 723 master]  (0.1ms) BEGIN [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (15.1ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.2ms) ROLLBACK [shard 725 master]  (0.1ms) ROLLBACK [shard 724 master]  (0.1ms) BEGIN [shard 723 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 724]] [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 725]] [shard 723 master]  (0.1ms) BEGIN [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 723 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 11]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) ROLLBACK [shard 725 master]  (0.1ms) ROLLBACK [shard 724 master]  (0.1ms) BEGIN [shard 723 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 724]] [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 725]] [shard 723 master]  (0.1ms) BEGIN [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 723 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 12]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 6]] [shard 724 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 12]] [shard 724 master]  (0.1ms) ROLLBACK [shard 725 master]  (0.1ms) ROLLBACK [shard 724 master]  (0.1ms) BEGIN [shard 723 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 724]] [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 725]] [shard 723 master]  (0.1ms) BEGIN [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 723 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 13]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.4ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 13]] [shard 724 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 13]] [shard 724 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 13]] [shard 724 master]  (0.1ms) ROLLBACK [shard 725 master]  (0.1ms) ROLLBACK [shard 724 master]  (0.1ms) BEGIN [shard 723 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 724]] [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 725]] [shard 723 master]  (0.1ms) BEGIN [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) ROLLBACK [shard 725 master]  (0.1ms) ROLLBACK [shard 724 master]  (0.1ms) BEGIN [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 724]] [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 725]] [shard 723 master]  (0.1ms) BEGIN [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 15]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 8], ["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 7240000000000015]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2], ["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["value", 2]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 15]] [shard 724 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 7240000000000015]] [shard 725 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 15]] [shard 724 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 15]] [shard 724 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 7240000000000015]] [shard 725 master]  (0.1ms) ROLLBACK [shard 725 master]  (0.1ms) ROLLBACK [shard 724 master]  (0.1ms) BEGIN [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 724]] [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 725]] [shard 723 master]  (0.1ms) BEGIN [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 16]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 9], ["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9], ["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["value", 1]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 7240000000000016]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3], ["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["value", 2]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.5ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 16]] [shard 724 master]  (0.5ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 7240000000000016]] [shard 725 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 16]] [shard 724 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 16]] [shard 724 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 7240000000000016]] [shard 725 master]  (0.1ms) ROLLBACK [shard 725 master]  (0.1ms) ROLLBACK [shard 724 master]  (0.1ms) BEGIN [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 724]] [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 725]] [shard 723 master]  (0.1ms) BEGIN [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 17], ["value", 1]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 7240000000000017], ["value", 2]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 17]] [shard 724 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 724 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 17]] [shard 724 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 7240000000000017]] [shard 725 master]  (0.1ms) ROLLBACK [shard 725 master]  (0.1ms) ROLLBACK [shard 724 master]  (0.1ms) BEGIN [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 724]] [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 725]] [shard 723 master]  (0.1ms) BEGIN [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 18], ["value", 1]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 7240000000000018]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 18]] [shard 724 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 7240000000000018]] [shard 725 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 724 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 18]] [shard 724 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 7240000000000018]] [shard 725 master]  (0.1ms) ROLLBACK [shard 725 master]  (0.1ms) ROLLBACK [shard 724 master]  (0.1ms) BEGIN [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 724]] [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 725]] [shard 723 master]  (0.1ms) BEGIN [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 19]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12], ["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["value", 1]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 7240000000000019]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6], ["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["value", 2]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 19]] [shard 724 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [shard 724 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 19]] [shard 724 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 7240000000000019]] [shard 725 master]  (0.1ms) ROLLBACK [shard 725 master]  (0.1ms) ROLLBACK [shard 724 master]  (0.1ms) BEGIN [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 724]] [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 725]] [shard 723 master]  (0.1ms) BEGIN [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 20], ["value", 1]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 7240000000000020]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 20], ["value", 2]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 724 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 20]] [shard 724 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 7240000000000020]] [shard 725 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 724 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 20]] [shard 724 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 7240000000000020]] [shard 725 master]  (0.1ms) ROLLBACK [shard 725 master]  (0.2ms) ROLLBACK [shard 724 master]  (0.1ms) BEGIN [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 724]] [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 725]] [shard 723 master]  (0.1ms) BEGIN [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 21]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 15], ["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 7240000000000021]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["value", 2]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 21]] [shard 724 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 7240000000000021]] [shard 725 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 724 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 21]] [shard 724 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 7240000000000021]] [shard 725 master]  (0.1ms) ROLLBACK [shard 725 master]  (0.1ms) ROLLBACK [shard 724 master]  (0.1ms) BEGIN [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 724]] [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 725]] [shard 723 master]  (0.1ms) BEGIN [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 723 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 22]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 7240000000000022]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 7250000000000020]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 724 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (22) [shard 724 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (7240000000000022) [shard 725 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 725 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (20) [shard 725 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 16 [shard 724 master]  (0.2ms) ROLLBACK [shard 725 master]  (0.1ms) ROLLBACK [shard 724 master]  (0.1ms) BEGIN [shard 723 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 724]] [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 725]] [shard 723 master]  (0.1ms) BEGIN [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 723 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 7240000000000023]] [shard 723 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 723 master]  (0.1ms) SAVEPOINT active_record_1 [shard 723 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 678], ["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 723 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 723 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 7250000000000021]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 723 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7240000000000018], ["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 723 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 723 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" [shard 723 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (678) [shard 723 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (18) [shard 724 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 724 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 725 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 23 [shard 724 master]  (0.1ms) ROLLBACK [shard 725 master]  (0.1ms) ROLLBACK [shard 724 master]  (0.1ms) BEGIN [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 724]] [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 725]] [shard 723 master]  (0.1ms) BEGIN [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 723 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 7240000000000024]] [shard 723 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 723 master]  (0.1ms) SAVEPOINT active_record_1 [shard 723 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 7250000000000022]] [shard 723 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 723 master]  (0.1ms) SAVEPOINT active_record_1 [shard 723 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 723 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 723 master]  (0.1ms) SAVEPOINT active_record_1 [shard 723 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 1338]] [shard 723 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 723 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 723 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1338) [shard 723 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 724 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 725 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 24 [shard 724 master]  (0.2ms) ROLLBACK [shard 725 master]  (0.1ms) ROLLBACK [shard 724 master]  (0.1ms) BEGIN [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 724]] [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 725]] [shard 723 master]  (0.1ms) BEGIN [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 723 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 25]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 7240000000000025]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 7240000000000025]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 723 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 19], ["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 723 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 10], ["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 723 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7250000000000010], ["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7250000000000011], ["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 7250000000000023]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 723 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 23]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 723 master]  (0.1ms) SAVEPOINT active_record_1 [shard 723 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 23]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 723 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7240000000000020], ["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7250000000000012], ["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7250000000000013], ["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 724 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (25) [shard 724 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (7240000000000025) [shard 725 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (19, 7250000000000010) [shard 724 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (10, 11) [shard 725 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 725 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (23) [shard 725 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (12) [shard 725 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (7250000000000013) [shard 724 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 724 master]  (0.2ms) ROLLBACK [shard 725 master]  (0.2ms) ROLLBACK [shard 724 master]  (0.1ms) BEGIN [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 724]] [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 725]] [shard 723 master]  (0.1ms) BEGIN [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 7250000000000024]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 21]] [shard 724 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 24]] [shard 725 master]  (0.1ms) ROLLBACK [shard 725 master]  (0.2ms) ROLLBACK [shard 724 master]  (0.1ms) BEGIN [shard 723 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 724]] [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 725]] [shard 723 master]  (0.1ms) BEGIN [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 27]] [shard 724 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 27]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 22]] [shard 724 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 27]] [shard 724 master]  (0.1ms) ROLLBACK [shard 725 master]  (0.1ms) ROLLBACK [shard 724 master]  (0.1ms) BEGIN [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 724]] [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 725]] [shard 723 master]  (0.1ms) BEGIN [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 723 master] SQL (0.6ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["user_id", 7250000000000026]] [shard 723 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 723 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 34]] [shard 723 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 26]] [shard 725 master]  (0.1ms) ROLLBACK [shard 725 master]  (0.1ms) ROLLBACK [shard 723 master]  (0.1ms) BEGIN [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 724]] [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 725]] [shard 723 master]  (0.1ms) BEGIN [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 723 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 723 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 723 master]  (0.1ms) SAVEPOINT active_record_1 [shard 723 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["owner_id", 682], ["owner_type", "Appendage"], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 723 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 723 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 66]] [shard 723 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 682]] [shard 723 master]  (0.1ms) SAVEPOINT active_record_1 [shard 723 master] SQL (0.4ms) UPDATE "features" SET "owner_id" = $1, "owner_type" = $2, "updated_at" = $3 WHERE "features"."id" = 66 [["owner_id", 7240000000000029], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 723 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 723 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 66]] [shard 723 master]  (0.1ms) ROLLBACK [shard 725 master]  (0.1ms) ROLLBACK [shard 723 master]  (0.1ms) BEGIN [shard 723 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 724]] [shard 723 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 725]] [shard 723 master]  (0.1ms) BEGIN [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master]  (0.1ms) SAVEPOINT active_record_1 [shard 724 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["owner_id", 30], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["value", 1]] [shard 724 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 724 master]  (0.1ms) SAVEPOINT active_record_1 [shard 725 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["owner_id", 7240000000000030], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 19:48:28 UTC +00:00], ["value", 2]] [shard 725 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 725 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 30], ["owner_type", "User"]] [shard 724 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 30]] [shard 724 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 30], ["owner_type", "User"]] [shard 724 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 7240000000000030], ["owner_type", "User"]] [shard 725 master]  (0.1ms) ROLLBACK [shard 725 master]  (0.1ms) ROLLBACK [shard 724 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 723 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 723 master]  (4.5ms) DROP SCHEMA switchman_test_shard_724 CASCADE [shard 724 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 724]]  (0.1ms) COMMIT  (5.2ms) DROP SCHEMA switchman_test_shard_725 CASCADE [shard 725 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 725]]  (0.1ms) COMMIT  (1.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "1"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "1"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.4ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", true]]  (19.6ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_729 [shard 729 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 729 deploy]  (16.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 729 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 729 deploy] Migrating to CreateUsers (20130403132607)  (2.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 729 deploy] SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 729 deploy] Migrating to CreateAppendages (20130411202442)  (2.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 729 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 729 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 729 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 729 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 729 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 729 deploy] Migrating to CreateFeatures (20131206172923)  (2.3ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 729 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 729 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 729 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 729 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 729 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 729 deploy] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 729 [["name", "switchman_test_shard_729"]] [shard 728 master]  (1.1ms) COMMIT [shard 728 master] Switchman::Shard Load (30.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '2' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "2"], ["name", "public"]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_730 [shard 730 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 730 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 730 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 730 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 730 deploy]  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 730 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 730 deploy]  (0.3ms) COMMIT [shard 730 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 730 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 730 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 730 deploy]  (0.4ms) COMMIT [shard 730 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 730 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 730 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 730 deploy]  (0.3ms) COMMIT [shard 730 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 730 deploy]  (2.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 730 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 730 deploy]  (0.4ms) COMMIT [shard 730 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 730 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 730 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 730 deploy]  (0.4ms) COMMIT [shard 730 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 730 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 730 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 730 deploy]  (0.3ms) COMMIT [shard 730 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 730 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 730 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 730 deploy]  (0.5ms) COMMIT [shard 730 deploy]  (0.1ms) BEGIN [shard 728 master] SQL (0.4ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 730 [["name", "switchman_test_shard_730"]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 728 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 728]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 729], ["name", "switchman_test_shard_729"]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 730], ["name", "switchman_test_shard_730"]] [shard 728 master]  (0.2ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:20 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:20 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:20 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:20 UTC +00:00], ["user_id", 1339]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (15.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:20 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:20 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.2ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 1]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 1]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 1340]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 2]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 2]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 729 LIMIT 1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 1341]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 3]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 3]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 1342]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 4]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 4]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.2ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 1343]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 5]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 5]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 1344]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 6]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 6]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 1345]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 7]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 7]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 1346]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 8]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 8]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 1347]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 9]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 9]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 1348]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 10]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 10]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 1349]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 11]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 11]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.2ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 1350]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 12]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 12]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 1351]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 13]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 13]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.2ms) BEGIN [shard 728 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 1352]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 14]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 14]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 1353]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 15]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 15]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 1354]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 16]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 16]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["parent_id", 1354], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["parent_id", 1355], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1355]] [shard 728 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1354]] [shard 728 master] User Load (0.5ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 [["parent_id", 1354]] [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master] SQL (15.5ms) DELETE FROM "switchman_shards" [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 728]] [shard 728 master]  (15.1ms) COMMIT [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.2ms) BEGIN [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 729], ["name", "switchman_test_shard_729"]] [shard 728 master]  (0.4ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 730], ["name", "switchman_test_shard_730"]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 17], ["value", 1]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 730 LIMIT 1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 7300000000000017], ["value", 3]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 729 LIMIT 1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 7290000000000017], ["value", 2]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 17], ["value", 4]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 17], ["value", 5]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.5ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 729 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 730 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 729 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 730 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 729 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 730 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 729 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [shard 729 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [shard 730 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 730 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [shard 730 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 18], ["value", 1]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 7300000000000018], ["value", 3]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 7290000000000018], ["value", 2]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 18], ["value", 4]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 18], ["value", 5]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.4ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 729 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 730 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 729 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 730 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 729 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 730 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 729 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 729 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 730 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 730 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 730 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 729 master]  (0.2ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 19], ["value", 1]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 7300000000000019], ["value", 3]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 7290000000000019], ["value", 2]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 19], ["value", 4]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 19], ["value", 5]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 729 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 730 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 729 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 730 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 729 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 730 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 729 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 729 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 730 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 730 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 730 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.2ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 20], ["value", 1]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 7300000000000020], ["value", 3]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 7290000000000020], ["value", 2]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 20], ["value", 4]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 20], ["value", 5]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 729 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 730 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 729 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 730 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 729 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 730 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 729 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 729 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 730 master]  (0.4ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 730 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 730 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 729 master]  (0.2ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 21], ["value", 1]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 7300000000000021], ["value", 3]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 7290000000000021], ["value", 2]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 21], ["value", 4]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 21], ["value", 5]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 21]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 22]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 23], ["value", 1]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 7300000000000022], ["value", 3]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 7290000000000023], ["value", 2]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 22], ["value", 4]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 22], ["value", 5]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 729 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 730 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 729 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 730 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 729 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 730 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 729 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 729 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 730 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 730 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 730 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 24]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 23]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 31 [shard 729 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 730 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 31 [shard 729 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 730 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 31 [shard 729 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 25]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 24]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.3ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (25) [shard 729 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (24) [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 26]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.2ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 25]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 729 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 37 [shard 730 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 729 master]  (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 37 [shard 730 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 729 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 37 [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 27], ["value", 1]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 27], ["value", 2]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 26], ["value", 3]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 26], ["value", 4]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 26], ["value", 5]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 27]] [shard 729 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 729 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 26]] [shard 730 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 730 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (34, 35) [shard 729 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (38, 39, 40) [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 28], ["value", 1]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 28], ["value", 2]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 27], ["value", 3]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 27], ["value", 4]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 27], ["value", 5]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 28]] [shard 729 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 729 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 27]] [shard 730 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 730 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (36, 37) [shard 729 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (41, 42, 43) [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 29], ["value", 1]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 29], ["value", 2]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 28], ["value", 3]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 28], ["value", 4]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 28], ["value", 5]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.4ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 29]] [shard 729 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 729 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 28]] [shard 730 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 730 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (38, 39) [shard 729 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (44, 45, 46) [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 30], ["value", 1]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 30], ["value", 2]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 29], ["value", 3]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 29], ["value", 4]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 29], ["value", 5]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 30]] [shard 729 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 729 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 29]] [shard 730 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 730 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (40, 41) [shard 729 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (47, 48, 49) [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.2ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 31], ["value", 1]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 31], ["value", 2]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 30], ["value", 3]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 30], ["value", 4]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 30], ["value", 5]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 31]] [shard 729 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 729 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 30]] [shard 730 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 730 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (42, 43) [shard 729 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (50, 51, 52) [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 728]] [shard 728 master]  (0.2ms) COMMIT [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 729], ["name", "switchman_test_shard_729"]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 730], ["name", "switchman_test_shard_730"]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 729 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 728 master]  (0.2ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master] User Load (0.4ms) SELECT "users".* FROM "users" [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.4ms) COMMIT [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.4ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 728 master] SQL (0.1ms) DELETE FROM "users" [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 728 master] SQL (0.2ms) DELETE FROM "users" [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.4ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "a"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.2ms) COMMIT [shard 728 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1365]] [shard 728 master] CACHE (0.0ms) 728::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1365]] CACHE (0.0ms) 728::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1365]]  (0.1ms) BEGIN [shard 728 master] SQL (0.4ms) UPDATE "users" SET "name" = $1, "updated_at" = $2 WHERE "users"."id" = 1365 [["name", "b"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1365]] [shard 728 master] CACHE (0.0ms) 728::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1365]] SQL (0.4ms) DELETE FROM "users" [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 728 master] SQL (0.3ms) DELETE FROM "users" [shard 728 master] SQL (0.2ms) DELETE FROM "users" [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.4ms) COMMIT [shard 728 master] User Load (0.3ms) SELECT "users".* FROM "users" [shard 728 master] SQL (0.3ms) DELETE FROM "users" [shard 728 master] SQL (0.2ms) DELETE FROM "users" [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 728 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-22 20:50:21.835125' [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master] User Load (0.3ms) SELECT "users".* FROM "users" [shard 728 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-22 20:50:21.843380' [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 728 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-07-22 20:50:21.847929' [shard 728 master] SQL (0.3ms) DELETE FROM "users" [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.2ms) COMMIT [shard 728 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 728 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-07-22 20:50:21.852370' [shard 728 master] SQL (0.3ms) DELETE FROM "users" [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 728 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 728]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 729], ["name", "switchman_test_shard_729"]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 730], ["name", "switchman_test_shard_730"]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 35 ORDER BY "users"."id" ASC LIMIT 1 [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 729 LIMIT 1 [shard 728 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1374) [shard 728 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (36) [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 37 [shard 729 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1375]] [shard 728 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 37]] [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (1376) [shard 728 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (38) [shard 729 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1376]] [shard 728 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 38]] [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master] SQL (0.6ms) DELETE FROM "switchman_shards" [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 728]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 729], ["name", "switchman_test_shard_729"]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 730], ["name", "switchman_test_shard_730"]] [shard 728 master]  (0.2ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 40]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 729 LIMIT 1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["user_id", 41]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (15.9ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 45], ["created_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:21 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 41], ["id", 1]] [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 42]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 46]] [shard 729 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 42]] [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 44]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.4ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 44]] [shard 729 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 44]] [shard 729 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 44]] [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 45]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 47]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 39]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 730 LIMIT 1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["parent_id", 48], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["parent_id", 49], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 48]] [shard 729 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 50 LIMIT 1 [["parent_id", 48]] [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["id", 50], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 48]] [shard 729 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 7300000000000050 LIMIT 1 [["parent_id", 48]] [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 51]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 51], ["id", 50]] [shard 729 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 41], ["id", 50]] [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 53]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 51], ["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 51], ["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["value", 1]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 7290000000000053]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 54], ["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["value", 2]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 53]] [shard 729 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 7290000000000053]] [shard 730 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 53]] [shard 729 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 53]] [shard 729 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 7290000000000053]] [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.2ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 54], ["value", 1]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 7290000000000054]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 54], ["value", 2]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 54]] [shard 729 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 54]] [shard 729 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 7290000000000054]] [shard 730 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 54]] [shard 729 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 54]] [shard 729 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 7290000000000054]] [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 55], ["value", 1]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 7290000000000055]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 55]] [shard 729 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 7290000000000055]] [shard 730 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 55]] [shard 729 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 55]] [shard 729 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 7290000000000055]] [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 56], ["value", 1]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 7290000000000056], ["value", 2]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 56]] [shard 729 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 56]] [shard 729 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 56]] [shard 729 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 7290000000000056]] [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 57]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["value", 1]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 7290000000000057]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 58], ["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["value", 2]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 57]] [shard 729 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 57]] [shard 729 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 57]] [shard 729 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 7290000000000057]] [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 58]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 57], ["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 7290000000000058]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 59], ["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["value", 2]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 58]] [shard 729 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 7290000000000058]] [shard 730 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 58]] [shard 729 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 58]] [shard 729 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 7290000000000058]] [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 59]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 58], ["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 7290000000000059]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 60], ["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["value", 2]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.5ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 59]] [shard 729 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 7290000000000059]] [shard 730 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 59]] [shard 729 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 59]] [shard 729 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 7290000000000059]] [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 60]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 7290000000000060]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 7300000000000050]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [shard 729 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (60) [shard 729 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (7290000000000060) [shard 730 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (50) [shard 730 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (50) [shard 730 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 59 [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 7290000000000061]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 7300000000000051]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 1377]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 728 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1377) [shard 728 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [shard 729 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (51) [shard 730 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 61 [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 7290000000000062]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 702], ["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 7300000000000052]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7290000000000061], ["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 728 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (702) [shard 728 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (61) [shard 729 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (62) [shard 729 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (52) [shard 730 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 62 [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 63]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 7290000000000063]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 7290000000000063]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 62], ["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 62], ["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7300000000000062], ["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7300000000000063], ["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 7300000000000053]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 53]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 53]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7290000000000063], ["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7300000000000064], ["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7300000000000065], ["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (63) [shard 729 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (63) [shard 729 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (7290000000000063) [shard 730 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (62, 7300000000000062) [shard 729 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (62, 63) [shard 730 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 730 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (53) [shard 730 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (64) [shard 730 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (7300000000000065) [shard 729 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.7ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 7300000000000054]] [shard 728 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 728 master] Root Load (0.4ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 35]] [shard 728 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 54]] [shard 730 master]  (0.2ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 7300000000000055]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 64]] [shard 729 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 55]] [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 66]] [shard 729 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["user_id", 66]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 65]] [shard 729 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 66]] [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["owner_id", 703], ["owner_type", "Appendage"], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 67]] [shard 728 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 703]] [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) UPDATE "features" SET "owner_id" = $1, "owner_type" = $2, "updated_at" = $3 WHERE "features"."id" = 67 [["owner_id", 7290000000000067], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 67]] [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (14.9ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["owner_id", 68], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["value", 1]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["owner_id", 7290000000000068], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["value", 2]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 68], ["owner_type", "User"]] [shard 729 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 68]] [shard 729 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 68], ["owner_type", "User"]] [shard 729 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 7290000000000068], ["owner_type", "User"]] [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 728]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 729], ["name", "switchman_test_shard_729"]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 730], ["name", "switchman_test_shard_730"]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 32]] [shard 728 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 32]] [shard 728 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 32 ORDER BY "mirror_users"."id" ASC LIMIT 1 [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 728]] [shard 728 master]  (0.2ms) COMMIT [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 729], ["name", "switchman_test_shard_729"]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 730], ["name", "switchman_test_shard_730"]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (729,730)) AND "switchman_shards"."id" IN (728, 729) [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 728]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 729], ["name", "switchman_test_shard_729"]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 730], ["name", "switchman_test_shard_730"]] [shard 728 master]  (0.2ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "3"]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "3"]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.2ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 728]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 729], ["name", "switchman_test_shard_729"]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 730], ["name", "switchman_test_shard_730"]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 728 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 728]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 729], ["name", "switchman_test_shard_729"]] [shard 728 master]  (0.2ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 730], ["name", "switchman_test_shard_730"]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 730 master]  (0.1ms) SAVEPOINT active_record_2 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 730 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [shard 728 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 728]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 729], ["name", "switchman_test_shard_729"]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 730], ["name", "switchman_test_shard_730"]] [shard 728 master]  (0.2ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 728]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 729], ["name", "switchman_test_shard_729"]] [shard 728 master]  (0.2ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 730], ["name", "switchman_test_shard_730"]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 69]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 7290000000000069 ORDER BY "users"."id" ASC LIMIT 1 [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.2ms) BEGIN [shard 730 master]  (0.2ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 729 LIMIT 1 [shard 728 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 70]] [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 71 LIMIT 1 [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) LIMIT 1 [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 73 LIMIT 1 [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["name", "multi-shard exists"], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 730 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 730 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 728 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 728 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 729 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.2ms) BEGIN [shard 728 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 728 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 728]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 729], ["name", "switchman_test_shard_729"]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 730], ["name", "switchman_test_shard_730"]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 728 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 728]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 729], ["name", "switchman_test_shard_729"]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 730], ["name", "switchman_test_shard_730"]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:22 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.2ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "4"]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.2ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.2ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "5"]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master] SQL (0.7ms) DELETE FROM "switchman_shards" [shard 728 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 728 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 728]] [shard 728 master]  (16.0ms) COMMIT [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 729], ["name", "switchman_test_shard_729"]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 730], ["name", "switchman_test_shard_730"]] [shard 728 master]  (0.2ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '6' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "6"]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 735 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 735 deploy] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 735 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 735 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 735 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130403132607"]] [shard 735 deploy]  (0.8ms) commit transaction [shard 735 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) begin transaction [shard 735 deploy]  (0.3ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 735 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202442"]] [shard 735 deploy]  (0.6ms) commit transaction [shard 735 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) begin transaction [shard 735 deploy]  (0.4ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 735 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202551"]] [shard 735 deploy]  (0.7ms) commit transaction [shard 735 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 735 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 735 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131022202028"]] [shard 735 deploy]  (0.7ms) commit transaction [shard 735 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 735 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 735 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131206172923"]] [shard 735 deploy]  (0.7ms) commit transaction [shard 735 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) begin transaction [shard 735 deploy]  (0.3ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 735 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140123154135"]] [shard 735 deploy]  (0.6ms) commit transaction [shard 735 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 735 deploy]  (0.3ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 735 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219183820"]] [shard 735 deploy]  (0.8ms) commit transaction [shard 735 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.8ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 735 [["name", "db/shard_735.sqlite3"]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) begin transaction [shard 735 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00]] [shard 735 master]  (0.6ms) commit transaction [shard 735 master] Drop failed: No such file or directory @ unlink_internal - db/shard_735.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 735]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '7' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "7"], ["name", "public"]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (15.7ms) CREATE SCHEMA switchman_test_shard_736 [shard 736 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 736 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 736 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 736 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 736 deploy]  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 736 deploy] SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 736 deploy]  (0.3ms) COMMIT [shard 736 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 736 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 736 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 736 deploy]  (0.3ms) COMMIT [shard 736 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 736 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 736 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 736 deploy]  (0.4ms) COMMIT [shard 736 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 736 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 736 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 736 deploy]  (0.3ms) COMMIT [shard 736 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 736 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 736 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 736 deploy]  (0.3ms) COMMIT [shard 736 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 736 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 736 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 736 deploy]  (0.3ms) COMMIT [shard 736 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 736 deploy]  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 736 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 736 deploy]  (0.3ms) COMMIT [shard 736 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 736 [["name", "switchman_test_shard_736"]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) BEGIN [shard 736 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00]] [shard 736 master]  (0.2ms) COMMIT [shard 736 master]  (4.5ms) DROP SCHEMA switchman_test_shard_736 CASCADE [shard 736 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 736]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [shard 728 master]  (0.2ms) CREATE SCHEMA switchman_test_shard_737 [shard 737 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 737 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 737 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 737 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 737 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 737 deploy] Migrating to CreateAppendages (20130411202442)  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 737 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 737 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 737 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 737 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 737 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 737 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 737 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 737 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 737 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 737 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 737 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 737 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 737 [["name", "switchman_test_shard_737"]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 737 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00]] [shard 737 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 737 master]  (2.8ms) DROP SCHEMA switchman_test_shard_737 CASCADE [shard 737 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 737]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (2.1ms) ROLLBACK [shard 728 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 728 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 728]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 729], ["name", "switchman_test_shard_729"]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 730], ["name", "switchman_test_shard_730"]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 729 LIMIT 1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 730 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00]] [shard 730 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00]] [shard 729 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master] SQL (13.9ms) DELETE FROM "switchman_shards" [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 728]] [shard 728 master]  (0.2ms) COMMIT [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 729], ["name", "switchman_test_shard_729"]] [shard 728 master]  (0.2ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 730], ["name", "switchman_test_shard_730"]] [shard 728 master]  (0.2ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.0ms) SAVEPOINT active_record_1 [shard 729 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:23 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:23 UTC +00:00]] [shard 729 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 729 master]  (0.0ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 729 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 728 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 728]] [shard 728 master]  (0.2ms) COMMIT [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 729], ["name", "switchman_test_shard_729"]] [shard 728 master]  (0.2ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 730], ["name", "switchman_test_shard_730"]] [shard 728 master]  (0.2ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 729 LIMIT 1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 730 LIMIT 1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10730 LIMIT 1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 738]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 739]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 739 LIMIT 1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '18' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "18"], ["name", "public"]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_740 [shard 740 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 740 deploy]  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 740 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 740 deploy] Migrating to CreateUsers (20130403132607)  (0.2ms) BEGIN [shard 740 deploy]  (2.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 740 deploy] SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 740 deploy]  (0.3ms) COMMIT [shard 740 deploy] Migrating to CreateAppendages (20130411202442)  (0.3ms) BEGIN [shard 740 deploy]  (3.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 740 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 740 deploy]  (0.3ms) COMMIT [shard 740 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) BEGIN [shard 740 deploy]  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 740 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 740 deploy]  (0.4ms) COMMIT [shard 740 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 740 deploy]  (2.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 740 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 740 deploy]  (0.3ms) COMMIT [shard 740 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 740 deploy]  (2.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 740 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 740 deploy]  (0.5ms) COMMIT [shard 740 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) BEGIN [shard 740 deploy]  (0.4ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 740 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 740 deploy]  (0.3ms) COMMIT [shard 740 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 740 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 740 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 740 deploy]  (0.4ms) COMMIT [shard 740 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 740 [["name", "switchman_test_shard_740"]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) BEGIN [shard 740 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00]] [shard 740 master]  (0.2ms) COMMIT [shard 740 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 740 master]  (5.1ms) DROP SCHEMA switchman_test_shard_740 CASCADE [shard 740 deploy]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 740 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master] SQL (0.6ms) DELETE FROM "switchman_shards" [shard 728 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "19"], ["name", "non_existent_shard"]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "19"]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 741 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.9ms) SELECT COUNT(*) FROM "users" [shard 742 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "20"]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "21"]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "22"]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "23"]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "24"]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "25"]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 728 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 728]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 729], ["name", "switchman_test_shard_729"]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 730], ["name", "switchman_test_shard_730"]] [shard 728 master]  (0.3ms) COMMIT [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00], ["owner_id", 1381], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master] Feature Load (0.3ms) SELECT owner_id FROM "features" WHERE "features"."id" = 68 ORDER BY "features"."id" ASC LIMIT 1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master]  (0.1ms) BEGIN [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 729]] [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 730]] [shard 728 master]  (0.1ms) BEGIN [shard 730 master]  (0.1ms) SAVEPOINT active_record_1 [shard 728 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:50:23 UTC +00:00]] [shard 728 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 728 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 729 LIMIT 1 [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 730 LIMIT 1 [shard 728 master]  (0.1ms) ROLLBACK [shard 730 master]  (0.1ms) ROLLBACK [shard 728 master] SQL (16.1ms) DELETE FROM "switchman_shards" [shard 728 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 728 master]  (20.2ms) DROP SCHEMA switchman_test_shard_729 CASCADE [shard 729 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 729]]  (0.1ms) COMMIT  (6.4ms) DROP SCHEMA switchman_test_shard_730 CASCADE [shard 730 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 730]]  (0.1ms) COMMIT  (1.0ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", true]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_750 [shard 750 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 750 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 750 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 750 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 750 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 750 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 750 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 750 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 750 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 750 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 750 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 750 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 750 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 750 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 750 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 750 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 750 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 750 deploy] SQL (0.4ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 750 [["name", "switchman_test_shard_750"]] [shard 749 master]  (0.7ms) COMMIT [shard 749 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.8ms) CREATE SCHEMA switchman_test_shard_751 [shard 751 deploy]  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 751 deploy]  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 751 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 751 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 751 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 751 deploy] SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 751 deploy]  (0.3ms) COMMIT [shard 751 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 751 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 751 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 751 deploy]  (0.4ms) COMMIT [shard 751 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 751 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 751 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 751 deploy]  (0.3ms) COMMIT [shard 751 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 751 deploy]  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 751 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 751 deploy]  (0.4ms) COMMIT [shard 751 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 751 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 751 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 751 deploy]  (0.4ms) COMMIT [shard 751 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 751 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 751 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 751 deploy]  (0.3ms) COMMIT [shard 751 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 751 deploy]  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 751 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 751 deploy]  (0.3ms) COMMIT [shard 751 deploy]  (0.1ms) BEGIN [shard 749 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 751 [["name", "switchman_test_shard_751"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 749 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 749]] [shard 749 master]  (0.4ms) COMMIT [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 750], ["name", "switchman_test_shard_750"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 751], ["name", "switchman_test_shard_751"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '7' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "7"], ["name", "public"]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_752 [shard 752 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 752 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 752 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 752 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 752 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 752 deploy] SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 752 deploy]  (0.3ms) COMMIT [shard 752 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 752 deploy]  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 752 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 752 deploy]  (0.4ms) COMMIT [shard 752 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 752 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 752 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 752 deploy]  (0.3ms) COMMIT [shard 752 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 752 deploy]  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 752 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 752 deploy]  (0.3ms) COMMIT [shard 752 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 752 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 752 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 752 deploy]  (0.4ms) COMMIT [shard 752 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 752 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 752 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 752 deploy]  (0.3ms) COMMIT [shard 752 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 752 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 752 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 752 deploy]  (0.4ms) COMMIT [shard 752 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 752 [["name", "switchman_test_shard_752"]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) BEGIN [shard 752 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:30 UTC +00:00]] [shard 752 master]  (0.4ms) COMMIT [shard 752 master]  (4.6ms) DROP SCHEMA switchman_test_shard_752 CASCADE [shard 752 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 752]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '8' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "8"]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 753 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 753 deploy] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 753 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 753 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 753 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130403132607"]] [shard 753 deploy]  (0.8ms) commit transaction [shard 753 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 753 deploy]  (0.3ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 753 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202442"]] [shard 753 deploy]  (0.7ms) commit transaction [shard 753 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 753 deploy]  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 753 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202551"]] [shard 753 deploy]  (0.6ms) commit transaction [shard 753 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 753 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 753 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131022202028"]] [shard 753 deploy]  (0.6ms) commit transaction [shard 753 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 753 deploy]  (0.3ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 753 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131206172923"]] [shard 753 deploy]  (0.7ms) commit transaction [shard 753 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 753 deploy]  (0.4ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 753 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140123154135"]] [shard 753 deploy]  (0.7ms) commit transaction [shard 753 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 753 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 753 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219183820"]] [shard 753 deploy]  (0.7ms) commit transaction [shard 753 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 753 [["name", "db/shard_753.sqlite3"]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) begin transaction [shard 753 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 22 Jul 2014 20:51:30 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:30 UTC +00:00]] [shard 753 master]  (0.8ms) commit transaction [shard 753 master] Drop failed: No such file or directory @ unlink_internal - db/shard_753.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 753]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [shard 749 master]  (0.1ms) CREATE SCHEMA switchman_test_shard_754 [shard 754 deploy]  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 754 deploy]  (17.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 754 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 754 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 754 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 754 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 754 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 754 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 754 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 754 deploy] Migrating to CreateDigits (20131022202028)  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 754 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 754 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 754 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 754 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 754 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 754 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 754 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 754 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 754 [["name", "switchman_test_shard_754"]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 754 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 754 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 754 master]  (2.5ms) DROP SCHEMA switchman_test_shard_754 CASCADE [shard 754 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 754]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (2.0ms) ROLLBACK [shard 749 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.2ms) BEGIN [shard 749 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 749 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 749]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 750], ["name", "switchman_test_shard_750"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 751], ["name", "switchman_test_shard_751"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "9"]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "9"]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 749 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 749]] [shard 749 master]  (0.4ms) COMMIT [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 750], ["name", "switchman_test_shard_750"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 751], ["name", "switchman_test_shard_751"]] [shard 749 master]  (0.2ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "10"]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "10"]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 749]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 750], ["name", "switchman_test_shard_750"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 751], ["name", "switchman_test_shard_751"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 1383]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 1]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 1]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.2ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 1384]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 2]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 2]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 750 LIMIT 1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 1385]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 750 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 3]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 3]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (15.8ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 1386]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 4]] [shard 750 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 4]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 1387]] [shard 749 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 5]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 5]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 1388]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 6]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 6]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["parent_id", 1388], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["parent_id", 1389], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1389]] [shard 749 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1388]] [shard 749 master] User Load (0.6ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 [["parent_id", 1388]] [shard 749 master]  (0.2ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 1391]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 7]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 7]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 1392]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 8]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 8]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 1393]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 9]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 9]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 1394]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 10]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 10]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 1395]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 11]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 11]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 1396]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 12]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 12]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 1397]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 13]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 13]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.2ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 1398]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 14]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 14]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 1399]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 15]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 15]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.2ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 1400]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 16]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 16]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 749 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 749]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 750], ["name", "switchman_test_shard_750"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 751], ["name", "switchman_test_shard_751"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (750,751)) AND "switchman_shards"."id" IN (749, 750) [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 749]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 750], ["name", "switchman_test_shard_750"]] [shard 749 master]  (0.2ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 751], ["name", "switchman_test_shard_751"]] [shard 749 master]  (0.2ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.2ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "11"], ["name", "non_existent_shard"]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "11"]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 759 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.6ms) SELECT COUNT(*) FROM "users" [shard 760 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "12"]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "13"]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "14"]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "15"]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "16"]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "17"]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 749]] [shard 749 master]  (0.4ms) COMMIT [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 750], ["name", "switchman_test_shard_750"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 751], ["name", "switchman_test_shard_751"]] [shard 749 master]  (0.4ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 750 LIMIT 1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 767]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 767 LIMIT 1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.3ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 768]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10751 LIMIT 1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 751 LIMIT 1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '19' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "19"], ["name", "public"]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_769 [shard 769 deploy]  (2.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 769 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 769 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 769 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 769 deploy]  (2.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 769 deploy] SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 769 deploy]  (0.4ms) COMMIT [shard 769 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 769 deploy]  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 769 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 769 deploy]  (0.4ms) COMMIT [shard 769 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 769 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 769 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 769 deploy]  (0.4ms) COMMIT [shard 769 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 769 deploy]  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 769 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 769 deploy]  (0.4ms) COMMIT [shard 769 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 769 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 769 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 769 deploy]  (0.5ms) COMMIT [shard 769 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 769 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 769 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 769 deploy]  (0.2ms) COMMIT [shard 769 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 769 deploy]  (2.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 769 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 769 deploy]  (0.4ms) COMMIT [shard 769 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 769 [["name", "switchman_test_shard_769"]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) BEGIN [shard 769 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 769 master]  (0.3ms) COMMIT [shard 769 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 769 master]  (4.9ms) DROP SCHEMA switchman_test_shard_769 CASCADE [shard 769 deploy]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 769 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 749 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 749]] [shard 749 master]  (0.2ms) COMMIT [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 750], ["name", "switchman_test_shard_750"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 751], ["name", "switchman_test_shard_751"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 17], ["value", 1]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 751 LIMIT 1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 7510000000000017], ["value", 3]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 750 LIMIT 1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 7500000000000017], ["value", 2]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 17], ["value", 4]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 17], ["value", 5]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 17]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 18]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 750 master]  (0.2ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 19], ["value", 1]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 7510000000000018], ["value", 3]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 7500000000000019], ["value", 2]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 18], ["value", 4]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 18], ["value", 5]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 750 master]  (0.6ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 751 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 750 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 751 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 750 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 751 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 750 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 750 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 751 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 751 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 751 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 20], ["value", 1]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 7510000000000019], ["value", 3]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 7500000000000020], ["value", 2]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 19], ["value", 4]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:31 UTC +00:00], ["user_id", 19], ["value", 5]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 750 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 751 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 750 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 751 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 750 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 751 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 750 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 750 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 751 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 751 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 751 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.2ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 21], ["value", 1]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 7510000000000020], ["value", 3]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.2ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 7500000000000021], ["value", 2]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 20], ["value", 4]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 20], ["value", 5]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 750 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 751 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 750 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 751 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 750 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 751 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 750 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 750 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 751 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 751 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 751 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 22], ["value", 1]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 7510000000000021], ["value", 3]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 7500000000000022], ["value", 2]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 21], ["value", 4]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 21], ["value", 5]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 750 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 751 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 750 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 751 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 750 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 751 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 750 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 750 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 751 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 751 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 751 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.2ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 23], ["value", 1]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 7510000000000022], ["value", 3]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 7500000000000023], ["value", 2]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 22], ["value", 4]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 22], ["value", 5]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 750 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 751 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 750 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 751 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 750 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 751 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 750 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 750 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 751 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 751 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 751 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 24], ["value", 1]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 24], ["value", 2]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 23], ["value", 3]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 23], ["value", 4]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 23], ["value", 5]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 24]] [shard 750 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 750 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 23]] [shard 751 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 751 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (31, 32) [shard 750 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (35, 36, 37) [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 25], ["value", 1]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 25], ["value", 2]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 24], ["value", 3]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 24], ["value", 4]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 24], ["value", 5]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 25]] [shard 750 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 750 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 24]] [shard 751 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 751 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (33, 34) [shard 750 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (38, 39, 40) [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 26], ["value", 1]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 26], ["value", 2]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 25], ["value", 3]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 25], ["value", 4]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 25], ["value", 5]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 26]] [shard 750 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 750 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 25]] [shard 751 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 751 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (35, 36) [shard 750 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (41, 42, 43) [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 27], ["value", 1]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 27], ["value", 2]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 26], ["value", 3]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 26], ["value", 4]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 26], ["value", 5]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 27]] [shard 750 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 750 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 26]] [shard 751 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 751 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (37, 38) [shard 750 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (44, 45, 46) [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 28], ["value", 1]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 28], ["value", 2]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 27], ["value", 3]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 27], ["value", 4]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 27], ["value", 5]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 28]] [shard 750 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 750 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 27]] [shard 751 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 751 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (39, 40) [shard 750 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (47, 48, 49) [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 29]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 28]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 750 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 751 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 750 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 751 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 750 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 30]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 29]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 750 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 751 master]  (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 750 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 751 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 750 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 31]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 30]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (31) [shard 750 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (30) [shard 751 master]  (0.2ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 749]] [shard 749 master]  (0.4ms) COMMIT [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 750], ["name", "switchman_test_shard_750"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 751], ["name", "switchman_test_shard_751"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 750 LIMIT 1 [shard 749 master] SQL (0.3ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (1402) [shard 749 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (33) [shard 750 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1402]] [shard 749 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 33]] [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 34 [shard 750 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1403]] [shard 749 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 34]] [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1404) [shard 749 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35) [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 36 ORDER BY "users"."id" ASC LIMIT 1 [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 749 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 749]] [shard 749 master]  (0.4ms) COMMIT [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 750], ["name", "switchman_test_shard_750"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 751], ["name", "switchman_test_shard_751"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 37]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 7500000000000037 ORDER BY "users"."id" ASC LIMIT 1 [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["name", "multi-shard exists"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 749 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 749 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 750 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 39 LIMIT 1 [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 750 LIMIT 1 [shard 749 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) LIMIT 1 [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.2ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 41 LIMIT 1 [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 42]] [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master] SQL (14.8ms) DELETE FROM "switchman_shards" [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 749]] [shard 749 master]  (0.2ms) COMMIT [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 750], ["name", "switchman_test_shard_750"]] [shard 749 master]  (0.4ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 751], ["name", "switchman_test_shard_751"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.0ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:52:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:52:32 UTC +00:00]] [shard 750 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.0ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 749]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 750], ["name", "switchman_test_shard_750"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 751], ["name", "switchman_test_shard_751"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "20"]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "21"]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.2ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master] SQL (0.8ms) DELETE FROM "switchman_shards" [shard 749 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 749 master] SQL (0.5ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 749]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 750], ["name", "switchman_test_shard_750"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 751], ["name", "switchman_test_shard_751"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 33]] [shard 749 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 33]] [shard 749 master] MirrorUser Load (0.4ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 33 ORDER BY "mirror_users"."id" ASC LIMIT 1 [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 749]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 750], ["name", "switchman_test_shard_750"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 751], ["name", "switchman_test_shard_751"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 751 master]  (0.1ms) SAVEPOINT active_record_2 [shard 751 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 751 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 749]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 750], ["name", "switchman_test_shard_750"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 751], ["name", "switchman_test_shard_751"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [shard 749 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 749]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 750], ["name", "switchman_test_shard_750"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 751], ["name", "switchman_test_shard_751"]] [shard 749 master]  (0.2ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["owner_id", 1407], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master] Feature Load (0.3ms) SELECT owner_id FROM "features" WHERE "features"."id" = 69 ORDER BY "features"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 750 LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 751 LIMIT 1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master] SQL (15.5ms) DELETE FROM "switchman_shards" [shard 749 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 749]] [shard 749 master]  (0.4ms) COMMIT [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.2ms) BEGIN [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 750], ["name", "switchman_test_shard_750"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 751], ["name", "switchman_test_shard_751"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.2ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["parent_id", 46], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["parent_id", 47], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 750 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 48 LIMIT 1 [["parent_id", 46]] [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["id", 48], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 750 LIMIT 1 [shard 749 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 750 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 7510000000000048 LIMIT 1 [["parent_id", 46]] [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 49]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (10.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 44], ["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master] Digit Load (0.6ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 49], ["id", 1]] [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 50]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 38]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 751 LIMIT 1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 51]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 51], ["id", 46]] [shard 750 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 39], ["id", 46]] [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 53]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 54]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 54]] [shard 750 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 54]] [shard 750 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 54]] [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 55]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 49]] [shard 750 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 55]] [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 56]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 57]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 51], ["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 7500000000000057]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 54], ["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["value", 2]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 57]] [shard 750 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 7500000000000057]] [shard 751 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 57]] [shard 750 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 57]] [shard 750 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 7500000000000057]] [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 58]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 52], ["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 7500000000000058]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["value", 2]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 58]] [shard 750 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 7500000000000058]] [shard 751 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 58]] [shard 750 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 58]] [shard 750 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 7500000000000058]] [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 59], ["value", 1]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 7500000000000059]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 59]] [shard 750 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 7500000000000059]] [shard 751 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 59]] [shard 750 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 59]] [shard 750 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 7500000000000059]] [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.2ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 60]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 54], ["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["value", 1]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 7500000000000060]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 57], ["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["value", 2]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 60]] [shard 750 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 60]] [shard 750 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 60]] [shard 750 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 7500000000000060]] [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 61], ["value", 1]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 7500000000000061]] [shard 751 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 61], ["value", 2]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [shard 750 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 61]] [shard 750 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 7500000000000061]] [shard 751 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [shard 750 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 61]] [shard 750 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 7500000000000061]] [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 62]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 57], ["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 57], ["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["value", 1]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 7500000000000062]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 59], ["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["value", 2]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 62]] [shard 750 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 7500000000000062]] [shard 751 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 62]] [shard 750 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 62]] [shard 750 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 7500000000000062]] [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 63], ["value", 1]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["user_id", 7500000000000063], ["value", 2]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 63]] [shard 750 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [shard 750 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 63]] [shard 750 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 7500000000000063]] [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:32 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["user_id", 64]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["user_id", 7500000000000064]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["user_id", 7510000000000052]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [shard 750 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (64) [shard 750 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (7500000000000064) [shard 751 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (52) [shard 751 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (52) [shard 751 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 59 [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["user_id", 65]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["user_id", 7500000000000065]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["user_id", 7500000000000065]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 61], ["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 62], ["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7510000000000062], ["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7510000000000063], ["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["user_id", 7510000000000053]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["user_id", 53]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["user_id", 53]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7500000000000062], ["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7510000000000064], ["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7510000000000065], ["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 750 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (65) [shard 750 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (7500000000000065) [shard 751 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (61, 7510000000000062) [shard 750 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (62, 63) [shard 751 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 751 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (53) [shard 751 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (64) [shard 751 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (7510000000000065) [shard 750 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 750 master]  (0.2ms) ROLLBACK [shard 751 master]  (0.2ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["user_id", 7500000000000066]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 722], ["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["user_id", 7510000000000054]] [shard 750 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7500000000000063], ["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" [shard 749 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (722) [shard 749 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (63) [shard 750 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 750 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 751 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 66 [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["user_id", 7500000000000067]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["user_id", 7510000000000055]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["user_id", 1409]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 749 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1409) [shard 749 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 750 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 751 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 67 [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.9ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["owner_id", 68], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["value", 1]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.8ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["owner_id", 7500000000000068], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["value", 2]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master] Feature Load (0.8ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 68], ["owner_type", "User"]] [shard 750 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 68]] [shard 750 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 68], ["owner_type", "User"]] [shard 750 master] Feature Load (0.7ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 7500000000000068], ["owner_type", "User"]] [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["owner_id", 726], ["owner_type", "Appendage"], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 70]] [shard 749 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 726]] [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.4ms) UPDATE "features" SET "owner_id" = $1, "owner_type" = $2, "updated_at" = $3 WHERE "features"."id" = 70 [["owner_id", 7500000000000069], ["owner_type", "User"], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 70]] [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 70]] [shard 750 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["user_id", 70]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 64]] [shard 750 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 70]] [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["user_id", 7510000000000059]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 65]] [shard 750 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 59]] [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.6ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["user_id", 7510000000000060]] [shard 749 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 749 master] Root Load (0.4ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 36]] [shard 749 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 60]] [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.2ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 749 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 749]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 750], ["name", "switchman_test_shard_750"]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 751], ["name", "switchman_test_shard_751"]] [shard 749 master]  (0.4ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master] User Load (0.3ms) SELECT "users".* FROM "users" [shard 750 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 749 master]  (0.4ms) COMMIT [shard 749 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 749 master] SQL (0.4ms) DELETE FROM "users" [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 749 master]  (0.4ms) COMMIT [shard 749 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 749 master] SQL (0.3ms) DELETE FROM "users" [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["name", "a"], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 749 master]  (0.2ms) COMMIT [shard 749 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1418]] [shard 749 master] SQL (0.4ms) DELETE FROM "users" [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 749 master]  (0.3ms) COMMIT [shard 749 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 749 master] SQL (0.3ms) DELETE FROM "users" [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 749 master]  (0.2ms) COMMIT [shard 749 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 749 master] SQL (0.2ms) DELETE FROM "users" [shard 749 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 749 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 749]] [shard 749 master]  (0.2ms) COMMIT [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 750], ["name", "switchman_test_shard_750"]] [shard 749 master]  (0.2ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 751], ["name", "switchman_test_shard_751"]] [shard 749 master]  (0.2ms) COMMIT [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 749 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 749 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 749 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 750 LIMIT 1 [shard 749 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.2ms) BEGIN [shard 751 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.1ms) SAVEPOINT active_record_1 [shard 750 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 750 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 750 master]  (0.2ms) SAVEPOINT active_record_1 [shard 751 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:51:33 UTC +00:00]] [shard 751 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 750 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master]  (0.1ms) BEGIN [shard 749 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 750]] [shard 749 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 751]] [shard 749 master]  (0.1ms) BEGIN [shard 751 master]  (0.1ms) ROLLBACK [shard 751 master]  (0.1ms) ROLLBACK [shard 749 master] SQL (15.4ms) DELETE FROM "switchman_shards" [shard 749 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 749 master]  (5.7ms) DROP SCHEMA switchman_test_shard_750 CASCADE [shard 750 deploy]  (0.1ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 750]]  (0.1ms) COMMIT  (5.5ms) DROP SCHEMA switchman_test_shard_751 CASCADE [shard 751 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 751]]  (0.1ms) COMMIT  (1.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", true]]  (6.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_773 [shard 773 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 773 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 773 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 773 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 773 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 773 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 773 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 773 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 773 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 773 deploy] Migrating to CreateDigits (20131022202028)  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 773 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 773 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 773 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 773 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 773 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 773 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 773 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 773 deploy] SQL (0.4ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 773 [["name", "switchman_test_shard_773"]] [shard 772 master]  (1.1ms) COMMIT [shard 772 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 772 master]  (0.1ms) BEGIN [shard 772 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 772 master]  (0.3ms) COMMIT [shard 772 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_774 [shard 774 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 774 deploy]  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 774 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 774 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 774 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 774 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 774 deploy]  (0.3ms) COMMIT [shard 774 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 774 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 774 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 774 deploy]  (0.3ms) COMMIT [shard 774 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 774 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 774 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 774 deploy]  (0.4ms) COMMIT [shard 774 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 774 deploy]  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 774 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 774 deploy]  (0.4ms) COMMIT [shard 774 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 774 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 774 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 774 deploy]  (0.4ms) COMMIT [shard 774 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 774 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 774 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 774 deploy]  (0.3ms) COMMIT [shard 774 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 774 deploy]  (2.3ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 774 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 774 deploy]  (0.4ms) COMMIT [shard 774 deploy]  (0.1ms) BEGIN [shard 772 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 774 [["name", "switchman_test_shard_774"]] [shard 772 master]  (0.3ms) COMMIT [shard 772 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 772 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 772 master]  (0.1ms) BEGIN [shard 772 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 772 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 772]] [shard 772 master]  (0.3ms) COMMIT [shard 772 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 772 master]  (0.1ms) BEGIN [shard 772 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 773], ["name", "switchman_test_shard_773"]] [shard 772 master]  (0.3ms) COMMIT [shard 772 master]  (0.1ms) BEGIN [shard 772 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 774], ["name", "switchman_test_shard_774"]] [shard 772 master]  (0.3ms) COMMIT [shard 772 master]  (0.1ms) BEGIN [shard 772 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 22 Jul 2014 20:52:40 UTC +00:00], ["updated_at", Tue, 22 Jul 2014 20:52:40 UTC +00:00]] [shard 772 master]  (0.4ms) COMMIT [shard 772 master] User Load (0.3ms) SELECT "users".* FROM "users" [shard 772 master] SQL (0.4ms) DELETE FROM "users" [shard 772 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 772 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 772 master]  (4.4ms) DROP SCHEMA switchman_test_shard_773 CASCADE [shard 773 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 773]]  (0.1ms) COMMIT  (5.9ms) DROP SCHEMA switchman_test_shard_774 CASCADE [shard 774 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 774]]  (0.1ms) COMMIT  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_776 [shard 776 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 776 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 776 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 776 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 776 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 776 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 776 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 776 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 776 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 776 deploy] Migrating to CreateDigits (20131022202028)  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 776 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 776 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 776 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 776 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 776 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 776 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 776 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 776 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 776 [["name", "switchman_test_shard_776"]] [shard 775 master]  (0.7ms) COMMIT [shard 775 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 775 master]  (0.1ms) BEGIN [shard 775 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 775 master]  (0.3ms) COMMIT [shard 775 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_777 [shard 777 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 777 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 777 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 777 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 777 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 777 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 777 deploy]  (0.3ms) COMMIT [shard 777 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 777 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 777 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 777 deploy]  (0.4ms) COMMIT [shard 777 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 777 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 777 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 777 deploy]  (0.4ms) COMMIT [shard 777 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 777 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 777 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 777 deploy]  (0.3ms) COMMIT [shard 777 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 777 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 777 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 777 deploy]  (0.4ms) COMMIT [shard 777 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 777 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 777 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 777 deploy]  (0.3ms) COMMIT [shard 777 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 777 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 777 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 777 deploy]  (0.3ms) COMMIT [shard 777 deploy]  (0.1ms) BEGIN [shard 775 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 777 [["name", "switchman_test_shard_777"]] [shard 775 master]  (0.3ms) COMMIT [shard 775 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 775 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 775 master]  (0.1ms) BEGIN [shard 775 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 775 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 775]] [shard 775 master]  (0.3ms) COMMIT [shard 775 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 775 master]  (0.1ms) BEGIN [shard 775 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 776], ["name", "switchman_test_shard_776"]] [shard 775 master]  (0.2ms) COMMIT [shard 775 master]  (0.1ms) BEGIN [shard 775 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 777], ["name", "switchman_test_shard_777"]] [shard 775 master]  (0.3ms) COMMIT [shard 775 master]  (0.1ms) BEGIN [shard 775 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 20:52:58.807013"], ["updated_at", "2014-07-22 20:52:58.807013"]] [shard 775 master]  (0.4ms) COMMIT [shard 775 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 775 master] SQL (0.3ms) DELETE FROM "users" [shard 775 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 775 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 775 master]  (4.4ms) DROP SCHEMA switchman_test_shard_776 CASCADE [shard 776 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 776]]  (0.1ms) COMMIT  (5.4ms) DROP SCHEMA switchman_test_shard_777 CASCADE [shard 777 deploy]  (0.4ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 777]]  (0.2ms) COMMIT  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.2ms) CREATE SCHEMA switchman_test_shard_779 [shard 779 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 779 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 779 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 779 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 779 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 779 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 779 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 779 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 779 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 779 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 779 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 779 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 779 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 779 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 779 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 779 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 779 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 779 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 779 [["name", "switchman_test_shard_779"]] [shard 778 master]  (0.7ms) COMMIT [shard 778 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 778 master]  (0.1ms) BEGIN [shard 778 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 778 master]  (0.3ms) COMMIT [shard 778 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_780 [shard 780 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 780 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 780 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 780 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 780 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 780 deploy] SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 780 deploy]  (0.3ms) COMMIT [shard 780 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 780 deploy]  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 780 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 780 deploy]  (0.4ms) COMMIT [shard 780 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 780 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 780 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 780 deploy]  (0.4ms) COMMIT [shard 780 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 780 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 780 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 780 deploy]  (0.3ms) COMMIT [shard 780 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 780 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 780 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 780 deploy]  (0.3ms) COMMIT [shard 780 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 780 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 780 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 780 deploy]  (0.2ms) COMMIT [shard 780 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 780 deploy]  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 780 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 780 deploy]  (0.3ms) COMMIT [shard 780 deploy]  (0.1ms) BEGIN [shard 778 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 780 [["name", "switchman_test_shard_780"]] [shard 778 master]  (0.4ms) COMMIT [shard 778 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 778 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 778 master]  (0.1ms) BEGIN [shard 778 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 778 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 778]] [shard 778 master]  (0.3ms) COMMIT [shard 778 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 778 master]  (0.1ms) BEGIN [shard 778 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 779], ["name", "switchman_test_shard_779"]] [shard 778 master]  (0.3ms) COMMIT [shard 778 master]  (0.1ms) BEGIN [shard 778 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 780], ["name", "switchman_test_shard_780"]] [shard 778 master]  (0.2ms) COMMIT [shard 778 master]  (0.1ms) BEGIN [shard 778 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 20:53:19.661908"], ["updated_at", "2014-07-22 20:53:19.661908"]] [shard 778 master]  (0.4ms) COMMIT [shard 778 master] User Load (0.7ms) SELECT "users".* FROM "users" [shard 778 master] SQL (6.7ms) DELETE FROM "users" [shard 778 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 778 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 778 master]  (4.8ms) DROP SCHEMA switchman_test_shard_779 CASCADE [shard 779 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 779]]  (0.2ms) COMMIT  (5.1ms) DROP SCHEMA switchman_test_shard_780 CASCADE [shard 780 deploy]  (0.3ms) BEGIN SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 780]]  (0.2ms) COMMIT  (0.6ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.4ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.2ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'development' AND "switchman_shards"."name" IS NULL ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.3ms) SELECT * FROM unnest(current_schemas(false)) [shard master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'production' AND "switchman_shards"."name" IS NULL ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.2ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'development' AND "switchman_shards"."name" IS NULL ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.4ms) SELECT * FROM unnest(current_schemas(false)) [shard master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'production' AND "switchman_shards"."name" IS NULL ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 781 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 781 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 781 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 781 deploy]  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.2ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'development' AND "switchman_shards"."name" IS NULL ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.4ms) SELECT * FROM unnest(current_schemas(false)) [shard master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'production' AND "switchman_shards"."name" IS NULL ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (7.0ms) DELETE FROM "switchman_shards" [shard 781 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 781 master]  (0.1ms) BEGIN [shard 781 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 781 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]] [shard 781 master]  (0.4ms) COMMIT [shard 781 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 781 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 782 master]  (0.1ms) BEGIN [shard 782 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [shard 782 master]  (0.4ms) CREATE SCHEMA switchman_test_shard_783 [shard 783 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 783 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 783 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 783 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 783 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 783 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 783 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 783 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 783 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 783 deploy] Migrating to CreateDigits (20131022202028)  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 783 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 783 deploy] Migrating to CreateFeatures (20131206172923)  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 783 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 783 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 783 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 783 deploy] Migrating to CreateRoots (20140219183820)  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 783 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 783 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 783 [["name", "switchman_test_shard_783"]] [shard 782 master]  (1.2ms) COMMIT [shard 782 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 782 master]  (0.1ms) BEGIN [shard 782 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 782 master]  (0.3ms) COMMIT [shard 782 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_784 [shard 784 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 784 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 784 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 784 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 784 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 784 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 784 deploy]  (0.4ms) COMMIT [shard 784 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 784 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 784 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 784 deploy]  (0.4ms) COMMIT [shard 784 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 784 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 784 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 784 deploy]  (0.3ms) COMMIT [shard 784 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 784 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 784 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 784 deploy]  (0.3ms) COMMIT [shard 784 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 784 deploy]  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 784 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 784 deploy]  (0.3ms) COMMIT [shard 784 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 784 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 784 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 784 deploy]  (0.2ms) COMMIT [shard 784 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 784 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 784 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 784 deploy]  (0.3ms) COMMIT [shard 784 deploy]  (0.1ms) BEGIN [shard 782 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 784 [["name", "switchman_test_shard_784"]] [shard 782 master]  (0.3ms) COMMIT [shard 782 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 782 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 782 master]  (0.1ms) BEGIN [shard 782 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 782 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 782]] [shard 782 master]  (0.3ms) COMMIT [shard 782 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 782 master]  (0.1ms) BEGIN [shard 782 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 783], ["name", "switchman_test_shard_783"]] [shard 782 master]  (0.3ms) COMMIT [shard 782 master]  (0.1ms) BEGIN [shard 782 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 784], ["name", "switchman_test_shard_784"]] [shard 782 master]  (0.3ms) COMMIT [shard 782 master]  (0.1ms) BEGIN [shard 782 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:04:05.819467"], ["updated_at", "2014-07-22 21:04:05.819467"]] [shard 782 master]  (0.4ms) COMMIT [shard 782 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 782 master] SQL (0.7ms) DELETE FROM "users" [shard 782 master] SQL (0.2ms) DELETE FROM "users" [shard 782 master] SQL (0.6ms) DELETE FROM "switchman_shards" [shard 782 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 782 master]  (5.1ms) DROP SCHEMA switchman_test_shard_783 CASCADE [shard 783 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 783]]  (0.1ms) COMMIT  (5.1ms) DROP SCHEMA switchman_test_shard_784 CASCADE [shard 784 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 784]]  (0.1ms) COMMIT  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (6.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_786 [shard 786 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 786 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 786 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 786 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 786 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 786 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 786 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 786 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 786 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 786 deploy] Migrating to CreateDigits (20131022202028)  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 786 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 786 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 786 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 786 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 786 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 786 deploy] Migrating to CreateRoots (20140219183820)  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 786 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 786 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 786 [["name", "switchman_test_shard_786"]] [shard 785 master]  (0.7ms) COMMIT [shard 785 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 785 master]  (0.1ms) BEGIN [shard 785 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 785 master]  (0.3ms) COMMIT [shard 785 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_787 [shard 787 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 787 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 787 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 787 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 787 deploy]  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 787 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 787 deploy]  (0.3ms) COMMIT [shard 787 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 787 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 787 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 787 deploy]  (0.4ms) COMMIT [shard 787 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 787 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 787 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 787 deploy]  (0.3ms) COMMIT [shard 787 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 787 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 787 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 787 deploy]  (0.3ms) COMMIT [shard 787 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 787 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 787 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 787 deploy]  (0.4ms) COMMIT [shard 787 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 787 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 787 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 787 deploy]  (0.3ms) COMMIT [shard 787 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 787 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 787 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 787 deploy]  (0.3ms) COMMIT [shard 787 deploy]  (0.1ms) BEGIN [shard 785 master] SQL (0.1ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 787 [["name", "switchman_test_shard_787"]] [shard 785 master]  (0.2ms) COMMIT [shard 785 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 785 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 785 master]  (0.1ms) BEGIN [shard 785 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 785 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 785]] [shard 785 master]  (0.2ms) COMMIT [shard 785 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 785 master]  (0.1ms) BEGIN [shard 785 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 786], ["name", "switchman_test_shard_786"]] [shard 785 master]  (0.2ms) COMMIT [shard 785 master]  (0.1ms) BEGIN [shard 785 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 787], ["name", "switchman_test_shard_787"]] [shard 785 master]  (0.2ms) COMMIT [shard 785 master]  (0.1ms) BEGIN [shard 785 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:05:13.410007"], ["updated_at", "2014-07-22 21:05:13.410007"]] [shard 785 master]  (0.4ms) COMMIT [shard 785 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 785 master] SQL (0.3ms) DELETE FROM "users" [shard 785 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 785 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 785 master]  (5.7ms) DROP SCHEMA switchman_test_shard_786 CASCADE [shard 786 deploy]  (0.1ms) BEGIN SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 786]]  (0.1ms) COMMIT  (5.8ms) DROP SCHEMA switchman_test_shard_787 CASCADE [shard 787 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 787]]  (0.1ms) COMMIT  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (6.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_789 [shard 789 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 789 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 789 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 789 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 789 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 789 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 789 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 789 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 789 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 789 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 789 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 789 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 789 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 789 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 789 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 789 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 789 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 789 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 789 [["name", "switchman_test_shard_789"]] [shard 788 master]  (0.8ms) COMMIT [shard 788 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 788 master]  (0.1ms) BEGIN [shard 788 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 788 master]  (0.3ms) COMMIT [shard 788 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_790 [shard 790 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 790 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 790 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 790 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 790 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 790 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 790 deploy]  (0.3ms) COMMIT [shard 790 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 790 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 790 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 790 deploy]  (0.4ms) COMMIT [shard 790 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) BEGIN [shard 790 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 790 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 790 deploy]  (0.4ms) COMMIT [shard 790 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 790 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 790 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 790 deploy]  (0.3ms) COMMIT [shard 790 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 790 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 790 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 790 deploy]  (0.4ms) COMMIT [shard 790 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 790 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 790 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 790 deploy]  (0.3ms) COMMIT [shard 790 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 790 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 790 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 790 deploy]  (0.3ms) COMMIT [shard 790 deploy]  (0.1ms) BEGIN [shard 788 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 790 [["name", "switchman_test_shard_790"]] [shard 788 master]  (0.3ms) COMMIT [shard 788 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 788 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 788 master]  (0.1ms) BEGIN [shard 788 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 788 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 788]] [shard 788 master]  (0.3ms) COMMIT [shard 788 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 788 master]  (0.1ms) BEGIN [shard 788 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 789], ["name", "switchman_test_shard_789"]] [shard 788 master]  (0.3ms) COMMIT [shard 788 master]  (0.1ms) BEGIN [shard 788 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 790], ["name", "switchman_test_shard_790"]] [shard 788 master]  (0.2ms) COMMIT [shard 788 master]  (0.1ms) BEGIN [shard 788 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:05:22.275589"], ["updated_at", "2014-07-22 21:05:22.275589"]] [shard 788 master]  (0.3ms) COMMIT [shard 788 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 788 master] SQL (0.6ms) DELETE FROM "users" [shard 788 master] SQL (0.3ms) DELETE FROM "users" [shard 788 master] SQL (0.6ms) DELETE FROM "switchman_shards" [shard 788 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 788 master]  (5.3ms) DROP SCHEMA switchman_test_shard_789 CASCADE [shard 789 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 789]]  (0.1ms) COMMIT  (5.5ms) DROP SCHEMA switchman_test_shard_790 CASCADE [shard 790 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 790]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_792 [shard 792 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 792 deploy]  (16.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 792 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 792 deploy] Migrating to CreateUsers (20130403132607)  (17.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 792 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 792 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 792 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 792 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 792 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 792 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 792 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 792 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 792 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 792 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 792 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 792 deploy] Migrating to CreateRoots (20140219183820)  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 792 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 792 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_792' WHERE "switchman_shards"."id" = 792 [shard 791 master]  (0.7ms) COMMIT [shard 791 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 791 master]  (0.1ms) BEGIN [shard 791 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 791 master]  (0.3ms) COMMIT [shard 791 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_793 [shard 793 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 793 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 793 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 793 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 793 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 793 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 793 deploy]  (0.3ms) COMMIT [shard 793 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 793 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 793 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 793 deploy]  (0.3ms) COMMIT [shard 793 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 793 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 793 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 793 deploy]  (0.4ms) COMMIT [shard 793 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 793 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 793 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 793 deploy]  (0.3ms) COMMIT [shard 793 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 793 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 793 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 793 deploy]  (0.3ms) COMMIT [shard 793 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 793 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 793 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 793 deploy]  (0.3ms) COMMIT [shard 793 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 793 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 793 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 793 deploy]  (0.3ms) COMMIT [shard 793 deploy]  (0.1ms) BEGIN [shard 791 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_793' WHERE "switchman_shards"."id" = 793 [shard 791 master]  (0.3ms) COMMIT [shard 791 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 791 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 791 master]  (0.1ms) BEGIN [shard 791 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 791 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 791], ["name", nil]] [shard 791 master]  (0.3ms) COMMIT [shard 791 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 791 master]  (0.0ms) BEGIN [shard 791 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 792], ["name", "switchman_test_shard_792"]] [shard 791 master]  (0.3ms) COMMIT [shard 791 master]  (0.0ms) BEGIN [shard 791 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 793], ["name", "switchman_test_shard_793"]] [shard 791 master]  (0.3ms) COMMIT [shard 791 master]  (0.1ms) BEGIN [shard 791 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 21:05:46 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 21:05:46 UTC +00:00]] [shard 791 master]  (0.3ms) COMMIT [shard 791 master] SQL (0.4ms) DELETE FROM "users" [shard 791 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 791 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 791 master]  (4.8ms) DROP SCHEMA switchman_test_shard_792 CASCADE [shard 792 deploy]  (0.0ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 792]]  (0.1ms) COMMIT  (6.7ms) DROP SCHEMA switchman_test_shard_793 CASCADE [shard 793 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 793]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.2ms) BEGIN Switchman::Shard Exists (22.8ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_795 [shard 795 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 795 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 795 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 795 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 795 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 795 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 795 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 795 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 795 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 795 deploy] Migrating to CreateDigits (20131022202028)  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 795 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 795 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 795 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 795 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 795 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 795 deploy] Migrating to CreateRoots (20140219183820)  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 795 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 795 deploy]  (0.4ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_795' WHERE "switchman_shards"."id" = 795 [shard 794 master]  (0.7ms) COMMIT [shard 794 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 794 master]  (0.1ms) BEGIN [shard 794 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 794 master]  (0.3ms) COMMIT [shard 794 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_796 [shard 796 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 796 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 796 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 796 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 796 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 796 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 796 deploy]  (0.4ms) COMMIT [shard 796 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 796 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 796 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 796 deploy]  (0.3ms) COMMIT [shard 796 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 796 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 796 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 796 deploy]  (0.3ms) COMMIT [shard 796 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 796 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 796 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 796 deploy]  (0.3ms) COMMIT [shard 796 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 796 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 796 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 796 deploy]  (0.3ms) COMMIT [shard 796 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 796 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 796 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 796 deploy]  (0.2ms) COMMIT [shard 796 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 796 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 796 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 796 deploy]  (0.3ms) COMMIT [shard 796 deploy]  (0.1ms) BEGIN [shard 794 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_796' WHERE "switchman_shards"."id" = 796 [shard 794 master]  (0.3ms) COMMIT [shard 794 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 794 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 794 master]  (0.1ms) BEGIN [shard 794 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 794 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 794], ["name", nil]] [shard 794 master]  (0.2ms) COMMIT [shard 794 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 794 master]  (0.1ms) BEGIN [shard 794 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 795], ["name", "switchman_test_shard_795"]] [shard 794 master]  (0.2ms) COMMIT [shard 794 master]  (0.0ms) BEGIN [shard 794 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 796], ["name", "switchman_test_shard_796"]] [shard 794 master]  (0.3ms) COMMIT [shard 794 master]  (0.1ms) BEGIN [shard 794 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 22 Jul 2014 21:06:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 22 Jul 2014 21:06:27 UTC +00:00]] [shard 794 master]  (0.3ms) COMMIT [shard 794 master] User Load (0.3ms) SELECT "users".* FROM "users" [shard 794 master] SQL (0.9ms) DELETE FROM "users" [shard 794 master] SQL (0.2ms) DELETE FROM "users" [shard 794 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 794 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 794 master]  (5.0ms) DROP SCHEMA switchman_test_shard_795 CASCADE [shard 795 deploy]  (0.1ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 795]]  (0.1ms) COMMIT  (6.1ms) DROP SCHEMA switchman_test_shard_796 CASCADE [shard 796 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 796]]  (0.1ms) COMMIT  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_798 [shard 798 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 798 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 798 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 798 deploy] Migrating to CreateUsers (20130403132607)  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 798 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 798 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 798 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 798 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 798 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 798 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 798 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 798 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 798 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 798 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 798 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 798 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 798 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 798 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 798 [["name", "switchman_test_shard_798"]] [shard 797 master]  (0.7ms) COMMIT [shard 797 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_799 [shard 799 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 799 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 799 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 799 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 799 deploy]  (2.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 799 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 799 deploy]  (0.4ms) COMMIT [shard 799 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 799 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 799 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 799 deploy]  (0.4ms) COMMIT [shard 799 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 799 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 799 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 799 deploy]  (0.3ms) COMMIT [shard 799 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 799 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 799 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 799 deploy]  (0.3ms) COMMIT [shard 799 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 799 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 799 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 799 deploy]  (0.4ms) COMMIT [shard 799 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 799 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 799 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 799 deploy]  (0.3ms) COMMIT [shard 799 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 799 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 799 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 799 deploy]  (0.3ms) COMMIT [shard 799 deploy]  (0.1ms) BEGIN [shard 797 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 799 [["name", "switchman_test_shard_799"]] [shard 797 master]  (0.2ms) COMMIT [shard 797 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 797]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 798], ["name", "switchman_test_shard_798"]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 799], ["name", "switchman_test_shard_799"]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 797 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 797 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 797]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 798], ["name", "switchman_test_shard_798"]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 799], ["name", "switchman_test_shard_799"]] [shard 797 master]  (0.2ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.732347"], ["updated_at", "2014-07-22 21:07:15.732347"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.741245"], ["updated_at", "2014-07-22 21:07:15.741245"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (14.9ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:15.753987"], ["updated_at", "2014-07-22 21:07:15.753987"], ["user_id", 1]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 798 LIMIT 1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.777570"], ["updated_at", "2014-07-22 21:07:15.777570"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.779025"], ["updated_at", "2014-07-22 21:07:15.779025"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:15.781547"], ["updated_at", "2014-07-22 21:07:15.781547"], ["user_id", 2]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.786665"], ["updated_at", "2014-07-22 21:07:15.786665"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.788090"], ["updated_at", "2014-07-22 21:07:15.788090"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:15.790560"], ["updated_at", "2014-07-22 21:07:15.790560"], ["user_id", 3]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 3], ["id", 3]] [shard 798 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 3], ["id", 3]] [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.2ms) BEGIN [shard 797 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.801455"], ["updated_at", "2014-07-22 21:07:15.801455"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.803578"], ["updated_at", "2014-07-22 21:07:15.803578"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:15.806880"], ["updated_at", "2014-07-22 21:07:15.806880"], ["user_id", 4]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 4]] [shard 798 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 4]] [shard 798 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 4]] [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.818314"], ["updated_at", "2014-07-22 21:07:15.818314"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.819875"], ["updated_at", "2014-07-22 21:07:15.819875"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.821396"], ["updated_at", "2014-07-22 21:07:15.821396"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.830786"], ["updated_at", "2014-07-22 21:07:15.830786"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.832276"], ["updated_at", "2014-07-22 21:07:15.832276"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:15.834837"], ["updated_at", "2014-07-22 21:07:15.834837"], ["user_id", 6]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 5]] [shard 798 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 6]] [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.842379"], ["updated_at", "2014-07-22 21:07:15.842379"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.843852"], ["updated_at", "2014-07-22 21:07:15.843852"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.849528"], ["updated_at", "2014-07-22 21:07:15.849528"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.851003"], ["updated_at", "2014-07-22 21:07:15.851003"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:15.853717"], ["updated_at", "2014-07-22 21:07:15.853717"], ["user_id", 8]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:15.856294"], ["updated_at", "2014-07-22 21:07:15.856294"], ["user_id", 8]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 799 LIMIT 1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.865914"], ["updated_at", "2014-07-22 21:07:15.865914"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.867954"], ["updated_at", "2014-07-22 21:07:15.867954"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:15.870877"], ["updated_at", "2014-07-22 21:07:15.870877"], ["user_id", 9]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (15.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7], ["created_at", "2014-07-22 21:07:15.879291"], ["updated_at", "2014-07-22 21:07:15.879291"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 9], ["id", 1]] [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.907243"], ["updated_at", "2014-07-22 21:07:15.907243"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.908778"], ["updated_at", "2014-07-22 21:07:15.908778"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.914881"], ["updated_at", "2014-07-22 21:07:15.914881"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.916298"], ["updated_at", "2014-07-22 21:07:15.916298"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:15.918838"], ["parent_id", 11], ["updated_at", "2014-07-22 21:07:15.918838"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:15.921100"], ["parent_id", 12], ["updated_at", "2014-07-22 21:07:15.921100"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 11]] [shard 798 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 13 LIMIT 1 [["parent_id", 11]] [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:15.926833"], ["id", 13], ["updated_at", "2014-07-22 21:07:15.926833"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 11]] [shard 798 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 7990000000000013 LIMIT 1 [["parent_id", 11]] [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.935266"], ["updated_at", "2014-07-22 21:07:15.935266"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.936763"], ["updated_at", "2014-07-22 21:07:15.936763"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.943152"], ["updated_at", "2014-07-22 21:07:15.943152"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.944667"], ["updated_at", "2014-07-22 21:07:15.944667"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:15.946164"], ["updated_at", "2014-07-22 21:07:15.946164"], ["user_id", 15]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", "2014-07-22 21:07:15.948470"], ["updated_at", "2014-07-22 21:07:15.948470"], ["value", 1]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:15.950560"], ["updated_at", "2014-07-22 21:07:15.950560"], ["user_id", 7980000000000015]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2], ["created_at", "2014-07-22 21:07:15.953593"], ["updated_at", "2014-07-22 21:07:15.953593"], ["value", 2]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 15]] [shard 798 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 15]] [shard 798 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 15]] [shard 798 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 7980000000000015]] [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.964677"], ["updated_at", "2014-07-22 21:07:15.964677"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.966244"], ["updated_at", "2014-07-22 21:07:15.966244"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:15.967749"], ["updated_at", "2014-07-22 21:07:15.967749"], ["user_id", 16]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 9], ["created_at", "2014-07-22 21:07:15.969843"], ["updated_at", "2014-07-22 21:07:15.969843"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:15.971677"], ["updated_at", "2014-07-22 21:07:15.971677"], ["user_id", 7980000000000016]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3], ["created_at", "2014-07-22 21:07:15.973861"], ["updated_at", "2014-07-22 21:07:15.973861"], ["value", 2]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 16]] [shard 798 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 7980000000000016]] [shard 799 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 16]] [shard 798 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 16]] [shard 798 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 7980000000000016]] [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.985904"], ["updated_at", "2014-07-22 21:07:15.985904"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:15.987434"], ["updated_at", "2014-07-22 21:07:15.987434"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:15.988941"], ["updated_at", "2014-07-22 21:07:15.988941"], ["user_id", 17], ["value", 1]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:15.990943"], ["updated_at", "2014-07-22 21:07:15.990943"], ["user_id", 7980000000000017]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:15.993455"], ["updated_at", "2014-07-22 21:07:15.993455"], ["user_id", 17], ["value", 2]] [shard 798 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 798 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 17]] [shard 798 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 7980000000000017]] [shard 799 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 798 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 17]] [shard 798 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 7980000000000017]] [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.2ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.007835"], ["updated_at", "2014-07-22 21:07:16.007835"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.009697"], ["updated_at", "2014-07-22 21:07:16.009697"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.011464"], ["updated_at", "2014-07-22 21:07:16.011464"], ["user_id", 18]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 12], ["created_at", "2014-07-22 21:07:16.014315"], ["updated_at", "2014-07-22 21:07:16.014315"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.016702"], ["updated_at", "2014-07-22 21:07:16.016702"], ["user_id", 7980000000000018]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5], ["created_at", "2014-07-22 21:07:16.019352"], ["updated_at", "2014-07-22 21:07:16.019352"], ["value", 2]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 18]] [shard 798 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 7980000000000018]] [shard 799 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 798 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 18]] [shard 798 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 7980000000000018]] [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.031470"], ["updated_at", "2014-07-22 21:07:16.031470"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.032991"], ["updated_at", "2014-07-22 21:07:16.032991"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.034444"], ["updated_at", "2014-07-22 21:07:16.034444"], ["user_id", 19], ["value", 1]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.036371"], ["updated_at", "2014-07-22 21:07:16.036371"], ["user_id", 7980000000000019], ["value", 2]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 19]] [shard 798 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [shard 798 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 19]] [shard 798 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 7980000000000019]] [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.045795"], ["updated_at", "2014-07-22 21:07:16.045795"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.047294"], ["updated_at", "2014-07-22 21:07:16.047294"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.048713"], ["updated_at", "2014-07-22 21:07:16.048713"], ["user_id", 20]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 14], ["created_at", "2014-07-22 21:07:16.050884"], ["updated_at", "2014-07-22 21:07:16.050884"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 14], ["created_at", "2014-07-22 21:07:16.052601"], ["updated_at", "2014-07-22 21:07:16.052601"], ["value", 1]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.054508"], ["updated_at", "2014-07-22 21:07:16.054508"], ["user_id", 7980000000000020]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7], ["created_at", "2014-07-22 21:07:16.056704"], ["updated_at", "2014-07-22 21:07:16.056704"], ["value", 2]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 20]] [shard 798 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 7980000000000020]] [shard 799 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 798 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 20]] [shard 798 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 7980000000000020]] [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.068378"], ["updated_at", "2014-07-22 21:07:16.068378"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.069851"], ["updated_at", "2014-07-22 21:07:16.069851"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.071258"], ["updated_at", "2014-07-22 21:07:16.071258"], ["user_id", 21], ["value", 1]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.073093"], ["updated_at", "2014-07-22 21:07:16.073093"], ["user_id", 7980000000000021]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 21]] [shard 798 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 7980000000000021]] [shard 799 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 798 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 21]] [shard 798 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 7980000000000021]] [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.082879"], ["updated_at", "2014-07-22 21:07:16.082879"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.084308"], ["updated_at", "2014-07-22 21:07:16.084308"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.3ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.091782"], ["updated_at", "2014-07-22 21:07:16.091782"], ["user_id", 7990000000000020]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master] Root Load (0.2ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 37]] [shard 797 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.099042"], ["updated_at", "2014-07-22 21:07:16.099042"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.100599"], ["updated_at", "2014-07-22 21:07:16.100599"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.102645"], ["updated_at", "2014-07-22 21:07:16.102645"], ["user_id", 7990000000000021]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 16]] [shard 798 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.109217"], ["updated_at", "2014-07-22 21:07:16.109217"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.110644"], ["updated_at", "2014-07-22 21:07:16.110644"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.112035"], ["updated_at", "2014-07-22 21:07:16.112035"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 24]] [shard 798 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.114554"], ["updated_at", "2014-07-22 21:07:16.114554"], ["user_id", 24]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 17]] [shard 798 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 24]] [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.120963"], ["updated_at", "2014-07-22 21:07:16.120963"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.122290"], ["updated_at", "2014-07-22 21:07:16.122290"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.124210"], ["updated_at", "2014-07-22 21:07:16.124210"], ["user_id", 7980000000000025]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.126357"], ["updated_at", "2014-07-22 21:07:16.126357"], ["user_id", 7990000000000023]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.127717"], ["updated_at", "2014-07-22 21:07:16.127717"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.130077"], ["updated_at", "2014-07-22 21:07:16.130077"], ["user_id", 1431]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 797 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1431) [shard 797 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 798 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 799 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 25 [shard 798 master]  (0.2ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.142183"], ["updated_at", "2014-07-22 21:07:16.142183"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.143906"], ["updated_at", "2014-07-22 21:07:16.143906"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.146558"], ["updated_at", "2014-07-22 21:07:16.146558"], ["user_id", 7980000000000026]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 730], ["created_at", "2014-07-22 21:07:16.149444"], ["updated_at", "2014-07-22 21:07:16.149444"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.152520"], ["updated_at", "2014-07-22 21:07:16.152520"], ["user_id", 7990000000000024]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7980000000000018], ["created_at", "2014-07-22 21:07:16.154777"], ["updated_at", "2014-07-22 21:07:16.154777"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 797 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (730) [shard 797 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (18) [shard 798 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 798 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 799 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 26 [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.169179"], ["updated_at", "2014-07-22 21:07:16.169179"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.170728"], ["updated_at", "2014-07-22 21:07:16.170728"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.173291"], ["updated_at", "2014-07-22 21:07:16.173291"], ["user_id", 27]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.175151"], ["updated_at", "2014-07-22 21:07:16.175151"], ["user_id", 7980000000000027]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.176820"], ["updated_at", "2014-07-22 21:07:16.176820"], ["user_id", 7990000000000025]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 798 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (27) [shard 798 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (7980000000000027) [shard 799 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 799 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (25) [shard 799 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 19 [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.190135"], ["updated_at", "2014-07-22 21:07:16.190135"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.191700"], ["updated_at", "2014-07-22 21:07:16.191700"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.194235"], ["updated_at", "2014-07-22 21:07:16.194235"], ["user_id", 28]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.196161"], ["updated_at", "2014-07-22 21:07:16.196161"], ["user_id", 7980000000000028]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.197599"], ["updated_at", "2014-07-22 21:07:16.197599"], ["user_id", 7980000000000028]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 21], ["created_at", "2014-07-22 21:07:16.200210"], ["updated_at", "2014-07-22 21:07:16.200210"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 11], ["created_at", "2014-07-22 21:07:16.202857"], ["updated_at", "2014-07-22 21:07:16.202857"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7990000000000011], ["created_at", "2014-07-22 21:07:16.205282"], ["updated_at", "2014-07-22 21:07:16.205282"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7990000000000012], ["created_at", "2014-07-22 21:07:16.206710"], ["updated_at", "2014-07-22 21:07:16.206710"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.208171"], ["updated_at", "2014-07-22 21:07:16.208171"], ["user_id", 7990000000000026]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.210790"], ["updated_at", "2014-07-22 21:07:16.210790"], ["user_id", 26]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.212939"], ["updated_at", "2014-07-22 21:07:16.212939"], ["user_id", 26]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7980000000000022], ["created_at", "2014-07-22 21:07:16.214653"], ["updated_at", "2014-07-22 21:07:16.214653"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7990000000000013], ["created_at", "2014-07-22 21:07:16.216241"], ["updated_at", "2014-07-22 21:07:16.216241"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 7990000000000014], ["created_at", "2014-07-22 21:07:16.217658"], ["updated_at", "2014-07-22 21:07:16.217658"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 798 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (28) [shard 798 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (7980000000000028) [shard 799 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (21, 7990000000000011) [shard 798 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (11, 12) [shard 799 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 799 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (26) [shard 799 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (13) [shard 799 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (7990000000000014) [shard 798 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.238768"], ["updated_at", "2014-07-22 21:07:16.238768"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.240340"], ["updated_at", "2014-07-22 21:07:16.240340"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.241913"], ["updated_at", "2014-07-22 21:07:16.241913"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.3ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.246055"], ["owner_id", 731], ["owner_type", "Appendage"], ["updated_at", "2014-07-22 21:07:16.246055"]] [shard 797 master]  (0.3ms) RELEASE SAVEPOINT active_record_1 [shard 797 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 71]] [shard 797 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 731]] [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) UPDATE "features" SET "owner_id" = $1, "owner_type" = $2, "updated_at" = $3 WHERE "features"."id" = 71 [["owner_id", 7980000000000029], ["owner_type", "User"], ["updated_at", "2014-07-22 21:07:16.253805"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master] Feature Load (0.1ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 71]] [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.259634"], ["updated_at", "2014-07-22 21:07:16.259634"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.261087"], ["updated_at", "2014-07-22 21:07:16.261087"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-07-22 21:07:16.262747"], ["owner_id", 30], ["owner_type", "User"], ["updated_at", "2014-07-22 21:07:16.262747"], ["value", 1]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-07-22 21:07:16.265206"], ["owner_id", 7980000000000030], ["owner_type", "User"], ["updated_at", "2014-07-22 21:07:16.265206"], ["value", 2]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 30], ["owner_type", "User"]] [shard 798 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 30]] [shard 798 master] Feature Load (0.1ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 30], ["owner_type", "User"]] [shard 798 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 7980000000000030], ["owner_type", "User"]] [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 797]] [shard 797 master]  (0.2ms) COMMIT [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 798], ["name", "switchman_test_shard_798"]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 799], ["name", "switchman_test_shard_799"]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.0ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:08:16.283580"], ["updated_at", "2014-07-22 21:08:16.283580"]] [shard 798 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.0ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 797]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 798], ["name", "switchman_test_shard_798"]] [shard 797 master]  (0.2ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 799], ["name", "switchman_test_shard_799"]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '3' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "3"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 802 deploy]  (0.1ms) select sqlite_version(*) [shard 802 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 802 deploy] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 802 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 802 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 802 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130403132607"]] [shard 802 deploy]  (0.8ms) commit transaction [shard 802 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) begin transaction [shard 802 deploy]  (0.3ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 802 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202442"]] [shard 802 deploy]  (0.8ms) commit transaction [shard 802 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 802 deploy]  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 802 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202551"]] [shard 802 deploy]  (0.7ms) commit transaction [shard 802 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 802 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 802 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131022202028"]] [shard 802 deploy]  (0.7ms) commit transaction [shard 802 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 802 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 802 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131206172923"]] [shard 802 deploy]  (0.7ms) commit transaction [shard 802 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 802 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 802 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140123154135"]] [shard 802 deploy]  (0.5ms) commit transaction [shard 802 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 802 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 802 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219183820"]] [shard 802 deploy]  (0.7ms) commit transaction [shard 802 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 802 [["name", "db/shard_802.sqlite3"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.0ms) begin transaction [shard 802 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-07-22 21:07:16.331749"], ["updated_at", "2014-07-22 21:07:16.331749"]] [shard 802 master]  (0.7ms) commit transaction [shard 802 master] Drop failed: No such file or directory @ unlink_internal - db/shard_802.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 802]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '4' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "4"], ["name", "public"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_803 [shard 803 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 803 deploy]  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 803 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 803 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 803 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 803 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 803 deploy]  (0.3ms) COMMIT [shard 803 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 803 deploy]  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 803 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 803 deploy]  (0.3ms) COMMIT [shard 803 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 803 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 803 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 803 deploy]  (0.4ms) COMMIT [shard 803 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 803 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 803 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 803 deploy]  (0.4ms) COMMIT [shard 803 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 803 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 803 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 803 deploy]  (0.3ms) COMMIT [shard 803 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 803 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 803 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 803 deploy]  (0.3ms) COMMIT [shard 803 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 803 deploy]  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 803 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 803 deploy]  (0.4ms) COMMIT [shard 803 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 803 [["name", "switchman_test_shard_803"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) BEGIN [shard 803 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.442892"], ["updated_at", "2014-07-22 21:07:16.442892"]] [shard 803 master]  (0.3ms) COMMIT [shard 803 master]  (4.8ms) DROP SCHEMA switchman_test_shard_803 CASCADE [shard 803 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 803]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [shard 797 master]  (0.1ms) CREATE SCHEMA switchman_test_shard_804 [shard 804 deploy]  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 804 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 804 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 804 deploy] Migrating to CreateUsers (20130403132607)  (1.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 804 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 804 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 804 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 804 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.3ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 804 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 804 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 804 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 804 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 804 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 804 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 804 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 804 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 804 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 804 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 804 [["name", "switchman_test_shard_804"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 804 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.517131"], ["updated_at", "2014-07-22 21:07:16.517131"]] [shard 804 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 804 master]  (3.2ms) DROP SCHEMA switchman_test_shard_804 CASCADE [shard 804 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 804]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (2.1ms) ROLLBACK [shard 797 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 797 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master]  (0.2ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 797]] [shard 797 master]  (0.4ms) COMMIT [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 798], ["name", "switchman_test_shard_798"]] [shard 797 master]  (0.2ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 799], ["name", "switchman_test_shard_799"]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.555204"], ["name", "user1"], ["updated_at", "2014-07-22 21:07:16.555204"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.561182"], ["updated_at", "2014-07-22 21:07:16.561182"], ["user_id", 32]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.563384"], ["name", "user2"], ["updated_at", "2014-07-22 21:07:16.563384"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.566591"], ["updated_at", "2014-07-22 21:07:16.566591"], ["user_id", 29]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 798 LIMIT 1 [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 799 LIMIT 1 [shard 797 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (32) [shard 798 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (29) [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.579486"], ["name", "user1"], ["updated_at", "2014-07-22 21:07:16.579486"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.581908"], ["updated_at", "2014-07-22 21:07:16.581908"], ["user_id", 33]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.583482"], ["name", "user2"], ["updated_at", "2014-07-22 21:07:16.583482"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.585729"], ["updated_at", "2014-07-22 21:07:16.585729"], ["user_id", 30]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 24 [shard 798 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 16 [shard 799 master]  (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 24 [shard 798 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 16 [shard 799 master]  (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 24 [shard 798 master]  (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 16 [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.596020"], ["name", "user1"], ["updated_at", "2014-07-22 21:07:16.596020"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.598498"], ["updated_at", "2014-07-22 21:07:16.598498"], ["user_id", 34]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.600024"], ["name", "user2"], ["updated_at", "2014-07-22 21:07:16.600024"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.602582"], ["updated_at", "2014-07-22 21:07:16.602582"], ["user_id", 31]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 25 [shard 798 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 17 [shard 799 master]  (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 25 [shard 798 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 17 [shard 799 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 25 [shard 798 master]  (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 17 [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.612423"], ["name", "user1"], ["updated_at", "2014-07-22 21:07:16.612423"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.614890"], ["updated_at", "2014-07-22 21:07:16.614890"], ["user_id", 35], ["value", 1]] [shard 798 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.617189"], ["updated_at", "2014-07-22 21:07:16.617189"], ["user_id", 35], ["value", 2]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.618907"], ["name", "user2"], ["updated_at", "2014-07-22 21:07:16.618907"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.622314"], ["updated_at", "2014-07-22 21:07:16.622314"], ["user_id", 32], ["value", 3]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.624568"], ["updated_at", "2014-07-22 21:07:16.624568"], ["user_id", 32], ["value", 4]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.626513"], ["updated_at", "2014-07-22 21:07:16.626513"], ["user_id", 32], ["value", 5]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 35]] [shard 798 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 798 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 32]] [shard 799 master]  (0.1ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 799 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (26, 27) [shard 798 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (18, 19, 20) [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.637446"], ["name", "user1"], ["updated_at", "2014-07-22 21:07:16.637446"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.640245"], ["updated_at", "2014-07-22 21:07:16.640245"], ["user_id", 36], ["value", 1]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.642339"], ["updated_at", "2014-07-22 21:07:16.642339"], ["user_id", 36], ["value", 2]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.644081"], ["name", "user2"], ["updated_at", "2014-07-22 21:07:16.644081"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.646881"], ["updated_at", "2014-07-22 21:07:16.646881"], ["user_id", 33], ["value", 3]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.648977"], ["updated_at", "2014-07-22 21:07:16.648977"], ["user_id", 33], ["value", 4]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.650900"], ["updated_at", "2014-07-22 21:07:16.650900"], ["user_id", 33], ["value", 5]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 36]] [shard 798 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 798 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 33]] [shard 799 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 799 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (28, 29) [shard 798 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (21, 22, 23) [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.660985"], ["name", "user1"], ["updated_at", "2014-07-22 21:07:16.660985"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.663470"], ["updated_at", "2014-07-22 21:07:16.663470"], ["user_id", 37], ["value", 1]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.665278"], ["updated_at", "2014-07-22 21:07:16.665278"], ["user_id", 37], ["value", 2]] [shard 798 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.667156"], ["name", "user2"], ["updated_at", "2014-07-22 21:07:16.667156"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.670051"], ["updated_at", "2014-07-22 21:07:16.670051"], ["user_id", 34], ["value", 3]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.672293"], ["updated_at", "2014-07-22 21:07:16.672293"], ["user_id", 34], ["value", 4]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.674415"], ["updated_at", "2014-07-22 21:07:16.674415"], ["user_id", 34], ["value", 5]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 37]] [shard 798 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 798 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 34]] [shard 799 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 799 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (30, 31) [shard 798 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (24, 25, 26) [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.685575"], ["name", "user1"], ["updated_at", "2014-07-22 21:07:16.685575"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.687835"], ["updated_at", "2014-07-22 21:07:16.687835"], ["user_id", 38], ["value", 1]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.689645"], ["updated_at", "2014-07-22 21:07:16.689645"], ["user_id", 38], ["value", 2]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.691152"], ["name", "user2"], ["updated_at", "2014-07-22 21:07:16.691152"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.693230"], ["updated_at", "2014-07-22 21:07:16.693230"], ["user_id", 35], ["value", 3]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.695005"], ["updated_at", "2014-07-22 21:07:16.695005"], ["user_id", 35], ["value", 4]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.696766"], ["updated_at", "2014-07-22 21:07:16.696766"], ["user_id", 35], ["value", 5]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 38]] [shard 798 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 798 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 35]] [shard 799 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 799 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (32, 33) [shard 798 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (27, 28, 29) [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.706248"], ["name", "user1"], ["updated_at", "2014-07-22 21:07:16.706248"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.708593"], ["updated_at", "2014-07-22 21:07:16.708593"], ["user_id", 39], ["value", 1]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.710498"], ["updated_at", "2014-07-22 21:07:16.710498"], ["user_id", 39], ["value", 2]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.712117"], ["name", "user2"], ["updated_at", "2014-07-22 21:07:16.712117"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.714470"], ["updated_at", "2014-07-22 21:07:16.714470"], ["user_id", 36], ["value", 3]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.716315"], ["updated_at", "2014-07-22 21:07:16.716315"], ["user_id", 36], ["value", 4]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.718290"], ["updated_at", "2014-07-22 21:07:16.718290"], ["user_id", 36], ["value", 5]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 39]] [shard 798 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 798 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 36]] [shard 799 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 799 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (34, 35) [shard 798 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (30, 31, 32) [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.729577"], ["name", "user1"], ["updated_at", "2014-07-22 21:07:16.729577"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.731204"], ["name", "user2"], ["updated_at", "2014-07-22 21:07:16.731204"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.732752"], ["updated_at", "2014-07-22 21:07:16.732752"], ["user_id", 40], ["value", 1]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.734697"], ["updated_at", "2014-07-22 21:07:16.734697"], ["user_id", 7990000000000037], ["value", 3]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.736576"], ["updated_at", "2014-07-22 21:07:16.736576"], ["user_id", 7980000000000040], ["value", 2]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.738127"], ["updated_at", "2014-07-22 21:07:16.738127"], ["user_id", 37], ["value", 4]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.739498"], ["updated_at", "2014-07-22 21:07:16.739498"], ["user_id", 37], ["value", 5]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 798 master]  (0.4ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 799 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 798 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 799 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 798 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 799 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 798 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) [shard 798 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 799 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 799 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 799 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.755436"], ["name", "user1"], ["updated_at", "2014-07-22 21:07:16.755436"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.756976"], ["name", "user2"], ["updated_at", "2014-07-22 21:07:16.756976"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.758847"], ["updated_at", "2014-07-22 21:07:16.758847"], ["user_id", 41], ["value", 1]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.760776"], ["updated_at", "2014-07-22 21:07:16.760776"], ["user_id", 7990000000000038], ["value", 3]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.762752"], ["updated_at", "2014-07-22 21:07:16.762752"], ["user_id", 7980000000000041], ["value", 2]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.764177"], ["updated_at", "2014-07-22 21:07:16.764177"], ["user_id", 38], ["value", 4]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.765476"], ["updated_at", "2014-07-22 21:07:16.765476"], ["user_id", 38], ["value", 5]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 798 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 799 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 798 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 799 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 798 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 799 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 798 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [shard 798 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38) [shard 799 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 799 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38) [shard 799 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.778559"], ["name", "user1"], ["updated_at", "2014-07-22 21:07:16.778559"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.780118"], ["name", "user2"], ["updated_at", "2014-07-22 21:07:16.780118"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.781585"], ["updated_at", "2014-07-22 21:07:16.781585"], ["user_id", 42], ["value", 1]] [shard 798 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.784113"], ["updated_at", "2014-07-22 21:07:16.784113"], ["user_id", 7990000000000039], ["value", 3]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.786352"], ["updated_at", "2014-07-22 21:07:16.786352"], ["user_id", 7980000000000042], ["value", 2]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.788311"], ["updated_at", "2014-07-22 21:07:16.788311"], ["user_id", 39], ["value", 4]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.790112"], ["updated_at", "2014-07-22 21:07:16.790112"], ["user_id", 39], ["value", 5]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 798 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 799 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 798 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 799 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 798 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 799 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 798 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [shard 798 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) [shard 799 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 799 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) [shard 799 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.804759"], ["name", "user1"], ["updated_at", "2014-07-22 21:07:16.804759"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.806540"], ["name", "user2"], ["updated_at", "2014-07-22 21:07:16.806540"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.808191"], ["updated_at", "2014-07-22 21:07:16.808191"], ["user_id", 43], ["value", 1]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.810111"], ["updated_at", "2014-07-22 21:07:16.810111"], ["user_id", 7990000000000040], ["value", 3]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.812116"], ["updated_at", "2014-07-22 21:07:16.812116"], ["user_id", 7980000000000043], ["value", 2]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.813784"], ["updated_at", "2014-07-22 21:07:16.813784"], ["user_id", 40], ["value", 4]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.815174"], ["updated_at", "2014-07-22 21:07:16.815174"], ["user_id", 40], ["value", 5]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.817404"], ["updated_at", "2014-07-22 21:07:16.817404"], ["user_id", 43]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.818997"], ["updated_at", "2014-07-22 21:07:16.818997"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.821184"], ["updated_at", "2014-07-22 21:07:16.821184"], ["user_id", 44]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.827321"], ["name", "user1"], ["updated_at", "2014-07-22 21:07:16.827321"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.828895"], ["name", "user2"], ["updated_at", "2014-07-22 21:07:16.828895"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.830406"], ["updated_at", "2014-07-22 21:07:16.830406"], ["user_id", 45], ["value", 1]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.832280"], ["updated_at", "2014-07-22 21:07:16.832280"], ["user_id", 7990000000000041], ["value", 3]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.834073"], ["updated_at", "2014-07-22 21:07:16.834073"], ["user_id", 7980000000000045], ["value", 2]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.835634"], ["updated_at", "2014-07-22 21:07:16.835634"], ["user_id", 41], ["value", 4]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.837211"], ["updated_at", "2014-07-22 21:07:16.837211"], ["user_id", 41], ["value", 5]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 798 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 799 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 798 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 799 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 798 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 799 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 798 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [shard 798 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [shard 799 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 799 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [shard 799 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.851652"], ["name", "user1"], ["updated_at", "2014-07-22 21:07:16.851652"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.853314"], ["name", "user2"], ["updated_at", "2014-07-22 21:07:16.853314"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.854898"], ["updated_at", "2014-07-22 21:07:16.854898"], ["user_id", 46], ["value", 1]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.856724"], ["updated_at", "2014-07-22 21:07:16.856724"], ["user_id", 7990000000000042], ["value", 3]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.858603"], ["updated_at", "2014-07-22 21:07:16.858603"], ["user_id", 7980000000000046], ["value", 2]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.860211"], ["updated_at", "2014-07-22 21:07:16.860211"], ["user_id", 42], ["value", 4]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:16.861804"], ["updated_at", "2014-07-22 21:07:16.861804"], ["user_id", 42], ["value", 5]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 798 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 799 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 798 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 799 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 798 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 799 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 798 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (46) [shard 798 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [shard 799 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 799 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [shard 799 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (46) [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 797]] [shard 797 master]  (0.4ms) COMMIT [shard 797 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 798], ["name", "switchman_test_shard_798"]] [shard 797 master]  (0.4ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 799], ["name", "switchman_test_shard_799"]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.884417"], ["updated_at", "2014-07-22 21:07:16.884417"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.887268"], ["updated_at", "2014-07-22 21:07:16.887268"], ["user_id", 1432]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.889594"], ["updated_at", "2014-07-22 21:07:16.889594"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.892704"], ["updated_at", "2014-07-22 21:07:16.892704"], ["user_id", 47]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.894492"], ["updated_at", "2014-07-22 21:07:16.894492"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.897397"], ["updated_at", "2014-07-22 21:07:16.897397"], ["user_id", 43]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.902992"], ["updated_at", "2014-07-22 21:07:16.902992"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.905218"], ["updated_at", "2014-07-22 21:07:16.905218"], ["user_id", 1433]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.906906"], ["updated_at", "2014-07-22 21:07:16.906906"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.909399"], ["updated_at", "2014-07-22 21:07:16.909399"], ["user_id", 48]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.911009"], ["updated_at", "2014-07-22 21:07:16.911009"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.913519"], ["updated_at", "2014-07-22 21:07:16.913519"], ["user_id", 44]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.918327"], ["updated_at", "2014-07-22 21:07:16.918327"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.920529"], ["updated_at", "2014-07-22 21:07:16.920529"], ["user_id", 1434]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.922109"], ["updated_at", "2014-07-22 21:07:16.922109"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.924460"], ["updated_at", "2014-07-22 21:07:16.924460"], ["user_id", 49]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.925869"], ["updated_at", "2014-07-22 21:07:16.925869"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.928361"], ["updated_at", "2014-07-22 21:07:16.928361"], ["user_id", 45]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.932979"], ["updated_at", "2014-07-22 21:07:16.932979"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.934929"], ["updated_at", "2014-07-22 21:07:16.934929"], ["user_id", 1435]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.936488"], ["updated_at", "2014-07-22 21:07:16.936488"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.939015"], ["updated_at", "2014-07-22 21:07:16.939015"], ["user_id", 50]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.940441"], ["updated_at", "2014-07-22 21:07:16.940441"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.942807"], ["updated_at", "2014-07-22 21:07:16.942807"], ["user_id", 46]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.947347"], ["updated_at", "2014-07-22 21:07:16.947347"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.949852"], ["updated_at", "2014-07-22 21:07:16.949852"], ["user_id", 1436]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.951599"], ["updated_at", "2014-07-22 21:07:16.951599"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.954323"], ["updated_at", "2014-07-22 21:07:16.954323"], ["user_id", 51]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.955848"], ["updated_at", "2014-07-22 21:07:16.955848"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.958325"], ["updated_at", "2014-07-22 21:07:16.958325"], ["user_id", 47]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.963226"], ["updated_at", "2014-07-22 21:07:16.963226"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.965247"], ["updated_at", "2014-07-22 21:07:16.965247"], ["user_id", 1437]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.966853"], ["updated_at", "2014-07-22 21:07:16.966853"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.969267"], ["updated_at", "2014-07-22 21:07:16.969267"], ["user_id", 52]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.971210"], ["updated_at", "2014-07-22 21:07:16.971210"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.973729"], ["updated_at", "2014-07-22 21:07:16.973729"], ["user_id", 48]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 798 LIMIT 1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.981057"], ["updated_at", "2014-07-22 21:07:16.981057"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.983738"], ["updated_at", "2014-07-22 21:07:16.983738"], ["user_id", 1438]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.985273"], ["updated_at", "2014-07-22 21:07:16.985273"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.987858"], ["updated_at", "2014-07-22 21:07:16.987858"], ["user_id", 53]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.989337"], ["updated_at", "2014-07-22 21:07:16.989337"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.991820"], ["updated_at", "2014-07-22 21:07:16.991820"], ["user_id", 49]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:16.997234"], ["updated_at", "2014-07-22 21:07:16.997234"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:16.999490"], ["updated_at", "2014-07-22 21:07:16.999490"], ["user_id", 1439]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.001034"], ["updated_at", "2014-07-22 21:07:17.001034"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.003480"], ["updated_at", "2014-07-22 21:07:17.003480"], ["user_id", 54]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.005502"], ["updated_at", "2014-07-22 21:07:17.005502"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.008624"], ["updated_at", "2014-07-22 21:07:17.008624"], ["user_id", 50]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.014511"], ["updated_at", "2014-07-22 21:07:17.014511"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.017164"], ["updated_at", "2014-07-22 21:07:17.017164"], ["user_id", 1440]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.018837"], ["updated_at", "2014-07-22 21:07:17.018837"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.021382"], ["updated_at", "2014-07-22 21:07:17.021382"], ["user_id", 55]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.022943"], ["updated_at", "2014-07-22 21:07:17.022943"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.025548"], ["updated_at", "2014-07-22 21:07:17.025548"], ["user_id", 51]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.2ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.031154"], ["updated_at", "2014-07-22 21:07:17.031154"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.033425"], ["updated_at", "2014-07-22 21:07:17.033425"], ["user_id", 1441]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.035180"], ["updated_at", "2014-07-22 21:07:17.035180"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.037661"], ["updated_at", "2014-07-22 21:07:17.037661"], ["user_id", 56]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.039102"], ["updated_at", "2014-07-22 21:07:17.039102"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.041477"], ["updated_at", "2014-07-22 21:07:17.041477"], ["user_id", 52]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.046339"], ["updated_at", "2014-07-22 21:07:17.046339"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.048530"], ["updated_at", "2014-07-22 21:07:17.048530"], ["user_id", 1442]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.050191"], ["updated_at", "2014-07-22 21:07:17.050191"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.052580"], ["updated_at", "2014-07-22 21:07:17.052580"], ["user_id", 57]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.053992"], ["updated_at", "2014-07-22 21:07:17.053992"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.056498"], ["updated_at", "2014-07-22 21:07:17.056498"], ["user_id", 53]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.061538"], ["updated_at", "2014-07-22 21:07:17.061538"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.063610"], ["updated_at", "2014-07-22 21:07:17.063610"], ["user_id", 1443]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.065237"], ["updated_at", "2014-07-22 21:07:17.065237"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.067597"], ["updated_at", "2014-07-22 21:07:17.067597"], ["user_id", 58]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.068994"], ["updated_at", "2014-07-22 21:07:17.068994"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.071453"], ["updated_at", "2014-07-22 21:07:17.071453"], ["user_id", 54]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.2ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.076209"], ["updated_at", "2014-07-22 21:07:17.076209"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.078382"], ["updated_at", "2014-07-22 21:07:17.078382"], ["user_id", 1444]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.080338"], ["updated_at", "2014-07-22 21:07:17.080338"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.082799"], ["updated_at", "2014-07-22 21:07:17.082799"], ["user_id", 59]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.084329"], ["updated_at", "2014-07-22 21:07:17.084329"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.086908"], ["updated_at", "2014-07-22 21:07:17.086908"], ["user_id", 55]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.092316"], ["updated_at", "2014-07-22 21:07:17.092316"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.094508"], ["updated_at", "2014-07-22 21:07:17.094508"], ["user_id", 1445]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.096023"], ["updated_at", "2014-07-22 21:07:17.096023"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.098388"], ["updated_at", "2014-07-22 21:07:17.098388"], ["user_id", 60]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.099771"], ["updated_at", "2014-07-22 21:07:17.099771"]] [shard 799 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.102718"], ["updated_at", "2014-07-22 21:07:17.102718"], ["user_id", 56]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.109381"], ["updated_at", "2014-07-22 21:07:17.109381"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.112105"], ["updated_at", "2014-07-22 21:07:17.112105"], ["user_id", 1446]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.113946"], ["updated_at", "2014-07-22 21:07:17.113946"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.116634"], ["updated_at", "2014-07-22 21:07:17.116634"], ["user_id", 61]] [shard 798 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.118254"], ["updated_at", "2014-07-22 21:07:17.118254"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.121208"], ["updated_at", "2014-07-22 21:07:17.121208"], ["user_id", 57]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.125981"], ["updated_at", "2014-07-22 21:07:17.125981"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.132639"], ["updated_at", "2014-07-22 21:07:17.132639"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.135172"], ["updated_at", "2014-07-22 21:07:17.135172"], ["user_id", 1447]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.136879"], ["updated_at", "2014-07-22 21:07:17.136879"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.139430"], ["updated_at", "2014-07-22 21:07:17.139430"], ["user_id", 62]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.140874"], ["updated_at", "2014-07-22 21:07:17.140874"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.143297"], ["updated_at", "2014-07-22 21:07:17.143297"], ["user_id", 58]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.145681"], ["parent_id", 1447], ["updated_at", "2014-07-22 21:07:17.145681"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.147774"], ["parent_id", 1448], ["updated_at", "2014-07-22 21:07:17.147774"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1448]] [shard 797 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1447]] [shard 797 master] User Load (0.2ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 [["parent_id", 1447]] [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 797]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 798], ["name", "switchman_test_shard_798"]] [shard 797 master]  (0.2ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 799], ["name", "switchman_test_shard_799"]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.162484"], ["updated_at", "2014-07-22 21:07:17.162484"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.167176"], ["updated_at", "2014-07-22 21:07:17.167176"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 798 LIMIT 1 [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 799 LIMIT 1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.176036"], ["updated_at", "2014-07-22 21:07:17.176036"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-07-22 21:07:17.181387"], ["owner_id", 1451], ["owner_type", "User"], ["updated_at", "2014-07-22 21:07:17.181387"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master] Feature Load (0.2ms) SELECT "features"."owner_id" FROM "features" WHERE "features"."id" = 72 ORDER BY "features"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master] SQL (15.0ms) DELETE FROM "switchman_shards" [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 797 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 797]] [shard 797 master]  (0.5ms) COMMIT [shard 797 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 798], ["name", "switchman_test_shard_798"]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 799], ["name", "switchman_test_shard_799"]] [shard 797 master]  (0.5ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.2ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.3ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.231928"], ["updated_at", "2014-07-22 21:07:17.231928"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 34]] [shard 797 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 34]] [shard 797 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 34 ORDER BY "mirror_users"."id" ASC LIMIT 1 [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 797]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 798], ["name", "switchman_test_shard_798"]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 799], ["name", "switchman_test_shard_799"]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.247574"], ["updated_at", "2014-07-22 21:07:17.247574"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 798 LIMIT 1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.254597"], ["updated_at", "2014-07-22 21:07:17.254597"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.256402"], ["updated_at", "2014-07-22 21:07:17.256402"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.259106"], ["updated_at", "2014-07-22 21:07:17.259106"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.271278"], ["updated_at", "2014-07-22 21:07:17.271278"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.273239"], ["updated_at", "2014-07-22 21:07:17.273239"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.278371"], ["updated_at", "2014-07-22 21:07:17.278371"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 797]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 798], ["name", "switchman_test_shard_798"]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 799], ["name", "switchman_test_shard_799"]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.295690"], ["updated_at", "2014-07-22 21:07:17.295690"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.297467"], ["updated_at", "2014-07-22 21:07:17.297467"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.299247"], ["updated_at", "2014-07-22 21:07:17.299247"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 798 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.346843"], ["updated_at", "2014-07-22 21:07:17.346843"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 797 master] SQL (0.1ms) DELETE FROM "users" [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.351990"], ["updated_at", "2014-07-22 21:07:17.351990"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 797 master] SQL (0.1ms) DELETE FROM "users" [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.355894"], ["updated_at", "2014-07-22 21:07:17.355894"]] [shard 797 master]  (0.4ms) COMMIT [shard 797 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 797 master] SQL (0.4ms) DELETE FROM "users" [shard 797 master] SQL (0.1ms) DELETE FROM "users" [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.360078"], ["updated_at", "2014-07-22 21:07:17.360078"]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 797 master] SQL (0.3ms) DELETE FROM "users" [shard 797 master] SQL (0.1ms) DELETE FROM "users" [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.363979"], ["updated_at", "2014-07-22 21:07:17.363979"]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.365567"], ["name", "a"], ["updated_at", "2014-07-22 21:07:17.365567"]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1460]] [shard 797 master] CACHE (0.0ms) 797::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1460]] CACHE (0.0ms) 797::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1460]]  (0.1ms) BEGIN [shard 797 master] SQL (0.2ms) UPDATE "users" SET "name" = $1, "updated_at" = $2 WHERE "users"."id" = 1460 [["name", "b"], ["updated_at", "2014-07-22 21:07:17.368826"]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1460]] [shard 797 master] CACHE (0.0ms) 797::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1460]] SQL (0.3ms) DELETE FROM "users" [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.375721"], ["updated_at", "2014-07-22 21:07:17.375721"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.381016"], ["updated_at", "2014-07-22 21:07:17.381016"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.386247"], ["updated_at", "2014-07-22 21:07:17.386247"]] [shard 797 master]  (0.4ms) COMMIT [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.392359"], ["updated_at", "2014-07-22 21:07:17.392359"]] [shard 797 master]  (0.4ms) COMMIT [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.2ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.428077"], ["updated_at", "2014-07-22 21:07:17.428077"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 797 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-22 21:07:17.430001' [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.434669"], ["updated_at", "2014-07-22 21:07:17.434669"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 797 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-07-22 21:07:17.436261' [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.438490"], ["updated_at", "2014-07-22 21:07:17.438490"]] [shard 797 master]  (0.2ms) COMMIT [shard 797 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 797 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-07-22 21:07:17.440464' [shard 797 master] SQL (0.3ms) DELETE FROM "users" [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.443023"], ["updated_at", "2014-07-22 21:07:17.443023"]] [shard 797 master]  (0.2ms) COMMIT [shard 797 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 797 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-07-22 21:07:17.444681' [shard 797 master] SQL (0.2ms) DELETE FROM "users" [shard 797 master] SQL (0.2ms) DELETE FROM "switchman_shards" [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 797 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 797]] [shard 797 master]  (0.2ms) COMMIT [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 798], ["name", "switchman_test_shard_798"]] [shard 797 master]  (0.2ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 799], ["name", "switchman_test_shard_799"]] [shard 797 master]  (0.2ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 798 LIMIT 1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '11' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "11"], ["name", "public"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_805 [shard 805 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 805 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 805 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 805 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 805 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 805 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 805 deploy]  (0.3ms) COMMIT [shard 805 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 805 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 805 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 805 deploy]  (0.4ms) COMMIT [shard 805 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 805 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 805 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 805 deploy]  (0.4ms) COMMIT [shard 805 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 805 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 805 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 805 deploy]  (0.4ms) COMMIT [shard 805 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 805 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 805 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 805 deploy]  (0.4ms) COMMIT [shard 805 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 805 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 805 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 805 deploy]  (0.3ms) COMMIT [shard 805 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 805 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 805 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 805 deploy]  (0.5ms) COMMIT [shard 805 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 805 [["name", "switchman_test_shard_805"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) BEGIN [shard 805 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.553240"], ["updated_at", "2014-07-22 21:07:17.553240"]] [shard 805 master]  (0.3ms) COMMIT [shard 805 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 805 master]  (5.5ms) DROP SCHEMA switchman_test_shard_805 CASCADE [shard 805 deploy]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 805 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 806]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 807]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 807 LIMIT 1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10799 LIMIT 1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 799 LIMIT 1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "13"], ["name", "non_existent_shard"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "13"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 808 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.5ms) SELECT COUNT(*) FROM "users" [shard 809 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "14"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "15"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "16"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "17"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "18"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "19"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 797 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 797]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 798], ["name", "switchman_test_shard_798"]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 799], ["name", "switchman_test_shard_799"]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (798,799)) AND "switchman_shards"."id" IN (797, 798) [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 797]] [shard 797 master]  (0.2ms) COMMIT [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 798], ["name", "switchman_test_shard_798"]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 799], ["name", "switchman_test_shard_799"]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.2ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.870251"], ["name", "user1"], ["updated_at", "2014-07-22 21:07:17.870251"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.872470"], ["name", "user2"], ["updated_at", "2014-07-22 21:07:17.872470"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 68 ORDER BY "users"."id" ASC LIMIT 1 [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.879589"], ["name", "user1"], ["updated_at", "2014-07-22 21:07:17.879589"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.881592"], ["name", "user2"], ["updated_at", "2014-07-22 21:07:17.881592"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 798 LIMIT 1 [shard 797 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1470) [shard 797 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (69) [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.890777"], ["name", "user1"], ["updated_at", "2014-07-22 21:07:17.890777"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.892506"], ["name", "user2"], ["updated_at", "2014-07-22 21:07:17.892506"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 70 [shard 798 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1471]] [shard 797 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 70]] [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.900619"], ["name", "user1"], ["updated_at", "2014-07-22 21:07:17.900619"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.902309"], ["name", "user2"], ["updated_at", "2014-07-22 21:07:17.902309"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (1472) [shard 797 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (71) [shard 798 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1472]] [shard 797 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 71]] [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.911414"], ["name", "user1"], ["updated_at", "2014-07-22 21:07:17.911414"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.913042"], ["name", "user2"], ["updated_at", "2014-07-22 21:07:17.913042"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 797 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 797]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 798], ["name", "switchman_test_shard_798"]] [shard 797 master]  (0.4ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 799], ["name", "switchman_test_shard_799"]] [shard 797 master]  (0.4ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.926871"], ["updated_at", "2014-07-22 21:07:17.926871"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 798 LIMIT 1 [shard 797 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 73]] [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.934954"], ["updated_at", "2014-07-22 21:07:17.934954"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 74 LIMIT 1 [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.2ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.942013"], ["updated_at", "2014-07-22 21:07:17.942013"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) LIMIT 1 [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.948517"], ["updated_at", "2014-07-22 21:07:17.948517"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 76]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 7980000000000076 ORDER BY "users"."id" ASC LIMIT 1 [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.955568"], ["updated_at", "2014-07-22 21:07:17.955568"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 77 LIMIT 1 [shard 798 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 798 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:17.961727"], ["updated_at", "2014-07-22 21:07:17.961727"]] [shard 798 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 798 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-07-22 21:07:17.963871"], ["name", "multi-shard exists"], ["updated_at", "2014-07-22 21:07:17.963871"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 797 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 797 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 798 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 798 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 797 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 797]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 798], ["name", "switchman_test_shard_798"]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 799], ["name", "switchman_test_shard_799"]] [shard 797 master]  (0.2ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "20"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "20"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 797]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 798], ["name", "switchman_test_shard_798"]] [shard 797 master]  (0.2ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 799], ["name", "switchman_test_shard_799"]] [shard 797 master]  (0.2ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.2ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 797]] [shard 797 master]  (0.2ms) COMMIT [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 798], ["name", "switchman_test_shard_798"]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 799], ["name", "switchman_test_shard_799"]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:18.039490"], ["updated_at", "2014-07-22 21:07:18.039490"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "21"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 797 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "22"]] [shard 797 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 797 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master] SQL (0.7ms) DELETE FROM "switchman_shards" [shard 797 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 797 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 797 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 797]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 798], ["name", "switchman_test_shard_798"]] [shard 797 master]  (0.2ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 799], ["name", "switchman_test_shard_799"]] [shard 797 master]  (0.2ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 797]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 798], ["name", "switchman_test_shard_798"]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 797 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 799], ["name", "switchman_test_shard_799"]] [shard 797 master]  (0.3ms) COMMIT [shard 797 master]  (0.1ms) BEGIN [shard 799 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:19.300905"], ["updated_at", "2014-07-22 21:07:19.300905"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) BEGIN [shard 797 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 798]] [shard 797 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 799]] [shard 797 master]  (0.1ms) SAVEPOINT active_record_1 [shard 799 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 799 master]  (0.1ms) SAVEPOINT active_record_2 [shard 799 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-07-22 21:07:19.306787"], ["updated_at", "2014-07-22 21:07:19.306787"]] [shard 799 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 799 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 799 master]  (0.1ms) ROLLBACK [shard 797 master]  (0.1ms) SELECT COUNT(*) FROM "users" [shard 799 master]  (0.1ms) ROLLBACK [shard 799 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 797 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 797 master]  (5.2ms) DROP SCHEMA switchman_test_shard_798 CASCADE [shard 798 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 798]]  (0.1ms) COMMIT  (5.7ms) DROP SCHEMA switchman_test_shard_799 CASCADE [shard 799 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 799]]  (0.1ms) COMMIT  (2.2ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (28.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (31.7ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.3ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (1.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (1.6ms) CREATE SCHEMA switchman_test_shard_821 [shard 821 deploy]  (40.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 821 deploy]  (2.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 821 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 821 deploy] Migrating to CreateUsers (20130403132607)  (36.6ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 821 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 821 deploy] Migrating to CreateAppendages (20130411202442)  (31.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 821 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 821 deploy] Migrating to CreateMirrorUsers (20130411202551)  (17.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 821 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 821 deploy] Migrating to CreateDigits (20131022202028)  (33.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 821 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 821 deploy] Migrating to CreateFeatures (20131206172923)  (18.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 821 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 821 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 821 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 821 deploy] Migrating to CreateRoots (20140219183820)  (18.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 821 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 821 deploy] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 821 [["name", "switchman_test_shard_821"]] [shard 820 master]  (1.2ms) COMMIT [shard 820 master] Switchman::Shard Load (1.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 820 master]  (0.1ms) BEGIN [shard 820 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 820 master]  (0.4ms) COMMIT [shard 820 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_822 [shard 822 deploy]  (2.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 822 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 822 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 822 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 822 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 822 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 822 deploy]  (0.3ms) COMMIT [shard 822 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 822 deploy]  (2.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 822 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 822 deploy]  (0.4ms) COMMIT [shard 822 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 822 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 822 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 822 deploy]  (0.3ms) COMMIT [shard 822 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 822 deploy]  (3.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 822 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 822 deploy]  (0.4ms) COMMIT [shard 822 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 822 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 822 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 822 deploy]  (0.4ms) COMMIT [shard 822 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 822 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 822 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 822 deploy]  (0.3ms) COMMIT [shard 822 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 822 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 822 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 822 deploy]  (0.3ms) COMMIT [shard 822 deploy]  (0.1ms) BEGIN [shard 820 master] SQL (0.1ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 822 [["name", "switchman_test_shard_822"]] [shard 820 master]  (0.3ms) COMMIT [shard 820 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 820 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 820 master]  (0.1ms) BEGIN [shard 820 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 820 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 820]] [shard 820 master]  (0.3ms) COMMIT [shard 820 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 820 master]  (0.1ms) BEGIN [shard 820 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 821], ["name", "switchman_test_shard_821"]] [shard 820 master]  (0.3ms) COMMIT [shard 820 master]  (0.1ms) BEGIN [shard 820 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 822], ["name", "switchman_test_shard_822"]] [shard 820 master]  (0.3ms) COMMIT [shard 820 master]  (0.1ms) BEGIN [shard 820 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 820 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 821]] [shard 820 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 822]] [shard 820 master]  (0.1ms) BEGIN [shard 822 master]  (0.1ms) SAVEPOINT active_record_1 [shard 820 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 820 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 820 master]  (0.1ms) SAVEPOINT active_record_1 [shard 820 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 820 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 820 master]  (0.2ms) ROLLBACK [shard 822 master]  (0.1ms) ROLLBACK [shard 820 master]  (0.1ms) BEGIN [shard 820 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 820 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 821]] [shard 820 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 822]] [shard 820 master]  (0.1ms) BEGIN [shard 822 master]  (0.2ms) ROLLBACK [shard 822 master]  (0.2ms) ROLLBACK [shard 820 master]  (0.1ms) BEGIN [shard 820 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 820 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 821]] [shard 820 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 822]] [shard 820 master]  (0.1ms) BEGIN [shard 822 master]  (0.1ms) ROLLBACK [shard 822 master]  (0.1ms) ROLLBACK [shard 820 master] SQL (19.8ms) DELETE FROM "switchman_shards" [shard 820 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 820 master]  (7.9ms) DROP SCHEMA switchman_test_shard_821 CASCADE [shard 821 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 821]]  (0.1ms) COMMIT  (4.7ms) DROP SCHEMA switchman_test_shard_822 CASCADE [shard 822 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 822]]  (0.1ms) COMMIT  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.8ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (3.5ms) COMMIT Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_826 [shard 826 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 826 deploy]  (8.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 826 deploy] ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 826 deploy] Migrating to CreateUsers (20130403132607)  (4.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 826 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 826 deploy] Migrating to CreateAppendages (20130411202442)  (4.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 826 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 826 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 826 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 826 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 826 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 826 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 826 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 826 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 826 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 826 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 826 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 826 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 826 [["name", "switchman_test_shard_826"]] [shard 825 master]  (0.8ms) COMMIT [shard 825 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 825 master]  (0.1ms) BEGIN [shard 825 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 825 master]  (0.2ms) COMMIT [shard 825 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_827 [shard 827 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 827 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 827 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 827 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 827 deploy]  (2.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 827 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 827 deploy]  (0.3ms) COMMIT [shard 827 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 827 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 827 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 827 deploy]  (0.3ms) COMMIT [shard 827 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 827 deploy]  (2.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 827 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 827 deploy]  (0.3ms) COMMIT [shard 827 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 827 deploy]  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 827 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 827 deploy]  (0.3ms) COMMIT [shard 827 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 827 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 827 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 827 deploy]  (0.3ms) COMMIT [shard 827 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 827 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 827 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 827 deploy]  (0.3ms) COMMIT [shard 827 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 827 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 827 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 827 deploy]  (0.3ms) COMMIT [shard 827 deploy]  (0.1ms) BEGIN [shard 825 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 827 [["name", "switchman_test_shard_827"]] [shard 825 master]  (0.3ms) COMMIT [shard 825 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 825 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 825 master]  (0.1ms) BEGIN [shard 825 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 825 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 825]] [shard 825 master]  (0.3ms) COMMIT [shard 825 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 825 master]  (0.1ms) BEGIN [shard 825 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 826], ["name", "switchman_test_shard_826"]] [shard 825 master]  (0.2ms) COMMIT [shard 825 master]  (0.1ms) BEGIN [shard 825 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 827], ["name", "switchman_test_shard_827"]] [shard 825 master]  (0.3ms) COMMIT [shard 825 master]  (0.1ms) BEGIN [shard 825 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 825 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 826]] [shard 825 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 827]] [shard 825 master]  (0.1ms) BEGIN [shard 827 master]  (0.1ms) ROLLBACK [shard 827 master]  (0.1ms) ROLLBACK [shard 825 master]  (0.1ms) BEGIN [shard 825 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 825 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 826]] [shard 825 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 827]] [shard 825 master]  (0.1ms) BEGIN [shard 827 master]  (0.1ms) SAVEPOINT active_record_1 [shard 825 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 825 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 825 master]  (0.1ms) SAVEPOINT active_record_1 [shard 825 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 825 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 825 master]  (0.2ms) ROLLBACK [shard 827 master]  (0.1ms) ROLLBACK [shard 825 master]  (0.1ms) BEGIN [shard 825 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 825 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 826]] [shard 825 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 827]] [shard 825 master]  (0.1ms) BEGIN [shard 827 master]  (0.1ms) ROLLBACK [shard 827 master]  (0.1ms) ROLLBACK [shard 825 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 825 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 825 master]  (4.7ms) DROP SCHEMA switchman_test_shard_826 CASCADE [shard 826 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 826]]  (0.1ms) COMMIT  (5.7ms) DROP SCHEMA switchman_test_shard_827 CASCADE [shard 827 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 827]]  (0.2ms) COMMIT  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (6.6ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_831 [shard 831 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 831 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 831 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 831 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 831 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 831 deploy] Migrating to CreateAppendages (20130411202442)  (2.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 831 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 831 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 831 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 831 deploy] Migrating to CreateDigits (20131022202028)  (4.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 831 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 831 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 831 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 831 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 831 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 831 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 831 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 831 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 831 [["name", "switchman_test_shard_831"]] [shard 830 master]  (0.7ms) COMMIT [shard 830 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 830 master]  (0.1ms) BEGIN [shard 830 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 830 master]  (0.2ms) COMMIT [shard 830 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_832 [shard 832 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 832 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 832 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 832 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 832 deploy]  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 832 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 832 deploy]  (0.3ms) COMMIT [shard 832 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 832 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 832 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 832 deploy]  (0.4ms) COMMIT [shard 832 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 832 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 832 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 832 deploy]  (0.4ms) COMMIT [shard 832 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 832 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 832 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 832 deploy]  (0.3ms) COMMIT [shard 832 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 832 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 832 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 832 deploy]  (0.4ms) COMMIT [shard 832 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 832 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 832 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 832 deploy]  (0.3ms) COMMIT [shard 832 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 832 deploy]  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 832 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 832 deploy]  (0.3ms) COMMIT [shard 832 deploy]  (0.1ms) BEGIN [shard 830 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 832 [["name", "switchman_test_shard_832"]] [shard 830 master]  (0.4ms) COMMIT [shard 830 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 830 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 830 master]  (0.1ms) BEGIN [shard 830 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 830 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 830]] [shard 830 master]  (0.3ms) COMMIT [shard 830 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 830 master]  (0.1ms) BEGIN [shard 830 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 831], ["name", "switchman_test_shard_831"]] [shard 830 master]  (0.4ms) COMMIT [shard 830 master]  (0.1ms) BEGIN [shard 830 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 832], ["name", "switchman_test_shard_832"]] [shard 830 master]  (0.4ms) COMMIT [shard 830 master]  (0.1ms) BEGIN [shard 830 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 830 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 831]] [shard 830 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 832]] [shard 830 master]  (0.1ms) BEGIN [shard 832 master]  (0.1ms) ROLLBACK [shard 832 master]  (0.1ms) ROLLBACK [shard 830 master]  (0.1ms) BEGIN [shard 830 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 830 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 831]] [shard 830 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 832]] [shard 830 master]  (0.1ms) BEGIN [shard 832 master]  (0.1ms) ROLLBACK [shard 832 master]  (0.1ms) ROLLBACK [shard 830 master]  (0.1ms) BEGIN [shard 830 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 830 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 831]] [shard 830 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 832]] [shard 830 master]  (0.1ms) BEGIN [shard 832 master]  (0.1ms) SAVEPOINT active_record_1 [shard 830 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 830 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 830 master]  (0.1ms) SAVEPOINT active_record_1 [shard 830 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 830 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 830 master]  (0.2ms) ROLLBACK [shard 832 master]  (0.2ms) ROLLBACK [shard 830 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 830 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 830 master]  (4.7ms) DROP SCHEMA switchman_test_shard_831 CASCADE [shard 831 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 831]]  (0.1ms) COMMIT  (6.3ms) DROP SCHEMA switchman_test_shard_832 CASCADE [shard 832 deploy]  (0.3ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 832]]  (0.1ms) COMMIT  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (6.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_836 [shard 836 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 836 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 836 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 836 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 836 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 836 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 836 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 836 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 836 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 836 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 836 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 836 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 836 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 836 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 836 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 836 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 836 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 836 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 836 [["name", "switchman_test_shard_836"]] [shard 835 master]  (0.7ms) COMMIT [shard 835 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 835 master]  (0.1ms) BEGIN [shard 835 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 835 master]  (0.3ms) COMMIT [shard 835 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_837 [shard 837 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 837 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 837 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 837 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 837 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 837 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 837 deploy]  (0.4ms) COMMIT [shard 837 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 837 deploy]  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 837 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 837 deploy]  (0.3ms) COMMIT [shard 837 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 837 deploy]  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 837 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 837 deploy]  (0.4ms) COMMIT [shard 837 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 837 deploy]  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 837 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 837 deploy]  (0.4ms) COMMIT [shard 837 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 837 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 837 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 837 deploy]  (0.4ms) COMMIT [shard 837 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 837 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 837 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 837 deploy]  (0.3ms) COMMIT [shard 837 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 837 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 837 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 837 deploy]  (0.3ms) COMMIT [shard 837 deploy]  (0.1ms) BEGIN [shard 835 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 837 [["name", "switchman_test_shard_837"]] [shard 835 master]  (0.3ms) COMMIT [shard 835 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 835 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 835 master]  (0.1ms) BEGIN [shard 835 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 835 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 835]] [shard 835 master]  (0.3ms) COMMIT [shard 835 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 835 master]  (0.1ms) BEGIN [shard 835 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 836], ["name", "switchman_test_shard_836"]] [shard 835 master]  (0.3ms) COMMIT [shard 835 master]  (0.1ms) BEGIN [shard 835 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 837], ["name", "switchman_test_shard_837"]] [shard 835 master]  (0.3ms) COMMIT [shard 835 master]  (0.1ms) BEGIN [shard 835 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 835 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 836]] [shard 835 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 837]] [shard 835 master]  (0.1ms) BEGIN [shard 837 master]  (0.1ms) ROLLBACK [shard 837 master]  (0.1ms) ROLLBACK [shard 835 master]  (0.1ms) BEGIN [shard 835 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 835 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 836]] [shard 835 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 837]] [shard 835 master]  (0.1ms) BEGIN [shard 837 master]  (0.1ms) SAVEPOINT active_record_1 [shard 835 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 835 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 835 master]  (0.1ms) SAVEPOINT active_record_1 [shard 835 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 835 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 835 master]  (0.1ms) ROLLBACK [shard 837 master]  (0.1ms) ROLLBACK [shard 835 master]  (0.1ms) BEGIN [shard 835 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 835 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 836]] [shard 835 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 837]] [shard 835 master]  (0.2ms) BEGIN [shard 837 master]  (0.2ms) ROLLBACK [shard 837 master]  (0.1ms) ROLLBACK [shard 835 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 835 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 835 master]  (4.5ms) DROP SCHEMA switchman_test_shard_836 CASCADE [shard 836 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 836]]  (0.1ms) COMMIT  (6.1ms) DROP SCHEMA switchman_test_shard_837 CASCADE [shard 837 deploy]  (0.3ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 837]]  (0.1ms) COMMIT  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.6ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.2ms) CREATE SCHEMA switchman_test_shard_841 [shard 841 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 841 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 841 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 841 deploy] Migrating to CreateUsers (20130403132607)  (3.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 841 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 841 deploy] Migrating to CreateAppendages (20130411202442)  (2.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 841 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 841 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 841 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 841 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 841 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 841 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 841 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 841 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 841 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 841 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 841 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 841 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 841 [["name", "switchman_test_shard_841"]] [shard 840 master]  (0.6ms) COMMIT [shard 840 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 840 master]  (0.1ms) BEGIN [shard 840 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 840 master]  (0.2ms) COMMIT [shard 840 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_842 [shard 842 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 842 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 842 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 842 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 842 deploy]  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 842 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 842 deploy]  (0.3ms) COMMIT [shard 842 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 842 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 842 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 842 deploy]  (0.3ms) COMMIT [shard 842 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 842 deploy]  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 842 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 842 deploy]  (0.3ms) COMMIT [shard 842 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 842 deploy]  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 842 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 842 deploy]  (0.3ms) COMMIT [shard 842 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 842 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 842 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 842 deploy]  (0.3ms) COMMIT [shard 842 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 842 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 842 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 842 deploy]  (0.4ms) COMMIT [shard 842 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 842 deploy]  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 842 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 842 deploy]  (0.3ms) COMMIT [shard 842 deploy]  (0.1ms) BEGIN [shard 840 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 842 [["name", "switchman_test_shard_842"]] [shard 840 master]  (0.2ms) COMMIT [shard 840 master] SQL (0.2ms) DELETE FROM "switchman_shards" [shard 840 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 840 master]  (0.1ms) BEGIN [shard 840 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 840 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 840]] [shard 840 master]  (0.3ms) COMMIT [shard 840 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 840 master]  (0.1ms) BEGIN [shard 840 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 841], ["name", "switchman_test_shard_841"]] [shard 840 master]  (0.3ms) COMMIT [shard 840 master]  (0.1ms) BEGIN [shard 840 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 842], ["name", "switchman_test_shard_842"]] [shard 840 master]  (0.3ms) COMMIT [shard 840 master]  (0.1ms) BEGIN [shard 840 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 840 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 841]] [shard 840 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 842]] [shard 840 master]  (0.1ms) BEGIN [shard 842 master]  (0.1ms) SAVEPOINT active_record_1 [shard 840 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 840 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 840 master]  (0.1ms) SAVEPOINT active_record_1 [shard 840 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 840 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 840 master]  (0.2ms) ROLLBACK [shard 842 master]  (0.1ms) ROLLBACK [shard 840 master]  (0.1ms) BEGIN [shard 840 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 840 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 841]] [shard 840 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 842]] [shard 840 master]  (0.1ms) BEGIN [shard 842 master]  (0.1ms) ROLLBACK [shard 842 master]  (0.1ms) ROLLBACK [shard 840 master]  (0.1ms) BEGIN [shard 840 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 840 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 841]] [shard 840 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 842]] [shard 840 master]  (0.1ms) BEGIN [shard 842 master]  (0.1ms) ROLLBACK [shard 842 master]  (0.1ms) ROLLBACK [shard 840 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 840 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 840 master]  (5.2ms) DROP SCHEMA switchman_test_shard_841 CASCADE [shard 841 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 841]]  (0.1ms) COMMIT  (6.0ms) DROP SCHEMA switchman_test_shard_842 CASCADE [shard 842 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 842]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_846 [shard 846 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 846 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 846 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 846 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 846 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 846 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 846 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 846 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 846 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 846 deploy] Migrating to CreateDigits (20131022202028)  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 846 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 846 deploy] Migrating to CreateFeatures (20131206172923)  (1.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 846 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 846 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 846 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 846 deploy] Migrating to CreateRoots (20140219183820)  (3.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 846 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 846 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_846' WHERE "switchman_shards"."id" = 846 [shard 845 master]  (1.3ms) COMMIT [shard 845 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 845 master]  (0.1ms) BEGIN [shard 845 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 845 master]  (0.3ms) COMMIT [shard 845 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_847 [shard 847 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 847 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 847 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 847 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 847 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 847 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 847 deploy]  (0.3ms) COMMIT [shard 847 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 847 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 847 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 847 deploy]  (0.3ms) COMMIT [shard 847 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 847 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 847 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 847 deploy]  (0.3ms) COMMIT [shard 847 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 847 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 847 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 847 deploy]  (0.2ms) COMMIT [shard 847 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 847 deploy]  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 847 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 847 deploy]  (0.3ms) COMMIT [shard 847 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 847 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 847 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 847 deploy]  (0.2ms) COMMIT [shard 847 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) BEGIN [shard 847 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 847 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 847 deploy]  (0.3ms) COMMIT [shard 847 deploy]  (0.1ms) BEGIN [shard 845 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_847' WHERE "switchman_shards"."id" = 847 [shard 845 master]  (0.3ms) COMMIT [shard 845 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 845 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 845 master]  (0.1ms) BEGIN [shard 845 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 845 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 845], ["name", nil]] [shard 845 master]  (0.2ms) COMMIT [shard 845 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 845 master]  (0.0ms) BEGIN [shard 845 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 846], ["name", "switchman_test_shard_846"]] [shard 845 master]  (0.2ms) COMMIT [shard 845 master]  (0.0ms) BEGIN [shard 845 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 847], ["name", "switchman_test_shard_847"]] [shard 845 master]  (0.2ms) COMMIT [shard 845 master]  (0.0ms) BEGIN [shard 845 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 845 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 846]] [shard 845 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 847]] [shard 845 master]  (0.1ms) BEGIN [shard 847 master]  (0.1ms) ROLLBACK [shard 847 master]  (0.1ms) ROLLBACK [shard 845 master]  (0.1ms) BEGIN [shard 845 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 845 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 846]] [shard 845 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 847]] [shard 845 master]  (0.0ms) BEGIN [shard 847 master]  (0.1ms) SAVEPOINT active_record_1 [shard 845 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 845 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 845 master]  (0.0ms) SAVEPOINT active_record_1 [shard 845 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 845 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 845 master]  (0.1ms) ROLLBACK [shard 847 master]  (0.1ms) ROLLBACK [shard 845 master]  (0.1ms) BEGIN [shard 845 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 845 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 846]] [shard 845 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 847]] [shard 845 master]  (0.1ms) BEGIN [shard 847 master]  (0.1ms) ROLLBACK [shard 847 master]  (0.1ms) ROLLBACK [shard 845 master] SQL (9.7ms) DELETE FROM "switchman_shards" [shard 845 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 845 master]  (4.8ms) DROP SCHEMA switchman_test_shard_846 CASCADE [shard 846 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 846]]  (0.1ms) COMMIT  (6.3ms) DROP SCHEMA switchman_test_shard_847 CASCADE [shard 847 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 847]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (8.6ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (1.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (2.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.3ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (1.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (1.6ms) CREATE SCHEMA switchman_test_shard_851 [shard 851 deploy]  (10.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 851 deploy]  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 851 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 851 deploy] Migrating to CreateUsers (20130403132607)  (31.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 851 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 851 deploy] Migrating to CreateAppendages (20130411202442)  (29.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 851 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 851 deploy] Migrating to CreateMirrorUsers (20130411202551)  (7.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 851 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 851 deploy] Migrating to CreateDigits (20131022202028)  (13.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 851 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 851 deploy] Migrating to CreateFeatures (20131206172923)  (7.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 851 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 851 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 851 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 851 deploy] Migrating to CreateRoots (20140219183820)  (7.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 851 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 851 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_851' WHERE "switchman_shards"."id" = 851 [shard 850 master]  (7.2ms) COMMIT [shard 850 master] Switchman::Shard Load (5.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 850 master]  (0.1ms) BEGIN [shard 850 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 850 master]  (0.2ms) COMMIT [shard 850 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_852 [shard 852 deploy]  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 852 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 852 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 852 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 852 deploy]  (3.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 852 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 852 deploy]  (0.6ms) COMMIT [shard 852 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 852 deploy]  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 852 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 852 deploy]  (0.3ms) COMMIT [shard 852 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 852 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 852 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 852 deploy]  (0.3ms) COMMIT [shard 852 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 852 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 852 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 852 deploy]  (0.3ms) COMMIT [shard 852 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 852 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 852 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 852 deploy]  (0.3ms) COMMIT [shard 852 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 852 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 852 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 852 deploy]  (0.3ms) COMMIT [shard 852 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 852 deploy]  (2.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 852 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 852 deploy]  (0.3ms) COMMIT [shard 852 deploy]  (0.1ms) BEGIN [shard 850 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_852' WHERE "switchman_shards"."id" = 852 [shard 850 master]  (0.3ms) COMMIT [shard 850 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 850 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 850 master]  (0.1ms) BEGIN [shard 850 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 850 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 850], ["name", nil]] [shard 850 master]  (0.2ms) COMMIT [shard 850 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 850 master]  (0.0ms) BEGIN [shard 850 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 851], ["name", "switchman_test_shard_851"]] [shard 850 master]  (0.2ms) COMMIT [shard 850 master]  (0.0ms) BEGIN [shard 850 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 852], ["name", "switchman_test_shard_852"]] [shard 850 master]  (0.2ms) COMMIT [shard 850 master]  (0.1ms) BEGIN [shard 850 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 850 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 851]] [shard 850 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 852]] [shard 850 master]  (0.1ms) BEGIN [shard 852 master]  (0.0ms) SAVEPOINT active_record_1 [shard 851 master] SQL (8.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 20 Aug 2014 19:11:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 20 Aug 2014 19:11:28 UTC +00:00]] [shard 851 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 851 master]  (0.1ms) ROLLBACK [shard 852 master]  (0.1ms) ROLLBACK [shard 851 master] SQL (10.9ms) DELETE FROM "switchman_shards" [shard 850 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 850 master]  (11.1ms) DROP SCHEMA switchman_test_shard_851 CASCADE [shard 851 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 851]]  (0.1ms) COMMIT  (5.5ms) DROP SCHEMA switchman_test_shard_852 CASCADE [shard 852 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 852]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_854 [shard 854 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 854 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 854 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 854 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 854 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 854 deploy] Migrating to CreateAppendages (20130411202442)  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 854 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 854 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 854 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 854 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 854 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 854 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 854 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 854 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 854 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 854 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 854 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 854 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_854' WHERE "switchman_shards"."id" = 854 [shard 853 master]  (0.7ms) COMMIT [shard 853 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 853 master]  (0.1ms) BEGIN [shard 853 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 853 master]  (0.3ms) COMMIT [shard 853 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_855 [shard 855 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 855 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 855 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 855 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 855 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 855 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 855 deploy]  (0.2ms) COMMIT [shard 855 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 855 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 855 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 855 deploy]  (0.3ms) COMMIT [shard 855 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 855 deploy]  (2.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 855 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 855 deploy]  (0.3ms) COMMIT [shard 855 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 855 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 855 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 855 deploy]  (0.3ms) COMMIT [shard 855 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 855 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 855 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 855 deploy]  (0.3ms) COMMIT [shard 855 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 855 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 855 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 855 deploy]  (0.2ms) COMMIT [shard 855 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 855 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 855 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 855 deploy]  (0.3ms) COMMIT [shard 855 deploy]  (0.1ms) BEGIN [shard 853 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_855' WHERE "switchman_shards"."id" = 855 [shard 853 master]  (0.3ms) COMMIT [shard 853 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 853 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 853 master]  (0.1ms) BEGIN [shard 853 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 853 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 853], ["name", nil]] [shard 853 master]  (0.2ms) COMMIT [shard 853 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 853 master]  (0.1ms) BEGIN [shard 853 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 854], ["name", "switchman_test_shard_854"]] [shard 853 master]  (0.3ms) COMMIT [shard 853 master]  (0.1ms) BEGIN [shard 853 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 855], ["name", "switchman_test_shard_855"]] [shard 853 master]  (0.3ms) COMMIT [shard 853 master]  (0.1ms) BEGIN [shard 853 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 853 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 854]] [shard 853 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 855]] [shard 853 master]  (0.1ms) BEGIN [shard 855 master]  (0.1ms) SAVEPOINT active_record_1 [shard 854 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 20 Aug 2014 19:11:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 20 Aug 2014 19:11:54 UTC +00:00]] [shard 854 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 854 master]  (0.1ms) ROLLBACK [shard 855 master]  (0.1ms) ROLLBACK [shard 854 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 853 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 853 master]  (4.8ms) DROP SCHEMA switchman_test_shard_854 CASCADE [shard 854 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 854]]  (0.1ms) COMMIT  (5.8ms) DROP SCHEMA switchman_test_shard_855 CASCADE [shard 855 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 855]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.4ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.2ms) CREATE SCHEMA switchman_test_shard_857 [shard 857 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 857 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 857 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 857 deploy] Migrating to CreateUsers (20130403132607)  (2.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 857 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 857 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 857 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 857 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 857 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 857 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 857 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 857 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 857 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 857 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 857 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 857 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 857 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 857 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_857' WHERE "switchman_shards"."id" = 857 [shard 856 master]  (0.7ms) COMMIT [shard 856 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 856 master]  (0.1ms) BEGIN [shard 856 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 856 master]  (0.3ms) COMMIT [shard 856 master]  (0.8ms) CREATE SCHEMA switchman_test_shard_858 [shard 858 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 858 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 858 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 858 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 858 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 858 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 858 deploy]  (0.3ms) COMMIT [shard 858 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 858 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 858 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 858 deploy]  (0.3ms) COMMIT [shard 858 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 858 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 858 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 858 deploy]  (0.3ms) COMMIT [shard 858 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 858 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 858 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 858 deploy]  (0.3ms) COMMIT [shard 858 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 858 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 858 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 858 deploy]  (0.3ms) COMMIT [shard 858 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 858 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 858 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 858 deploy]  (0.2ms) COMMIT [shard 858 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 858 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 858 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 858 deploy]  (0.3ms) COMMIT [shard 858 deploy]  (0.1ms) BEGIN [shard 856 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_858' WHERE "switchman_shards"."id" = 858 [shard 856 master]  (0.3ms) COMMIT [shard 856 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 856 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 856 master]  (0.1ms) BEGIN [shard 856 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 856 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 856], ["name", nil]] [shard 856 master]  (0.3ms) COMMIT [shard 856 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 856 master]  (0.0ms) BEGIN [shard 856 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 857], ["name", "switchman_test_shard_857"]] [shard 856 master]  (0.3ms) COMMIT [shard 856 master]  (0.1ms) BEGIN [shard 856 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 858], ["name", "switchman_test_shard_858"]] [shard 856 master]  (0.3ms) COMMIT [shard 856 master]  (0.1ms) BEGIN [shard 856 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 856 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 857]] [shard 856 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 858]] [shard 856 master]  (0.1ms) BEGIN [shard 858 master]  (0.1ms) SAVEPOINT active_record_1 [shard 857 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 20 Aug 2014 19:13:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 20 Aug 2014 19:13:08 UTC +00:00]] [shard 857 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 857 master]  (0.1ms) ROLLBACK [shard 858 master]  (0.1ms) ROLLBACK [shard 857 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 856 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 856 master]  (4.6ms) DROP SCHEMA switchman_test_shard_857 CASCADE [shard 857 deploy]  (0.0ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 857]]  (0.1ms) COMMIT  (6.4ms) DROP SCHEMA switchman_test_shard_858 CASCADE [shard 858 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 858]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_860 [shard 860 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 860 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 860 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 860 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 860 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 860 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 860 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 860 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 860 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 860 deploy] Migrating to CreateDigits (20131022202028)  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 860 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 860 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 860 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 860 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 860 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 860 deploy] Migrating to CreateRoots (20140219183820)  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 860 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 860 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_860' WHERE "switchman_shards"."id" = 860 [shard 859 master]  (0.7ms) COMMIT [shard 859 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 859 master]  (0.1ms) BEGIN [shard 859 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 859 master]  (0.3ms) COMMIT [shard 859 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_861 [shard 861 deploy]  (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 861 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 861 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 861 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 861 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 861 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 861 deploy]  (0.3ms) COMMIT [shard 861 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 861 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 861 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 861 deploy]  (0.3ms) COMMIT [shard 861 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 861 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 861 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 861 deploy]  (0.3ms) COMMIT [shard 861 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 861 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 861 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 861 deploy]  (0.3ms) COMMIT [shard 861 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 861 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 861 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 861 deploy]  (0.3ms) COMMIT [shard 861 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 861 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 861 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 861 deploy]  (0.3ms) COMMIT [shard 861 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 861 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 861 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 861 deploy]  (0.3ms) COMMIT [shard 861 deploy]  (0.1ms) BEGIN [shard 859 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_861' WHERE "switchman_shards"."id" = 861 [shard 859 master]  (0.3ms) COMMIT [shard 859 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 859 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 859 master]  (0.1ms) BEGIN [shard 859 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 859 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 859], ["name", nil]] [shard 859 master]  (0.2ms) COMMIT [shard 859 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 859 master]  (0.1ms) BEGIN [shard 859 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 860], ["name", "switchman_test_shard_860"]] [shard 859 master]  (0.3ms) COMMIT [shard 859 master]  (0.1ms) BEGIN [shard 859 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 861], ["name", "switchman_test_shard_861"]] [shard 859 master]  (0.2ms) COMMIT [shard 859 master]  (0.0ms) BEGIN [shard 859 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 859 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 860]] [shard 859 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 861]] [shard 859 master]  (0.1ms) BEGIN [shard 861 master]  (0.1ms) SAVEPOINT active_record_1 [shard 860 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 20 Aug 2014 19:13:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 20 Aug 2014 19:13:17 UTC +00:00]] [shard 860 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 860 master]  (0.2ms) ROLLBACK [shard 861 master]  (0.1ms) ROLLBACK [shard 860 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 859 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 859 master]  (5.1ms) DROP SCHEMA switchman_test_shard_860 CASCADE [shard 860 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 860]]  (0.1ms) COMMIT  (6.3ms) DROP SCHEMA switchman_test_shard_861 CASCADE [shard 861 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 861]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.8ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.2ms) CREATE SCHEMA switchman_test_shard_863 [shard 863 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 863 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 863 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 863 deploy] Migrating to CreateUsers (20130403132607)  (3.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 863 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 863 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 863 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 863 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 863 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 863 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 863 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 863 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 863 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 863 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 863 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 863 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 863 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 863 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_863' WHERE "switchman_shards"."id" = 863 [shard 862 master]  (0.6ms) COMMIT [shard 862 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 862 master]  (0.1ms) BEGIN [shard 862 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 862 master]  (0.2ms) COMMIT [shard 862 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_864 [shard 864 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 864 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 864 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 864 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 864 deploy]  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 864 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 864 deploy]  (0.3ms) COMMIT [shard 864 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 864 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 864 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 864 deploy]  (0.4ms) COMMIT [shard 864 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 864 deploy]  (2.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 864 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 864 deploy]  (0.3ms) COMMIT [shard 864 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 864 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 864 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 864 deploy]  (0.3ms) COMMIT [shard 864 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 864 deploy]  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 864 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 864 deploy]  (0.3ms) COMMIT [shard 864 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 864 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 864 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 864 deploy]  (0.2ms) COMMIT [shard 864 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 864 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 864 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 864 deploy]  (0.4ms) COMMIT [shard 864 deploy]  (0.1ms) BEGIN [shard 862 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_864' WHERE "switchman_shards"."id" = 864 [shard 862 master]  (0.3ms) COMMIT [shard 862 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 862 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 862 master]  (0.1ms) BEGIN [shard 862 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 862 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 862], ["name", nil]] [shard 862 master]  (0.2ms) COMMIT [shard 862 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 862 master]  (0.1ms) BEGIN [shard 862 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 863], ["name", "switchman_test_shard_863"]] [shard 862 master]  (0.2ms) COMMIT [shard 862 master]  (0.0ms) BEGIN [shard 862 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 864], ["name", "switchman_test_shard_864"]] [shard 862 master]  (0.2ms) COMMIT [shard 862 master]  (0.0ms) BEGIN [shard 862 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 862 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 863]] [shard 862 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 864]] [shard 862 master]  (0.1ms) BEGIN [shard 864 master]  (0.1ms) SAVEPOINT active_record_1 [shard 863 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 20 Aug 2014 19:13:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 20 Aug 2014 19:13:33 UTC +00:00]] [shard 863 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 863 master]  (0.1ms) ROLLBACK [shard 864 master]  (0.1ms) ROLLBACK [shard 863 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 862 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 862 master]  (4.8ms) DROP SCHEMA switchman_test_shard_863 CASCADE [shard 863 deploy]  (0.1ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 863]]  (0.1ms) COMMIT  (5.5ms) DROP SCHEMA switchman_test_shard_864 CASCADE [shard 864 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 864]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_866 [shard 866 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 866 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 866 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 866 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 866 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 866 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 866 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 866 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 866 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 866 deploy] Migrating to CreateDigits (20131022202028)  (1.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 866 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 866 deploy] Migrating to CreateFeatures (20131206172923)  (1.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 866 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 866 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 866 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 866 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 866 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 866 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_866' WHERE "switchman_shards"."id" = 866 [shard 865 master]  (1.0ms) COMMIT [shard 865 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 865 master]  (0.1ms) BEGIN [shard 865 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 865 master]  (0.2ms) COMMIT [shard 865 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_867 [shard 867 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 867 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 867 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 867 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 867 deploy]  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 867 deploy]  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 867 deploy]  (0.3ms) COMMIT [shard 867 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 867 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 867 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 867 deploy]  (0.3ms) COMMIT [shard 867 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 867 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 867 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 867 deploy]  (0.3ms) COMMIT [shard 867 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 867 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 867 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 867 deploy]  (0.3ms) COMMIT [shard 867 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 867 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 867 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 867 deploy]  (0.4ms) COMMIT [shard 867 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 867 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 867 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 867 deploy]  (0.2ms) COMMIT [shard 867 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 867 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 867 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 867 deploy]  (0.3ms) COMMIT [shard 867 deploy]  (0.1ms) BEGIN [shard 865 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_867' WHERE "switchman_shards"."id" = 867 [shard 865 master]  (0.3ms) COMMIT [shard 865 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 865 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 865 master]  (0.1ms) BEGIN [shard 865 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 865 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 865], ["name", nil]] [shard 865 master]  (0.3ms) COMMIT [shard 865 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 865 master]  (0.0ms) BEGIN [shard 865 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 866], ["name", "switchman_test_shard_866"]] [shard 865 master]  (0.2ms) COMMIT [shard 865 master]  (0.1ms) BEGIN [shard 865 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 867], ["name", "switchman_test_shard_867"]] [shard 865 master]  (0.2ms) COMMIT [shard 865 master]  (0.1ms) BEGIN [shard 865 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 865 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 866]] [shard 865 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 867]] [shard 865 master]  (0.1ms) BEGIN [shard 867 master]  (0.1ms) SAVEPOINT active_record_1 [shard 866 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 20 Aug 2014 19:18:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 20 Aug 2014 19:18:16 UTC +00:00]] [shard 866 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 866 master]  (0.1ms) ROLLBACK [shard 867 master]  (0.1ms) ROLLBACK [shard 866 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 865 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 865 master]  (5.3ms) DROP SCHEMA switchman_test_shard_866 CASCADE [shard 866 deploy]  (0.1ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 866]]  (0.1ms) COMMIT  (7.0ms) DROP SCHEMA switchman_test_shard_867 CASCADE [shard 867 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 867]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.4ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.5ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_869 [shard 869 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 869 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 869 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 869 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 869 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 869 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 869 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 869 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 869 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 869 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 869 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 869 deploy] Migrating to CreateFeatures (20131206172923)  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 869 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 869 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 869 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 869 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 869 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 869 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_869' WHERE "switchman_shards"."id" = 869 [shard 868 master]  (0.9ms) COMMIT [shard 868 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 868 master]  (0.1ms) BEGIN [shard 868 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 868 master]  (0.2ms) COMMIT [shard 868 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_870 [shard 870 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 870 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 870 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 870 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 870 deploy]  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 870 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 870 deploy]  (0.3ms) COMMIT [shard 870 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 870 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 870 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 870 deploy]  (0.3ms) COMMIT [shard 870 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) BEGIN [shard 870 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 870 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 870 deploy]  (0.3ms) COMMIT [shard 870 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 870 deploy]  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 870 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 870 deploy]  (0.3ms) COMMIT [shard 870 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 870 deploy]  (2.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 870 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 870 deploy]  (0.3ms) COMMIT [shard 870 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 870 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 870 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 870 deploy]  (0.2ms) COMMIT [shard 870 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 870 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 870 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 870 deploy]  (0.3ms) COMMIT [shard 870 deploy]  (0.1ms) BEGIN [shard 868 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_870' WHERE "switchman_shards"."id" = 870 [shard 868 master]  (0.3ms) COMMIT [shard 868 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 868 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 868 master]  (0.1ms) BEGIN [shard 868 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 868 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 868], ["name", nil]] [shard 868 master]  (0.2ms) COMMIT [shard 868 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 868 master]  (0.1ms) BEGIN [shard 868 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 869], ["name", "switchman_test_shard_869"]] [shard 868 master]  (0.2ms) COMMIT [shard 868 master]  (0.1ms) BEGIN [shard 868 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 870], ["name", "switchman_test_shard_870"]] [shard 868 master]  (0.2ms) COMMIT [shard 868 master]  (0.1ms) BEGIN [shard 868 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 868 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 869]] [shard 868 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 870]] [shard 868 master]  (0.1ms) BEGIN [shard 870 master]  (0.1ms) SAVEPOINT active_record_1 [shard 869 master] SQL (1.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 20 Aug 2014 19:18:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 20 Aug 2014 19:18:57 UTC +00:00]] [shard 869 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 869 master]  (0.1ms) ROLLBACK [shard 870 master]  (0.1ms) ROLLBACK [shard 869 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 868 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 868 master]  (5.0ms) DROP SCHEMA switchman_test_shard_869 CASCADE [shard 869 deploy]  (0.1ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 869]]  (0.1ms) COMMIT  (5.8ms) DROP SCHEMA switchman_test_shard_870 CASCADE [shard 870 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 870]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.5ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_872 [shard 872 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 872 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 872 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 872 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 872 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 872 deploy] Migrating to CreateAppendages (20130411202442)  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 872 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 872 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 872 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 872 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 872 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 872 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 872 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 872 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 872 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 872 deploy] Migrating to CreateRoots (20140219183820)  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 872 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 872 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_872' WHERE "switchman_shards"."id" = 872 [shard 871 master]  (0.8ms) COMMIT [shard 871 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 871 master]  (0.1ms) BEGIN [shard 871 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 871 master]  (0.3ms) COMMIT [shard 871 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_873 [shard 873 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 873 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 873 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 873 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 873 deploy]  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 873 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 873 deploy]  (0.3ms) COMMIT [shard 873 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 873 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 873 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 873 deploy]  (0.3ms) COMMIT [shard 873 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 873 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 873 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 873 deploy]  (0.3ms) COMMIT [shard 873 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 873 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 873 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 873 deploy]  (0.3ms) COMMIT [shard 873 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 873 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 873 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 873 deploy]  (0.3ms) COMMIT [shard 873 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 873 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 873 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 873 deploy]  (0.2ms) COMMIT [shard 873 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 873 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 873 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 873 deploy]  (0.3ms) COMMIT [shard 873 deploy]  (0.1ms) BEGIN [shard 871 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_873' WHERE "switchman_shards"."id" = 873 [shard 871 master]  (0.3ms) COMMIT [shard 871 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 871 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 871 master]  (0.1ms) BEGIN [shard 871 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 871 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 871], ["name", nil]] [shard 871 master]  (0.3ms) COMMIT [shard 871 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 871 master]  (0.1ms) BEGIN [shard 871 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 872], ["name", "switchman_test_shard_872"]] [shard 871 master]  (0.2ms) COMMIT [shard 871 master]  (0.1ms) BEGIN [shard 871 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 873], ["name", "switchman_test_shard_873"]] [shard 871 master]  (0.3ms) COMMIT [shard 871 master]  (0.0ms) BEGIN [shard 871 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 871 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 872]] [shard 871 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 873]] [shard 871 master]  (0.1ms) BEGIN [shard 873 master]  (0.1ms) SAVEPOINT active_record_1 [shard 872 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 20 Aug 2014 19:19:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 20 Aug 2014 19:19:11 UTC +00:00]] [shard 872 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 872 master]  (0.2ms) ROLLBACK [shard 873 master]  (0.2ms) ROLLBACK [shard 872 master] SQL (3.7ms) DELETE FROM "switchman_shards" [shard 871 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 871 master]  (4.6ms) DROP SCHEMA switchman_test_shard_872 CASCADE [shard 872 deploy]  (0.1ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 872]]  (0.1ms) COMMIT  (5.2ms) DROP SCHEMA switchman_test_shard_873 CASCADE [shard 873 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 873]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_875 [shard 875 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 875 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 875 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 875 deploy] Migrating to CreateUsers (20130403132607)  (2.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 875 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 875 deploy] Migrating to CreateAppendages (20130411202442)  (2.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 875 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 875 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.3ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 875 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 875 deploy] Migrating to CreateDigits (20131022202028)  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 875 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 875 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 875 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 875 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 875 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 875 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 875 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 875 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_875' WHERE "switchman_shards"."id" = 875 [shard 874 master]  (0.7ms) COMMIT [shard 874 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 874 master]  (0.1ms) BEGIN [shard 874 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 874 master]  (0.3ms) COMMIT [shard 874 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_876 [shard 876 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 876 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 876 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 876 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 876 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 876 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 876 deploy]  (0.3ms) COMMIT [shard 876 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 876 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 876 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 876 deploy]  (0.3ms) COMMIT [shard 876 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 876 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 876 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 876 deploy]  (0.4ms) COMMIT [shard 876 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 876 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 876 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 876 deploy]  (0.3ms) COMMIT [shard 876 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 876 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 876 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 876 deploy]  (0.3ms) COMMIT [shard 876 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 876 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 876 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 876 deploy]  (0.2ms) COMMIT [shard 876 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 876 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 876 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 876 deploy]  (0.3ms) COMMIT [shard 876 deploy]  (0.1ms) BEGIN [shard 874 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_876' WHERE "switchman_shards"."id" = 876 [shard 874 master]  (0.3ms) COMMIT [shard 874 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 874 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 874 master]  (0.1ms) BEGIN [shard 874 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 874 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 874], ["name", nil]] [shard 874 master]  (0.3ms) COMMIT [shard 874 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 874 master]  (0.1ms) BEGIN [shard 874 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 875], ["name", "switchman_test_shard_875"]] [shard 874 master]  (0.3ms) COMMIT [shard 874 master]  (0.1ms) BEGIN [shard 874 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 876], ["name", "switchman_test_shard_876"]] [shard 874 master]  (0.3ms) COMMIT [shard 874 master]  (0.0ms) BEGIN [shard 874 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 874 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 875]] [shard 874 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 876]] [shard 874 master]  (0.1ms) BEGIN [shard 876 master]  (0.1ms) SAVEPOINT active_record_1 [shard 875 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 20 Aug 2014 19:20:36 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 20 Aug 2014 19:20:36 UTC +00:00]] [shard 875 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 875 master]  (0.2ms) ROLLBACK [shard 876 master]  (0.2ms) ROLLBACK [shard 875 master] SQL (3.6ms) DELETE FROM "switchman_shards" [shard 874 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 874 master]  (4.7ms) DROP SCHEMA switchman_test_shard_875 CASCADE [shard 875 deploy]  (0.1ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 875]]  (0.1ms) COMMIT  (5.3ms) DROP SCHEMA switchman_test_shard_876 CASCADE [shard 876 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 876]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_878 [shard 878 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 878 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 878 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 878 deploy] Migrating to CreateUsers (20130403132607)  (2.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 878 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 878 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 878 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 878 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 878 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 878 deploy] Migrating to CreateDigits (20131022202028)  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 878 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 878 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 878 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 878 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 878 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 878 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 878 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 878 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_878' WHERE "switchman_shards"."id" = 878 [shard 877 master]  (0.7ms) COMMIT [shard 877 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 877 master]  (0.1ms) BEGIN [shard 877 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 877 master]  (0.2ms) COMMIT [shard 877 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_879 [shard 879 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 879 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 879 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 879 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 879 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 879 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 879 deploy]  (0.3ms) COMMIT [shard 879 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 879 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 879 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 879 deploy]  (0.3ms) COMMIT [shard 879 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 879 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 879 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 879 deploy]  (0.3ms) COMMIT [shard 879 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 879 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 879 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 879 deploy]  (0.2ms) COMMIT [shard 879 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 879 deploy]  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 879 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 879 deploy]  (0.3ms) COMMIT [shard 879 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 879 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 879 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 879 deploy]  (0.2ms) COMMIT [shard 879 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 879 deploy]  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 879 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 879 deploy]  (0.3ms) COMMIT [shard 879 deploy]  (0.1ms) BEGIN [shard 877 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_879' WHERE "switchman_shards"."id" = 879 [shard 877 master]  (0.2ms) COMMIT [shard 877 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 877 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 877 master]  (0.1ms) BEGIN [shard 877 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 877 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 877], ["name", nil]] [shard 877 master]  (0.3ms) COMMIT [shard 877 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 877 master]  (0.0ms) BEGIN [shard 877 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 878], ["name", "switchman_test_shard_878"]] [shard 877 master]  (0.3ms) COMMIT [shard 877 master]  (0.1ms) BEGIN [shard 877 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 879], ["name", "switchman_test_shard_879"]] [shard 877 master]  (0.3ms) COMMIT [shard 877 master]  (0.1ms) BEGIN [shard 877 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 877 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 878]] [shard 877 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 879]] [shard 877 master]  (0.1ms) BEGIN [shard 879 master]  (0.1ms) SAVEPOINT active_record_1 [shard 878 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 20 Aug 2014 19:20:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 20 Aug 2014 19:20:57 UTC +00:00]] [shard 878 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 878 master]  (0.2ms) ROLLBACK [shard 879 master]  (0.2ms) ROLLBACK [shard 878 master] SQL (4.0ms) DELETE FROM "switchman_shards" [shard 877 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 877 master]  (4.6ms) DROP SCHEMA switchman_test_shard_878 CASCADE [shard 878 deploy]  (0.1ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 878]]  (0.1ms) COMMIT  (5.0ms) DROP SCHEMA switchman_test_shard_879 CASCADE [shard 879 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 879]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_881 [shard 881 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 881 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 881 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 881 deploy] Migrating to CreateUsers (20130403132607)  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 881 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 881 deploy] Migrating to CreateAppendages (20130411202442)  (2.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 881 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 881 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 881 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 881 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 881 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 881 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 881 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 881 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 881 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 881 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 881 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 881 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_881' WHERE "switchman_shards"."id" = 881 [shard 880 master]  (0.6ms) COMMIT [shard 880 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 880 master]  (0.1ms) BEGIN [shard 880 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 880 master]  (0.2ms) COMMIT [shard 880 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_882 [shard 882 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 882 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 882 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 882 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 882 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 882 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 882 deploy]  (0.3ms) COMMIT [shard 882 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 882 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 882 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 882 deploy]  (0.3ms) COMMIT [shard 882 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 882 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 882 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 882 deploy]  (0.3ms) COMMIT [shard 882 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 882 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 882 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 882 deploy]  (0.3ms) COMMIT [shard 882 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 882 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 882 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 882 deploy]  (0.3ms) COMMIT [shard 882 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 882 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 882 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 882 deploy]  (0.2ms) COMMIT [shard 882 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 882 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 882 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 882 deploy]  (0.3ms) COMMIT [shard 882 deploy]  (0.1ms) BEGIN [shard 880 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_882' WHERE "switchman_shards"."id" = 882 [shard 880 master]  (0.2ms) COMMIT [shard 880 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 880 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 880 master]  (0.1ms) BEGIN [shard 880 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 880 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 880], ["name", nil]] [shard 880 master]  (0.4ms) COMMIT [shard 880 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 880 master]  (0.1ms) BEGIN [shard 880 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 881], ["name", "switchman_test_shard_881"]] [shard 880 master]  (0.3ms) COMMIT [shard 880 master]  (0.1ms) BEGIN [shard 880 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 882], ["name", "switchman_test_shard_882"]] [shard 880 master]  (0.3ms) COMMIT [shard 880 master]  (0.1ms) BEGIN [shard 880 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 880 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 881]] [shard 880 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 882]] [shard 880 master]  (0.1ms) BEGIN [shard 882 master]  (0.1ms) SAVEPOINT active_record_1 [shard 881 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 20 Aug 2014 19:21:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 20 Aug 2014 19:21:21 UTC +00:00]] [shard 881 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 881 master]  (0.3ms) ROLLBACK [shard 882 master]  (0.3ms) ROLLBACK [shard 881 master] SQL (0.6ms) DELETE FROM "switchman_shards" [shard 880 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 880 master]  (6.0ms) DROP SCHEMA switchman_test_shard_881 CASCADE [shard 881 deploy]  (0.1ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 881]]  (0.1ms) COMMIT  (5.0ms) DROP SCHEMA switchman_test_shard_882 CASCADE [shard 882 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 882]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.2ms) CREATE SCHEMA switchman_test_shard_884 [shard 884 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 884 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 884 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 884 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 884 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 884 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 884 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 884 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 884 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 884 deploy] Migrating to CreateDigits (20131022202028)  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 884 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 884 deploy] Migrating to CreateFeatures (20131206172923)  (1.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 884 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 884 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 884 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 884 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 884 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 884 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_884' WHERE "switchman_shards"."id" = 884 [shard 883 master]  (0.8ms) COMMIT [shard 883 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 883 master]  (0.1ms) BEGIN [shard 883 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 883 master]  (0.3ms) COMMIT [shard 883 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_885 [shard 885 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 885 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 885 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 885 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 885 deploy]  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 885 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 885 deploy]  (0.3ms) COMMIT [shard 885 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 885 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 885 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 885 deploy]  (0.4ms) COMMIT [shard 885 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 885 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 885 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 885 deploy]  (0.3ms) COMMIT [shard 885 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 885 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 885 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 885 deploy]  (0.3ms) COMMIT [shard 885 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 885 deploy]  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 885 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 885 deploy]  (0.3ms) COMMIT [shard 885 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 885 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 885 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 885 deploy]  (0.2ms) COMMIT [shard 885 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 885 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 885 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 885 deploy]  (0.3ms) COMMIT [shard 885 deploy]  (0.1ms) BEGIN [shard 883 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_885' WHERE "switchman_shards"."id" = 885 [shard 883 master]  (0.2ms) COMMIT [shard 883 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 883 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 883 master]  (0.1ms) BEGIN [shard 883 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 883 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 883], ["name", nil]] [shard 883 master]  (0.3ms) COMMIT [shard 883 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 883 master]  (0.0ms) BEGIN [shard 883 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 884], ["name", "switchman_test_shard_884"]] [shard 883 master]  (0.3ms) COMMIT [shard 883 master]  (0.0ms) BEGIN [shard 883 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 885], ["name", "switchman_test_shard_885"]] [shard 883 master]  (0.3ms) COMMIT [shard 883 master]  (0.1ms) BEGIN [shard 883 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 883 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 884]] [shard 883 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 885]] [shard 883 master]  (0.1ms) BEGIN [shard 885 master]  (0.1ms) SAVEPOINT active_record_1 [shard 884 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 20 Aug 2014 19:21:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 20 Aug 2014 19:21:38 UTC +00:00]] [shard 884 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 884 master]  (0.1ms) ROLLBACK [shard 885 master]  (0.1ms) ROLLBACK [shard 884 master] SQL (0.6ms) DELETE FROM "switchman_shards" [shard 883 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 883 master]  (4.8ms) DROP SCHEMA switchman_test_shard_884 CASCADE [shard 884 deploy]  (0.1ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 884]]  (0.1ms) COMMIT  (5.3ms) DROP SCHEMA switchman_test_shard_885 CASCADE [shard 885 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 885]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_887 [shard 887 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 887 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 887 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 887 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 887 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 887 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 887 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 887 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 887 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 887 deploy] Migrating to CreateDigits (20131022202028)  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 887 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 887 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 887 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 887 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 887 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 887 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 887 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 887 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_887' WHERE "switchman_shards"."id" = 887 [shard 886 master]  (0.7ms) COMMIT [shard 886 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 886 master]  (0.1ms) BEGIN [shard 886 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 886 master]  (0.3ms) COMMIT [shard 886 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_888 [shard 888 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 888 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 888 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 888 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 888 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 888 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 888 deploy]  (0.3ms) COMMIT [shard 888 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 888 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 888 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 888 deploy]  (0.3ms) COMMIT [shard 888 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 888 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 888 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 888 deploy]  (0.3ms) COMMIT [shard 888 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 888 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 888 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 888 deploy]  (0.3ms) COMMIT [shard 888 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 888 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 888 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 888 deploy]  (0.3ms) COMMIT [shard 888 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 888 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 888 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 888 deploy]  (0.3ms) COMMIT [shard 888 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 888 deploy]  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 888 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 888 deploy]  (0.4ms) COMMIT [shard 888 deploy]  (0.1ms) BEGIN [shard 886 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_888' WHERE "switchman_shards"."id" = 888 [shard 886 master]  (0.4ms) COMMIT [shard 886 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 886 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 886 master]  (0.1ms) BEGIN [shard 886 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 886 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 886], ["name", nil]] [shard 886 master]  (0.3ms) COMMIT [shard 886 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 886 master]  (0.1ms) BEGIN [shard 886 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 887], ["name", "switchman_test_shard_887"]] [shard 886 master]  (0.2ms) COMMIT [shard 886 master]  (0.1ms) BEGIN [shard 886 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 888], ["name", "switchman_test_shard_888"]] [shard 886 master]  (0.2ms) COMMIT [shard 886 master]  (0.0ms) BEGIN [shard 886 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 886 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 887]] [shard 886 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 888]] [shard 886 master]  (0.1ms) BEGIN [shard 888 master]  (0.1ms) SAVEPOINT active_record_1 [shard 887 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 20 Aug 2014 19:22:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 20 Aug 2014 19:22:08 UTC +00:00]] [shard 887 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 887 master]  (0.3ms) ROLLBACK [shard 888 master]  (0.3ms) ROLLBACK [shard 887 master] SQL (2.8ms) DELETE FROM "switchman_shards" [shard 886 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 886 master]  (5.0ms) DROP SCHEMA switchman_test_shard_887 CASCADE [shard 887 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 887]]  (0.1ms) COMMIT  (4.6ms) DROP SCHEMA switchman_test_shard_888 CASCADE [shard 888 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 888]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.2ms) CREATE SCHEMA switchman_test_shard_890 [shard 890 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 890 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 890 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 890 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 890 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 890 deploy] Migrating to CreateAppendages (20130411202442)  (1.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 890 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 890 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 890 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 890 deploy] Migrating to CreateDigits (20131022202028)  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 890 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 890 deploy] Migrating to CreateFeatures (20131206172923)  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 890 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 890 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 890 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 890 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 890 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 890 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_890' WHERE "switchman_shards"."id" = 890 [shard 889 master]  (0.7ms) COMMIT [shard 889 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 889 master]  (0.1ms) BEGIN [shard 889 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 889 master]  (0.2ms) COMMIT [shard 889 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_891 [shard 891 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 891 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 891 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 891 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 891 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 891 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 891 deploy]  (0.3ms) COMMIT [shard 891 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 891 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 891 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 891 deploy]  (0.3ms) COMMIT [shard 891 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 891 deploy]  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 891 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 891 deploy]  (0.3ms) COMMIT [shard 891 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 891 deploy]  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 891 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 891 deploy]  (0.3ms) COMMIT [shard 891 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 891 deploy]  (2.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 891 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 891 deploy]  (0.3ms) COMMIT [shard 891 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 891 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 891 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 891 deploy]  (0.3ms) COMMIT [shard 891 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 891 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 891 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 891 deploy]  (0.3ms) COMMIT [shard 891 deploy]  (0.1ms) BEGIN [shard 889 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_891' WHERE "switchman_shards"."id" = 891 [shard 889 master]  (0.3ms) COMMIT [shard 889 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 889 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 889 master]  (0.1ms) BEGIN [shard 889 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 889 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 889], ["name", nil]] [shard 889 master]  (0.4ms) COMMIT [shard 889 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 889 master]  (0.1ms) BEGIN [shard 889 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 890], ["name", "switchman_test_shard_890"]] [shard 889 master]  (0.3ms) COMMIT [shard 889 master]  (0.0ms) BEGIN [shard 889 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 891], ["name", "switchman_test_shard_891"]] [shard 889 master]  (0.3ms) COMMIT [shard 889 master]  (0.1ms) BEGIN [shard 889 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 889 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 890]] [shard 889 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 891]] [shard 889 master]  (0.1ms) BEGIN [shard 891 master]  (0.1ms) SAVEPOINT active_record_1 [shard 890 master] SQL (1.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 20 Aug 2014 19:24:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 20 Aug 2014 19:24:08 UTC +00:00]] [shard 890 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 890 master]  (0.1ms) ROLLBACK [shard 891 master]  (0.1ms) ROLLBACK [shard 890 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 889 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 889 master]  (4.6ms) DROP SCHEMA switchman_test_shard_890 CASCADE [shard 890 deploy]  (0.0ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 890]]  (0.1ms) COMMIT  (6.2ms) DROP SCHEMA switchman_test_shard_891 CASCADE [shard 891 deploy]  (0.3ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 891]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (2.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (1.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (7.2ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (13.7ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (16.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.3ms) COMMIT Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (4.0ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (3.2ms) BEGIN SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (7.9ms) CREATE SCHEMA switchman_test_shard_893 [shard 893 deploy]  (8.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 893 deploy]  (3.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 893 deploy]  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 893 deploy] Migrating to CreateUsers (20130403132607)  (39.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 893 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 893 deploy] Migrating to CreateAppendages (20130411202442)  (7.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 893 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 893 deploy] Migrating to CreateMirrorUsers (20130411202551)  (7.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 893 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 893 deploy] Migrating to CreateDigits (20131022202028)  (7.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 893 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 893 deploy] Migrating to CreateFeatures (20131206172923)  (8.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 893 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 893 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 893 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 893 deploy] Migrating to CreateRoots (20140219183820)  (6.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 893 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 893 deploy]  (2.6ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_893' WHERE "switchman_shards"."id" = 893 [shard 892 master]  (0.9ms) COMMIT [shard 892 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_894 [shard 894 deploy]  (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 894 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 894 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 894 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 894 deploy]  (4.6ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 894 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 894 deploy]  (12.5ms) COMMIT [shard 894 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 894 deploy]  (10.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 894 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 894 deploy]  (0.3ms) COMMIT [shard 894 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 894 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 894 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 894 deploy]  (0.3ms) COMMIT [shard 894 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 894 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 894 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 894 deploy]  (0.4ms) COMMIT [shard 894 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 894 deploy]  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 894 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 894 deploy]  (0.3ms) COMMIT [shard 894 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 894 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 894 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 894 deploy]  (0.2ms) COMMIT [shard 894 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 894 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 894 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 894 deploy]  (0.3ms) COMMIT [shard 894 deploy]  (0.1ms) BEGIN [shard 892 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_894' WHERE "switchman_shards"."id" = 894 [shard 892 master]  (0.2ms) COMMIT [shard 892 master] SQL (0.2ms) DELETE FROM "switchman_shards" [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 892], ["name", nil]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 893], ["name", "switchman_test_shard_893"]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 894], ["name", "switchman_test_shard_894"]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (27.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 4 [shard 893 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1478]] [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master]  (0.0ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master]  (0.0ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master]  (0.0ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master]  (0.0ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master]  (0.0ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 892], ["name", nil]] [shard 892 master]  (9.2ms) COMMIT [shard 892 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 893], ["name", "switchman_test_shard_893"]] [shard 892 master]  (8.2ms) COMMIT [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 894], ["name", "switchman_test_shard_894"]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '7' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.0ms) select sqlite_version(*) [shard 895 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 895 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 895 deploy]  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 895 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 895 deploy]  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 895 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 895 deploy]  (0.7ms) commit transaction [shard 895 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 895 deploy]  (0.3ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 895 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 895 deploy]  (0.6ms) commit transaction [shard 895 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 895 deploy]  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 895 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 895 deploy]  (0.6ms) commit transaction [shard 895 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 895 deploy]  (0.3ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 895 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 895 deploy]  (0.6ms) commit transaction [shard 895 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 895 deploy]  (0.4ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 895 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 895 deploy]  (0.5ms) commit transaction [shard 895 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 895 deploy]  (0.3ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 895 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 895 deploy]  (0.6ms) commit transaction [shard 895 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 895 deploy]  (0.3ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 895 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 895 deploy]  (0.6ms) commit transaction [shard 895 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'db/shard_895.sqlite3' WHERE "switchman_shards"."id" = 895 [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) begin transaction [shard 895 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 895 master]  (0.5ms) commit transaction [shard 895 master] Drop failed: No such file or directory @ unlink_internal - db/shard_895.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 895]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '8' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", "public"]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (6.3ms) CREATE SCHEMA switchman_test_shard_896 [shard 896 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 896 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 896 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 896 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 896 deploy]  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 896 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 896 deploy]  (0.3ms) COMMIT [shard 896 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 896 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 896 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 896 deploy]  (0.3ms) COMMIT [shard 896 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) BEGIN [shard 896 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 896 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 896 deploy]  (0.3ms) COMMIT [shard 896 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 896 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 896 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 896 deploy]  (0.3ms) COMMIT [shard 896 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 896 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 896 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 896 deploy]  (0.3ms) COMMIT [shard 896 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 896 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 896 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 896 deploy]  (0.2ms) COMMIT [shard 896 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) BEGIN [shard 896 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 896 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 896 deploy]  (0.3ms) COMMIT [shard 896 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_896' WHERE "switchman_shards"."id" = 896 [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) BEGIN [shard 896 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 896 master]  (0.2ms) COMMIT [shard 896 master]  (31.8ms) DROP SCHEMA switchman_test_shard_896 CASCADE [shard 896 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 896]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 892 master]  (0.1ms) CREATE SCHEMA switchman_test_shard_897 [shard 897 deploy]  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 897 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 897 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 897 deploy] Migrating to CreateUsers (20130403132607)  (1.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 897 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 897 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 897 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 897 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 897 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 897 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 897 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 897 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 897 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 897 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 897 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 897 deploy] Migrating to CreateRoots (20140219183820)  (2.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 897 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 897 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_897' WHERE "switchman_shards"."id" = 897 [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 897 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 897 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 897 master]  (2.8ms) DROP SCHEMA switchman_test_shard_897 CASCADE [shard 897 deploy]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 897]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (2.3ms) ROLLBACK [shard 892 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 892], ["name", nil]] [shard 892 master]  (0.3ms) COMMIT [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 893], ["name", "switchman_test_shard_893"]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 894], ["name", "switchman_test_shard_894"]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 892], ["name", nil]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 893], ["name", "switchman_test_shard_893"]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 894], ["name", "switchman_test_shard_894"]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 6], ["value", 1]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 7], ["value", 1]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 8], ["value", 1]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 9], ["value", 1]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 10], ["value", 1]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 11], ["value", 1]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (6.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 15], ["value", 1]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 15], ["value", 2]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 10], ["value", 3]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 10], ["value", 4]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 10], ["value", 5]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (2.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 15 [shard 893 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 893 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 10 [shard 894 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 16], ["value", 1]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 16], ["value", 2]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 11], ["value", 3]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 11], ["value", 4]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 11], ["value", 5]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (1.0ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 16 [shard 893 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 893 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 11 [shard 894 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 17], ["value", 1]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 17], ["value", 2]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 12], ["value", 3]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 12], ["value", 4]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 12], ["value", 5]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (1.9ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 17 [shard 893 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 893 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 12 [shard 894 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 18], ["value", 1]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 18], ["value", 2]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 13], ["value", 3]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 13], ["value", 4]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 13], ["value", 5]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.7ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 18 [shard 893 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 893 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 13 [shard 894 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 19], ["value", 1]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 19], ["value", 2]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 14], ["value", 3]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 14], ["value", 4]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", 14], ["value", 5]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 19 [shard 893 master]  (0.1ms) SELECT COUNT(*) FROM "appendages"  [shard 893 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 14 [shard 894 master]  (0.1ms) SELECT COUNT(*) FROM "appendages"  [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 892], ["name", nil]] [shard 892 master]  (0.3ms) COMMIT [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 893], ["name", "switchman_test_shard_893"]] [shard 892 master]  (0.3ms) COMMIT [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 894], ["name", "switchman_test_shard_894"]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", "non_existent_shard"]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.6ms) SELECT COUNT(*) FROM "users"  [shard 900 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.8ms) SELECT COUNT(*) FROM "users" [shard 901 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 892], ["name", nil]] [shard 892 master]  (0.3ms) COMMIT [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 893], ["name", "switchman_test_shard_893"]] [shard 892 master]  (0.3ms) COMMIT [shard 892 master]  (0.0ms) BEGIN [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 894], ["name", "switchman_test_shard_894"]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 20 LIMIT 1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.2ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 892 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 892 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 893 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 23]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 8930000000000023 LIMIT 1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 892], ["name", nil]] [shard 892 master]  (0.3ms) COMMIT [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 893], ["name", "switchman_test_shard_893"]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.0ms) BEGIN [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 894], ["name", "switchman_test_shard_894"]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 892], ["name", nil]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 893], ["name", "switchman_test_shard_893"]] [shard 892 master]  (0.3ms) COMMIT [shard 892 master]  (0.0ms) BEGIN [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 894], ["name", "switchman_test_shard_894"]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (1.9ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:02 UTC +00:00], ["user_id", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 35]] [shard 892 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 35]] [shard 892 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 35 LIMIT 1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 892], ["name", nil]] [shard 892 master]  (0.3ms) COMMIT [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 893], ["name", "switchman_test_shard_893"]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 894], ["name", "switchman_test_shard_894"]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '18' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "18"], ["default", false], ["name", "public"]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (5.2ms) CREATE SCHEMA switchman_test_shard_908 [shard 908 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 908 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 908 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 908 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 908 deploy]  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 908 deploy]  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 908 deploy]  (0.3ms) COMMIT [shard 908 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 908 deploy]  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 908 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 908 deploy]  (0.3ms) COMMIT [shard 908 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) BEGIN [shard 908 deploy]  (2.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 908 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 908 deploy]  (0.3ms) COMMIT [shard 908 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 908 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 908 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 908 deploy]  (0.3ms) COMMIT [shard 908 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 908 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 908 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 908 deploy]  (0.4ms) COMMIT [shard 908 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 908 deploy]  (0.4ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 908 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 908 deploy]  (0.2ms) COMMIT [shard 908 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 908 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 908 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 908 deploy]  (0.2ms) COMMIT [shard 908 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_908' WHERE "switchman_shards"."id" = 908 [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) BEGIN [shard 908 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 908 master]  (0.2ms) COMMIT [shard 908 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 908 master]  (4.9ms) DROP SCHEMA switchman_test_shard_908 CASCADE [shard 908 deploy]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 908 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 909]] [shard 892 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 910]] [shard 892 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.2ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 892], ["name", nil]] [shard 892 master]  (0.3ms) COMMIT [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 893], ["name", "switchman_test_shard_893"]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 894], ["name", "switchman_test_shard_894"]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master]  (0.5ms) SELECT COUNT(*) FROM "users" [shard 894 master]  (0.1ms) SAVEPOINT active_record_2 [shard 894 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 894 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master] SQL (6.0ms) DELETE FROM "switchman_shards" [shard 892 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 892 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 892], ["name", nil]] [shard 892 master]  (5.9ms) COMMIT [shard 892 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 893], ["name", "switchman_test_shard_893"]] [shard 892 master]  (6.0ms) COMMIT [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 894], ["name", "switchman_test_shard_894"]] [shard 892 master]  (4.8ms) COMMIT [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 892], ["name", nil]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 893], ["name", "switchman_test_shard_893"]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.0ms) BEGIN [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 894], ["name", "switchman_test_shard_894"]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 893 master] User Load (0.6ms) SELECT "users".* FROM "users"  [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 892 master] SQL (0.1ms) DELETE FROM "users" [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 892 master] SQL (0.1ms) DELETE FROM "users" [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 892 master]  (0.3ms) COMMIT [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1484]] [shard 892 master] CACHE (0.0ms) 892::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1484]] CACHE (0.0ms) 892::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1484]]  (0.1ms) BEGIN [shard 892 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-08-25 21:38:03.390596' WHERE "users"."id" = 1484 [shard 892 master]  (0.3ms) COMMIT [shard 892 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1484]] [shard 892 master] CACHE (0.0ms) 892::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1484]] SQL (0.4ms) DELETE FROM "users" [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 892 master] SQL (0.9ms) DELETE FROM "users" [shard 892 master] SQL (0.1ms) DELETE FROM "users" [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 892 master] SQL (0.3ms) DELETE FROM "users" [shard 892 master] SQL (0.1ms) DELETE FROM "users" [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 892 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-08-25 21:38:03.408068' [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 892 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-08-25 21:38:03.414386' [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 892 master]  (0.3ms) COMMIT [shard 892 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 892 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-08-25 21:38:03.418801' [shard 892 master] SQL (0.3ms) DELETE FROM "users" [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 892 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-08-25 21:38:03.423342' [shard 892 master] SQL (0.2ms) DELETE FROM "users" [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 892 master]  (0.3ms) COMMIT [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 892], ["name", nil]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 893], ["name", "switchman_test_shard_893"]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.0ms) BEGIN [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 894], ["name", "switchman_test_shard_894"]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 892], ["name", nil]] [shard 892 master]  (5.8ms) COMMIT [shard 892 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 893], ["name", "switchman_test_shard_893"]] [shard 892 master]  (5.9ms) COMMIT [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 894], ["name", "switchman_test_shard_894"]] [shard 892 master]  (5.9ms) COMMIT [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (892, 893) AND (id IN (893,894)) [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 892], ["name", nil]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 893], ["name", "switchman_test_shard_893"]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.0ms) BEGIN [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 894], ["name", "switchman_test_shard_894"]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.2ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "19"], ["default", false], ["name", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "20"], ["default", false], ["name", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master] SQL (0.9ms) DELETE FROM "switchman_shards" [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "21"], ["default", false], ["name", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "21"], ["default", false], ["name", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 892], ["name", nil]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 893], ["name", "switchman_test_shard_893"]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.0ms) BEGIN [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 894], ["name", "switchman_test_shard_894"]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.2ms) SAVEPOINT active_record_1 [shard 892 master] SQL (24.9ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["owner_id", 1498], ["owner_type", "User"], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["value", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master] Feature Load (0.4ms) SELECT owner_id FROM "features" WHERE "features"."id" = 73 LIMIT 1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (1.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 892], ["name", nil]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 893], ["name", "switchman_test_shard_893"]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 894], ["name", "switchman_test_shard_894"]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 31], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 32], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 31]] [shard 893 master]  (6.1ms) SHOW max_identifier_length [shard 893 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 31 AND "users"."id" = 33 LIMIT 1 [shard 893 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 35 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["user_id", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 26], ["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["user_id", 45], ["value", 1]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["user_id", 46], ["value", 1]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 30], ["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 31], ["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 32], ["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 32], ["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["value", 1]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["user_id", 50], ["value", 1]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 34], ["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["value", 1]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["owner_id", 750], ["owner_type", "Appendage"], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["value", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 74]] [shard 892 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 750 LIMIT 1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:03 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["owner_id", 53], ["owner_type", "User"], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["value", 1]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 60 LIMIT 1 [shard 893 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 37]] [shard 893 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 60 LIMIT 1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 892], ["name", nil]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 893], ["name", "switchman_test_shard_893"]] [shard 892 master]  (0.3ms) COMMIT [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 894], ["name", "switchman_test_shard_894"]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 1500], ["value", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 1501], ["value", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 62], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1501], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1502], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1502]] [shard 892 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1501 LIMIT 1 [shard 892 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 1501 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 1504], ["value", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 63], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 1505], ["value", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 1506], ["value", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 65], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 1507], ["value", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 66], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 1508], ["value", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 67], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 893 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 1509], ["value", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 68], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 1510], ["value", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 1511], ["value", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 70], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 1512], ["value", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 71], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 1513], ["value", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 72], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.1ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 1514], ["value", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 73], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 1515], ["value", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 74], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 1516], ["value", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 75], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master]  (0.0ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 1517], ["value", nil]] [shard 892 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 76], ["value", nil]] [shard 893 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) SAVEPOINT active_record_1 [shard 894 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:38:04 UTC +00:00], ["user_id", 62], ["value", nil]] [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 894 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 892 master]  (0.1ms) ROLLBACK [shard 894 master]  (0.1ms) ROLLBACK [shard 892 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 892], ["name", nil]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 893], ["name", "switchman_test_shard_893"]] [shard 892 master]  (0.3ms) COMMIT [shard 892 master]  (0.1ms) BEGIN [shard 892 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 894], ["name", "switchman_test_shard_894"]] [shard 892 master]  (0.2ms) COMMIT [shard 892 master]  (0.1ms) BEGIN [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 893]] [shard 892 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 894]] [shard 892 master]  (0.0ms) BEGIN [shard 894 master]  (0.0ms) SAVEPOINT active_record_1 [shard 893 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:04 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:04 UTC +00:00]] [shard 893 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 893 master]  (0.0ms) ROLLBACK [shard 894 master]  (0.0ms) ROLLBACK [shard 893 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 892 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 892 master]  (5.2ms) DROP SCHEMA switchman_test_shard_893 CASCADE [shard 893 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 893]]  (0.1ms) COMMIT  (6.2ms) DROP SCHEMA switchman_test_shard_894 CASCADE [shard 894 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 894]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.9ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.4ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (2.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_916 [shard 916 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 916 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 916 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 916 deploy] Migrating to CreateUsers (20130403132607)  (3.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 916 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 916 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 916 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 916 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 916 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 916 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 916 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 916 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 916 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 916 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 916 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 916 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 916 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 916 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_916' WHERE "switchman_shards"."id" = 916 [shard 915 master]  (0.8ms) COMMIT [shard 915 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master]  (0.8ms) CREATE SCHEMA switchman_test_shard_917 [shard 917 deploy]  (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 917 deploy]  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 917 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 917 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 917 deploy]  (2.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 917 deploy]  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 917 deploy]  (0.3ms) COMMIT [shard 917 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 917 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 917 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 917 deploy]  (0.3ms) COMMIT [shard 917 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) BEGIN [shard 917 deploy]  (2.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 917 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 917 deploy]  (0.4ms) COMMIT [shard 917 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 917 deploy]  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 917 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 917 deploy]  (0.4ms) COMMIT [shard 917 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 917 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 917 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 917 deploy]  (0.3ms) COMMIT [shard 917 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 917 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 917 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 917 deploy]  (0.2ms) COMMIT [shard 917 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 917 deploy]  (2.3ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 917 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 917 deploy]  (0.4ms) COMMIT [shard 917 deploy]  (0.1ms) BEGIN [shard 915 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_917' WHERE "switchman_shards"."id" = 917 [shard 915 master]  (0.5ms) COMMIT [shard 915 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 915], ["name", nil]] [shard 915 master]  (0.4ms) COMMIT [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.7ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 916], ["name", "switchman_test_shard_916"]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 917], ["name", "switchman_test_shard_917"]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.2ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 916 LIMIT 1 [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 917 LIMIT 1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.2ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["owner_id", 1519], ["owner_type", "User"], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["value", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master] Feature Load (0.3ms) SELECT owner_id FROM "features" WHERE "features"."id" = 75 LIMIT 1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 915], ["name", nil]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 916], ["name", "switchman_test_shard_916"]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 917], ["name", "switchman_test_shard_917"]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.0ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:40:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:40:21 UTC +00:00]] [shard 916 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.0ms) ROLLBACK [shard 917 master]  (0.0ms) ROLLBACK [shard 916 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", "non_existent_shard"]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.4ms) SELECT COUNT(*) FROM "users"  [shard 918 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.8ms) SELECT COUNT(*) FROM "users" [shard 919 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 915], ["name", nil]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 916], ["name", "switchman_test_shard_916"]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 917], ["name", "switchman_test_shard_917"]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["user_id", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master] MirrorUser Load (0.4ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 36]] [shard 915 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 36]] [shard 915 master] MirrorUser Load (0.5ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 36 LIMIT 1 [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 915], ["name", nil]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 916], ["name", "switchman_test_shard_916"]] [shard 915 master]  (0.5ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 917], ["name", "switchman_test_shard_917"]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master] User Load (0.3ms) SELECT "users".* FROM "users" [shard 916 master] User Load (0.3ms) SELECT "users".* FROM "users"  [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.2ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.0ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.0ms) BEGIN [shard 915 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.0ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (1.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.0ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 915 master] SQL (0.3ms) DELETE FROM "users" [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 915 master] SQL (0.1ms) DELETE FROM "users" [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 915 master] SQL (0.5ms) DELETE FROM "users" [shard 915 master] SQL (0.2ms) DELETE FROM "users" [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 915 master] SQL (0.3ms) DELETE FROM "users" [shard 915 master] SQL (0.2ms) DELETE FROM "users" [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1530]] [shard 915 master] CACHE (0.0ms) 915::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1530]] CACHE (0.0ms) 915::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1530]]  (0.1ms) BEGIN [shard 915 master]  (0.4ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-08-25 21:39:21.821667' WHERE "users"."id" = 1530 [shard 915 master]  (0.3ms) COMMIT [shard 915 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1530]] [shard 915 master] CACHE (0.0ms) 915::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1530]] SQL (0.4ms) DELETE FROM "users" [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 915 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-08-25 21:39:21.831492' [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 915 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-08-25 21:39:21.838342' [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 915 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-08-25 21:39:21.842773' [shard 915 master] SQL (0.3ms) DELETE FROM "users" [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 915 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-08-25 21:39:21.847534' [shard 915 master] SQL (0.3ms) DELETE FROM "users" [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.0ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.0ms) BEGIN [shard 915 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 915], ["name", nil]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 916], ["name", "switchman_test_shard_916"]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 917], ["name", "switchman_test_shard_917"]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.0ms) BEGIN [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 915], ["name", nil]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 916], ["name", "switchman_test_shard_916"]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 917], ["name", "switchman_test_shard_917"]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 915], ["name", nil]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 916], ["name", "switchman_test_shard_916"]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 917], ["name", "switchman_test_shard_917"]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 916 LIMIT 1 [shard 915 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1535) [shard 915 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (4) [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 5 LIMIT 1 [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (1537) [shard 915 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (6) [shard 916 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1537]] [shard 915 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 6]] [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 7 [shard 916 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1538]] [shard 915 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 7]] [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.0ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:21 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [shard 915 master]  (0.2ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.0ms) BEGIN [shard 915 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 915], ["name", nil]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 916], ["name", "switchman_test_shard_916"]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 917], ["name", "switchman_test_shard_917"]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 915], ["name", nil]] [shard 915 master]  (0.4ms) COMMIT [shard 915 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 916], ["name", "switchman_test_shard_916"]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 917], ["name", "switchman_test_shard_917"]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 917 master]  (0.1ms) SAVEPOINT active_record_2 [shard 917 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 917 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 915 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 915], ["name", nil]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 916], ["name", "switchman_test_shard_916"]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 917], ["name", "switchman_test_shard_917"]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 9], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 10], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 9]] [shard 916 master]  (0.2ms) SHOW max_identifier_length [shard 916 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 9 AND "users"."id" = 11 LIMIT 1 [shard 916 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 916 LIMIT 1 [shard 915 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 9]] [shard 916 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 9 AND "users"."id" = 9170000000000004 LIMIT 1 [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.2ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (5.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 13 AND "appendages"."id" = $1 LIMIT 1 [["id", 1]] [shard 916 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 6 AND "appendages"."id" = $1 LIMIT 1 [["id", 1]] [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (1.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3], ["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master] Digit Load (0.7ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.2ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 917 LIMIT 1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 19 [shard 916 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [shard 916 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 19 [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 7]] [shard 916 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 20 LIMIT 1 [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (4.7ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 9160000000000022], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2], ["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["value", 2]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 22 AND "digits"."value" IS NULL [shard 916 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9160000000000022 AND "digits"."value" IS NULL [shard 917 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 22]] [shard 916 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 22 AND "digits"."value" IS NULL [shard 916 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9160000000000022 AND "digits"."value" IS NULL [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.2ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.0ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9], ["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 9160000000000023], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3], ["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["value", 2]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 23 AND "digits"."value" IS NULL [shard 916 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9160000000000023 AND "digits"."value" IS NULL [shard 917 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 23]] [shard 916 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 23 AND "digits"."value" IS NULL [shard 916 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9160000000000023 AND "digits"."value" IS NULL [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10], ["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["value", 1]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (4.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 9160000000000024], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4], ["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["value", 2]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 24 [shard 916 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 24]] [shard 916 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 24 [shard 916 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9160000000000024 [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 25], ["value", 1]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 9160000000000025], ["value", 2]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 25 [shard 916 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 25]] [shard 916 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 25 [shard 916 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 9160000000000025 [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 26], ["value", 1]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 9160000000000026], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 26], ["value", 2]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 26]] [shard 916 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 26 AND (appendages.value IS NOT NULL) [shard 916 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 9160000000000026 AND (appendages.value IS NOT NULL) [shard 917 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 26]] [shard 916 master]  (0.5ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 26 AND (appendages.value IS NOT NULL) [shard 916 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 9160000000000026 AND (appendages.value IS NOT NULL) [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 27], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 14], ["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 14], ["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["value", 1]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 9160000000000027], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7], ["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["value", 2]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 27 AND (digits.value IS NOT NULL) [shard 916 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9160000000000027 AND (digits.value IS NOT NULL) [shard 917 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 27]] [shard 916 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 27 AND (digits.value IS NOT NULL) [shard 916 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9160000000000027 AND (digits.value IS NOT NULL) [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 28], ["value", 1]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 9160000000000028], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 28 AND "appendages"."value" IS NULL [shard 916 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 9160000000000028 AND "appendages"."value" IS NULL [shard 917 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 28]] [shard 916 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 28 AND "appendages"."value" IS NULL [shard 916 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 9160000000000028 AND "appendages"."value" IS NULL [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["owner_id", 29], ["owner_type", "User"], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["value", 1]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["owner_id", 9160000000000029], ["owner_type", "User"], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["value", 2]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 29 AND "features"."owner_type" = 'User' [shard 916 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 29]] [shard 916 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 29 AND "features"."owner_type" = 'User' [shard 916 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 9160000000000029 AND "features"."owner_type" = 'User' [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.2ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master]  (0.0ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["owner_id", 768], ["owner_type", "Appendage"], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["value", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 76]] [shard 915 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 768 LIMIT 1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master]  (0.3ms) UPDATE "features" SET "owner_id" = 9160000000000030, "owner_type" = 'User', "updated_at" = '2014-08-25 21:39:22.410355' WHERE "features"."id" = 76 [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 76]] [shard 915 master]  (0.2ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (1.7ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 9170000000000024]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 38]] [shard 915 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 24 LIMIT 1 [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 32 LIMIT 1 [shard 916 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 916 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 916 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 16]] [shard 916 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 32 LIMIT 1 [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.2ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 9170000000000026], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 17]] [shard 916 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 26 LIMIT 1 [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 9160000000000034], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 9160000000000034], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 18], ["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10], ["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9170000000000010], ["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9170000000000011], ["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 9170000000000027], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 27], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 27], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9160000000000019], ["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9170000000000012], ["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9170000000000013], ["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (34) [shard 916 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (34) [shard 916 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (9160000000000034) [shard 917 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (18, 9170000000000010) [shard 916 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (10, 11) [shard 917 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 917 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (27) [shard 917 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (12) [shard 917 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (9170000000000013) [shard 916 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 916 master]  (0.2ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.0ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 9160000000000035], ["value", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 9170000000000028], ["value", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 1540], ["value", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 915 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1540) [shard 915 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35) [shard 916 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 917 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 35 [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (6.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 9160000000000036], ["value", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (1.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 772], ["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["value", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 9170000000000029], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9160000000000020], ["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["value", nil]] [shard 915 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 915 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" [shard 915 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (772) [shard 915 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (20) [shard 916 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (36) [shard 916 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [shard 917 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 36 [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 9160000000000037], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["user_id", 9170000000000030], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 916 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (37) [shard 916 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (9160000000000037) [shard 917 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [shard 917 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (30) [shard 917 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 21 [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 915], ["name", nil]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 916], ["name", "switchman_test_shard_916"]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 917], ["name", "switchman_test_shard_917"]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 915 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 915 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 916 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 40 LIMIT 1 [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 916 LIMIT 1 [shard 915 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]] [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) LIMIT 1 [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 43 LIMIT 1 [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 44]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 9160000000000044 LIMIT 1 [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 915 master] Switchman::Shard Load (3.0ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 915], ["name", nil]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 916], ["name", "switchman_test_shard_916"]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 917], ["name", "switchman_test_shard_917"]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (915, 916) AND (id IN (916,917)) [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 915], ["name", nil]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 916], ["name", "switchman_test_shard_916"]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 917], ["name", "switchman_test_shard_917"]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.2ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 915], ["name", nil]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master] Switchman::Shard Load (3.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 916], ["name", "switchman_test_shard_916"]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 917], ["name", "switchman_test_shard_917"]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '25' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "25"], ["default", false], ["name", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.0ms) select sqlite_version(*) [shard 930 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 930 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 930 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 930 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 930 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 930 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 930 deploy]  (0.6ms) commit transaction [shard 930 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 930 deploy]  (0.4ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 930 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 930 deploy]  (0.7ms) commit transaction [shard 930 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 930 deploy]  (0.4ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 930 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 930 deploy]  (0.6ms) commit transaction [shard 930 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 930 deploy]  (0.3ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 930 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 930 deploy]  (0.5ms) commit transaction [shard 930 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) begin transaction [shard 930 deploy]  (0.3ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 930 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 930 deploy]  (0.5ms) commit transaction [shard 930 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 930 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 930 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 930 deploy]  (0.6ms) commit transaction [shard 930 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 930 deploy]  (0.3ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 930 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 930 deploy]  (0.6ms) commit transaction [shard 930 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_930.sqlite3' WHERE "switchman_shards"."id" = 930 [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) begin transaction [shard 930 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 930 master]  (0.6ms) commit transaction [shard 930 master] Drop failed: No such file or directory @ unlink_internal - db/shard_930.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 930]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '26' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "26"], ["default", false], ["name", "public"]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (6.3ms) CREATE SCHEMA switchman_test_shard_931 [shard 931 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 931 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 931 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 931 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 931 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 931 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 931 deploy]  (3.1ms) COMMIT [shard 931 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 931 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 931 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 931 deploy]  (0.3ms) COMMIT [shard 931 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) BEGIN [shard 931 deploy]  (2.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 931 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 931 deploy]  (0.3ms) COMMIT [shard 931 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 931 deploy]  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 931 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 931 deploy]  (0.3ms) COMMIT [shard 931 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 931 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 931 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 931 deploy]  (0.3ms) COMMIT [shard 931 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 931 deploy]  (0.4ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 931 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 931 deploy]  (0.2ms) COMMIT [shard 931 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 931 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 931 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 931 deploy]  (0.8ms) COMMIT [shard 931 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_931' WHERE "switchman_shards"."id" = 931 [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) BEGIN [shard 931 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 931 master]  (0.2ms) COMMIT [shard 931 master]  (5.0ms) DROP SCHEMA switchman_test_shard_931 CASCADE [shard 931 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.6ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 931]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 915 master]  (0.1ms) CREATE SCHEMA switchman_test_shard_932 [shard 932 deploy]  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 932 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 932 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 932 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 932 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 932 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 932 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 932 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 932 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 932 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 932 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 932 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 932 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 932 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 932 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 932 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 932 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 932 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_932' WHERE "switchman_shards"."id" = 932 [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 932 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:22 UTC +00:00]] [shard 932 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 932 master]  (2.7ms) DROP SCHEMA switchman_test_shard_932 CASCADE [shard 932 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 932]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (2.5ms) ROLLBACK [shard 915 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.0ms) BEGIN [shard 915 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.0ms) BEGIN [shard 915 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.0ms) BEGIN [shard 915 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.0ms) BEGIN [shard 915 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 915], ["name", nil]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 916], ["name", "switchman_test_shard_916"]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 917], ["name", "switchman_test_shard_917"]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 1541], ["value", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.0ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.0ms) SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (2.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (2.6ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 1542], ["value", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.0ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1542], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1543], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1543]] [shard 915 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1542 LIMIT 1 [shard 915 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 1542 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.4ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 1545], ["value", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.0ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 1546], ["value", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 1547], ["value", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.0ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.0ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.0ms) SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 1548], ["value", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (3.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 1549], ["value", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 916 LIMIT 1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 1550], ["value", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.3ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 1551], ["value", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.0ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 915 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 1552], ["value", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.0ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.0ms) SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 1553], ["value", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 1554], ["value", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 1555], ["value", nil]] [shard 915 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.2ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.3ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 1556], ["value", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 1557], ["value", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.2ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 1558], ["value", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 915], ["name", nil]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 916], ["name", "switchman_test_shard_916"]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 917], ["name", "switchman_test_shard_917"]] [shard 915 master]  (0.9ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '28' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "28"], ["default", false], ["name", "public"]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.8ms) CREATE SCHEMA switchman_test_shard_933 [shard 933 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 933 deploy]  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 933 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 933 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 933 deploy]  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 933 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 933 deploy]  (0.4ms) COMMIT [shard 933 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 933 deploy]  (2.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 933 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 933 deploy]  (0.3ms) COMMIT [shard 933 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 933 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 933 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 933 deploy]  (0.4ms) COMMIT [shard 933 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 933 deploy]  (2.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 933 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 933 deploy]  (1.0ms) COMMIT [shard 933 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 933 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 933 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 933 deploy]  (0.3ms) COMMIT [shard 933 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 933 deploy]  (0.4ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 933 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 933 deploy]  (0.3ms) COMMIT [shard 933 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 933 deploy]  (2.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 933 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 933 deploy]  (0.3ms) COMMIT [shard 933 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_933' WHERE "switchman_shards"."id" = 933 [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) BEGIN [shard 933 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 933 master]  (0.2ms) COMMIT [shard 933 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 933 master]  (5.5ms) DROP SCHEMA switchman_test_shard_933 CASCADE [shard 933 deploy]  (0.5ms) SELECT COUNT(*) FROM "users" [shard 933 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10917 LIMIT 1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 916 LIMIT 1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 917 LIMIT 1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.0ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.0ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master]  (0.0ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.0ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.0ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 934]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.0ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master]  (0.0ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.0ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (4.0ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.0ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 935]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 935 LIMIT 1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.0ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master] SQL (8.8ms) DELETE FROM "switchman_shards" [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 915], ["name", nil]] [shard 915 master]  (5.2ms) COMMIT [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 916], ["name", "switchman_test_shard_916"]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 917], ["name", "switchman_test_shard_917"]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "29"], ["default", false], ["name", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "30"], ["default", false], ["name", nil]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master] SQL (0.8ms) DELETE FROM "switchman_shards" [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 915], ["name", nil]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 916], ["name", "switchman_test_shard_916"]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 917], ["name", "switchman_test_shard_917"]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.0ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 916 LIMIT 1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master]  (0.0ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.2ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (1.0ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.2ms) ROLLBACK [shard 916 master]  (0.0ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master]  (0.0ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.0ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.0ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.0ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 915 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 915 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 915 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 915 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 915], ["name", nil]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 916], ["name", "switchman_test_shard_916"]] [shard 915 master]  (0.3ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 917], ["name", "switchman_test_shard_917"]] [shard 915 master]  (0.2ms) COMMIT [shard 915 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 916 LIMIT 1 [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 917 LIMIT 1 [shard 915 master] SQL (0.3ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (64) [shard 916 master] SQL (0.3ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (49) [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 65], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 916 master] SQL (0.4ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 917 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 916 master] SQL (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 917 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 916 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.0ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master]  (0.0ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.0ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 66], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 916 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 917 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 916 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 917 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 916 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.0ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.0ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 67], ["value", 1]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 67], ["value", 2]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 52], ["value", 3]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 52], ["value", 4]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 52], ["value", 5]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 67 [shard 916 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 916 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 52 [shard 917 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 917 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (43, 44) [shard 916 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (35, 36, 37) [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.0ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.0ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 68], ["value", 1]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.2ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 68], ["value", 2]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 53], ["value", 3]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 53], ["value", 4]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.0ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 53], ["value", 5]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 68 [shard 916 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 916 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 53 [shard 917 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 917 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (45, 46) [shard 916 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (38, 39, 40) [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.0ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 69], ["value", 1]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 69], ["value", 2]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 54], ["value", 3]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 54], ["value", 4]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 54], ["value", 5]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 69 [shard 916 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 916 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 54 [shard 917 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 917 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (47, 48) [shard 916 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (41, 42, 43) [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.0ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master]  (0.0ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.0ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 70], ["value", 1]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 70], ["value", 2]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 55], ["value", 3]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 55], ["value", 4]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 55], ["value", 5]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 70 [shard 916 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 916 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 55 [shard 917 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 917 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (49, 50) [shard 916 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (44, 45, 46) [shard 917 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.0ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master]  (0.0ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.0ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 71], ["value", 1]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 71], ["value", 2]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.0ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 56], ["value", 3]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 56], ["value", 4]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.0ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:23 UTC +00:00], ["user_id", 56], ["value", 5]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.5ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 71 [shard 916 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 916 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 56 [shard 917 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 917 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (51, 52) [shard 916 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (47, 48, 49) [shard 917 master]  (0.2ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 72], ["value", 1]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 9170000000000057], ["value", 3]] [shard 916 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 9160000000000072], ["value", 2]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 57], ["value", 4]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 57], ["value", 5]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 72], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 73], ["value", nil]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SHOW max_identifier_length [shard 916 master]  (0.4ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00]] [shard 917 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 74], ["value", 1]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 9170000000000058], ["value", 3]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 9160000000000074], ["value", 2]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 58], ["value", 4]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.2ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 58], ["value", 5]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 916 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 917 master]  (0.5ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 916 master]  (0.6ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 917 master]  (0.1ms) SHOW max_identifier_length [shard 917 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 916 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 917 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 916 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (74) [shard 916 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 917 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 917 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 917 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (74) [shard 916 master]  (0.2ms) ROLLBACK [shard 917 master]  (0.2ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 75], ["value", 1]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 9170000000000059], ["value", 3]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 9160000000000075], ["value", 2]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 59], ["value", 4]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 59], ["value", 5]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 916 master]  (0.4ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 917 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 916 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 917 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 916 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 917 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 916 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) [shard 916 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 917 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 917 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 917 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.0ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.0ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 76], ["value", 1]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 9170000000000060], ["value", 3]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 9160000000000076], ["value", 2]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 60], ["value", 4]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 60], ["value", 5]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 916 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 917 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 916 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 917 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 916 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 917 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 916 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (76) [shard 916 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [shard 917 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 917 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [shard 917 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (76) [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 77], ["value", 1]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 9170000000000061], ["value", 3]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 9160000000000077], ["value", 2]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 61], ["value", 4]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 61], ["value", 5]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 916 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 917 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 916 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 917 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 916 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 917 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 916 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (77) [shard 916 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [shard 917 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 917 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [shard 917 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (77) [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master]  (0.1ms) BEGIN [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 916]] [shard 915 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 917]] [shard 915 master]  (0.1ms) BEGIN [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 78], ["value", 1]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 916 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 9170000000000062], ["value", 3]] [shard 916 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 916 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 9160000000000078], ["value", 2]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 62], ["value", 4]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.1ms) SAVEPOINT active_record_1 [shard 917 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:39:24 UTC +00:00], ["user_id", 62], ["value", 5]] [shard 917 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 917 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 916 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 917 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 916 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 917 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 916 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 917 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 916 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (78) [shard 916 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (62) [shard 917 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 917 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (62) [shard 917 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (78) [shard 916 master]  (0.1ms) ROLLBACK [shard 917 master]  (0.1ms) ROLLBACK [shard 916 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 915 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 915 master]  (5.5ms) DROP SCHEMA switchman_test_shard_916 CASCADE [shard 916 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 916]]  (0.1ms) COMMIT  (5.5ms) DROP SCHEMA switchman_test_shard_917 CASCADE [shard 917 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 917]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.4ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.9ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.6ms) COMMIT Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (1.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.4ms) CREATE SCHEMA switchman_test_shard_939 [shard 939 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 939 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 939 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 939 deploy] Migrating to CreateUsers (20130403132607)  (2.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 939 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 939 deploy] Migrating to CreateAppendages (20130411202442)  (7.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 939 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 939 deploy] Migrating to CreateMirrorUsers (20130411202551)  (3.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 939 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 939 deploy] Migrating to CreateDigits (20131022202028)  (2.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 939 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 939 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 939 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 939 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 939 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 939 deploy] Migrating to CreateRoots (20140219183820)  (2.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 939 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 939 deploy]  (0.4ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_939' WHERE "switchman_shards"."id" = 939 [shard 938 master]  (1.0ms) COMMIT [shard 938 master] Switchman::Shard Load (1.0ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 938 master]  (0.4ms) COMMIT [shard 938 master]  (0.8ms) CREATE SCHEMA switchman_test_shard_940 [shard 940 deploy]  (9.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 940 deploy]  (3.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 940 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 940 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 940 deploy]  (3.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 940 deploy]  (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 940 deploy]  (0.4ms) COMMIT [shard 940 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 940 deploy]  (4.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 940 deploy]  (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 940 deploy]  (0.4ms) COMMIT [shard 940 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.4ms) BEGIN [shard 940 deploy]  (3.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 940 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 940 deploy]  (0.4ms) COMMIT [shard 940 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 940 deploy]  (3.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 940 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 940 deploy]  (0.6ms) COMMIT [shard 940 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 940 deploy]  (3.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 940 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 940 deploy]  (0.4ms) COMMIT [shard 940 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 940 deploy]  (0.4ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 940 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 940 deploy]  (0.5ms) COMMIT [shard 940 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 940 deploy]  (3.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 940 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 940 deploy]  (0.4ms) COMMIT [shard 940 deploy]  (0.1ms) BEGIN [shard 938 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_940' WHERE "switchman_shards"."id" = 940 [shard 938 master]  (0.3ms) COMMIT [shard 938 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 938], ["name", nil]] [shard 938 master]  (0.7ms) COMMIT [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 939], ["name", "switchman_test_shard_939"]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 940], ["name", "switchman_test_shard_940"]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.6ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.2ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.7ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (1.0ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [shard 938 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 938], ["name", nil]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 939], ["name", "switchman_test_shard_939"]] [shard 938 master]  (0.2ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 940], ["name", "switchman_test_shard_940"]] [shard 938 master]  (0.2ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master] SQL (0.6ms) DELETE FROM "switchman_shards" [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 938], ["name", nil]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 939], ["name", "switchman_test_shard_939"]] [shard 938 master]  (0.2ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 940], ["name", "switchman_test_shard_940"]] [shard 938 master]  (0.2ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (1.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 940 master]  (0.1ms) SAVEPOINT active_record_2 [shard 940 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 940 master]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.7ms) SELECT COUNT(*) FROM "users" [shard 940 master]  (0.2ms) ROLLBACK [shard 940 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 938], ["name", nil]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 939], ["name", "switchman_test_shard_939"]] [shard 938 master]  (0.2ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 940], ["name", "switchman_test_shard_940"]] [shard 938 master]  (0.2ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.0ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 939 LIMIT 1 [shard 938 master]  (0.4ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.2ms) BEGIN [shard 940 master]  (0.3ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.9ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (1.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.2ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.0ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.3ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 938], ["name", nil]] [shard 938 master]  (0.5ms) COMMIT [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 939], ["name", "switchman_test_shard_939"]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 940], ["name", "switchman_test_shard_940"]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.6ms) BEGIN [shard 940 master]  (0.0ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:42:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:42:09 UTC +00:00]] [shard 939 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.0ms) ROLLBACK [shard 940 master]  (0.0ms) ROLLBACK [shard 939 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 938], ["name", nil]] [shard 938 master]  (0.2ms) COMMIT [shard 938 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 939], ["name", "switchman_test_shard_939"]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 940], ["name", "switchman_test_shard_940"]] [shard 938 master]  (0.2ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (1.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 938 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master] SQL (0.9ms) DELETE FROM "switchman_shards" [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 938], ["name", nil]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 939], ["name", "switchman_test_shard_939"]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 940], ["name", "switchman_test_shard_940"]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master]  (0.2ms) BEGIN [shard 938 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (1.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (1.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (1.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (3.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 5], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 6], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master] User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 5]] [shard 939 master]  (0.2ms) SHOW max_identifier_length [shard 939 master] User Exists (0.7ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 5 AND "users"."id" = 7 LIMIT 1 [shard 939 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 939 LIMIT 1 [shard 938 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 5]] [shard 939 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 5 AND "users"."id" = 9400000000000004 LIMIT 1 [shard 939 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (1.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.0ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.0ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.0ms) SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 940 LIMIT 1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 10 [shard 939 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 10]] [shard 939 master]  (6.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 10 [shard 939 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.0ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 940 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.9ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["user_id", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.2ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.0ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.0ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 15 AND "appendages"."id" = $1 LIMIT 1 [["id", 6]] [shard 939 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 12 AND "appendages"."id" = $1 LIMIT 1 [["id", 6]] [shard 940 master]  (0.2ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 7]] [shard 939 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 16 LIMIT 1 [shard 939 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.0ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.9ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 939 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["user_id", 18], ["value", 1]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["user_id", 9390000000000018], ["value", 2]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 18 [shard 939 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 939 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 18 [shard 939 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 9390000000000018 [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10], ["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["user_id", 9390000000000019], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (1.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4], ["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["value", 2]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.6ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 19 AND "digits"."value" IS NULL [shard 939 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9390000000000019 AND "digits"."value" IS NULL [shard 940 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [shard 939 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 19 AND "digits"."value" IS NULL [shard 939 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9390000000000019 AND "digits"."value" IS NULL [shard 940 master]  (0.2ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["user_id", 20], ["value", 1]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["user_id", 9390000000000020], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 20 AND "appendages"."value" IS NULL [shard 939 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 9390000000000020 AND "appendages"."value" IS NULL [shard 940 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 939 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 20 AND "appendages"."value" IS NULL [shard 939 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 9390000000000020 AND "appendages"."value" IS NULL [shard 940 master]  (0.2ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.0ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["user_id", 21], ["value", 1]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["user_id", 9390000000000021], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["user_id", 21], ["value", 2]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 939 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 21 AND (appendages.value IS NOT NULL) [shard 939 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 9390000000000021 AND (appendages.value IS NOT NULL) [shard 940 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 939 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 21 AND (appendages.value IS NOT NULL) [shard 939 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 9390000000000021 AND (appendages.value IS NOT NULL) [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.0ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 14], ["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["value", 1]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["user_id", 9390000000000022], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7], ["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["value", 2]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 22 [shard 939 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 22]] [shard 939 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 22 [shard 939 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9390000000000022 [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15], ["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15], ["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["value", 1]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["user_id", 9390000000000023], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["value", 2]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 23 AND (digits.value IS NOT NULL) [shard 939 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9390000000000023 AND (digits.value IS NOT NULL) [shard 940 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 23]] [shard 939 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 23 AND (digits.value IS NOT NULL) [shard 939 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9390000000000023 AND (digits.value IS NOT NULL) [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.0ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.0ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 16], ["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["user_id", 9390000000000024], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9], ["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["value", 2]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 24 AND "digits"."value" IS NULL [shard 939 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9390000000000024 AND "digits"."value" IS NULL [shard 940 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 24]] [shard 939 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 24 AND "digits"."value" IS NULL [shard 939 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9390000000000024 AND "digits"."value" IS NULL [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.0ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.0ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.7ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["user_id", 9400000000000022]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master] Root Load (0.4ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 39]] [shard 938 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 22 LIMIT 1 [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.8ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["owner_id", 26], ["owner_type", "User"], ["updated_at", Mon, 25 Aug 2014 21:41:09 UTC +00:00], ["value", 1]] [shard 939 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (1.1ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["owner_id", 9390000000000026], ["owner_type", "User"], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["value", 2]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master] Feature Load (0.7ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 26 AND "features"."owner_type" = 'User' [shard 939 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 26]] [shard 939 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 26 AND "features"."owner_type" = 'User' [shard 939 master] Feature Load (0.8ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 9390000000000026 AND "features"."owner_type" = 'User' [shard 940 master]  (0.2ms) ROLLBACK [shard 940 master]  (0.3ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["owner_id", 789], ["owner_type", "Appendage"], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["value", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 77]] [shard 938 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 789 LIMIT 1 [shard 938 master]  (0.2ms) SAVEPOINT active_record_1 [shard 938 master]  (0.3ms) UPDATE "features" SET "owner_id" = 9390000000000027, "owner_type" = 'User', "updated_at" = '2014-08-25 21:41:10.050245' WHERE "features"."id" = 77 [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 77]] [shard 938 master]  (0.2ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 28 LIMIT 1 [shard 939 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 17]] [shard 939 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 28 LIMIT 1 [shard 939 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["user_id", 9400000000000026], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 18]] [shard 939 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 26 LIMIT 1 [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["user_id", 9390000000000030], ["value", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["user_id", 9400000000000027], ["value", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["user_id", 1565], ["value", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages"  [shard 938 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1565) [shard 938 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [shard 939 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 940 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = 30 [shard 939 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["user_id", 31], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["user_id", 9390000000000031], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["user_id", 9390000000000031], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 19], ["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11], ["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9400000000000011], ["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9400000000000012], ["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["user_id", 9400000000000028], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.0ms) SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.0ms) SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9390000000000020], ["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9400000000000013], ["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9400000000000014], ["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (31) [shard 939 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (31) [shard 939 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (9390000000000031) [shard 940 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (19, 9400000000000011) [shard 939 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (11, 12) [shard 940 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 940 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (28) [shard 940 master] Digit Load (2.0ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (13) [shard 940 master] Digit Load (0.9ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (9400000000000014) [shard 939 master] SQL (1.5ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 939 master]  (1.6ms) ROLLBACK [shard 940 master]  (1.0ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.0ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["user_id", 9390000000000032], ["value", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.0ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 793], ["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["value", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.0ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["user_id", 9400000000000029], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.0ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9390000000000021], ["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["value", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits"  [shard 938 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (793) [shard 938 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (21) [shard 939 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (32) [shard 939 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [shard 940 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 32 [shard 939 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.0ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["user_id", 9390000000000033], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["user_id", 9400000000000030], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (33) [shard 939 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (33) [shard 939 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (9390000000000033) [shard 940 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [shard 940 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (30) [shard 940 master] SQL (0.4ms) DELETE FROM "appendages" WHERE "appendages"."id" = 22 [shard 939 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master] SQL (2.5ms) DELETE FROM "switchman_shards" [shard 938 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 938], ["name", nil]] [shard 938 master]  (4.8ms) COMMIT [shard 938 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.2ms) BEGIN [shard 938 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 939], ["name", "switchman_test_shard_939"]] [shard 938 master]  (0.5ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 940], ["name", "switchman_test_shard_940"]] [shard 938 master]  (1.3ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 939 LIMIT 1 [shard 938 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1566) [shard 938 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35) [shard 939 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.0ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.0ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 36 LIMIT 1 [shard 939 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (1568) [shard 938 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (37) [shard 939 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1568]] [shard 938 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 37]] [shard 939 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.0ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 38 [shard 939 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1569]] [shard 938 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 38]] [shard 939 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.0ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (1.0ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.0ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", "non_existent_shard"]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 943 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (1.0ms) SELECT COUNT(*) FROM "users"  [shard 944 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 938], ["name", nil]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 939], ["name", "switchman_test_shard_939"]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 940], ["name", "switchman_test_shard_940"]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (938, 939) AND (id IN (939,940)) [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 938], ["name", nil]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 939], ["name", "switchman_test_shard_939"]] [shard 938 master]  (0.4ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 940], ["name", "switchman_test_shard_940"]] [shard 938 master]  (0.2ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 938], ["name", nil]] [shard 938 master]  (0.2ms) COMMIT [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 939], ["name", "switchman_test_shard_939"]] [shard 938 master]  (0.2ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 940], ["name", "switchman_test_shard_940"]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 939 LIMIT 1 [shard 938 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 40]] [shard 939 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 938 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 938 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 939 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.2ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 42 LIMIT 1 [shard 939 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) LIMIT 1 [shard 939 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 44 LIMIT 1 [shard 939 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.2ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 45]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 9390000000000045 LIMIT 1 [shard 939 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.0ms) BEGIN [shard 938 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.0ms) BEGIN [shard 938 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.0ms) BEGIN [shard 938 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.0ms) BEGIN [shard 938 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 938], ["name", nil]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 939], ["name", "switchman_test_shard_939"]] [shard 938 master]  (0.7ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 940], ["name", "switchman_test_shard_940"]] [shard 938 master]  (0.2ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '12' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) select sqlite_version(*) [shard 953 deploy]  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 953 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 953 deploy]  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 953 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) begin transaction [shard 953 deploy]  (0.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 953 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 953 deploy]  (1.6ms) commit transaction [shard 953 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 953 deploy]  (0.4ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 953 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 953 deploy]  (0.6ms) commit transaction [shard 953 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 953 deploy]  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 953 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 953 deploy]  (0.5ms) commit transaction [shard 953 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 953 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 953 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 953 deploy]  (1.0ms) commit transaction [shard 953 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 953 deploy]  (0.3ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 953 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 953 deploy]  (1.2ms) commit transaction [shard 953 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 953 deploy]  (0.4ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 953 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 953 deploy]  (0.7ms) commit transaction [shard 953 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 953 deploy]  (0.4ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 953 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 953 deploy]  (0.6ms) commit transaction [shard 953 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'db/shard_953.sqlite3' WHERE "switchman_shards"."id" = 953 [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) begin transaction [shard 953 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 953 master]  (0.6ms) commit transaction [shard 953 master] Drop failed: No such file or directory @ unlink_internal - db/shard_953.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 953]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '13' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", "public"]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (6.8ms) CREATE SCHEMA switchman_test_shard_954 [shard 954 deploy]  (2.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 954 deploy]  (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 954 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 954 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 954 deploy]  (3.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 954 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 954 deploy]  (0.3ms) COMMIT [shard 954 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 954 deploy]  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 954 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 954 deploy]  (0.3ms) COMMIT [shard 954 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 954 deploy]  (2.3ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 954 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 954 deploy]  (0.6ms) COMMIT [shard 954 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 954 deploy]  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 954 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 954 deploy]  (0.3ms) COMMIT [shard 954 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 954 deploy]  (11.4ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 954 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 954 deploy]  (0.3ms) COMMIT [shard 954 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 954 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 954 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 954 deploy]  (0.2ms) COMMIT [shard 954 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 954 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 954 deploy]  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 954 deploy]  (0.3ms) COMMIT [shard 954 deploy]  (0.2ms) SAVEPOINT active_record_1 [shard 938 master]  (0.5ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_954' WHERE "switchman_shards"."id" = 954 [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) BEGIN [shard 954 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 954 master]  (0.2ms) COMMIT [shard 954 master]  (5.2ms) DROP SCHEMA switchman_test_shard_954 CASCADE [shard 954 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.6ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 954]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 938 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_955 [shard 955 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 955 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 955 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 955 deploy] Migrating to CreateUsers (20130403132607)  (2.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 955 deploy]  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 955 deploy] Migrating to CreateAppendages (20130411202442)  (2.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 955 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 955 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.3ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 955 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 955 deploy] Migrating to CreateDigits (20131022202028)  (3.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 955 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 955 deploy] Migrating to CreateFeatures (20131206172923)  (3.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 955 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 955 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 955 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 955 deploy] Migrating to CreateRoots (20140219183820)  (3.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 955 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 955 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_955' WHERE "switchman_shards"."id" = 955 [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.2ms) SAVEPOINT active_record_1 [shard 955 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:10 UTC +00:00]] [shard 955 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 955 master]  (3.6ms) DROP SCHEMA switchman_test_shard_955 CASCADE [shard 955 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 955]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (3.9ms) ROLLBACK [shard 938 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master]  (0.2ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 938], ["name", nil]] [shard 938 master]  (0.4ms) COMMIT [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 939], ["name", "switchman_test_shard_939"]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 940], ["name", "switchman_test_shard_940"]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (1.8ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.0ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.0ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 940 LIMIT 1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10940 LIMIT 1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 939 LIMIT 1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.2ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 956]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.0ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 957]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 957 LIMIT 1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '30' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "30"], ["default", false], ["name", "public"]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_958 [shard 958 deploy]  (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 958 deploy]  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 958 deploy]  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 958 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 958 deploy]  (3.6ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 958 deploy]  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 958 deploy]  (0.3ms) COMMIT [shard 958 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 958 deploy]  (3.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 958 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 958 deploy]  (0.4ms) COMMIT [shard 958 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) BEGIN [shard 958 deploy]  (3.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 958 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 958 deploy]  (0.3ms) COMMIT [shard 958 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 958 deploy]  (2.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 958 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 958 deploy]  (1.1ms) COMMIT [shard 958 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 958 deploy]  (3.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 958 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 958 deploy]  (0.3ms) COMMIT [shard 958 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 958 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 958 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 958 deploy]  (0.5ms) COMMIT [shard 958 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 958 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 958 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 958 deploy]  (0.5ms) COMMIT [shard 958 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_958' WHERE "switchman_shards"."id" = 958 [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) BEGIN [shard 958 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 958 master]  (0.2ms) COMMIT [shard 958 master]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 958 master]  (6.8ms) DROP SCHEMA switchman_test_shard_958 CASCADE [shard 958 deploy]  (0.5ms) SELECT COUNT(*) FROM "users" [shard 958 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.3ms) BEGIN [shard 938 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.0ms) BEGIN [shard 938 master] Switchman::Shard Load (2.0ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.0ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.2ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 938], ["name", nil]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 939], ["name", "switchman_test_shard_939"]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 940], ["name", "switchman_test_shard_940"]] [shard 938 master]  (0.4ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 1571], ["value", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 1572], ["value", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 1573], ["value", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 939 master]  (0.4ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 1574], ["value", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (9.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 1575], ["value", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.3ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 1576], ["value", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.0ms) SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1576], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.0ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1577], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1577]] [shard 938 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1576 LIMIT 1 [shard 938 master]  (0.1ms) SHOW max_identifier_length [shard 938 master] User Load (0.4ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 1576 [shard 938 master]  (0.5ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 1579], ["value", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.0ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 1580], ["value", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.0ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.0ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.0ms) SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 939 LIMIT 1 [shard 938 master]  (0.6ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 1581], ["value", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.3ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 1582], ["value", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.0ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.0ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 1583], ["value", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.0ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.0ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.0ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 1584], ["value", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.0ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 1585], ["value", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 1586], ["value", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.2ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.9ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 1587], ["value", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.0ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.0ms) SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.4ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.2ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (2.6ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 1588], ["value", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.2ms) ROLLBACK [shard 938 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 938], ["name", nil]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 939], ["name", "switchman_test_shard_939"]] [shard 938 master]  (2.4ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 940], ["name", "switchman_test_shard_940"]] [shard 938 master]  (2.5ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 939 LIMIT 1 [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 940 LIMIT 1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["owner_id", 1590], ["owner_type", "User"], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["value", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master] Feature Load (0.3ms) SELECT owner_id FROM "features" WHERE "features"."id" = 78 LIMIT 1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.2ms) ROLLBACK [shard 938 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 938], ["name", nil]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.7ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 939], ["name", "switchman_test_shard_939"]] [shard 938 master]  (0.5ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 940], ["name", "switchman_test_shard_940"]] [shard 938 master]  (1.8ms) COMMIT [shard 938 master]  (0.2ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "31"], ["default", false], ["name", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "31"], ["default", false], ["name", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 938], ["name", nil]] [shard 938 master]  (0.6ms) COMMIT [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 939], ["name", "switchman_test_shard_939"]] [shard 938 master]  (0.2ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 940], ["name", "switchman_test_shard_940"]] [shard 938 master]  (0.2ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.0ms) BEGIN [shard 940 master]  (0.0ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master] User Load (0.3ms) SELECT "users".* FROM "users" [shard 939 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 938 master] SQL (0.2ms) DELETE FROM "users" [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.2ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 938 master] SQL (0.1ms) DELETE FROM "users" [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.2ms) BEGIN [shard 938 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 938 master]  (1.0ms) COMMIT [shard 938 master] User Load (0.3ms) SELECT "users".* FROM "users"  [shard 938 master] SQL (1.0ms) DELETE FROM "users" [shard 938 master] SQL (0.2ms) DELETE FROM "users" [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 938 master]  (0.4ms) COMMIT [shard 938 master] User Load (0.3ms) SELECT "users".* FROM "users"  [shard 938 master] SQL (0.4ms) DELETE FROM "users" [shard 938 master] SQL (0.5ms) DELETE FROM "users" [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 938 master]  (0.4ms) COMMIT [shard 938 master]  (0.5ms) BEGIN [shard 938 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:11 UTC +00:00]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1597]] [shard 938 master] CACHE (0.0ms) 938::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1597]] CACHE (0.0ms) 938::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1597]]  (0.1ms) BEGIN [shard 938 master]  (0.6ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-08-25 21:41:11.949526' WHERE "users"."id" = 1597 [shard 938 master]  (0.4ms) COMMIT [shard 938 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1597]] [shard 938 master] CACHE (0.0ms) 938::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1597]] SQL (0.5ms) DELETE FROM "users" [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.2ms) ROLLBACK [shard 938 master]  (0.0ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.0ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.2ms) ROLLBACK [shard 940 master]  (0.6ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (1.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.2ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.2ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.2ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.5ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.2ms) ROLLBACK [shard 938 master]  (0.0ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.2ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (1.0ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master] User Load (0.3ms) SELECT "users".* FROM "users" [shard 938 master] SQL (0.5ms) UPDATE "users" SET "updated_at" = '2014-08-25 21:41:12.034433' [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.2ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master] User Load (0.3ms) SELECT "users".* FROM "users" [shard 938 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-08-25 21:41:12.044116' [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 938 master] SQL (0.5ms) UPDATE "users" SET "updated_at" = '2014-08-25 21:41:12.051287' [shard 938 master] SQL (0.4ms) DELETE FROM "users" [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 938 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-08-25 21:41:12.058968' [shard 938 master] SQL (0.4ms) DELETE FROM "users" [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master] User Load (0.3ms) SELECT "users".* FROM "users" FOR UPDATE [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master] User Load (0.9ms) SELECT "users".* FROM "users" [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.0ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (1.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 938 master]  (0.4ms) COMMIT [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 938 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master] User Load (0.4ms) SELECT "users".* FROM "users"  [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 938 master]  (0.4ms) COMMIT [shard 938 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 938], ["name", nil]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 939], ["name", "switchman_test_shard_939"]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 940], ["name", "switchman_test_shard_940"]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 940 master]  (5.5ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.4ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master] Switchman::Shard Load (1.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 939 LIMIT 1 [shard 938 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 940 LIMIT 1 [shard 938 master] SQL (0.3ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (64) [shard 939 master] SQL (0.6ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (49) [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.2ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 65], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (5.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 940 master]  (6.5ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 939 master] SQL (0.4ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 940 master] SQL (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 939 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 940 master] SQL (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 939 master] SQL (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.3ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 939 master]  (0.4ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 66], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.2ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 939 master] SQL (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 940 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 939 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 940 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 939 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 940 master]  (0.2ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 67], ["value", 1]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 67], ["value", 2]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.3ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 52], ["value", 3]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 52], ["value", 4]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 52], ["value", 5]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.6ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 67 [shard 939 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 939 master]  (0.6ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 52 [shard 940 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 940 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (43, 44) [shard 939 master]  (0.7ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (35, 36, 37) [shard 940 master]  (0.2ms) ROLLBACK [shard 940 master]  (0.2ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.4ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 68], ["value", 1]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 68], ["value", 2]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 53], ["value", 3]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 53], ["value", 4]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 53], ["value", 5]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.5ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 68 [shard 939 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 939 master]  (0.5ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 53 [shard 940 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 940 master]  (0.5ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (45, 46) [shard 939 master]  (0.5ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (38, 39, 40) [shard 940 master]  (0.2ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 69], ["value", 1]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 69], ["value", 2]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 54], ["value", 3]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 54], ["value", 4]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.3ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 54], ["value", 5]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.6ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 69 [shard 939 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 939 master]  (0.9ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 54 [shard 940 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 940 master]  (0.8ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (47, 48) [shard 939 master]  (0.5ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (41, 42, 43) [shard 940 master]  (0.2ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 70], ["value", 1]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 70], ["value", 2]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 55], ["value", 3]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 55], ["value", 4]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 55], ["value", 5]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 70 [shard 939 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 939 master]  (0.6ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 55 [shard 940 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 940 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (49, 50) [shard 939 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (44, 45, 46) [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 71], ["value", 1]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 71], ["value", 2]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 56], ["value", 3]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 56], ["value", 4]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 56], ["value", 5]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.4ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 71 [shard 939 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" [shard 939 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 56 [shard 940 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 940 master]  (0.4ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (51, 52) [shard 939 master]  (0.4ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (47, 48, 49) [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 939 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 72], ["value", 1]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 9400000000000057], ["value", 3]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.2ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 9390000000000072], ["value", 2]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (1.0ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 57], ["value", 4]] [shard 940 master]  (0.3ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 57], ["value", 5]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 939 master]  (0.5ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 940 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 939 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 940 master]  (0.2ms) SHOW max_identifier_length [shard 940 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 939 master]  (0.5ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 940 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 939 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [shard 939 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 940 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 940 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 940 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [shard 939 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 73], ["value", 1]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 9400000000000058], ["value", 3]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 9390000000000073], ["value", 2]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 58], ["value", 4]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 58], ["value", 5]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 939 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 940 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 939 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 940 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 939 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 940 master]  (0.6ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 939 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (73) [shard 939 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 940 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 940 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 940 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (73) [shard 939 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (1.7ms) SAVEPOINT active_record_1 [shard 939 master] SQL (1.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 74], ["value", 1]] [shard 939 master]  (1.0ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.3ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 9400000000000059], ["value", 3]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 9390000000000074], ["value", 2]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 59], ["value", 4]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 59], ["value", 5]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 939 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 940 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 939 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 940 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 939 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 940 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 939 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (74) [shard 939 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 940 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 940 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 940 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (74) [shard 939 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.2ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 75], ["value", 1]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 9400000000000060], ["value", 3]] [shard 939 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 9390000000000075], ["value", 2]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 60], ["value", 4]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 60], ["value", 5]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 939 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 940 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 939 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 940 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 939 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 940 master]  (0.5ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 939 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) [shard 939 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [shard 940 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 940 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [shard 940 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) [shard 939 master]  (0.2ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.2ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 76], ["value", 1]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 9400000000000061], ["value", 3]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.2ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 9390000000000076], ["value", 2]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 61], ["value", 4]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 61], ["value", 5]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 939 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 940 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 939 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 940 master]  (0.5ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 939 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 940 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 939 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (76) [shard 939 master] User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [shard 940 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 940 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [shard 940 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (76) [shard 939 master]  (0.2ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (44.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 77], ["value", 1]] [shard 939 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 9400000000000062], ["value", 3]] [shard 939 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 9390000000000077], ["value", 2]] [shard 940 master]  (0.4ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 62], ["value", 4]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 940 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 62], ["value", 5]] [shard 940 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 77], ["value", nil]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00]] [shard 939 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.1ms) SAVEPOINT active_record_1 [shard 939 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", 78], ["value", nil]] [shard 939 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 939 master]  (0.6ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 939 master]  (0.2ms) ROLLBACK [shard 940 master]  (0.2ms) ROLLBACK [shard 939 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 938], ["name", nil]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (0.3ms) BEGIN [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 939], ["name", "switchman_test_shard_939"]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 940], ["name", "switchman_test_shard_940"]] [shard 938 master]  (0.3ms) COMMIT [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) SAVEPOINT active_record_1 [shard 938 master] SQL (0.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:41:12 UTC +00:00], ["user_id", nil]] [shard 938 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 938 master] MirrorUser Load (0.5ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 37]] [shard 938 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 37]] [shard 938 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 37 LIMIT 1 [shard 939 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 939 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master]  (0.1ms) BEGIN [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 939]] [shard 938 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 940]] [shard 938 master]  (0.1ms) BEGIN [shard 940 master]  (0.1ms) ROLLBACK [shard 940 master]  (0.1ms) ROLLBACK [shard 938 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 938 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 938 master]  (9.2ms) DROP SCHEMA switchman_test_shard_939 CASCADE [shard 939 deploy]  (0.1ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 939]]  (0.1ms) COMMIT  (13.3ms) DROP SCHEMA switchman_test_shard_940 CASCADE [shard 940 deploy]  (0.4ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 940]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.8ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.6ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_962 [shard 962 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 962 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 962 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 962 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 962 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 962 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 962 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 962 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 962 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 962 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 962 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 962 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 962 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 962 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 962 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 962 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 962 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 962 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_962' WHERE "switchman_shards"."id" = 962 [shard 961 master]  (1.1ms) COMMIT [shard 961 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 961 master]  (0.2ms) COMMIT [shard 961 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_963 [shard 963 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 963 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 963 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 963 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 963 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 963 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 963 deploy]  (0.3ms) COMMIT [shard 963 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 963 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 963 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 963 deploy]  (0.3ms) COMMIT [shard 963 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 963 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 963 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 963 deploy]  (0.3ms) COMMIT [shard 963 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 963 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 963 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 963 deploy]  (0.3ms) COMMIT [shard 963 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 963 deploy]  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 963 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 963 deploy]  (0.3ms) COMMIT [shard 963 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 963 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 963 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 963 deploy]  (0.2ms) COMMIT [shard 963 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 963 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 963 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 963 deploy]  (0.3ms) COMMIT [shard 963 deploy]  (0.1ms) BEGIN [shard 961 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_963' WHERE "switchman_shards"."id" = 963 [shard 961 master]  (0.2ms) COMMIT [shard 961 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 961], ["name", nil]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 962], ["name", "switchman_test_shard_962"]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master]  (0.0ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 963], ["name", "switchman_test_shard_963"]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (1.1ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:19 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:19 UTC +00:00], ["user_id", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 38]] [shard 961 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 38]] [shard 961 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 38 LIMIT 1 [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.2ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 961], ["name", nil]] [shard 961 master]  (0.2ms) COMMIT [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 962], ["name", "switchman_test_shard_962"]] [shard 961 master]  (0.2ms) COMMIT [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 963], ["name", "switchman_test_shard_963"]] [shard 961 master]  (0.2ms) COMMIT [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 961], ["name", nil]] [shard 961 master]  (0.2ms) COMMIT [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 962], ["name", "switchman_test_shard_962"]] [shard 961 master]  (0.2ms) COMMIT [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 963], ["name", "switchman_test_shard_963"]] [shard 961 master]  (0.2ms) COMMIT [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 963 LIMIT 1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10963 LIMIT 1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '2' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", "public"]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (6.5ms) CREATE SCHEMA switchman_test_shard_964 [shard 964 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 964 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 964 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 964 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 964 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 964 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 964 deploy]  (0.3ms) COMMIT [shard 964 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 964 deploy]  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 964 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 964 deploy]  (0.3ms) COMMIT [shard 964 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 964 deploy]  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 964 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 964 deploy]  (0.3ms) COMMIT [shard 964 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 964 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 964 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 964 deploy]  (0.3ms) COMMIT [shard 964 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 964 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 964 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 964 deploy]  (0.3ms) COMMIT [shard 964 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 964 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 964 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 964 deploy]  (0.3ms) COMMIT [shard 964 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 964 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 964 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 964 deploy]  (0.3ms) COMMIT [shard 964 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_964' WHERE "switchman_shards"."id" = 964 [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) BEGIN [shard 964 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:19 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:19 UTC +00:00]] [shard 964 master]  (0.3ms) COMMIT [shard 964 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 964 master]  (5.0ms) DROP SCHEMA switchman_test_shard_964 CASCADE [shard 964 deploy]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 964 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 962 LIMIT 1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) ROLLBACK [shard 963 master]  (0.0ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) ROLLBACK [shard 963 master]  (0.0ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 965]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 965 LIMIT 1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) ROLLBACK [shard 963 master]  (0.0ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 966]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.0ms) ROLLBACK [shard 963 master]  (0.0ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 961], ["name", nil]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.0ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 962], ["name", "switchman_test_shard_962"]] [shard 961 master]  (0.2ms) COMMIT [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 963], ["name", "switchman_test_shard_963"]] [shard 961 master]  (0.2ms) COMMIT [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master] SQL (6.7ms) DELETE FROM "switchman_shards" [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 961], ["name", nil]] [shard 961 master]  (4.9ms) COMMIT [shard 961 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 962], ["name", "switchman_test_shard_962"]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 963], ["name", "switchman_test_shard_963"]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 962 LIMIT 1 [shard 961 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1) LIMIT 1 [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1 [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 3]] [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (5.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 961 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 961 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 962 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 5 LIMIT 1 [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 6]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 9620000000000006 LIMIT 1 [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 961], ["name", nil]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 962], ["name", "switchman_test_shard_962"]] [shard 961 master]  (0.4ms) COMMIT [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 963], ["name", "switchman_test_shard_963"]] [shard 961 master]  (0.2ms) COMMIT [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:56:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:56:20 UTC +00:00]] [shard 962 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.0ms) ROLLBACK [shard 963 master]  (0.0ms) ROLLBACK [shard 962 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 961], ["name", nil]] [shard 961 master]  (0.2ms) COMMIT [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 962], ["name", "switchman_test_shard_962"]] [shard 961 master]  (0.2ms) COMMIT [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 963], ["name", "switchman_test_shard_963"]] [shard 961 master]  (0.2ms) COMMIT [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 961 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 961], ["name", nil]] [shard 961 master]  (0.2ms) COMMIT [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 962], ["name", "switchman_test_shard_962"]] [shard 961 master]  (0.2ms) COMMIT [shard 961 master]  (0.0ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 963], ["name", "switchman_test_shard_963"]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 963 master]  (0.1ms) SAVEPOINT active_record_2 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 963 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 961], ["name", nil]] [shard 961 master]  (0.2ms) COMMIT [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 962], ["name", "switchman_test_shard_962"]] [shard 961 master]  (0.2ms) COMMIT [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 963], ["name", "switchman_test_shard_963"]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 962 LIMIT 1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (6.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (6.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 963 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 961], ["name", nil]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 962], ["name", "switchman_test_shard_962"]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master]  (0.0ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 963], ["name", "switchman_test_shard_963"]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 962 LIMIT 1 [shard 961 master] SQL (0.3ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (1609) [shard 961 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (11) [shard 962 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1609]] [shard 961 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 11]] [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 12 [shard 962 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1610]] [shard 961 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 12]] [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1611) [shard 961 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (13) [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 14 LIMIT 1 [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 961], ["name", nil]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 962], ["name", "switchman_test_shard_962"]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 963], ["name", "switchman_test_shard_963"]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) ROLLBACK [shard 963 master]  (0.0ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", "non_existent_shard"]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 969 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.7ms) SELECT COUNT(*) FROM "users"  [shard 970 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 961], ["name", nil]] [shard 961 master]  (0.4ms) COMMIT [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.0ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 962], ["name", "switchman_test_shard_962"]] [shard 961 master]  (0.2ms) COMMIT [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 963], ["name", "switchman_test_shard_963"]] [shard 961 master]  (0.2ms) COMMIT [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 1614], ["value", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 1615], ["value", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 962 LIMIT 1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 1616], ["value", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 1617], ["value", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 1618], ["value", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 1619], ["value", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 1620], ["value", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 1621], ["value", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 1622], ["value", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 1623], ["value", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 25], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 1624], ["value", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 26], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 1625], ["value", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 27], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1625], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1626], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1626]] [shard 961 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1625 LIMIT 1 [shard 961 master]  (0.1ms) SHOW max_identifier_length [shard 961 master] User Load (0.4ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 1625 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.2ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 1628], ["value", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 1629], ["value", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 1630], ["value", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 1631], ["value", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 31], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 961], ["name", nil]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 962], ["name", "switchman_test_shard_962"]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master]  (0.0ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 963], ["name", "switchman_test_shard_963"]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 32], ["value", 1]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 32], ["value", 2]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 20], ["value", 3]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 20], ["value", 4]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 20], ["value", 5]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 32 [shard 962 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 962 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 20 [shard 963 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 963 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 962 LIMIT 1 [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 963 LIMIT 1 [shard 961 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (18, 19) [shard 962 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (18, 19, 20) [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 33], ["value", 1]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 33], ["value", 2]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 21], ["value", 3]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 21], ["value", 4]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 21], ["value", 5]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 33 [shard 962 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 962 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 21 [shard 963 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 963 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (20, 21) [shard 962 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (21, 22, 23) [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 34], ["value", 1]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 34], ["value", 2]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.0ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 22], ["value", 3]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 22], ["value", 4]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 22], ["value", 5]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 34 [shard 962 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 962 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 22 [shard 963 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 963 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (22, 23) [shard 962 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (24, 25, 26) [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 35], ["value", 1]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 35], ["value", 2]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 23], ["value", 3]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 23], ["value", 4]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 23], ["value", 5]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 35 [shard 962 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 962 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 23 [shard 963 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 963 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (24, 25) [shard 962 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (27, 28, 29) [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 36], ["value", 1]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 36], ["value", 2]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 24], ["value", 3]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 24], ["value", 4]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 24], ["value", 5]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 36 [shard 962 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 962 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 24 [shard 963 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 963 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (26, 27) [shard 962 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (30, 31, 32) [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 25], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 28 [shard 962 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 963 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 28 [shard 962 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 963 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 28 [shard 962 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 26], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (38) [shard 962 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (26) [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 27], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 30 [shard 962 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 963 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 30 [shard 962 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 963 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 30 [shard 962 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 40], ["value", 1]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 9630000000000028], ["value", 3]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 9620000000000040], ["value", 2]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 28], ["value", 4]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 28], ["value", 5]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 962 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 963 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 962 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 963 master]  (0.1ms) SHOW max_identifier_length [shard 963 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 962 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 963 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 962 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) [shard 962 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 963 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 963 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 963 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 41], ["value", 1]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 9630000000000029], ["value", 3]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 9620000000000041], ["value", 2]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 29], ["value", 4]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 29], ["value", 5]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 962 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 963 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 962 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 963 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 962 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 963 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 962 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [shard 962 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [shard 963 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 963 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [shard 963 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 42], ["value", 1]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 9630000000000030], ["value", 3]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 9620000000000042], ["value", 2]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 30], ["value", 4]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:20 UTC +00:00], ["user_id", 30], ["value", 5]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 962 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 963 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 962 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 963 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 962 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 963 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 962 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [shard 962 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [shard 963 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 963 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [shard 963 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 43], ["value", 1]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 9630000000000031], ["value", 3]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 9620000000000043], ["value", 2]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 31], ["value", 4]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 31], ["value", 5]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 45], ["value", 1]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 9630000000000032], ["value", 3]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 9620000000000045], ["value", 2]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 32], ["value", 4]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 32], ["value", 5]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 962 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 963 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 962 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 963 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 962 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 963 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 962 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [shard 962 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (32) [shard 963 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 963 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (32) [shard 963 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 46], ["value", 1]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 9630000000000033], ["value", 3]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 9620000000000046], ["value", 2]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 33], ["value", 4]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 33], ["value", 5]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 962 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 963 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 962 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 963 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 962 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 963 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 962 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (46) [shard 962 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (33) [shard 963 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 963 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (33) [shard 963 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (46) [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 961], ["name", nil]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 962], ["name", "switchman_test_shard_962"]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 963], ["name", "switchman_test_shard_963"]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 962 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 961 master] SQL (0.1ms) DELETE FROM "users" [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 961 master] SQL (0.1ms) DELETE FROM "users" [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 961 master] SQL (0.8ms) DELETE FROM "users" [shard 961 master] SQL (0.1ms) DELETE FROM "users" [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 961 master]  (0.2ms) COMMIT [shard 961 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 961 master] SQL (0.3ms) DELETE FROM "users" [shard 961 master] SQL (0.1ms) DELETE FROM "users" [shard 961 master]  (0.0ms) BEGIN [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master]  (0.0ms) BEGIN [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1638]] [shard 961 master] CACHE (0.0ms) 961::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1638]] CACHE (0.0ms) 961::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1638]]  (0.1ms) BEGIN [shard 961 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-08-25 21:55:21.119605' WHERE "users"."id" = 1638 [shard 961 master]  (0.3ms) COMMIT [shard 961 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1638]] [shard 961 master] CACHE (0.0ms) 961::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1638]] SQL (0.4ms) DELETE FROM "users" [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) ROLLBACK [shard 963 master]  (0.0ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.0ms) ROLLBACK [shard 963 master]  (0.0ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 961 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-08-25 21:55:21.140486' [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 961 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-08-25 21:55:21.145596' [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 961 master] SQL (0.5ms) UPDATE "users" SET "updated_at" = '2014-08-25 21:55:21.149464' [shard 961 master] SQL (0.3ms) DELETE FROM "users" [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 961 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-08-25 21:55:21.153998' [shard 961 master] SQL (0.4ms) DELETE FROM "users" [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.0ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 961 master]  (0.0ms) BEGIN [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) ROLLBACK [shard 963 master]  (0.0ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 961], ["name", nil]] [shard 961 master]  (0.2ms) COMMIT [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 962], ["name", "switchman_test_shard_962"]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 963], ["name", "switchman_test_shard_963"]] [shard 961 master]  (0.2ms) COMMIT [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 962 LIMIT 1 [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 963 LIMIT 1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["owner_id", 1648], ["owner_type", "User"], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["value", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master] Feature Load (0.5ms) SELECT owner_id FROM "features" WHERE "features"."id" = 79 LIMIT 1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 961], ["name", nil]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 962], ["name", "switchman_test_shard_962"]] [shard 961 master]  (0.2ms) COMMIT [shard 961 master]  (0.0ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 963], ["name", "switchman_test_shard_963"]] [shard 961 master]  (0.2ms) COMMIT [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 961], ["name", nil]] [shard 961 master]  (0.4ms) COMMIT [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 962], ["name", "switchman_test_shard_962"]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 963], ["name", "switchman_test_shard_963"]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (961, 962) AND (id IN (962,963)) [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) ROLLBACK [shard 963 master]  (0.0ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 961], ["name", nil]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.0ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 962], ["name", "switchman_test_shard_962"]] [shard 961 master]  (0.2ms) COMMIT [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 963], ["name", "switchman_test_shard_963"]] [shard 961 master]  (0.2ms) COMMIT [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 963 LIMIT 1 [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 962 LIMIT 1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.0ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 50 AND "appendages"."id" = $1 LIMIT 1 [["id", 46]] [shard 962 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 35 AND "appendages"."id" = $1 LIMIT 1 [["id", 46]] [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 47]] [shard 962 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 51 LIMIT 1 [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.0ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.2ms) ROLLBACK [shard 962 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 54], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 55], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 54]] [shard 962 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 54 AND "users"."id" = 56 LIMIT 1 [shard 962 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 54]] [shard 962 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 54 AND "users"."id" = 9630000000000040 LIMIT 1 [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 57 [shard 962 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 57]] [shard 962 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 57 [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 51], ["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master] Digit Load (0.6ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 58 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.0ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 62], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 52], ["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["value", 1]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 9620000000000062], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["value", 2]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 62 [shard 962 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 62]] [shard 962 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 62 [shard 962 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9620000000000062 [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 63], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 53], ["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 9620000000000063], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["value", 2]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 63 AND "digits"."value" IS NULL [shard 962 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9620000000000063 AND "digits"."value" IS NULL [shard 963 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [shard 962 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 63 AND "digits"."value" IS NULL [shard 962 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9620000000000063 AND "digits"."value" IS NULL [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 54], ["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 54], ["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["value", 1]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 9620000000000064], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 57], ["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["value", 2]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 64 AND (digits.value IS NOT NULL) [shard 962 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9620000000000064 AND (digits.value IS NOT NULL) [shard 963 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 64]] [shard 962 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 64 AND (digits.value IS NOT NULL) [shard 962 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9620000000000064 AND (digits.value IS NOT NULL) [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 65], ["value", 1]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 9620000000000065], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 65], ["value", 2]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 65]] [shard 962 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 65 AND (appendages.value IS NOT NULL) [shard 962 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 9620000000000065 AND (appendages.value IS NOT NULL) [shard 963 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 65]] [shard 962 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 65 AND (appendages.value IS NOT NULL) [shard 962 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 9620000000000065 AND (appendages.value IS NOT NULL) [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 66], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 57], ["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 9620000000000066], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 59], ["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["value", 2]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 66 AND "digits"."value" IS NULL [shard 962 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9620000000000066 AND "digits"."value" IS NULL [shard 963 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 66]] [shard 962 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 66 AND "digits"."value" IS NULL [shard 962 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9620000000000066 AND "digits"."value" IS NULL [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 67], ["value", 1]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 9620000000000067], ["value", 2]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 67 [shard 962 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 67]] [shard 962 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 67 [shard 962 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 9620000000000067 [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 68], ["value", 1]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 9620000000000068], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 68 AND "appendages"."value" IS NULL [shard 962 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 9620000000000068 AND "appendages"."value" IS NULL [shard 963 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 68]] [shard 962 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 68 AND "appendages"."value" IS NULL [shard 962 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 9620000000000068 AND "appendages"."value" IS NULL [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 69 LIMIT 1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 60]] [shard 962 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 69 LIMIT 1 [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 9630000000000054], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 61]] [shard 962 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 54 LIMIT 1 [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.7ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 9630000000000055]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master] Root Load (0.4ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 40]] [shard 961 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 55 LIMIT 1 [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (5.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["owner_id", 72], ["owner_type", "User"], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["value", 1]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.8ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["owner_id", 9620000000000072], ["owner_type", "User"], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["value", 2]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 72 AND "features"."owner_type" = 'User' [shard 962 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 72]] [shard 962 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 72 AND "features"."owner_type" = 'User' [shard 962 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 9620000000000072 AND "features"."owner_type" = 'User' [shard 963 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.0ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.3ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["owner_id", 828], ["owner_type", "Appendage"], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["value", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 80]] [shard 961 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 828 LIMIT 1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master]  (0.3ms) UPDATE "features" SET "owner_id" = 9620000000000073, "owner_type" = 'User', "updated_at" = '2014-08-25 21:55:21.651812' WHERE "features"."id" = 80 [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 80]] [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 9620000000000074], ["value", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 829], ["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["value", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 9630000000000058], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9620000000000062], ["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["value", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" [shard 961 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (829) [shard 961 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (62) [shard 962 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (74) [shard 962 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 963 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 74 [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 9620000000000075], ["value", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 9630000000000059], ["value", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 1649], ["value", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages"  [shard 961 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1649) [shard 961 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) [shard 962 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 963 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 75 [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 76], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 9620000000000076], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 9620000000000076], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 63], ["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 63], ["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9630000000000063], ["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9630000000000064], ["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 9630000000000060], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.0ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9620000000000064], ["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9630000000000065], ["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9630000000000066], ["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (76) [shard 962 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (76) [shard 962 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (9620000000000076) [shard 963 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (63, 9630000000000063) [shard 962 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (63, 64) [shard 963 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [shard 963 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (60) [shard 963 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (65) [shard 963 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (9630000000000066) [shard 962 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.1ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 77], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 9620000000000077], ["value", nil]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["user_id", 9630000000000061], ["value", nil]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (77) [shard 962 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (77) [shard 962 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (9620000000000077) [shard 963 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [shard 963 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (61) [shard 963 master] SQL (0.1ms) DELETE FROM "appendages" WHERE "appendages"."id" = 65 [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master]  (0.0ms) SAVEPOINT active_record_1 [shard 962 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.0ms) SAVEPOINT active_record_1 [shard 963 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 963 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 963 master]  (0.1ms) SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 962 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 962 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 961], ["name", nil]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 962], ["name", "switchman_test_shard_962"]] [shard 961 master]  (0.4ms) COMMIT [shard 961 master]  (0.1ms) BEGIN [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 963], ["name", "switchman_test_shard_963"]] [shard 961 master]  (0.3ms) COMMIT [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '15' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", "public"]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_981 [shard 981 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 981 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 981 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 981 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 981 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 981 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 981 deploy]  (0.4ms) COMMIT [shard 981 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 981 deploy]  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 981 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 981 deploy]  (0.3ms) COMMIT [shard 981 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 981 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 981 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 981 deploy]  (0.3ms) COMMIT [shard 981 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 981 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 981 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 981 deploy]  (0.3ms) COMMIT [shard 981 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 981 deploy]  (2.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 981 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 981 deploy]  (0.3ms) COMMIT [shard 981 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 981 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 981 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 981 deploy]  (0.3ms) COMMIT [shard 981 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 981 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 981 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 981 deploy]  (0.3ms) COMMIT [shard 981 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_981' WHERE "switchman_shards"."id" = 981 [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) BEGIN [shard 981 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 981 master]  (0.2ms) COMMIT [shard 981 master]  (5.0ms) DROP SCHEMA switchman_test_shard_981 CASCADE [shard 981 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 981]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '16' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", nil]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) select sqlite_version(*) [shard 982 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 982 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 982 deploy]  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 982 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 982 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 982 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 982 deploy]  (0.6ms) commit transaction [shard 982 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 982 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 982 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 982 deploy]  (0.7ms) commit transaction [shard 982 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 982 deploy]  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 982 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 982 deploy]  (0.7ms) commit transaction [shard 982 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 982 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 982 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 982 deploy]  (0.7ms) commit transaction [shard 982 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 982 deploy]  (0.3ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 982 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 982 deploy]  (0.7ms) commit transaction [shard 982 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 982 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 982 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 982 deploy]  (0.5ms) commit transaction [shard 982 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 982 deploy]  (0.3ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 982 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 982 deploy]  (0.7ms) commit transaction [shard 982 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_982.sqlite3' WHERE "switchman_shards"."id" = 982 [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.0ms) begin transaction [shard 982 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 982 master]  (0.7ms) commit transaction [shard 982 master] Drop failed: No such file or directory @ unlink_internal - db/shard_982.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 982]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 962]] [shard 961 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 963]] [shard 961 master]  (0.0ms) BEGIN [shard 963 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 961 master]  (0.2ms) CREATE SCHEMA switchman_test_shard_983 [shard 983 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 983 deploy]  (6.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 983 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 983 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 983 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 983 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 983 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 983 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 983 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 983 deploy] Migrating to CreateDigits (20131022202028)  (2.3ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 983 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 983 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 983 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 983 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 983 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 983 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 983 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 983 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_983' WHERE "switchman_shards"."id" = 983 [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) SAVEPOINT active_record_1 [shard 983 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 21:55:21 UTC +00:00]] [shard 983 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 983 master]  (3.6ms) DROP SCHEMA switchman_test_shard_983 CASCADE [shard 983 deploy]  (0.0ms) SAVEPOINT active_record_1 [shard 961 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 983]] [shard 961 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 961 master]  (0.1ms) ROLLBACK [shard 963 master]  (2.1ms) ROLLBACK [shard 961 master] SQL (0.7ms) DELETE FROM "switchman_shards" [shard 961 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 961 master]  (0.1ms) BEGIN [shard 961 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master]  (0.0ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.1ms) BEGIN [shard 961 master]  (0.1ms) ROLLBACK [shard 961 master]  (0.0ms) BEGIN [shard 961 master]  (0.0ms) ROLLBACK [shard 961 master]  (4.8ms) DROP SCHEMA switchman_test_shard_962 CASCADE [shard 962 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 962]]  (0.1ms) COMMIT  (6.1ms) DROP SCHEMA switchman_test_shard_963 CASCADE [shard 963 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 963]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.2ms) CREATE SCHEMA switchman_test_shard_985 [shard 985 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 985 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 985 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 985 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 985 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 985 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 985 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 985 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 985 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 985 deploy] Migrating to CreateDigits (20131022202028)  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 985 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 985 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 985 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 985 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 985 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 985 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 985 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 985 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_985' WHERE "switchman_shards"."id" = 985 [shard 984 master]  (1.2ms) COMMIT [shard 984 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 984 master]  (0.2ms) COMMIT [shard 984 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_986 [shard 986 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 986 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 986 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 986 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 986 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 986 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 986 deploy]  (0.3ms) COMMIT [shard 986 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 986 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 986 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 986 deploy]  (0.3ms) COMMIT [shard 986 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 986 deploy]  (1.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 986 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 986 deploy]  (0.3ms) COMMIT [shard 986 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 986 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 986 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 986 deploy]  (0.3ms) COMMIT [shard 986 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 986 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 986 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 986 deploy]  (0.3ms) COMMIT [shard 986 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 986 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 986 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 986 deploy]  (0.2ms) COMMIT [shard 986 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 986 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 986 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 986 deploy]  (0.3ms) COMMIT [shard 986 deploy]  (0.1ms) BEGIN [shard 984 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_986' WHERE "switchman_shards"."id" = 986 [shard 984 master]  (0.3ms) COMMIT [shard 984 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 984], ["name", nil]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 985], ["name", "switchman_test_shard_985"]] [shard 984 master]  (0.2ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 986], ["name", "switchman_test_shard_986"]] [shard 984 master]  (0.2ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (1.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.9ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 985 LIMIT 1 [shard 984 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 1]] [shard 985 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (5.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2], ["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master] Digit Load (0.6ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 985 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.9ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 986 LIMIT 1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (6.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["user_id", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 8 AND "appendages"."id" = $1 LIMIT 1 [["id", 6]] [shard 985 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 8 AND "appendages"."id" = $1 LIMIT 1 [["id", 6]] [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 10], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 11], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 10]] [shard 985 master]  (0.1ms) SHOW max_identifier_length [shard 985 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 10 AND "users"."id" = 12 LIMIT 1 [shard 985 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 10]] [shard 985 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 10 AND "users"."id" = 9860000000000011 LIMIT 1 [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 985 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 13 [shard 985 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 13]] [shard 985 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 13 [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.0ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["value", 1]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["user_id", 9850000000000015], ["value", nil]] [shard 986 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2], ["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["value", 2]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15 [shard 985 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 15]] [shard 985 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15 [shard 985 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9850000000000015 [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9], ["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["user_id", 9850000000000016], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3], ["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["value", 2]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 16 AND "digits"."value" IS NULL [shard 985 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9850000000000016 AND "digits"."value" IS NULL [shard 986 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 16]] [shard 985 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 16 AND "digits"."value" IS NULL [shard 985 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9850000000000016 AND "digits"."value" IS NULL [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["user_id", 17], ["value", 1]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["user_id", 9850000000000017], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 17 AND "appendages"."value" IS NULL [shard 985 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 9850000000000017 AND "appendages"."value" IS NULL [shard 986 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 985 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 17 AND "appendages"."value" IS NULL [shard 985 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 9850000000000017 AND "appendages"."value" IS NULL [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 986 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["user_id", 18], ["value", 1]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["user_id", 9850000000000018], ["value", 2]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 18 [shard 985 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 985 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 18 [shard 985 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 9850000000000018 [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.0ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12], ["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12], ["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["value", 1]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["user_id", 9850000000000019], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6], ["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["value", 2]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 19 AND (digits.value IS NOT NULL) [shard 985 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9850000000000019 AND (digits.value IS NOT NULL) [shard 986 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [shard 985 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 19 AND (digits.value IS NOT NULL) [shard 985 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9850000000000019 AND (digits.value IS NOT NULL) [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.0ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["user_id", 20], ["value", 1]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["user_id", 9850000000000020], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["user_id", 20], ["value", 2]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 985 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 20 AND (appendages.value IS NOT NULL) [shard 985 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 9850000000000020 AND (appendages.value IS NOT NULL) [shard 986 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 985 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 20 AND (appendages.value IS NOT NULL) [shard 985 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 9850000000000020 AND (appendages.value IS NOT NULL) [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15], ["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["user_id", 9850000000000021], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["value", 2]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 21 AND "digits"."value" IS NULL [shard 985 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9850000000000021 AND "digits"."value" IS NULL [shard 986 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 985 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 21 AND "digits"."value" IS NULL [shard 985 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9850000000000021 AND "digits"."value" IS NULL [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.2ms) ROLLBACK [shard 985 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["user_id", 9850000000000022], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:39 UTC +00:00], ["user_id", 9860000000000021], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 985 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (22) [shard 985 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (9850000000000022) [shard 986 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 986 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (21) [shard 986 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 16 [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 9850000000000023], ["value", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 833], ["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["value", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 9860000000000022], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9850000000000018], ["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["value", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits"  [shard 984 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (833) [shard 984 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (18) [shard 985 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 985 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 986 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 23 [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 9850000000000024], ["value", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 9860000000000023], ["value", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 1650], ["value", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 984 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1650) [shard 984 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 985 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 986 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 24 [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 25], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 9850000000000025], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 9850000000000025], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 19], ["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10], ["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9860000000000010], ["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9860000000000011], ["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 9860000000000024], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9850000000000020], ["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9860000000000012], ["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9860000000000013], ["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 985 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (25) [shard 985 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (9850000000000025) [shard 986 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (19, 9860000000000010) [shard 985 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (10, 11) [shard 986 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 986 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (24) [shard 986 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (12) [shard 986 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (9860000000000013) [shard 985 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 9860000000000025], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 21]] [shard 985 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 25 LIMIT 1 [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 27 LIMIT 1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 27], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 22]] [shard 985 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 27 LIMIT 1 [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 9860000000000027]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 41]] [shard 984 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 27 LIMIT 1 [shard 986 master]  (0.2ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["owner_id", 837], ["owner_type", "Appendage"], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["value", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 81]] [shard 984 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 837 LIMIT 1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master]  (0.2ms) UPDATE "features" SET "owner_id" = 9850000000000029, "owner_type" = 'User', "updated_at" = '2014-08-25 22:20:40.144942' WHERE "features"."id" = 81 [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 81]] [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["owner_id", 30], ["owner_type", "User"], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["value", 1]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["owner_id", 9850000000000030], ["owner_type", "User"], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["value", 2]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 30 AND "features"."owner_type" = 'User' [shard 985 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 30]] [shard 985 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 30 AND "features"."owner_type" = 'User' [shard 985 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 9850000000000030 AND "features"."owner_type" = 'User' [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 984 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 984], ["name", nil]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 985], ["name", "switchman_test_shard_985"]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 986], ["name", "switchman_test_shard_986"]] [shard 984 master]  (0.2ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '2' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", "public"]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_987 [shard 987 deploy]  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 987 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 987 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 987 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 987 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 987 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 987 deploy]  (0.3ms) COMMIT [shard 987 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 987 deploy]  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 987 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 987 deploy]  (0.3ms) COMMIT [shard 987 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 987 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 987 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 987 deploy]  (0.3ms) COMMIT [shard 987 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 987 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 987 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 987 deploy]  (0.3ms) COMMIT [shard 987 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 987 deploy]  (1.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 987 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 987 deploy]  (0.3ms) COMMIT [shard 987 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 987 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 987 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 987 deploy]  (0.3ms) COMMIT [shard 987 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 987 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 987 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 987 deploy]  (0.3ms) COMMIT [shard 987 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_987' WHERE "switchman_shards"."id" = 987 [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) BEGIN [shard 987 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 987 master]  (0.3ms) COMMIT [shard 987 master]  (4.8ms) DROP SCHEMA switchman_test_shard_987 CASCADE [shard 987 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 987]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '3' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.0ms) select sqlite_version(*) [shard 988 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 988 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 988 deploy]  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 988 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 988 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 988 deploy]  (1.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 988 deploy]  (20.1ms) commit transaction [shard 988 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 988 deploy]  (0.3ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 988 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 988 deploy]  (16.3ms) commit transaction [shard 988 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) begin transaction [shard 988 deploy]  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 988 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 988 deploy]  (10.4ms) commit transaction [shard 988 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) begin transaction [shard 988 deploy]  (0.3ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 988 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 988 deploy]  (0.9ms) commit transaction [shard 988 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 988 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 988 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 988 deploy]  (0.9ms) commit transaction [shard 988 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 988 deploy]  (0.6ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 988 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 988 deploy]  (0.7ms) commit transaction [shard 988 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 988 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 988 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 988 deploy]  (0.7ms) commit transaction [shard 988 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_988.sqlite3' WHERE "switchman_shards"."id" = 988 [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.0ms) begin transaction [shard 988 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 988 master]  (0.7ms) commit transaction [shard 988 master] Drop failed: No such file or directory @ unlink_internal - db/shard_988.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 988]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 984 master]  (0.1ms) CREATE SCHEMA switchman_test_shard_989 [shard 989 deploy]  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 989 deploy]  (6.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 989 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 989 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 989 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 989 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 989 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 989 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 989 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 989 deploy] Migrating to CreateDigits (20131022202028)  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 989 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 989 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 989 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 989 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 989 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 989 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 989 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 989 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_989' WHERE "switchman_shards"."id" = 989 [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 989 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 989 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 989 master]  (2.5ms) DROP SCHEMA switchman_test_shard_989 CASCADE [shard 989 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 989]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (2.6ms) ROLLBACK [shard 984 master] SQL (5.9ms) DELETE FROM "switchman_shards" [shard 984 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master]  (0.0ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master]  (0.0ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master]  (0.0ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 984], ["name", nil]] [shard 984 master]  (6.2ms) COMMIT [shard 984 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 985], ["name", "switchman_test_shard_985"]] [shard 984 master]  (6.1ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 986], ["name", "switchman_test_shard_986"]] [shard 984 master]  (5.9ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.2ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master] SQL (0.7ms) DELETE FROM "switchman_shards" [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 984], ["name", nil]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 985], ["name", "switchman_test_shard_985"]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 986], ["name", "switchman_test_shard_986"]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 31], ["value", 1]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 986 LIMIT 1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 9860000000000030], ["value", 3]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 985 LIMIT 1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 9850000000000031], ["value", 2]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 30], ["value", 4]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 30], ["value", 5]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SHOW max_identifier_length [shard 984 master]  (0.4ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 985 master]  (0.7ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 986 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 985 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 986 master]  (0.1ms) SHOW max_identifier_length [shard 986 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 985 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 986 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 985 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (31) [shard 985 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [shard 986 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 986 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [shard 986 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (31) [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 32], ["value", 1]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 9860000000000031], ["value", 3]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 9850000000000032], ["value", 2]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 31], ["value", 4]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 31], ["value", 5]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 985 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 986 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 985 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 986 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 985 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 986 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 985 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (32) [shard 985 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (31) [shard 986 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 986 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (31) [shard 986 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (32) [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 33], ["value", 1]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 9860000000000032], ["value", 3]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 9850000000000033], ["value", 2]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 32], ["value", 4]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 32], ["value", 5]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 985 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 986 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 985 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 986 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 985 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 986 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 985 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (33) [shard 985 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (32) [shard 986 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 986 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (32) [shard 986 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (33) [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.0ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 34], ["value", 1]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 9860000000000033], ["value", 3]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 9850000000000034], ["value", 2]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 33], ["value", 4]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 33], ["value", 5]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 36], ["value", 1]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 9860000000000034], ["value", 3]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 9850000000000036], ["value", 2]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 34], ["value", 4]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 34], ["value", 5]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 985 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 986 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 985 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 986 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 985 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 986 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 985 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (36) [shard 985 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (34) [shard 986 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 986 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (34) [shard 986 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (36) [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 37], ["value", 1]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 9860000000000035], ["value", 3]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 9850000000000037], ["value", 2]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 35], ["value", 4]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 35], ["value", 5]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 985 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 986 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 985 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 986 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 985 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 986 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 985 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 985 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35) [shard 986 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 986 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35) [shard 986 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 985 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 38], ["value", 1]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 38], ["value", 2]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 36], ["value", 3]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 36], ["value", 4]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 36], ["value", 5]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 38 [shard 985 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 985 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 36 [shard 986 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" [shard 986 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (37, 38) [shard 985 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (33, 34, 35) [shard 986 master]  (0.2ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 39], ["value", 1]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 39], ["value", 2]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 37], ["value", 3]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 37], ["value", 4]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 37], ["value", 5]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 39 [shard 985 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 985 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 37 [shard 986 master]  (0.1ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 986 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (39, 40) [shard 985 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (36, 37, 38) [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 40], ["value", 1]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 40], ["value", 2]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 38], ["value", 3]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 38], ["value", 4]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 38], ["value", 5]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 40 [shard 985 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 985 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 38 [shard 986 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 986 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (41, 42) [shard 985 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (39, 40, 41) [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 41], ["value", 1]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 41], ["value", 2]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 39], ["value", 3]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 39], ["value", 4]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 39], ["value", 5]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 41 [shard 985 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 985 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 39 [shard 986 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 986 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (43, 44) [shard 985 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (42, 43, 44) [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 42], ["value", 1]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 42], ["value", 2]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 40], ["value", 3]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 40], ["value", 4]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 40], ["value", 5]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 42 [shard 985 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 985 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 40 [shard 986 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 986 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (45, 46) [shard 985 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (45, 46, 47) [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 47 [shard 985 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 48 [shard 986 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 47 [shard 985 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 48 [shard 986 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 47 [shard 985 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 48 [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 48 [shard 985 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 49 [shard 986 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 48 [shard 985 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 49 [shard 986 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 48 [shard 985 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 49 [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (45) [shard 985 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (43) [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 984], ["name", nil]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 985], ["name", "switchman_test_shard_985"]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 986], ["name", "switchman_test_shard_986"]] [shard 984 master]  (0.2ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:21:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:21:40 UTC +00:00]] [shard 985 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.0ms) ROLLBACK [shard 985 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 984], ["name", nil]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 985], ["name", "switchman_test_shard_985"]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master]  (0.0ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 986], ["name", "switchman_test_shard_986"]] [shard 984 master]  (0.2ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.0ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.0ms) ROLLBACK [shard 984 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 984], ["name", nil]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 985], ["name", "switchman_test_shard_985"]] [shard 984 master]  (0.2ms) COMMIT [shard 984 master]  (0.0ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 986], ["name", "switchman_test_shard_986"]] [shard 984 master]  (0.2ms) COMMIT [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:40 UTC +00:00], ["user_id", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 39]] [shard 984 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 39]] [shard 984 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 39 LIMIT 1 [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 984], ["name", nil]] [shard 984 master]  (0.2ms) COMMIT [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 985], ["name", "switchman_test_shard_985"]] [shard 984 master]  (0.2ms) COMMIT [shard 984 master]  (0.0ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 986], ["name", "switchman_test_shard_986"]] [shard 984 master]  (0.2ms) COMMIT [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (984, 985) AND (id IN (985,986)) [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 984], ["name", nil]] [shard 984 master]  (0.2ms) COMMIT [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 985], ["name", "switchman_test_shard_985"]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master]  (0.0ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 986], ["name", "switchman_test_shard_986"]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["owner_id", 1652], ["owner_type", "User"], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["value", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 82 LIMIT 1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 985 LIMIT 1 [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 986 LIMIT 1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master] SQL (6.1ms) DELETE FROM "switchman_shards" [shard 984 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 984], ["name", nil]] [shard 984 master]  (6.2ms) COMMIT [shard 984 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 985], ["name", "switchman_test_shard_985"]] [shard 984 master]  (4.8ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 986], ["name", "switchman_test_shard_986"]] [shard 984 master]  (0.4ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 984], ["name", nil]] [shard 984 master]  (0.4ms) COMMIT [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 985], ["name", "switchman_test_shard_985"]] [shard 984 master]  (0.2ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 986], ["name", "switchman_test_shard_986"]] [shard 984 master]  (0.2ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 48]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 9850000000000048 LIMIT 1 [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 985 LIMIT 1 [shard 984 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 49 LIMIT 1 [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (50) LIMIT 1 [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 51]] [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 52 LIMIT 1 [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.2ms) ROLLBACK [shard 985 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 984 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 984 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 985 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 984], ["name", nil]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 985], ["name", "switchman_test_shard_985"]] [shard 984 master]  (0.2ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 986], ["name", "switchman_test_shard_986"]] [shard 984 master]  (0.2ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SELECT COUNT(*) FROM "users"  [shard 986 master]  (0.1ms) SAVEPOINT active_record_2 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 986 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) SELECT COUNT(*) FROM "users"  [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 984], ["name", nil]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 985], ["name", "switchman_test_shard_985"]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 986], ["name", "switchman_test_shard_986"]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 984 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 984], ["name", nil]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.0ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 985], ["name", "switchman_test_shard_985"]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master]  (0.0ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 986], ["name", "switchman_test_shard_986"]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 984], ["name", nil]] [shard 984 master]  (0.2ms) COMMIT [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.0ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 985], ["name", "switchman_test_shard_985"]] [shard 984 master]  (0.2ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 986], ["name", "switchman_test_shard_986"]] [shard 984 master]  (0.2ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 985 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master] User Load (0.3ms) SELECT "users".* FROM "users"  [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.4ms) COMMIT [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 984 master] SQL (0.2ms) DELETE FROM "users" [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 984 master] SQL (0.1ms) DELETE FROM "users" [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.4ms) COMMIT [shard 984 master]  (0.0ms) BEGIN [shard 984 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.2ms) COMMIT [shard 984 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1662]] [shard 984 master] CACHE (0.0ms) 984::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1662]] CACHE (0.0ms) 984::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1662]]  (0.1ms) BEGIN [shard 984 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-08-25 22:20:41.280383' WHERE "users"."id" = 1662 [shard 984 master]  (0.3ms) COMMIT [shard 984 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1662]] [shard 984 master] CACHE (0.0ms) 984::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1662]] SQL (0.4ms) DELETE FROM "users" [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.4ms) COMMIT [shard 984 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 984 master] SQL (0.6ms) DELETE FROM "users" [shard 984 master] SQL (0.1ms) DELETE FROM "users" [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 984 master] SQL (0.4ms) DELETE FROM "users" [shard 984 master] SQL (0.1ms) DELETE FROM "users" [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 984 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-08-25 22:20:41.298359' [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 984 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-08-25 22:20:41.304191' [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.4ms) COMMIT [shard 984 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 984 master] SQL (0.5ms) UPDATE "users" SET "updated_at" = '2014-08-25 22:20:41.308406' [shard 984 master] SQL (0.3ms) DELETE FROM "users" [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.2ms) COMMIT [shard 984 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 984 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-08-25 22:20:41.313289' [shard 984 master] SQL (0.3ms) DELETE FROM "users" [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.0ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 984], ["name", nil]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 985], ["name", "switchman_test_shard_985"]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master]  (0.0ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 986], ["name", "switchman_test_shard_986"]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 985 LIMIT 1 [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 986 LIMIT 1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10986 LIMIT 1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.0ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 996]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 996 LIMIT 1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.0ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master] Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 997]] [shard 984 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.0ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '13' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", "public"]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_998 [shard 998 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 998 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 998 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 998 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 998 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 998 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 998 deploy]  (0.3ms) COMMIT [shard 998 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 998 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 998 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 998 deploy]  (0.3ms) COMMIT [shard 998 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 998 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 998 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 998 deploy]  (0.3ms) COMMIT [shard 998 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 998 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 998 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 998 deploy]  (0.3ms) COMMIT [shard 998 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 998 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 998 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 998 deploy]  (0.3ms) COMMIT [shard 998 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 998 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 998 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 998 deploy]  (0.3ms) COMMIT [shard 998 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 998 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 998 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 998 deploy]  (0.3ms) COMMIT [shard 998 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_998' WHERE "switchman_shards"."id" = 998 [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) BEGIN [shard 998 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 998 master]  (0.3ms) COMMIT [shard 998 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 998 master]  (4.7ms) DROP SCHEMA switchman_test_shard_998 CASCADE [shard 998 deploy]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 998 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 984], ["name", nil]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.0ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 985], ["name", "switchman_test_shard_985"]] [shard 984 master]  (0.2ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 986], ["name", "switchman_test_shard_986"]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 984], ["name", nil]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 985], ["name", "switchman_test_shard_985"]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 986], ["name", "switchman_test_shard_986"]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 57 [shard 985 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1670]] [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 985 LIMIT 1 [shard 984 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 57]] [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (1671) [shard 984 master] SQL (0.1ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (58) [shard 985 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1671]] [shard 984 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 58]] [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 59 LIMIT 1 [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1673) [shard 984 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.0ms) BEGIN [shard 984 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", "non_existent_shard"]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", nil]] [shard 984 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 999 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.7ms) SELECT COUNT(*) FROM "users" [shard 1000 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "17"], ["default", false], ["name", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "18"], ["default", false], ["name", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "19"], ["default", false], ["name", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "20"], ["default", false], ["name", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "21"], ["default", false], ["name", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 984], ["name", nil]] [shard 984 master]  (0.2ms) COMMIT [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 985], ["name", "switchman_test_shard_985"]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 986], ["name", "switchman_test_shard_986"]] [shard 984 master]  (0.2ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 985 LIMIT 1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.9ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) ROLLBACK [shard 986 master]  (0.0ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master] SQL (6.2ms) DELETE FROM "switchman_shards" [shard 984 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 984], ["name", nil]] [shard 984 master]  (4.8ms) COMMIT [shard 984 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 985], ["name", "switchman_test_shard_985"]] [shard 984 master]  (0.3ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 984 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 986], ["name", "switchman_test_shard_986"]] [shard 984 master]  (0.2ms) COMMIT [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 1676], ["value", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 1677], ["value", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 65], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 985 LIMIT 1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 1678], ["value", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 66], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 1679], ["value", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 67], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 1680], ["value", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 68], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 985 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 1681], ["value", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 1682], ["value", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 70], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 1683], ["value", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 71], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 1684], ["value", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 72], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master]  (0.0ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 1685], ["value", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 73], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 1686], ["value", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 74], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 1687], ["value", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 75], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 1688], ["value", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 76], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 1689], ["value", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 77], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.0ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.0ms) BEGIN [shard 986 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 1690], ["value", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.0ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.0ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 78], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.2ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master]  (0.1ms) BEGIN [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 985]] [shard 984 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 986]] [shard 984 master]  (0.1ms) BEGIN [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 1691], ["value", nil]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 985 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 79], ["value", nil]] [shard 985 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 985 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 986 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["user_id", 62], ["value", nil]] [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 986 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1691], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master]  (0.1ms) SAVEPOINT active_record_1 [shard 984 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1692], ["updated_at", Mon, 25 Aug 2014 22:20:41 UTC +00:00]] [shard 984 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 984 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1692]] [shard 984 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1691 LIMIT 1 [shard 984 master]  (0.1ms) SHOW max_identifier_length [shard 984 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 1691 [shard 984 master]  (0.1ms) ROLLBACK [shard 986 master]  (0.1ms) ROLLBACK [shard 984 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 984 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 984 master]  (5.0ms) DROP SCHEMA switchman_test_shard_985 CASCADE [shard 985 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 985]]  (0.1ms) COMMIT  (5.7ms) DROP SCHEMA switchman_test_shard_986 CASCADE [shard 986 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 986]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.6ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (1.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.9ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (5.1ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (1.2ms) CREATE SCHEMA switchman_test_shard_1008 [shard 1008 deploy]  (3.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1008 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1008 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1008 deploy] Migrating to CreateUsers (20130403132607)  (8.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1008 deploy]  (6.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1008 deploy] Migrating to CreateAppendages (20130411202442)  (7.3ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1008 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1008 deploy] Migrating to CreateMirrorUsers (20130411202551)  (7.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1008 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1008 deploy] Migrating to CreateDigits (20131022202028)  (7.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1008 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1008 deploy] Migrating to CreateFeatures (20131206172923)  (8.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1008 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1008 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1008 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1008 deploy] Migrating to CreateRoots (20140219183820)  (7.3ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1008 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1008 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1008' WHERE "switchman_shards"."id" = 1008 [shard 1007 master]  (7.5ms) COMMIT [shard 1007 master] Switchman::Shard Load (5.0ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1009 [shard 1009 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1009 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1009 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1009 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1009 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1009 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1009 deploy]  (0.3ms) COMMIT [shard 1009 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1009 deploy]  (2.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1009 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1009 deploy]  (0.3ms) COMMIT [shard 1009 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) BEGIN [shard 1009 deploy]  (7.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1009 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1009 deploy]  (5.3ms) COMMIT [shard 1009 deploy] Migrating to CreateDigits (20131022202028)  (6.0ms) BEGIN [shard 1009 deploy]  (8.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1009 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1009 deploy]  (6.2ms) COMMIT [shard 1009 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 1009 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1009 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1009 deploy]  (0.3ms) COMMIT [shard 1009 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1009 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1009 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1009 deploy]  (0.2ms) COMMIT [shard 1009 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1009 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1009 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1009 deploy]  (0.4ms) COMMIT [shard 1009 deploy]  (0.1ms) BEGIN [shard 1007 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1009' WHERE "switchman_shards"."id" = 1009 [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1007], ["name", nil]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1008], ["name", "switchman_test_shard_1008"]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1009], ["name", "switchman_test_shard_1009"]] [shard 1007 master]  (0.2ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master] SQL (7.3ms) DELETE FROM "switchman_shards" [shard 1007 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", "non_existent_shard"]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 5: WHERE a.attrelid = '"users"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.5ms) SELECT COUNT(*) FROM "users"  [shard 1013 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master]  (0.0ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1007], ["name", nil]] [shard 1007 master]  (5.8ms) COMMIT [shard 1007 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1008], ["name", "switchman_test_shard_1008"]] [shard 1007 master]  (6.1ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1009], ["name", "switchman_test_shard_1009"]] [shard 1007 master]  (4.7ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '10' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.0ms) select sqlite_version(*) [shard 1020 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 1020 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1020 deploy]  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1020 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 1020 deploy]  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1020 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1020 deploy]  (0.8ms) commit transaction [shard 1020 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 1020 deploy]  (0.3ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1020 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1020 deploy]  (0.6ms) commit transaction [shard 1020 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 1020 deploy]  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1020 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1020 deploy]  (0.7ms) commit transaction [shard 1020 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 1020 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1020 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1020 deploy]  (0.7ms) commit transaction [shard 1020 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 1020 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1020 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1020 deploy]  (0.6ms) commit transaction [shard 1020 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 1020 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 1020 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1020 deploy]  (0.7ms) commit transaction [shard 1020 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 1020 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1020 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1020 deploy]  (0.6ms) commit transaction [shard 1020 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_1020.sqlite3' WHERE "switchman_shards"."id" = 1020 [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.0ms) begin transaction [shard 1020 master] SQL (1.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1020 master]  (0.7ms) commit transaction [shard 1020 master] Drop failed: No such file or directory @ unlink_internal - db/shard_1020.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1020]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '11' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", "public"]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (6.2ms) CREATE SCHEMA switchman_test_shard_1021 [shard 1021 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1021 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1021 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1021 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1021 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1021 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1021 deploy]  (0.3ms) COMMIT [shard 1021 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1021 deploy]  (2.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1021 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1021 deploy]  (0.3ms) COMMIT [shard 1021 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) BEGIN [shard 1021 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1021 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1021 deploy]  (0.3ms) COMMIT [shard 1021 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1021 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1021 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1021 deploy]  (0.3ms) COMMIT [shard 1021 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1021 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1021 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1021 deploy]  (0.3ms) COMMIT [shard 1021 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1021 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1021 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1021 deploy]  (0.3ms) COMMIT [shard 1021 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1021 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1021 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1021 deploy]  (0.4ms) COMMIT [shard 1021 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1021' WHERE "switchman_shards"."id" = 1021 [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) BEGIN [shard 1021 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1021 master]  (0.3ms) COMMIT [shard 1021 master]  (5.7ms) DROP SCHEMA switchman_test_shard_1021 CASCADE [shard 1021 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1021]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.2ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 1007 master]  (0.1ms) CREATE SCHEMA switchman_test_shard_1022 [shard 1022 deploy]  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1022 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1022 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1022 deploy] Migrating to CreateUsers (20130403132607)  (1.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1022 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1022 deploy] Migrating to CreateAppendages (20130411202442)  (1.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1022 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1022 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1022 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1022 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1022 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1022 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1022 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1022 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1022 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1022 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1022 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1022 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1022' WHERE "switchman_shards"."id" = 1022 [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1022 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1022 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1022 master]  (2.6ms) DROP SCHEMA switchman_test_shard_1022 CASCADE [shard 1022 deploy]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1022]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (2.1ms) ROLLBACK [shard 1007 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master]  (0.0ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1007], ["name", nil]] [shard 1007 master]  (6.2ms) COMMIT [shard 1007 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1008], ["name", "switchman_test_shard_1008"]] [shard 1007 master]  (5.7ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1009], ["name", "switchman_test_shard_1009"]] [shard 1007 master]  (5.0ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '25' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "25"], ["default", false], ["name", "public"]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_1023 [shard 1023 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1023 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1023 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1023 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1023 deploy]  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1023 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1023 deploy]  (0.3ms) COMMIT [shard 1023 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1023 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1023 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1023 deploy]  (0.3ms) COMMIT [shard 1023 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1023 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1023 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1023 deploy]  (0.3ms) COMMIT [shard 1023 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1023 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1023 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1023 deploy]  (0.3ms) COMMIT [shard 1023 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1023 deploy]  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1023 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1023 deploy]  (0.3ms) COMMIT [shard 1023 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1023 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1023 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1023 deploy]  (0.2ms) COMMIT [shard 1023 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1023 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1023 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1023 deploy]  (0.3ms) COMMIT [shard 1023 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1023' WHERE "switchman_shards"."id" = 1023 [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) BEGIN [shard 1023 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1023 master]  (0.3ms) COMMIT [shard 1023 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 1023 master]  (4.8ms) DROP SCHEMA switchman_test_shard_1023 CASCADE [shard 1023 deploy]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 1023 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.2ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) ROLLBACK [shard 1009 master]  (0.0ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1008 LIMIT 1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) ROLLBACK [shard 1009 master]  (0.0ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1024]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1024 LIMIT 1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1025]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11009 LIMIT 1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1009 LIMIT 1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.0ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master] SQL (6.2ms) DELETE FROM "switchman_shards" [shard 1007 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1007], ["name", nil]] [shard 1007 master]  (5.0ms) COMMIT [shard 1007 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1008], ["name", "switchman_test_shard_1008"]] [shard 1007 master]  (0.2ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1009], ["name", "switchman_test_shard_1009"]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (1.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master]  (0.5ms) SELECT COUNT(*) FROM "users"  [shard 1009 master]  (0.1ms) SAVEPOINT active_record_2 [shard 1009 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1009 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master] SQL (6.1ms) DELETE FROM "switchman_shards" [shard 1007 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1007 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1007], ["name", nil]] [shard 1007 master]  (5.7ms) COMMIT [shard 1007 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1008], ["name", "switchman_test_shard_1008"]] [shard 1007 master]  (5.7ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1009], ["name", "switchman_test_shard_1009"]] [shard 1007 master]  (4.9ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "27"], ["default", false], ["name", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "27"], ["default", false], ["name", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1007], ["name", nil]] [shard 1007 master]  (0.2ms) COMMIT [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1008], ["name", "switchman_test_shard_1008"]] [shard 1007 master]  (0.4ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1009], ["name", "switchman_test_shard_1009"]] [shard 1007 master]  (0.2ms) COMMIT [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (6.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1008 LIMIT 1 [shard 1007 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 2 AND "appendages"."id" = $1 LIMIT 1 [["id", 2]] [shard 1008 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 4 AND "appendages"."id" = $1 LIMIT 1 [["id", 2]] [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 4 [shard 1008 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 4]] [shard 1008 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 4 [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.2ms) ROLLBACK [shard 1009 master]  (0.2ms) ROLLBACK [shard 1008 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (1.0ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1009 LIMIT 1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 8], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 9], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 8]] [shard 1008 master]  (5.7ms) SHOW max_identifier_length [shard 1008 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 8 AND "users"."id" = 10 LIMIT 1 [shard 1008 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 8]] [shard 1008 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 8 AND "users"."id" = 10090000000000011 LIMIT 1 [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (1.0ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5], ["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["value", nil]] [shard 1008 master]  (0.7ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master] Digit Load (0.8ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 11 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 7]] [shard 1008 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 13 LIMIT 1 [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 10080000000000015], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (1.0ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2], ["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["value", 2]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15 AND "digits"."value" IS NULL [shard 1008 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 10080000000000015 AND "digits"."value" IS NULL [shard 1009 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 15]] [shard 1008 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15 AND "digits"."value" IS NULL [shard 1008 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 10080000000000015 AND "digits"."value" IS NULL [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9], ["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 10080000000000016], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3], ["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["value", 2]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 16 AND "digits"."value" IS NULL [shard 1008 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 10080000000000016 AND "digits"."value" IS NULL [shard 1009 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 16]] [shard 1008 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 16 AND "digits"."value" IS NULL [shard 1008 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 10080000000000016 AND "digits"."value" IS NULL [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 17], ["value", 1]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 10080000000000017], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 17], ["value", 2]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 1008 master]  (0.8ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 17 AND (appendages.value IS NOT NULL) [shard 1008 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 10080000000000017 AND (appendages.value IS NOT NULL) [shard 1009 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 1008 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 17 AND (appendages.value IS NOT NULL) [shard 1008 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 10080000000000017 AND (appendages.value IS NOT NULL) [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12], ["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["value", 1]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 10080000000000018], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5], ["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["value", 2]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 18 [shard 1008 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 1008 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 18 [shard 1008 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 10080000000000018 [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 19], ["value", 1]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 10080000000000019], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 19 AND "appendages"."value" IS NULL [shard 1008 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 10080000000000019 AND "appendages"."value" IS NULL [shard 1009 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [shard 1008 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 19 AND "appendages"."value" IS NULL [shard 1008 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 10080000000000019 AND "appendages"."value" IS NULL [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 20], ["value", 1]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 10080000000000020], ["value", 2]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 20 [shard 1008 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 1008 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 20 [shard 1008 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 10080000000000020 [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15], ["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15], ["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["value", 1]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 10080000000000021], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["value", 2]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 21 AND (digits.value IS NOT NULL) [shard 1008 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 10080000000000021 AND (digits.value IS NOT NULL) [shard 1009 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 1008 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 21 AND (digits.value IS NOT NULL) [shard 1008 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 10080000000000021 AND (digits.value IS NOT NULL) [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (1.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["owner_id", 855], ["owner_type", "Appendage"], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["value", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 83]] [shard 1007 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 855 LIMIT 1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master]  (0.2ms) UPDATE "features" SET "owner_id" = 10080000000000022, "owner_type" = 'User', "updated_at" = '2014-08-26 18:28:26.914385' WHERE "features"."id" = 83 [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 83]] [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (8.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["owner_id", 23], ["owner_type", "User"], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["value", 1]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.9ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["owner_id", 10080000000000023], ["owner_type", "User"], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["value", 2]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 23 AND "features"."owner_type" = 'User' [shard 1008 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 23]] [shard 1008 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 23 AND "features"."owner_type" = 'User' [shard 1008 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 10080000000000023 AND "features"."owner_type" = 'User' [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.2ms) ROLLBACK [shard 1008 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 10080000000000024], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 10080000000000024], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 16], ["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9], ["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10090000000000009], ["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10090000000000010], ["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 10090000000000025], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 25], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 25], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10080000000000017], ["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10090000000000011], ["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10090000000000012], ["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 1008 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (24) [shard 1008 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (10080000000000024) [shard 1009 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (16, 10090000000000009) [shard 1008 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (9, 10) [shard 1009 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 1009 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (25) [shard 1009 master] Digit Load (0.1ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (11) [shard 1009 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (10090000000000012) [shard 1008 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 1008 master]  (0.2ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 25], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 10080000000000025], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:26 UTC +00:00], ["user_id", 10090000000000026], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 1008 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (25) [shard 1008 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (10080000000000025) [shard 1009 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 1009 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (26) [shard 1009 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 18 [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 10080000000000026], ["value", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 10090000000000027], ["value", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 1694], ["value", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages"  [shard 1007 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1694) [shard 1007 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 1008 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 1009 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 26 [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 10080000000000027], ["value", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 859], ["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["value", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 10090000000000028], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10080000000000020], ["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["value", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits"  [shard 1007 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (859) [shard 1007 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (20) [shard 1008 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 1008 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 1009 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 27 [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.6ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 10090000000000029]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master] Root Load (0.4ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 42]] [shard 1007 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 29 LIMIT 1 [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 10090000000000030], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 21]] [shard 1008 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 30 LIMIT 1 [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 30 LIMIT 1 [shard 1008 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 22]] [shard 1008 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 30 LIMIT 1 [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1007], ["name", nil]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1008], ["name", "switchman_test_shard_1008"]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1009], ["name", "switchman_test_shard_1009"]] [shard 1007 master]  (0.2ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["owner_id", 1695], ["owner_type", "User"], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["value", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 84 LIMIT 1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1008 LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1009 LIMIT 1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master] SQL (6.1ms) DELETE FROM "switchman_shards" [shard 1007 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1007], ["name", nil]] [shard 1007 master]  (6.1ms) COMMIT [shard 1007 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1008], ["name", "switchman_test_shard_1008"]] [shard 1007 master]  (5.1ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1009], ["name", "switchman_test_shard_1009"]] [shard 1007 master]  (0.4ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 1697], ["value", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 31], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 1698], ["value", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1698], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1699], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1699]] [shard 1007 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1698 LIMIT 1 [shard 1007 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 1698 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 1701], ["value", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 1702], ["value", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1008 LIMIT 1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 1703], ["value", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 1704], ["value", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 1705], ["value", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 1706], ["value", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 1707], ["value", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 1708], ["value", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 1709], ["value", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 1710], ["value", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 1711], ["value", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 1712], ["value", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 1713], ["value", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 1714], ["value", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 1008 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1007], ["name", nil]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1008], ["name", "switchman_test_shard_1008"]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1009], ["name", "switchman_test_shard_1009"]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:29:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:29:27 UTC +00:00]] [shard 1008 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.0ms) ROLLBACK [shard 1009 master]  (0.0ms) ROLLBACK [shard 1008 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1007], ["name", nil]] [shard 1007 master]  (6.1ms) COMMIT [shard 1007 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1008], ["name", "switchman_test_shard_1008"]] [shard 1007 master]  (6.2ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1009], ["name", "switchman_test_shard_1009"]] [shard 1007 master]  (6.2ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1007], ["name", nil]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1008], ["name", "switchman_test_shard_1008"]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1009], ["name", "switchman_test_shard_1009"]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (1007, 1008) AND (id IN (1008,1009)) [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1007], ["name", nil]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1008], ["name", "switchman_test_shard_1008"]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1009], ["name", "switchman_test_shard_1009"]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 48 LIMIT 1 [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 1007 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1007 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1008 master] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1009 master]  (0.2ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 50]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 10080000000000050 LIMIT 1 [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1008 LIMIT 1 [shard 1007 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 51]] [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 52 LIMIT 1 [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) LIMIT 1 [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master] SQL (6.1ms) DELETE FROM "switchman_shards" [shard 1007 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1007], ["name", nil]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1008], ["name", "switchman_test_shard_1008"]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1009], ["name", "switchman_test_shard_1009"]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1008 LIMIT 1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1008 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1007], ["name", nil]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1008], ["name", "switchman_test_shard_1008"]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1009], ["name", "switchman_test_shard_1009"]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.2ms) ROLLBACK [shard 1008 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 58 LIMIT 1 [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1008 LIMIT 1 [shard 1007 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1719) [shard 1007 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 60 [shard 1008 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1720]] [shard 1007 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 60]] [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (1721) [shard 1007 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (61) [shard 1008 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1721]] [shard 1007 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master] SQL (5.0ms) DELETE FROM "switchman_shards" [shard 1007 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1007], ["name", nil]] [shard 1007 master]  (0.4ms) COMMIT [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1008], ["name", "switchman_test_shard_1008"]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1009], ["name", "switchman_test_shard_1009"]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.2ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1007], ["name", nil]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1008], ["name", "switchman_test_shard_1008"]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1009], ["name", "switchman_test_shard_1009"]] [shard 1007 master]  (0.2ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["user_id", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 40]] [shard 1007 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 40]] [shard 1007 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 40 LIMIT 1 [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.0ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1007], ["name", nil]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1008], ["name", "switchman_test_shard_1008"]] [shard 1007 master]  (0.2ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1009], ["name", "switchman_test_shard_1009"]] [shard 1007 master]  (0.2ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "28"], ["default", false], ["name", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "29"], ["default", false], ["name", nil]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master] SQL (1.0ms) DELETE FROM "switchman_shards" [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1007], ["name", nil]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1008], ["name", "switchman_test_shard_1008"]] [shard 1007 master]  (0.2ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1009], ["name", "switchman_test_shard_1009"]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1007], ["name", nil]] [shard 1007 master]  (0.2ms) COMMIT [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1008], ["name", "switchman_test_shard_1008"]] [shard 1007 master]  (0.2ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1009], ["name", "switchman_test_shard_1009"]] [shard 1007 master]  (0.2ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1008 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1007 master] SQL (0.3ms) DELETE FROM "users" [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1007 master] SQL (0.2ms) DELETE FROM "users" [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.4ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1727]] [shard 1007 master] CACHE (0.0ms) 1007::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1727]] CACHE (0.0ms) 1007::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1727]]  (0.1ms) BEGIN [shard 1007 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-08-26 18:28:27.892298' WHERE "users"."id" = 1727 [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1727]] [shard 1007 master] CACHE (0.0ms) 1007::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1727]] SQL (0.3ms) DELETE FROM "users" [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1007 master] SQL (0.9ms) DELETE FROM "users" [shard 1007 master] SQL (0.1ms) DELETE FROM "users" [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1007 master] SQL (0.3ms) DELETE FROM "users" [shard 1007 master] SQL (0.1ms) DELETE FROM "users" [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1007 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-08-26 18:28:27.914299' [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1007 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-08-26 18:28:27.919527' [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1007 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-08-26 18:28:27.923213' [shard 1007 master] SQL (0.3ms) DELETE FROM "users" [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1007 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-08-26 18:28:27.928073' [shard 1007 master] SQL (0.3ms) DELETE FROM "users" [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.4ms) COMMIT [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1007 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:27 UTC +00:00]] [shard 1007 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) ROLLBACK [shard 1009 master]  (0.0ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1007 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1007 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1007], ["name", nil]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1008], ["name", "switchman_test_shard_1008"]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master]  (0.1ms) BEGIN [shard 1007 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1009], ["name", "switchman_test_shard_1009"]] [shard 1007 master]  (0.3ms) COMMIT [shard 1007 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 65], ["value", 1]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1009 LIMIT 1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 10090000000000049], ["value", 3]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1008 LIMIT 1 [shard 1007 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 10080000000000065], ["value", 2]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 49], ["value", 4]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 49], ["value", 5]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SHOW max_identifier_length [shard 1007 master]  (0.5ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1008 master]  (0.5ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1009 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1008 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1009 master]  (0.1ms) SHOW max_identifier_length [shard 1009 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1008 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1009 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1008 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 1008 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (49) [shard 1009 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1009 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (49) [shard 1009 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 66], ["value", 1]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 10090000000000050], ["value", 3]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 10080000000000066], ["value", 2]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 50], ["value", 4]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 50], ["value", 5]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1008 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1009 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1008 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1009 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1008 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1009 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1008 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 1008 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (50) [shard 1009 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1009 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (50) [shard 1009 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 67], ["value", 1]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 10090000000000051], ["value", 3]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 10080000000000067], ["value", 2]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 51], ["value", 4]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 51], ["value", 5]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1008 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1009 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1008 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1009 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1008 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1009 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1008 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 1008 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (51) [shard 1009 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1009 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (51) [shard 1009 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 68], ["value", 1]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 10090000000000052], ["value", 3]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 10080000000000068], ["value", 2]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 52], ["value", 4]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 52], ["value", 5]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1008 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1009 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1008 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1009 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1008 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1009 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1008 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (68) [shard 1008 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (52) [shard 1009 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1009 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (52) [shard 1009 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (68) [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 69], ["value", 1]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 10090000000000053], ["value", 3]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 10080000000000069], ["value", 2]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 53], ["value", 4]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 53], ["value", 5]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.7ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1008 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1009 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1008 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1009 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1008 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1009 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1008 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (69) [shard 1008 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 1009 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1009 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 1009 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (69) [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 70], ["value", 1]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 10090000000000054], ["value", 3]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 10080000000000070], ["value", 2]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 54], ["value", 4]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 54], ["value", 5]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 70], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 71], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 1008 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 72], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 54 [shard 1008 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 1009 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 54 [shard 1008 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 1009 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 54 [shard 1008 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 73], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (73) [shard 1008 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (56) [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 74], ["value", nil]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 56 [shard 1008 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 1009 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 56 [shard 1008 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 1009 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 56 [shard 1008 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 75], ["value", 1]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 75], ["value", 2]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 58], ["value", 3]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 58], ["value", 4]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 58], ["value", 5]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 75 [shard 1008 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1008 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 58 [shard 1009 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1009 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (57, 58) [shard 1008 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (53, 54, 55) [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 76], ["value", 1]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 76], ["value", 2]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 59], ["value", 3]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 59], ["value", 4]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 59], ["value", 5]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 76 [shard 1008 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1008 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 59 [shard 1009 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1009 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (59, 60) [shard 1008 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (56, 57, 58) [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 77], ["value", 1]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 77], ["value", 2]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 60], ["value", 3]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 60], ["value", 4]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 60], ["value", 5]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 77 [shard 1008 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 1008 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 60 [shard 1009 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 1009 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (61, 62) [shard 1008 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (59, 60, 61) [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.0ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.0ms) BEGIN [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 78], ["value", 1]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 78], ["value", 2]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00]] [shard 1009 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 61], ["value", 3]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 61], ["value", 4]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 61], ["value", 5]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 78 [shard 1008 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1008 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 61 [shard 1009 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1009 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (63, 64) [shard 1008 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (62, 63, 64) [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master]  (0.1ms) BEGIN [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1008]] [shard 1007 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1009]] [shard 1007 master]  (0.1ms) BEGIN [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 79], ["value", 1]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1008 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 79], ["value", 2]] [shard 1008 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1008 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 62], ["value", 3]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 62], ["value", 4]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1009 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:28:28 UTC +00:00], ["user_id", 62], ["value", 5]] [shard 1009 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1009 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 79 [shard 1008 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1008 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 62 [shard 1009 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1009 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (65, 66) [shard 1008 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (65, 66, 67) [shard 1009 master]  (0.1ms) ROLLBACK [shard 1009 master]  (0.1ms) ROLLBACK [shard 1008 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1007 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1007 master]  (5.0ms) DROP SCHEMA switchman_test_shard_1008 CASCADE [shard 1008 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1008]]  (0.1ms) COMMIT  (6.5ms) DROP SCHEMA switchman_test_shard_1009 CASCADE [shard 1009 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1009]]  (0.2ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.1ms) COMMIT Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (1.0ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.5ms) CREATE SCHEMA switchman_test_shard_1031 [shard 1031 deploy]  (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1031 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1031 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1031 deploy] Migrating to CreateUsers (20130403132607)  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1031 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1031 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1031 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1031 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1031 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1031 deploy] Migrating to CreateDigits (20131022202028)  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1031 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1031 deploy] Migrating to CreateFeatures (20131206172923)  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1031 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1031 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1031 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1031 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1031 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1031 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1031' WHERE "switchman_shards"."id" = 1031 [shard 1030 master]  (1.0ms) COMMIT [shard 1030 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 1030 master]  (0.2ms) COMMIT [shard 1030 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1032 [shard 1032 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1032 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1032 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1032 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1032 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1032 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1032 deploy]  (0.2ms) COMMIT [shard 1032 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1032 deploy]  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1032 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1032 deploy]  (0.3ms) COMMIT [shard 1032 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1032 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1032 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1032 deploy]  (0.4ms) COMMIT [shard 1032 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1032 deploy]  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1032 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1032 deploy]  (0.3ms) COMMIT [shard 1032 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1032 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1032 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1032 deploy]  (0.4ms) COMMIT [shard 1032 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1032 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1032 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1032 deploy]  (0.3ms) COMMIT [shard 1032 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1032 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1032 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1032 deploy]  (0.2ms) COMMIT [shard 1032 deploy]  (0.1ms) BEGIN [shard 1030 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1032' WHERE "switchman_shards"."id" = 1032 [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1030], ["name", nil]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1031], ["name", "switchman_test_shard_1031"]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1032], ["name", "switchman_test_shard_1032"]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 1], ["value", 1]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1032 LIMIT 1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 10320000000000001], ["value", 3]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1031 LIMIT 1 [shard 1030 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (6.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 10310000000000001], ["value", 2]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 1], ["value", 4]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 1], ["value", 5]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SHOW max_identifier_length [shard 1031 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.2ms) ROLLBACK [shard 1031 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 3], ["value", 1]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 10320000000000002], ["value", 3]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 10310000000000003], ["value", 2]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 2], ["value", 4]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 2], ["value", 5]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.5ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1031 master]  (0.5ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1032 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1031 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1032 master]  (0.1ms) SHOW max_identifier_length [shard 1032 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1031 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1032 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1031 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (3) [shard 1031 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2) [shard 1032 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1032 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2) [shard 1032 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (3) [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 4], ["value", 1]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 10320000000000003], ["value", 3]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 10310000000000004], ["value", 2]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 3], ["value", 4]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 3], ["value", 5]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1031 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1032 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1031 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1032 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1031 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1032 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1031 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (4) [shard 1031 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (3) [shard 1032 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1032 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (3) [shard 1032 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (4) [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 5], ["value", 1]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 10320000000000004], ["value", 3]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 10310000000000005], ["value", 2]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 4], ["value", 4]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 4], ["value", 5]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1031 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1032 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1031 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1032 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1031 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1032 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1031 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [shard 1031 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (4) [shard 1032 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1032 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (4) [shard 1032 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 6], ["value", 1]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 10320000000000005], ["value", 3]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 10310000000000006], ["value", 2]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 5], ["value", 4]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 5], ["value", 5]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1031 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1032 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1031 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1032 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1031 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1032 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1031 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) [shard 1031 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [shard 1032 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1032 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [shard 1032 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 7], ["value", 1]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 10320000000000006], ["value", 3]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 10310000000000007], ["value", 2]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 6], ["value", 4]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 6], ["value", 5]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1031 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1032 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1031 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1032 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1031 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1032 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1031 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (7) [shard 1031 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) [shard 1032 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1032 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) [shard 1032 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (7) [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 8], ["value", 1]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 8], ["value", 2]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 7], ["value", 3]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 7], ["value", 4]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 7], ["value", 5]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 8 [shard 1031 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1031 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 7 [shard 1032 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1032 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (15, 16) [shard 1031 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (19, 20, 21) [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 9], ["value", 1]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 9], ["value", 2]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 8], ["value", 3]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 8], ["value", 4]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 8], ["value", 5]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 9 [shard 1031 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1031 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 8 [shard 1032 master]  (0.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1032 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (17, 18) [shard 1031 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (22, 23, 24) [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 10], ["value", 1]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 10], ["value", 2]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 9], ["value", 3]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 9], ["value", 4]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 9], ["value", 5]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 10 [shard 1031 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1031 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 9 [shard 1032 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1032 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (19, 20) [shard 1031 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (25, 26, 27) [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 11], ["value", 1]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 11], ["value", 2]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 10], ["value", 3]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 10], ["value", 4]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 10], ["value", 5]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 11 [shard 1031 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 1031 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 10 [shard 1032 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 1032 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (21, 22) [shard 1031 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (28, 29, 30) [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 12], ["value", 1]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 12], ["value", 2]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 11], ["value", 3]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 11], ["value", 4]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 11], ["value", 5]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 12 [shard 1031 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1031 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 11 [shard 1032 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1032 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (23, 24) [shard 1031 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (31, 32, 33) [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 25 [shard 1031 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 1032 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 25 [shard 1031 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 1032 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 25 [shard 1031 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 26 [shard 1031 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 1032 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 26 [shard 1031 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 1032 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 26 [shard 1031 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (15) [shard 1031 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (14) [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1030], ["name", nil]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1031], ["name", "switchman_test_shard_1031"]] [shard 1030 master]  (0.4ms) COMMIT [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1032], ["name", "switchman_test_shard_1032"]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1030], ["name", nil]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1031], ["name", "switchman_test_shard_1031"]] [shard 1030 master]  (0.2ms) COMMIT [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1032], ["name", "switchman_test_shard_1032"]] [shard 1030 master]  (0.2ms) COMMIT [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master]  (0.0ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1030], ["name", nil]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1031], ["name", "switchman_test_shard_1031"]] [shard 1030 master]  (0.2ms) COMMIT [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1032], ["name", "switchman_test_shard_1032"]] [shard 1030 master]  (0.2ms) COMMIT [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1030], ["name", nil]] [shard 1030 master]  (0.4ms) COMMIT [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1031], ["name", "switchman_test_shard_1031"]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1032], ["name", "switchman_test_shard_1032"]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 1032 master]  (0.1ms) SAVEPOINT active_record_2 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1032 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master] SQL (6.3ms) DELETE FROM "switchman_shards" [shard 1030 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1030], ["name", nil]] [shard 1030 master]  (5.9ms) COMMIT [shard 1030 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1031], ["name", "switchman_test_shard_1031"]] [shard 1030 master]  (6.3ms) COMMIT [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1032], ["name", "switchman_test_shard_1032"]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master] SQL (0.2ms) DELETE FROM "switchman_shards" [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master]  (0.0ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1030 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1030], ["name", nil]] [shard 1030 master]  (0.2ms) COMMIT [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1031], ["name", "switchman_test_shard_1031"]] [shard 1030 master]  (0.2ms) COMMIT [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1032], ["name", "switchman_test_shard_1032"]] [shard 1030 master]  (0.2ms) COMMIT [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["owner_id", 1738], ["owner_type", "User"], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["value", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master] Feature Load (0.4ms) SELECT owner_id FROM "features" WHERE "features"."id" = 85 LIMIT 1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1031 LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1032 LIMIT 1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:33 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master] SQL (6.2ms) DELETE FROM "switchman_shards" [shard 1030 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1030], ["name", nil]] [shard 1030 master]  (6.0ms) COMMIT [shard 1030 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1031], ["name", "switchman_test_shard_1031"]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1032], ["name", "switchman_test_shard_1032"]] [shard 1030 master]  (0.2ms) COMMIT [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1032 LIMIT 1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11032 LIMIT 1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1031 LIMIT 1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.0ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1035]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.0ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1036]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1036 LIMIT 1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '4' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", "public"]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1037 [shard 1037 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1037 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1037 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1037 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1037 deploy]  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1037 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1037 deploy]  (0.3ms) COMMIT [shard 1037 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1037 deploy]  (2.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1037 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1037 deploy]  (0.3ms) COMMIT [shard 1037 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1037 deploy]  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1037 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1037 deploy]  (0.4ms) COMMIT [shard 1037 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1037 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1037 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1037 deploy]  (0.3ms) COMMIT [shard 1037 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1037 deploy]  (2.4ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1037 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1037 deploy]  (0.4ms) COMMIT [shard 1037 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1037 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1037 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1037 deploy]  (0.3ms) COMMIT [shard 1037 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1037 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1037 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1037 deploy]  (0.3ms) COMMIT [shard 1037 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1037' WHERE "switchman_shards"."id" = 1037 [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) BEGIN [shard 1037 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1037 master]  (0.3ms) COMMIT [shard 1037 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 1037 master]  (4.9ms) DROP SCHEMA switchman_test_shard_1037 CASCADE [shard 1037 deploy]  (0.4ms) SELECT COUNT(*) FROM "users"  [shard 1037 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.0ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1030], ["name", nil]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1031], ["name", "switchman_test_shard_1031"]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1032], ["name", "switchman_test_shard_1032"]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 17]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 10310000000000017 LIMIT 1 [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1031 LIMIT 1 [shard 1030 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 18 LIMIT 1 [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) LIMIT 1 [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 21 LIMIT 1 [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 1030 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1030 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1031 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", "non_existent_shard"]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 1038 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.8ms) SELECT COUNT(*) FROM "users"  [shard 1039 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1030], ["name", nil]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1031], ["name", "switchman_test_shard_1031"]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1032], ["name", "switchman_test_shard_1032"]] [shard 1030 master]  (0.2ms) COMMIT [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 24 [shard 1031 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1741]] [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1031 LIMIT 1 [shard 1030 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 24]] [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (1742) [shard 1030 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (25) [shard 1031 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1742]] [shard 1030 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 25]] [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 26 LIMIT 1 [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1744) [shard 1030 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master]  (0.0ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1030], ["name", nil]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1031], ["name", "switchman_test_shard_1031"]] [shard 1030 master]  (0.2ms) COMMIT [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1032], ["name", "switchman_test_shard_1032"]] [shard 1030 master]  (0.2ms) COMMIT [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (1030, 1031) AND (id IN (1031,1032)) [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1030], ["name", nil]] [shard 1030 master]  (0.4ms) COMMIT [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1031], ["name", "switchman_test_shard_1031"]] [shard 1030 master]  (0.2ms) COMMIT [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1032], ["name", "switchman_test_shard_1032"]] [shard 1030 master]  (0.2ms) COMMIT [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1031 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1030 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-08-26 18:51:34.359679' [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1030 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-08-26 18:51:34.366539' [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1030 master] SQL (1.0ms) UPDATE "users" SET "updated_at" = '2014-08-26 18:51:34.371045' [shard 1030 master] SQL (0.4ms) DELETE FROM "users" [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1030 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-08-26 18:51:34.381764' [shard 1030 master] SQL (0.3ms) DELETE FROM "users" [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.0ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1030 master]  (0.4ms) COMMIT [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1030 master]  (0.4ms) COMMIT [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1030 master] SQL (0.2ms) DELETE FROM "users" [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1030 master] SQL (0.1ms) DELETE FROM "users" [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1030 master]  (0.2ms) COMMIT [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1757]] [shard 1030 master] CACHE (0.0ms) 1030::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1757]] CACHE (0.0ms) 1030::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1757]]  (0.1ms) BEGIN [shard 1030 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-08-26 18:51:34.451712' WHERE "users"."id" = 1757 [shard 1030 master]  (0.4ms) COMMIT [shard 1030 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1757]] [shard 1030 master] CACHE (0.0ms) 1030::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1757]] SQL (0.4ms) DELETE FROM "users" [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1030 master]  (0.2ms) COMMIT [shard 1030 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1030 master] SQL (0.3ms) DELETE FROM "users" [shard 1030 master] SQL (0.1ms) DELETE FROM "users" [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1030 master] SQL (0.3ms) DELETE FROM "users" [shard 1030 master] SQL (0.1ms) DELETE FROM "users" [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.0ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) ROLLBACK [shard 1032 master]  (0.0ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) ROLLBACK [shard 1032 master]  (0.0ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1030], ["name", nil]] [shard 1030 master]  (0.2ms) COMMIT [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1031], ["name", "switchman_test_shard_1031"]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1032], ["name", "switchman_test_shard_1032"]] [shard 1030 master]  (0.2ms) COMMIT [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1032 LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1031 LIMIT 1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 31], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 32], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 31]] [shard 1031 master]  (0.1ms) SHOW max_identifier_length [shard 1031 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 31 AND "users"."id" = 33 LIMIT 1 [shard 1031 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 31]] [shard 1031 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 31 AND "users"."id" = 10320000000000020 LIMIT 1 [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 29]] [shard 1031 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 34 LIMIT 1 [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 31], ["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 39 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 40 AND "appendages"."id" = $1 LIMIT 1 [["id", 32]] [shard 1031 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 27 AND "appendages"."id" = $1 LIMIT 1 [["id", 32]] [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 42 [shard 1031 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 42]] [shard 1031 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 42 [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 35], ["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 10310000000000044], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 38], ["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["value", 2]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 44 AND "digits"."value" IS NULL [shard 1031 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 10310000000000044 AND "digits"."value" IS NULL [shard 1032 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 44]] [shard 1031 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 44 AND "digits"."value" IS NULL [shard 1031 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 10310000000000044 AND "digits"."value" IS NULL [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 36], ["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 36], ["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["value", 1]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 10310000000000045], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 39], ["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["value", 2]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.5ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 45 AND (digits.value IS NOT NULL) [shard 1031 master]  (0.6ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 10310000000000045 AND (digits.value IS NOT NULL) [shard 1032 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 45]] [shard 1031 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 45 AND (digits.value IS NOT NULL) [shard 1031 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 10310000000000045 AND (digits.value IS NOT NULL) [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 46], ["value", 1]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 10310000000000046], ["value", 2]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 46 [shard 1031 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 1031 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 46 [shard 1031 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 10310000000000046 [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 47], ["value", 1]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 10310000000000047], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 47 AND "appendages"."value" IS NULL [shard 1031 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 10310000000000047 AND "appendages"."value" IS NULL [shard 1032 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 47]] [shard 1031 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 47 AND "appendages"."value" IS NULL [shard 1031 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 10310000000000047 AND "appendages"."value" IS NULL [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 39], ["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 10310000000000048], ["value", nil]] [shard 1032 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 42], ["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["value", 2]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 48 AND "digits"."value" IS NULL [shard 1031 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 10310000000000048 AND "digits"."value" IS NULL [shard 1032 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 48]] [shard 1031 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 48 AND "digits"."value" IS NULL [shard 1031 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 10310000000000048 AND "digits"."value" IS NULL [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 40], ["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["value", 1]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 10310000000000049], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 43], ["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["value", 2]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 49 [shard 1031 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 49]] [shard 1031 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 49 [shard 1031 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 10310000000000049 [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 50], ["value", 1]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 10310000000000050], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 50], ["value", 2]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 50]] [shard 1031 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 50 AND (appendages.value IS NOT NULL) [shard 1031 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 10310000000000050 AND (appendages.value IS NOT NULL) [shard 1032 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 50]] [shard 1031 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 50 AND (appendages.value IS NOT NULL) [shard 1031 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 10310000000000050 AND (appendages.value IS NOT NULL) [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 10310000000000051], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 10320000000000038], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (51) [shard 1031 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (51) [shard 1031 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (10310000000000051) [shard 1032 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38) [shard 1032 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (38) [shard 1032 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 43 [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 10310000000000052], ["value", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 878], ["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["value", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 10320000000000039], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10310000000000045], ["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["value", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 1030 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (878) [shard 1030 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (45) [shard 1031 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (52) [shard 1031 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) [shard 1032 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 52 [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 10310000000000053], ["value", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 10320000000000040], ["value", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 1760], ["value", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages"  [shard 1030 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1760) [shard 1030 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 1031 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) [shard 1032 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 53 [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 10310000000000054], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 10310000000000054], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 46], ["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 46], ["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10320000000000046], ["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10320000000000047], ["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 10320000000000041], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10310000000000047], ["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10320000000000048], ["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10320000000000049], ["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 1031 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (54) [shard 1031 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (10310000000000054) [shard 1032 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (46, 10320000000000046) [shard 1031 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (46, 47) [shard 1032 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [shard 1032 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (41) [shard 1032 master] Digit Load (0.1ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (48) [shard 1032 master] Digit Load (0.1ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (10320000000000049) [shard 1031 master] SQL (0.1ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 10320000000000042], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 48]] [shard 1031 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 42 LIMIT 1 [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 56 LIMIT 1 [shard 1031 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 49]] [shard 1031 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 56 LIMIT 1 [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.6ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", 10320000000000044]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 43]] [shard 1030 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 44 LIMIT 1 [shard 1032 master]  (0.2ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["owner_id", 882], ["owner_type", "Appendage"], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["value", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 86]] [shard 1030 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 882 LIMIT 1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master]  (0.2ms) UPDATE "features" SET "owner_id" = 10310000000000058, "owner_type" = 'User', "updated_at" = '2014-08-26 18:51:34.939562' WHERE "features"."id" = 86 [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 86]] [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["owner_id", 59], ["owner_type", "User"], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["value", 1]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["owner_id", 10310000000000059], ["owner_type", "User"], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["value", 2]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 59 AND "features"."owner_type" = 'User' [shard 1031 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 59]] [shard 1031 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 59 AND "features"."owner_type" = 'User' [shard 1031 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 10310000000000059 AND "features"."owner_type" = 'User' [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.2ms) ROLLBACK [shard 1031 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1030 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1030], ["name", nil]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1031], ["name", "switchman_test_shard_1031"]] [shard 1030 master]  (0.4ms) COMMIT [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1032], ["name", "switchman_test_shard_1032"]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:34 UTC +00:00], ["user_id", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 41]] [shard 1030 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 41]] [shard 1030 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 41 LIMIT 1 [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1030], ["name", nil]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1031], ["name", "switchman_test_shard_1031"]] [shard 1030 master]  (0.2ms) COMMIT [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1032], ["name", "switchman_test_shard_1032"]] [shard 1030 master]  (0.2ms) COMMIT [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1030], ["name", nil]] [shard 1030 master]  (0.2ms) COMMIT [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1031], ["name", "switchman_test_shard_1031"]] [shard 1030 master]  (0.2ms) COMMIT [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1032], ["name", "switchman_test_shard_1032"]] [shard 1030 master]  (0.2ms) COMMIT [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 1761], ["value", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 1762], ["value", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1031 LIMIT 1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 1763], ["value", nil]] [shard 1030 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 62], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 1764], ["value", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 63], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 1765], ["value", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 1766], ["value", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 65], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 1767], ["value", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 66], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 1768], ["value", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 67], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 1769], ["value", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 68], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 1770], ["value", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 1771], ["value", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 70], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 1772], ["value", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 71], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 1773], ["value", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 72], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 1774], ["value", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 73], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 1775], ["value", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 74], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 1776], ["value", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 75], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["user_id", 62], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1776], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1777], ["updated_at", Tue, 26 Aug 2014 18:51:35 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1777]] [shard 1030 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1776 LIMIT 1 [shard 1030 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 1776 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1030], ["name", nil]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1031], ["name", "switchman_test_shard_1031"]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1032], ["name", "switchman_test_shard_1032"]] [shard 1030 master]  (0.2ms) COMMIT [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:36 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:36 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master] SQL (0.9ms) DELETE FROM "switchman_shards" [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1030], ["name", nil]] [shard 1030 master]  (0.4ms) COMMIT [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1031], ["name", "switchman_test_shard_1031"]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1032], ["name", "switchman_test_shard_1032"]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:52:36 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:52:36 UTC +00:00]] [shard 1031 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.0ms) ROLLBACK [shard 1032 master]  (0.0ms) ROLLBACK [shard 1031 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1030], ["name", nil]] [shard 1030 master]  (0.4ms) COMMIT [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1031], ["name", "switchman_test_shard_1031"]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1032], ["name", "switchman_test_shard_1032"]] [shard 1030 master]  (0.2ms) COMMIT [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:36 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:36 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:36 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:36 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1031 LIMIT 1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:36 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:36 UTC +00:00]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:36 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:36 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.0ms) BEGIN [shard 1032 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:36 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:36 UTC +00:00]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1031 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:36 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:36 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1031 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1031 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1032 master] SQL (1.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:36 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:51:36 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1032 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1032 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1031 master] SQL (4.7ms) DELETE FROM "switchman_shards" [shard 1030 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master]  (0.0ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master]  (0.0ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master]  (0.0ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master]  (0.0ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master]  (0.0ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master]  (0.0ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master]  (0.0ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master]  (0.0ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master]  (0.0ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1030], ["name", nil]] [shard 1030 master]  (6.0ms) COMMIT [shard 1030 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1031], ["name", "switchman_test_shard_1031"]] [shard 1030 master]  (6.1ms) COMMIT [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1032], ["name", "switchman_test_shard_1032"]] [shard 1030 master]  (0.3ms) COMMIT [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '33' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "33"], ["default", false], ["name", "public"]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1050 [shard 1050 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1050 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1050 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1050 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1050 deploy]  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1050 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1050 deploy]  (0.3ms) COMMIT [shard 1050 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1050 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1050 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1050 deploy]  (0.3ms) COMMIT [shard 1050 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1050 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1050 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1050 deploy]  (0.3ms) COMMIT [shard 1050 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1050 deploy]  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1050 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1050 deploy]  (0.3ms) COMMIT [shard 1050 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1050 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1050 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1050 deploy]  (0.4ms) COMMIT [shard 1050 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1050 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1050 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1050 deploy]  (0.2ms) COMMIT [shard 1050 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1050 deploy]  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1050 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1050 deploy]  (0.3ms) COMMIT [shard 1050 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1050' WHERE "switchman_shards"."id" = 1050 [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) BEGIN [shard 1050 master] SQL (6.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:36 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:36 UTC +00:00]] [shard 1050 master]  (5.7ms) COMMIT [shard 1050 master]  (10.8ms) DROP SCHEMA switchman_test_shard_1050 CASCADE [shard 1050 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1050]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '34' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "34"], ["default", false], ["name", nil]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.0ms) select sqlite_version(*) [shard 1051 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 1051 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1051 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1051 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 1051 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1051 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1051 deploy]  (0.8ms) commit transaction [shard 1051 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 1051 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1051 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1051 deploy]  (0.7ms) commit transaction [shard 1051 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 1051 deploy]  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1051 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1051 deploy]  (0.6ms) commit transaction [shard 1051 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 1051 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1051 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1051 deploy]  (0.7ms) commit transaction [shard 1051 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 1051 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1051 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1051 deploy]  (0.7ms) commit transaction [shard 1051 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 1051 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 1051 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1051 deploy]  (0.7ms) commit transaction [shard 1051 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 1051 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1051 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1051 deploy]  (0.7ms) commit transaction [shard 1051 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'db/shard_1051.sqlite3' WHERE "switchman_shards"."id" = 1051 [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.0ms) begin transaction [shard 1051 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 26 Aug 2014 18:51:36 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:36 UTC +00:00]] [shard 1051 master]  (0.8ms) commit transaction [shard 1051 master] Drop failed: No such file or directory @ unlink_internal - db/shard_1051.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1051]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.0ms) BEGIN [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1031]] [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1032]] [shard 1030 master]  (0.1ms) BEGIN [shard 1032 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 1030 master]  (0.2ms) CREATE SCHEMA switchman_test_shard_1052 [shard 1052 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1052 deploy]  (6.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1052 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1052 deploy] Migrating to CreateUsers (20130403132607)  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1052 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1052 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1052 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1052 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1052 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1052 deploy] Migrating to CreateDigits (20131022202028)  (2.3ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1052 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1052 deploy] Migrating to CreateFeatures (20131206172923)  (2.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1052 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1052 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1052 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1052 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1052 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1052 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1052' WHERE "switchman_shards"."id" = 1052 [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1052 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:51:36 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:51:36 UTC +00:00]] [shard 1052 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1052 master]  (2.7ms) DROP SCHEMA switchman_test_shard_1052 CASCADE [shard 1052 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1030 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1052]] [shard 1030 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1030 master]  (0.1ms) ROLLBACK [shard 1032 master]  (2.0ms) ROLLBACK [shard 1030 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1030 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master]  (0.1ms) ROLLBACK [shard 1030 master]  (0.1ms) BEGIN [shard 1030 master]  (0.1ms) ROLLBACK [shard 1030 master]  (4.5ms) DROP SCHEMA switchman_test_shard_1031 CASCADE [shard 1031 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1031]]  (0.1ms) COMMIT  (6.3ms) DROP SCHEMA switchman_test_shard_1032 CASCADE [shard 1032 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1032]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.4ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.5ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1054 [shard 1054 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1054 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1054 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1054 deploy] Migrating to CreateUsers (20130403132607)  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1054 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1054 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1054 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1054 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1054 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1054 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1054 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1054 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1054 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1054 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1054 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1054 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1054 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1054 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1054' WHERE "switchman_shards"."id" = 1054 [shard 1053 master]  (1.1ms) COMMIT [shard 1053 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1055 [shard 1055 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1055 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1055 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1055 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1055 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1055 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1055 deploy]  (0.3ms) COMMIT [shard 1055 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1055 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1055 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1055 deploy]  (0.3ms) COMMIT [shard 1055 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1055 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1055 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1055 deploy]  (0.3ms) COMMIT [shard 1055 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1055 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1055 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1055 deploy]  (0.3ms) COMMIT [shard 1055 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1055 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1055 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1055 deploy]  (0.3ms) COMMIT [shard 1055 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1055 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1055 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1055 deploy]  (0.3ms) COMMIT [shard 1055 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) BEGIN [shard 1055 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1055 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1055 deploy]  (0.3ms) COMMIT [shard 1055 deploy]  (0.1ms) BEGIN [shard 1053 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1055' WHERE "switchman_shards"."id" = 1055 [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1053], ["name", nil]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1054], ["name", "switchman_test_shard_1054"]] [shard 1053 master]  (0.2ms) COMMIT [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1055], ["name", "switchman_test_shard_1055"]] [shard 1053 master]  (0.2ms) COMMIT [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (1.2ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00], ["user_id", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master] MirrorUser Load (0.4ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 42]] [shard 1053 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 42]] [shard 1053 master] MirrorUser Load (0.4ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 42 LIMIT 1 [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", "non_existent_shard"]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 5: WHERE a.attrelid = '"users"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.3ms) SELECT COUNT(*) FROM "users" [shard 1057 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1053], ["name", nil]] [shard 1053 master]  (0.4ms) COMMIT [shard 1053 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1054], ["name", "switchman_test_shard_1054"]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1055], ["name", "switchman_test_shard_1055"]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.0ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1053], ["name", nil]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1054], ["name", "switchman_test_shard_1054"]] [shard 1053 master]  (0.2ms) COMMIT [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1055], ["name", "switchman_test_shard_1055"]] [shard 1053 master]  (0.2ms) COMMIT [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 1]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 10540000000000001 LIMIT 1 [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1054 LIMIT 1 [shard 1053 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2]] [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3 LIMIT 1 [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (4) LIMIT 1 [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 5 LIMIT 1 [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (5.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00]] [shard 1055 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 1053 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1053 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1054 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1055 master]  (0.2ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1053], ["name", nil]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1054], ["name", "switchman_test_shard_1054"]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1055], ["name", "switchman_test_shard_1055"]] [shard 1053 master]  (0.2ms) COMMIT [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1054 LIMIT 1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (6.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:42 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.0ms) ROLLBACK [shard 1053 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1053], ["name", nil]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1054], ["name", "switchman_test_shard_1054"]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1055], ["name", "switchman_test_shard_1055"]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1054 LIMIT 1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.0ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.0ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11055 LIMIT 1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1055 LIMIT 1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.0ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.0ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.0ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1064]] [shard 1053 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.0ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1065]] [shard 1053 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1065 LIMIT 1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.2ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.0ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.0ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.0ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '10' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", "public"]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1066 [shard 1066 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1066 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1066 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1066 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1066 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1066 deploy]  (1.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1066 deploy]  (10.1ms) COMMIT [shard 1066 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 1066 deploy]  (4.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1066 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1066 deploy]  (5.1ms) COMMIT [shard 1066 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) BEGIN [shard 1066 deploy]  (10.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1066 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1066 deploy]  (0.5ms) COMMIT [shard 1066 deploy] Migrating to CreateDigits (20131022202028)  (0.3ms) BEGIN [shard 1066 deploy]  (2.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1066 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1066 deploy]  (0.4ms) COMMIT [shard 1066 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 1066 deploy]  (2.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1066 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1066 deploy]  (0.4ms) COMMIT [shard 1066 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1066 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1066 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1066 deploy]  (0.3ms) COMMIT [shard 1066 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1066 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1066 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1066 deploy]  (0.3ms) COMMIT [shard 1066 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1066' WHERE "switchman_shards"."id" = 1066 [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) BEGIN [shard 1066 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1066 master]  (0.3ms) COMMIT [shard 1066 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1066 master]  (4.9ms) DROP SCHEMA switchman_test_shard_1066 CASCADE [shard 1066 deploy]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 1066 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1053 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1053], ["name", nil]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1054], ["name", "switchman_test_shard_1054"]] [shard 1053 master]  (0.2ms) COMMIT [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1055], ["name", "switchman_test_shard_1055"]] [shard 1053 master]  (0.2ms) COMMIT [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1053 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master] User Load (0.3ms) SELECT "users".* FROM "users" [shard 1054 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1053 master]  (0.5ms) COMMIT [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1053 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-08-26 18:56:43.156020' [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1053 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-08-26 18:56:43.161184' [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1053 master] SQL (0.5ms) UPDATE "users" SET "updated_at" = '2014-08-26 18:56:43.165108' [shard 1053 master] SQL (0.3ms) DELETE FROM "users" [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1053 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-08-26 18:56:43.169996' [shard 1053 master] SQL (0.3ms) DELETE FROM "users" [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1053 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.0ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.0ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1053 master] SQL (0.1ms) DELETE FROM "users" [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1053 master] SQL (0.1ms) DELETE FROM "users" [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1796]] [shard 1053 master] CACHE (0.0ms) 1053::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1796]] CACHE (0.0ms) 1053::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1796]]  (0.1ms) BEGIN [shard 1053 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-08-26 18:56:43.212022' WHERE "users"."id" = 1796 [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1796]] [shard 1053 master] CACHE (0.0ms) 1053::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1796]] SQL (0.3ms) DELETE FROM "users" [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1053 master] SQL (0.4ms) DELETE FROM "users" [shard 1053 master] SQL (0.1ms) DELETE FROM "users" [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1053 master] SQL (0.3ms) DELETE FROM "users" [shard 1053 master] SQL (0.1ms) DELETE FROM "users" [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1053], ["name", nil]] [shard 1053 master]  (0.2ms) COMMIT [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1054], ["name", "switchman_test_shard_1054"]] [shard 1053 master]  (0.2ms) COMMIT [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1055], ["name", "switchman_test_shard_1055"]] [shard 1053 master]  (0.2ms) COMMIT [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:57:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:57:43 UTC +00:00]] [shard 1054 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.0ms) ROLLBACK [shard 1054 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master]  (0.0ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1053], ["name", nil]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1054], ["name", "switchman_test_shard_1054"]] [shard 1053 master]  (0.2ms) COMMIT [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1055], ["name", "switchman_test_shard_1055"]] [shard 1053 master]  (0.2ms) COMMIT [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master]  (0.0ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master]  (0.0ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master]  (0.0ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master]  (0.0ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master]  (0.0ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master]  (0.0ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master]  (0.0ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master]  (0.0ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master]  (0.0ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1053], ["name", nil]] [shard 1053 master]  (0.2ms) COMMIT [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1054], ["name", "switchman_test_shard_1054"]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1055], ["name", "switchman_test_shard_1055"]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '25' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "25"], ["default", false], ["name", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.0ms) select sqlite_version(*) [shard 1067 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 1067 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1067 deploy]  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1067 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 1067 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1067 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1067 deploy]  (0.7ms) commit transaction [shard 1067 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 1067 deploy]  (0.3ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1067 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1067 deploy]  (0.7ms) commit transaction [shard 1067 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 1067 deploy]  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1067 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1067 deploy]  (0.7ms) commit transaction [shard 1067 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 1067 deploy]  (0.3ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1067 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1067 deploy]  (0.7ms) commit transaction [shard 1067 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 1067 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1067 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1067 deploy]  (0.7ms) commit transaction [shard 1067 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 1067 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 1067 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1067 deploy]  (0.7ms) commit transaction [shard 1067 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 1067 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1067 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1067 deploy]  (0.9ms) commit transaction [shard 1067 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_1067.sqlite3' WHERE "switchman_shards"."id" = 1067 [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.0ms) begin transaction [shard 1067 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1067 master]  (0.8ms) commit transaction [shard 1067 master] Drop failed: No such file or directory @ unlink_internal - db/shard_1067.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1067]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '26' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "26"], ["default", false], ["name", "public"]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (6.4ms) CREATE SCHEMA switchman_test_shard_1068 [shard 1068 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1068 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1068 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1068 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1068 deploy]  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1068 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1068 deploy]  (0.3ms) COMMIT [shard 1068 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1068 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1068 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1068 deploy]  (0.3ms) COMMIT [shard 1068 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1068 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1068 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1068 deploy]  (0.3ms) COMMIT [shard 1068 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1068 deploy]  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1068 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1068 deploy]  (0.3ms) COMMIT [shard 1068 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1068 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1068 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1068 deploy]  (0.4ms) COMMIT [shard 1068 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1068 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1068 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1068 deploy]  (0.3ms) COMMIT [shard 1068 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1068 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1068 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1068 deploy]  (0.3ms) COMMIT [shard 1068 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1068' WHERE "switchman_shards"."id" = 1068 [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) BEGIN [shard 1068 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1068 master]  (0.2ms) COMMIT [shard 1068 master]  (5.3ms) DROP SCHEMA switchman_test_shard_1068 CASCADE [shard 1068 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1068]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 1053 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_1069 [shard 1069 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1069 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1069 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1069 deploy] Migrating to CreateUsers (20130403132607)  (2.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1069 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1069 deploy] Migrating to CreateAppendages (20130411202442)  (2.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1069 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1069 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1069 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1069 deploy] Migrating to CreateDigits (20131022202028)  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1069 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1069 deploy] Migrating to CreateFeatures (20131206172923)  (2.3ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1069 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1069 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1069 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1069 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1069 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1069 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1069' WHERE "switchman_shards"."id" = 1069 [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1069 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1069 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1069 master]  (2.6ms) DROP SCHEMA switchman_test_shard_1069 CASCADE [shard 1069 deploy]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1069]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (2.2ms) ROLLBACK [shard 1053 master] SQL (1.8ms) DELETE FROM "switchman_shards" [shard 1053 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1053], ["name", nil]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1054], ["name", "switchman_test_shard_1054"]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1055], ["name", "switchman_test_shard_1055"]] [shard 1053 master]  (0.2ms) COMMIT [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "27"], ["default", false], ["name", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "27"], ["default", false], ["name", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1053], ["name", nil]] [shard 1053 master]  (0.2ms) COMMIT [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1054], ["name", "switchman_test_shard_1054"]] [shard 1053 master]  (0.2ms) COMMIT [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1055], ["name", "switchman_test_shard_1055"]] [shard 1053 master]  (0.2ms) COMMIT [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 14 LIMIT 1 [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1054 LIMIT 1 [shard 1053 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1801) [shard 1053 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (15) [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 16 [shard 1054 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1802]] [shard 1053 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 16]] [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (1803) [shard 1053 master] SQL (0.1ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (17) [shard 1054 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1803]] [shard 1053 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master] SQL (5.0ms) DELETE FROM "switchman_shards" [shard 1053 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1053], ["name", nil]] [shard 1053 master]  (0.4ms) COMMIT [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1054], ["name", "switchman_test_shard_1054"]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1055], ["name", "switchman_test_shard_1055"]] [shard 1053 master]  (0.2ms) COMMIT [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.0ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.0ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.0ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (1053, 1054) AND (id IN (1054,1055)) [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1053], ["name", nil]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1054], ["name", "switchman_test_shard_1054"]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1055], ["name", "switchman_test_shard_1055"]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "28"], ["default", false], ["name", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "29"], ["default", false], ["name", nil]] [shard 1053 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master] SQL (0.9ms) DELETE FROM "switchman_shards" [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1053], ["name", nil]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1054], ["name", "switchman_test_shard_1054"]] [shard 1053 master]  (0.2ms) COMMIT [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1055], ["name", "switchman_test_shard_1055"]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 18], ["value", 1]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1055 LIMIT 1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 10550000000000002], ["value", 3]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1054 LIMIT 1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 10540000000000018], ["value", 2]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 2], ["value", 4]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 2], ["value", 5]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SHOW max_identifier_length [shard 1053 master]  (0.6ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1054 master]  (0.5ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1055 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1054 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1055 master]  (0.1ms) SHOW max_identifier_length [shard 1055 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1054 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1055 master]  (0.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1054 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 1054 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2) [shard 1055 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1055 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2) [shard 1055 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 19], ["value", 1]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 10550000000000003], ["value", 3]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 10540000000000019], ["value", 2]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 3], ["value", 4]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 3], ["value", 5]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 21], ["value", 1]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 10550000000000004], ["value", 3]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 10540000000000021], ["value", 2]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 4], ["value", 4]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 4], ["value", 5]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1054 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1055 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1054 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1055 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1054 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1055 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1054 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 1054 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (4) [shard 1055 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1055 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (4) [shard 1055 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 22], ["value", 1]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 10550000000000005], ["value", 3]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 10540000000000022], ["value", 2]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 5], ["value", 4]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 5], ["value", 5]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1054 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1055 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1054 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1055 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1054 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1055 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1054 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 1054 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [shard 1055 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1055 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [shard 1055 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 23], ["value", 1]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 10550000000000006], ["value", 3]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 10540000000000023], ["value", 2]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 6], ["value", 4]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 6], ["value", 5]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1054 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1055 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1054 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1055 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1054 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1055 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1054 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 1054 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) [shard 1055 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1055 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) [shard 1055 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 24], ["value", 1]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 10550000000000007], ["value", 3]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 10540000000000024], ["value", 2]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 7], ["value", 4]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 7], ["value", 5]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1054 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1055 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1054 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1055 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1054 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1055 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1054 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 1054 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (7) [shard 1055 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1055 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (7) [shard 1055 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 25], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 16 [shard 1054 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 20 [shard 1055 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 16 [shard 1054 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 20 [shard 1055 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 16 [shard 1054 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 20 [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 26], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (26) [shard 1054 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (9) [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 27], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 18 [shard 1054 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 22 [shard 1055 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 18 [shard 1054 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 22 [shard 1055 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 18 [shard 1054 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 22 [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 28], ["value", 1]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 28], ["value", 2]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 11], ["value", 3]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 11], ["value", 4]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 11], ["value", 5]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 28 [shard 1054 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1054 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 11 [shard 1055 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1055 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (19, 20) [shard 1054 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (23, 24, 25) [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 29], ["value", 1]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 29], ["value", 2]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 12], ["value", 3]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 12], ["value", 4]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 12], ["value", 5]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 29 [shard 1054 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1054 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 12 [shard 1055 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1055 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (21, 22) [shard 1054 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (26, 27, 28) [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 30], ["value", 1]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 30], ["value", 2]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 13], ["value", 3]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 13], ["value", 4]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 13], ["value", 5]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 30 [shard 1054 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1054 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 13 [shard 1055 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1055 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (23, 24) [shard 1054 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (29, 30, 31) [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 31], ["value", 1]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 31], ["value", 2]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 14], ["value", 3]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 14], ["value", 4]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 14], ["value", 5]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 31 [shard 1054 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 1054 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 14 [shard 1055 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 1055 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (25, 26) [shard 1054 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (32, 33, 34) [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 32], ["value", 1]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 32], ["value", 2]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 15], ["value", 3]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 15], ["value", 4]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:43 UTC +00:00], ["user_id", 15], ["value", 5]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 32 [shard 1054 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1054 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 15 [shard 1055 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1055 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (27, 28) [shard 1054 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (35, 36, 37) [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1053], ["name", nil]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1054], ["name", "switchman_test_shard_1054"]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1055], ["name", "switchman_test_shard_1055"]] [shard 1053 master]  (0.2ms) COMMIT [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["owner_id", 1805], ["owner_type", "User"], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["value", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 87 LIMIT 1 [shard 1053 master]  (0.2ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1054 LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1055 LIMIT 1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master] SQL (6.2ms) DELETE FROM "switchman_shards" [shard 1053 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1053], ["name", nil]] [shard 1053 master]  (5.6ms) COMMIT [shard 1053 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1054], ["name", "switchman_test_shard_1054"]] [shard 1053 master]  (6.2ms) COMMIT [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1055], ["name", "switchman_test_shard_1055"]] [shard 1053 master]  (0.4ms) COMMIT [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SELECT COUNT(*) FROM "users" [shard 1055 master]  (0.1ms) SAVEPOINT active_record_2 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1055 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) SELECT COUNT(*) FROM "users" [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master]  (0.0ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 1053 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1053], ["name", nil]] [shard 1053 master]  (0.2ms) COMMIT [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1054], ["name", "switchman_test_shard_1054"]] [shard 1053 master]  (0.2ms) COMMIT [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1055], ["name", "switchman_test_shard_1055"]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.0ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1053], ["name", nil]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1054], ["name", "switchman_test_shard_1054"]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1055], ["name", "switchman_test_shard_1055"]] [shard 1053 master]  (0.2ms) COMMIT [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 1807], ["value", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 1808], ["value", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1054 LIMIT 1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 1809], ["value", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 1810], ["value", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 1811], ["value", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.2ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 1812], ["value", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 1813], ["value", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 1814], ["value", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 25], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 1815], ["value", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 26], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 1816], ["value", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 27], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 1817], ["value", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 1818], ["value", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 1819], ["value", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 1820], ["value", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 31], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 1821], ["value", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 1822], ["value", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1822], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1823], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1823]] [shard 1053 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1822 LIMIT 1 [shard 1053 master] User Load (0.4ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 1822 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1053], ["name", nil]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1054], ["name", "switchman_test_shard_1054"]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1055], ["name", "switchman_test_shard_1055"]] [shard 1053 master]  (0.2ms) COMMIT [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1054 LIMIT 1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 46]] [shard 1054 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 50 LIMIT 1 [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 52 [shard 1054 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 52]] [shard 1054 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 52 [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 49], ["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 54 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 55], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 56], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 55]] [shard 1054 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 55 AND "users"."id" = 57 LIMIT 1 [shard 1054 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 55]] [shard 1054 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 55 AND "users"."id" = 10550000000000041 LIMIT 1 [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1055 LIMIT 1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 61 AND "appendages"."id" = $1 LIMIT 1 [["id", 51]] [shard 1054 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 45 AND "appendages"."id" = $1 LIMIT 1 [["id", 51]] [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 63], ["value", 1]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 10540000000000063], ["value", 2]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 63 [shard 1054 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [shard 1054 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 63 [shard 1054 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 10540000000000063 [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 64], ["value", 1]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 10540000000000064], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 64], ["value", 2]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 64]] [shard 1054 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 64 AND (appendages.value IS NOT NULL) [shard 1054 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 10540000000000064 AND (appendages.value IS NOT NULL) [shard 1055 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 64]] [shard 1054 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 64 AND (appendages.value IS NOT NULL) [shard 1054 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 10540000000000064 AND (appendages.value IS NOT NULL) [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 65], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["value", 1]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 10540000000000065], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 57], ["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["value", 2]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 65 AND (digits.value IS NOT NULL) [shard 1054 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 10540000000000065 AND (digits.value IS NOT NULL) [shard 1055 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 65]] [shard 1054 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 65 AND (digits.value IS NOT NULL) [shard 1054 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 10540000000000065 AND (digits.value IS NOT NULL) [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 66], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 10540000000000066], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 58], ["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["value", 2]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 66 AND "digits"."value" IS NULL [shard 1054 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 10540000000000066 AND "digits"."value" IS NULL [shard 1055 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 66]] [shard 1054 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 66 AND "digits"."value" IS NULL [shard 1054 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 10540000000000066 AND "digits"."value" IS NULL [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 67], ["value", 1]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 10540000000000067], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 67 AND "appendages"."value" IS NULL [shard 1054 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 10540000000000067 AND "appendages"."value" IS NULL [shard 1055 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 67]] [shard 1054 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 67 AND "appendages"."value" IS NULL [shard 1054 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 10540000000000067 AND "appendages"."value" IS NULL [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.2ms) ROLLBACK [shard 1054 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 68], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 58], ["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["value", 1]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 10540000000000068], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 60], ["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["value", 2]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 68 [shard 1054 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 68]] [shard 1054 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 68 [shard 1054 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 10540000000000068 [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 59], ["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 10540000000000069], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 61], ["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["value", 2]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 69 AND "digits"."value" IS NULL [shard 1054 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 10540000000000069 AND "digits"."value" IS NULL [shard 1055 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 69]] [shard 1054 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 69 AND "digits"."value" IS NULL [shard 1054 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 10540000000000069 AND "digits"."value" IS NULL [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 70], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 10540000000000070], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 10550000000000054], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [shard 1054 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (70) [shard 1054 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (10540000000000070) [shard 1055 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 1055 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (54) [shard 1055 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 60 [shard 1054 master]  (0.2ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 10540000000000071], ["value", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 10550000000000055], ["value", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 1825], ["value", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages"  [shard 1053 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1825) [shard 1053 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [shard 1054 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 1055 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 71 [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 10540000000000072], ["value", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 919], ["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["value", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 10550000000000056], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10540000000000062], ["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["value", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits"  [shard 1053 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (919) [shard 1053 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (62) [shard 1054 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [shard 1054 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 1055 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = 72 [shard 1054 master]  (0.2ms) ROLLBACK [shard 1055 master]  (0.2ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 73], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 10540000000000073], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 10540000000000073], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 63], ["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 63], ["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10550000000000063], ["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10550000000000064], ["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 10550000000000057], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10540000000000064], ["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10550000000000065], ["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10550000000000066], ["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (73) [shard 1054 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (73) [shard 1054 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (10540000000000073) [shard 1055 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (63, 10550000000000063) [shard 1054 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (63, 64) [shard 1055 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 1055 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (57) [shard 1055 master] Digit Load (0.1ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (65) [shard 1055 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (10550000000000066) [shard 1054 master] SQL (0.1ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.2ms) ROLLBACK [shard 1054 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 10550000000000058]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 44]] [shard 1053 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 58 LIMIT 1 [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 10550000000000059], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 65]] [shard 1054 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 59 LIMIT 1 [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 76 LIMIT 1 [shard 1054 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", 76], ["value", nil]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 66]] [shard 1054 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 76 LIMIT 1 [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["owner_id", 920], ["owner_type", "Appendage"], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["value", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 88]] [shard 1053 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 920 LIMIT 1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master]  (0.2ms) UPDATE "features" SET "owner_id" = 10540000000000077, "owner_type" = 'User', "updated_at" = '2014-08-26 18:56:44.799645' WHERE "features"."id" = 88 [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 88]] [shard 1053 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.0ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.1ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["owner_id", 78], ["owner_type", "User"], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["value", 1]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1055 master] SQL (5.8ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["owner_id", 10540000000000078], ["owner_type", "User"], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["value", 2]] [shard 1055 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1055 master] Feature Load (0.7ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 78 AND "features"."owner_type" = 'User' [shard 1054 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 78]] [shard 1054 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 78 AND "features"."owner_type" = 'User' [shard 1054 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 10540000000000078 AND "features"."owner_type" = 'User' [shard 1055 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master] SQL (5.9ms) DELETE FROM "switchman_shards" [shard 1053 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1053], ["name", nil]] [shard 1053 master]  (5.8ms) COMMIT [shard 1053 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1054], ["name", "switchman_test_shard_1054"]] [shard 1053 master]  (4.8ms) COMMIT [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1055], ["name", "switchman_test_shard_1055"]] [shard 1053 master]  (0.3ms) COMMIT [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1054]] [shard 1053 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1055]] [shard 1053 master]  (0.0ms) BEGIN [shard 1055 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1054 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 26 Aug 2014 18:56:44 UTC +00:00]] [shard 1054 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1054 master]  (0.1ms) ROLLBACK [shard 1055 master]  (0.1ms) ROLLBACK [shard 1054 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1053 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "30"], ["default", false], ["name", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1053 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "30"], ["default", false], ["name", nil]] [shard 1053 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1053 master]  (0.1ms) ROLLBACK [shard 1053 master]  (0.1ms) BEGIN [shard 1053 master]  (0.1ms) ROLLBACK [shard 1053 master]  (4.8ms) DROP SCHEMA switchman_test_shard_1054 CASCADE [shard 1054 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1054]]  (0.1ms) COMMIT  (5.4ms) DROP SCHEMA switchman_test_shard_1055 CASCADE [shard 1055 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1055]]  (0.1ms) COMMIT  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.4ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (6.2ms) COMMIT Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1077 [shard 1077 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1077 deploy]  (6.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1077 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1077 deploy] Migrating to CreateUsers (20130403132607)  (8.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1077 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1077 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1077 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1077 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1077 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1077 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1077 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1077 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1077 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1077 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1077 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1077 deploy] Migrating to CreateRoots (20140219183820)  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1077 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1077 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1077 [["name", "switchman_test_shard_1077"]] [shard 1076 master]  (0.7ms) COMMIT [shard 1076 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1078 [shard 1078 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1078 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1078 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1078 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1078 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1078 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1078 deploy]  (0.3ms) COMMIT [shard 1078 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1078 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1078 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1078 deploy]  (0.3ms) COMMIT [shard 1078 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1078 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1078 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1078 deploy]  (0.4ms) COMMIT [shard 1078 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1078 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1078 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1078 deploy]  (0.3ms) COMMIT [shard 1078 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 1078 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1078 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1078 deploy]  (0.4ms) COMMIT [shard 1078 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1078 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1078 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1078 deploy]  (0.3ms) COMMIT [shard 1078 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1078 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1078 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1078 deploy]  (0.4ms) COMMIT [shard 1078 deploy]  (0.1ms) BEGIN [shard 1076 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1078 [["name", "switchman_test_shard_1078"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1076]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1077], ["name", "switchman_test_shard_1077"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1078], ["name", "switchman_test_shard_1078"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:40.118341"], ["updated_at", "2014-08-26 18:58:40.118341"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1077 LIMIT 1 [shard 1076 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1 [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:40.134969"], ["updated_at", "2014-08-26 18:58:40.134969"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2) LIMIT 1 [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:40.141794"], ["updated_at", "2014-08-26 18:58:40.141794"]] [shard 1077 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 3]] [shard 1077 master]  (0.2ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:40.151568"], ["updated_at", "2014-08-26 18:58:40.151568"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 4]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 10770000000000004 ORDER BY "users"."id" ASC LIMIT 1 [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:40.159440"], ["updated_at", "2014-08-26 18:58:40.159440"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 5 LIMIT 1 [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:40.166302"], ["updated_at", "2014-08-26 18:58:40.166302"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.167867"], ["name", "multi-shard exists"], ["updated_at", "2014-08-26 18:58:40.167867"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 1076 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1076 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1077 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1076]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1077], ["name", "switchman_test_shard_1077"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1078], ["name", "switchman_test_shard_1078"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:59:40.184117"], ["updated_at", "2014-08-26 18:59:40.184117"]] [shard 1077 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.0ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.2ms) BEGIN [shard 1076 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1076 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1076]] [shard 1076 master]  (0.4ms) COMMIT [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1077], ["name", "switchman_test_shard_1077"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1078], ["name", "switchman_test_shard_1078"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1076]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1077], ["name", "switchman_test_shard_1077"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1078], ["name", "switchman_test_shard_1078"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:40.211632"], ["updated_at", "2014-08-26 18:58:40.211632"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1076]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1077], ["name", "switchman_test_shard_1077"]] [shard 1076 master]  (0.2ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1078], ["name", "switchman_test_shard_1078"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:40.224874"], ["updated_at", "2014-08-26 18:58:40.224874"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:40.241250"], ["updated_at", "2014-08-26 18:58:40.241250"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:40.242839"], ["updated_at", "2014-08-26 18:58:40.242839"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1077 LIMIT 1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (5.8ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:40.247634"], ["updated_at", "2014-08-26 18:58:40.247634"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:40.259056"], ["updated_at", "2014-08-26 18:58:40.259056"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:40.260705"], ["updated_at", "2014-08-26 18:58:40.260705"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:40.265589"], ["updated_at", "2014-08-26 18:58:40.265589"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master] SQL (24.8ms) DELETE FROM "switchman_shards" [shard 1076 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1076 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1076]] [shard 1076 master]  (0.4ms) COMMIT [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1077], ["name", "switchman_test_shard_1077"]] [shard 1076 master]  (0.4ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1078], ["name", "switchman_test_shard_1078"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.309660"], ["name", "user1"], ["updated_at", "2014-08-26 18:58:40.309660"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.319444"], ["updated_at", "2014-08-26 18:58:40.319444"], ["user_id", 12], ["value", 1]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.321571"], ["updated_at", "2014-08-26 18:58:40.321571"], ["user_id", 12], ["value", 2]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.323094"], ["name", "user2"], ["updated_at", "2014-08-26 18:58:40.323094"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.326114"], ["updated_at", "2014-08-26 18:58:40.326114"], ["user_id", 2], ["value", 3]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.328116"], ["updated_at", "2014-08-26 18:58:40.328116"], ["user_id", 2], ["value", 4]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.329887"], ["updated_at", "2014-08-26 18:58:40.329887"], ["user_id", 2], ["value", 5]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 12]] [shard 1077 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1077 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 2]] [shard 1078 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1078 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1077 LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1078 LIMIT 1 [shard 1076 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (2, 3) [shard 1077 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (2, 3, 4) [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.344921"], ["name", "user1"], ["updated_at", "2014-08-26 18:58:40.344921"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.347286"], ["updated_at", "2014-08-26 18:58:40.347286"], ["user_id", 13], ["value", 1]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.349802"], ["updated_at", "2014-08-26 18:58:40.349802"], ["user_id", 13], ["value", 2]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.351954"], ["name", "user2"], ["updated_at", "2014-08-26 18:58:40.351954"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.354546"], ["updated_at", "2014-08-26 18:58:40.354546"], ["user_id", 3], ["value", 3]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.356636"], ["updated_at", "2014-08-26 18:58:40.356636"], ["user_id", 3], ["value", 4]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.358879"], ["updated_at", "2014-08-26 18:58:40.358879"], ["user_id", 3], ["value", 5]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 13]] [shard 1077 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 1077 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 3]] [shard 1078 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 1078 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (4, 5) [shard 1077 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (5, 6, 7) [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.371748"], ["name", "user1"], ["updated_at", "2014-08-26 18:58:40.371748"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.374527"], ["updated_at", "2014-08-26 18:58:40.374527"], ["user_id", 14], ["value", 1]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.376342"], ["updated_at", "2014-08-26 18:58:40.376342"], ["user_id", 14], ["value", 2]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.378082"], ["name", "user2"], ["updated_at", "2014-08-26 18:58:40.378082"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.380548"], ["updated_at", "2014-08-26 18:58:40.380548"], ["user_id", 4], ["value", 3]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.382376"], ["updated_at", "2014-08-26 18:58:40.382376"], ["user_id", 4], ["value", 4]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.384066"], ["updated_at", "2014-08-26 18:58:40.384066"], ["user_id", 4], ["value", 5]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 14]] [shard 1077 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1077 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 4]] [shard 1078 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1078 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (6, 7) [shard 1077 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (8, 9, 10) [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.395092"], ["name", "user1"], ["updated_at", "2014-08-26 18:58:40.395092"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.398091"], ["updated_at", "2014-08-26 18:58:40.398091"], ["user_id", 15], ["value", 1]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.400140"], ["updated_at", "2014-08-26 18:58:40.400140"], ["user_id", 15], ["value", 2]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.402209"], ["name", "user2"], ["updated_at", "2014-08-26 18:58:40.402209"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.405142"], ["updated_at", "2014-08-26 18:58:40.405142"], ["user_id", 5], ["value", 3]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.407503"], ["updated_at", "2014-08-26 18:58:40.407503"], ["user_id", 5], ["value", 4]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.409554"], ["updated_at", "2014-08-26 18:58:40.409554"], ["user_id", 5], ["value", 5]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 15]] [shard 1077 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1077 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 5]] [shard 1078 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1078 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (8, 9) [shard 1077 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (11, 12, 13) [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.2ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.423678"], ["name", "user1"], ["updated_at", "2014-08-26 18:58:40.423678"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.426750"], ["updated_at", "2014-08-26 18:58:40.426750"], ["user_id", 16], ["value", 1]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.429292"], ["updated_at", "2014-08-26 18:58:40.429292"], ["user_id", 16], ["value", 2]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.431338"], ["name", "user2"], ["updated_at", "2014-08-26 18:58:40.431338"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.434213"], ["updated_at", "2014-08-26 18:58:40.434213"], ["user_id", 6], ["value", 3]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.436383"], ["updated_at", "2014-08-26 18:58:40.436383"], ["user_id", 6], ["value", 4]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.438273"], ["updated_at", "2014-08-26 18:58:40.438273"], ["user_id", 6], ["value", 5]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 16]] [shard 1077 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1077 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 6]] [shard 1078 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1078 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (10, 11) [shard 1077 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (14, 15, 16) [shard 1078 master]  (0.2ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.451609"], ["name", "user1"], ["updated_at", "2014-08-26 18:58:40.451609"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.454600"], ["updated_at", "2014-08-26 18:58:40.454600"], ["user_id", 17]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.456851"], ["name", "user2"], ["updated_at", "2014-08-26 18:58:40.456851"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.459783"], ["updated_at", "2014-08-26 18:58:40.459783"], ["user_id", 7]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 12 [shard 1077 master]  (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 17 [shard 1078 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 12 [shard 1077 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 17 [shard 1078 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 12 [shard 1077 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 17 [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.473084"], ["name", "user1"], ["updated_at", "2014-08-26 18:58:40.473084"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.475622"], ["updated_at", "2014-08-26 18:58:40.475622"], ["user_id", 18]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.477296"], ["name", "user2"], ["updated_at", "2014-08-26 18:58:40.477296"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.479459"], ["updated_at", "2014-08-26 18:58:40.479459"], ["user_id", 8]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (18) [shard 1077 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (8) [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.487077"], ["name", "user1"], ["updated_at", "2014-08-26 18:58:40.487077"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.489459"], ["updated_at", "2014-08-26 18:58:40.489459"], ["user_id", 19]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.491312"], ["name", "user2"], ["updated_at", "2014-08-26 18:58:40.491312"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.494160"], ["updated_at", "2014-08-26 18:58:40.494160"], ["user_id", 9]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 14 [shard 1077 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 1078 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 14 [shard 1077 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 1078 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 14 [shard 1077 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.505551"], ["name", "user1"], ["updated_at", "2014-08-26 18:58:40.505551"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.507239"], ["name", "user2"], ["updated_at", "2014-08-26 18:58:40.507239"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.509015"], ["updated_at", "2014-08-26 18:58:40.509015"], ["user_id", 20], ["value", 1]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.511195"], ["updated_at", "2014-08-26 18:58:40.511195"], ["user_id", 10780000000000010], ["value", 3]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.513051"], ["updated_at", "2014-08-26 18:58:40.513051"], ["user_id", 10770000000000020], ["value", 2]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.514579"], ["updated_at", "2014-08-26 18:58:40.514579"], ["user_id", 10], ["value", 4]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.516061"], ["updated_at", "2014-08-26 18:58:40.516061"], ["user_id", 10], ["value", 5]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1077 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1078 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1077 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1078 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1077 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1078 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1077 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 1077 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [shard 1078 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1078 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [shard 1078 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.531360"], ["name", "user1"], ["updated_at", "2014-08-26 18:58:40.531360"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.532906"], ["name", "user2"], ["updated_at", "2014-08-26 18:58:40.532906"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.534309"], ["updated_at", "2014-08-26 18:58:40.534309"], ["user_id", 21], ["value", 1]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.536098"], ["updated_at", "2014-08-26 18:58:40.536098"], ["user_id", 10780000000000011], ["value", 3]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.537855"], ["updated_at", "2014-08-26 18:58:40.537855"], ["user_id", 10770000000000021], ["value", 2]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.539358"], ["updated_at", "2014-08-26 18:58:40.539358"], ["user_id", 11], ["value", 4]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.541064"], ["updated_at", "2014-08-26 18:58:40.541064"], ["user_id", 11], ["value", 5]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1077 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1078 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1077 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1078 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1077 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1078 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1077 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 1077 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (11) [shard 1078 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1078 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (11) [shard 1078 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.556627"], ["name", "user1"], ["updated_at", "2014-08-26 18:58:40.556627"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.558239"], ["name", "user2"], ["updated_at", "2014-08-26 18:58:40.558239"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.559768"], ["updated_at", "2014-08-26 18:58:40.559768"], ["user_id", 22], ["value", 1]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.561560"], ["updated_at", "2014-08-26 18:58:40.561560"], ["user_id", 10780000000000012], ["value", 3]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.563576"], ["updated_at", "2014-08-26 18:58:40.563576"], ["user_id", 10770000000000022], ["value", 2]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.565363"], ["updated_at", "2014-08-26 18:58:40.565363"], ["user_id", 12], ["value", 4]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.566899"], ["updated_at", "2014-08-26 18:58:40.566899"], ["user_id", 12], ["value", 5]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1077 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1078 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1077 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1078 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1077 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1078 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1077 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 1077 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (12) [shard 1078 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1078 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (12) [shard 1078 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.580073"], ["name", "user1"], ["updated_at", "2014-08-26 18:58:40.580073"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.581837"], ["name", "user2"], ["updated_at", "2014-08-26 18:58:40.581837"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.583380"], ["updated_at", "2014-08-26 18:58:40.583380"], ["user_id", 23], ["value", 1]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.585228"], ["updated_at", "2014-08-26 18:58:40.585228"], ["user_id", 10780000000000013], ["value", 3]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.586981"], ["updated_at", "2014-08-26 18:58:40.586981"], ["user_id", 10770000000000023], ["value", 2]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.588400"], ["updated_at", "2014-08-26 18:58:40.588400"], ["user_id", 13], ["value", 4]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.589790"], ["updated_at", "2014-08-26 18:58:40.589790"], ["user_id", 13], ["value", 5]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1077 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1078 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1077 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1078 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1077 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1078 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1077 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 1077 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (13) [shard 1078 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1078 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (13) [shard 1078 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.2ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.605143"], ["name", "user1"], ["updated_at", "2014-08-26 18:58:40.605143"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.606738"], ["name", "user2"], ["updated_at", "2014-08-26 18:58:40.606738"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.608724"], ["updated_at", "2014-08-26 18:58:40.608724"], ["user_id", 24], ["value", 1]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.610876"], ["updated_at", "2014-08-26 18:58:40.610876"], ["user_id", 10780000000000014], ["value", 3]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.613014"], ["updated_at", "2014-08-26 18:58:40.613014"], ["user_id", 10770000000000024], ["value", 2]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.614896"], ["updated_at", "2014-08-26 18:58:40.614896"], ["user_id", 14], ["value", 4]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.616660"], ["updated_at", "2014-08-26 18:58:40.616660"], ["user_id", 14], ["value", 5]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.619388"], ["updated_at", "2014-08-26 18:58:40.619388"], ["user_id", 24]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:40.621287"], ["updated_at", "2014-08-26 18:58:40.621287"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.623371"], ["updated_at", "2014-08-26 18:58:40.623371"], ["user_id", 25]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.630222"], ["name", "user1"], ["updated_at", "2014-08-26 18:58:40.630222"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.631798"], ["name", "user2"], ["updated_at", "2014-08-26 18:58:40.631798"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.633335"], ["updated_at", "2014-08-26 18:58:40.633335"], ["user_id", 26], ["value", 1]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.635155"], ["updated_at", "2014-08-26 18:58:40.635155"], ["user_id", 10780000000000015], ["value", 3]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.636848"], ["updated_at", "2014-08-26 18:58:40.636848"], ["user_id", 10770000000000026], ["value", 2]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.638310"], ["updated_at", "2014-08-26 18:58:40.638310"], ["user_id", 15], ["value", 4]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:40.639696"], ["updated_at", "2014-08-26 18:58:40.639696"], ["user_id", 15], ["value", 5]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1077 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1078 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1077 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1078 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1077 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1078 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1077 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 1077 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (15) [shard 1078 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1078 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (15) [shard 1078 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1076]] [shard 1076 master]  (6.1ms) COMMIT [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1077], ["name", "switchman_test_shard_1077"]] [shard 1076 master]  (12.0ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1078], ["name", "switchman_test_shard_1078"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.684139"], ["name", "user1"], ["updated_at", "2014-08-26 18:58:40.684139"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.685854"], ["name", "user2"], ["updated_at", "2014-08-26 18:58:40.685854"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 27 [shard 1077 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1828]] [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1077 LIMIT 1 [shard 1076 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 27]] [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.694844"], ["name", "user1"], ["updated_at", "2014-08-26 18:58:40.694844"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.696537"], ["name", "user2"], ["updated_at", "2014-08-26 18:58:40.696537"]] [shard 1077 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (1829) [shard 1076 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (28) [shard 1077 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1829]] [shard 1076 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 28]] [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.706067"], ["name", "user1"], ["updated_at", "2014-08-26 18:58:40.706067"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.707796"], ["name", "user2"], ["updated_at", "2014-08-26 18:58:40.707796"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 29 ORDER BY "users"."id" ASC LIMIT 1 [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.713878"], ["name", "user1"], ["updated_at", "2014-08-26 18:58:40.713878"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.715801"], ["name", "user2"], ["updated_at", "2014-08-26 18:58:40.715801"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1831) [shard 1076 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.724230"], ["name", "user1"], ["updated_at", "2014-08-26 18:58:40.724230"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:40.726097"], ["name", "user2"], ["updated_at", "2014-08-26 18:58:40.726097"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "2"], ["name", "non_existent_shard"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.5ms) SELECT COUNT(*) FROM "users" [shard 1079 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.8ms) SELECT COUNT(*) FROM "users" [shard 1080 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "3"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "4"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "5"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "6"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "7"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "8"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1076]] [shard 1076 master]  (6.1ms) COMMIT [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1077], ["name", "switchman_test_shard_1077"]] [shard 1076 master]  (11.4ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1078], ["name", "switchman_test_shard_1078"]] [shard 1076 master]  (0.4ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '9' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "9"], ["name", "public"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1087 [shard 1087 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1087 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1087 deploy] ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1087 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1087 deploy]  (2.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1087 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1087 deploy]  (0.4ms) COMMIT [shard 1087 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1087 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1087 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1087 deploy]  (0.3ms) COMMIT [shard 1087 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1087 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1087 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1087 deploy]  (0.3ms) COMMIT [shard 1087 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1087 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1087 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1087 deploy]  (0.5ms) COMMIT [shard 1087 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 1087 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1087 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1087 deploy]  (0.4ms) COMMIT [shard 1087 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1087 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1087 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1087 deploy]  (0.3ms) COMMIT [shard 1087 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1087 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1087 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1087 deploy]  (0.4ms) COMMIT [shard 1087 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1087 [["name", "switchman_test_shard_1087"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) BEGIN [shard 1087 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:40.948438"], ["updated_at", "2014-08-26 18:58:40.948438"]] [shard 1087 master]  (0.3ms) COMMIT [shard 1087 master]  (4.4ms) DROP SCHEMA switchman_test_shard_1087 CASCADE [shard 1087 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1087]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '10' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "10"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 1088 deploy]  (0.1ms) select sqlite_version(*) [shard 1088 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1088 deploy] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1088 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 1088 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime, "updated_at" datetime) [shard 1088 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130403132607"]] [shard 1088 deploy]  (0.8ms) commit transaction [shard 1088 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 1088 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [shard 1088 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202442"]] [shard 1088 deploy]  (0.6ms) commit transaction [shard 1088 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 1088 deploy]  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [shard 1088 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202551"]] [shard 1088 deploy]  (0.7ms) commit transaction [shard 1088 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 1088 deploy]  (0.3ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [shard 1088 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131022202028"]] [shard 1088 deploy]  (0.7ms) commit transaction [shard 1088 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 1088 deploy]  (0.3ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime, "updated_at" datetime) [shard 1088 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131206172923"]] [shard 1088 deploy]  (0.7ms) commit transaction [shard 1088 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 1088 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 1088 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140123154135"]] [shard 1088 deploy]  (0.7ms) commit transaction [shard 1088 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 1088 deploy]  (0.3ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [shard 1088 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219183820"]] [shard 1088 deploy]  (0.7ms) commit transaction [shard 1088 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1088 [["name", "db/shard_1088.sqlite3"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.0ms) begin transaction [shard 1088 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-08-26 18:58:41.008770"], ["updated_at", "2014-08-26 18:58:41.008770"]] [shard 1088 master]  (0.8ms) commit transaction [shard 1088 master] Drop failed: No such file or directory @ unlink_internal - db/shard_1088.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1088]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [shard 1076 master]  (0.1ms) CREATE SCHEMA switchman_test_shard_1089 [shard 1089 deploy]  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1089 deploy]  (9.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1089 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1089 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1089 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1089 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1089 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1089 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1089 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1089 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1089 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1089 deploy] Migrating to CreateFeatures (20131206172923)  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1089 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1089 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1089 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1089 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1089 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1089 deploy] SQL (0.1ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1089 [["name", "switchman_test_shard_1089"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1089 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.077159"], ["updated_at", "2014-08-26 18:58:41.077159"]] [shard 1089 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1089 master]  (2.4ms) DROP SCHEMA switchman_test_shard_1089 CASCADE [shard 1089 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1089]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (2.0ms) ROLLBACK [shard 1076 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1076 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1076]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1077], ["name", "switchman_test_shard_1077"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1078], ["name", "switchman_test_shard_1078"]] [shard 1076 master]  (0.2ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "23"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.125889"], ["updated_at", "2014-08-26 18:58:41.125889"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.2ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "24"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master] SQL (5.3ms) DELETE FROM "switchman_shards" [shard 1076 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1076 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1076]] [shard 1076 master]  (0.4ms) COMMIT [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1077], ["name", "switchman_test_shard_1077"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1078], ["name", "switchman_test_shard_1078"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "25"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "25"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "26"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "26"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1076]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1077], ["name", "switchman_test_shard_1077"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1078], ["name", "switchman_test_shard_1078"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.249992"], ["updated_at", "2014-08-26 18:58:41.249992"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.251636"], ["updated_at", "2014-08-26 18:58:41.251636"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.257913"], ["updated_at", "2014-08-26 18:58:41.257913"], ["user_id", 32]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.263225"], ["updated_at", "2014-08-26 18:58:41.263225"], ["user_id", 16]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1078 LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1077 LIMIT 1 [shard 1076 master]  (0.2ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.274517"], ["updated_at", "2014-08-26 18:58:41.274517"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.276043"], ["updated_at", "2014-08-26 18:58:41.276043"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.278566"], ["updated_at", "2014-08-26 18:58:41.278566"], ["user_id", 33]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 33]] [shard 1077 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 33]] [shard 1077 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 33]] [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.287565"], ["updated_at", "2014-08-26 18:58:41.287565"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.288904"], ["updated_at", "2014-08-26 18:58:41.288904"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.291313"], ["updated_at", "2014-08-26 18:58:41.291313"], ["user_id", 34]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.296874"], ["updated_at", "2014-08-26 18:58:41.296874"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.298332"], ["updated_at", "2014-08-26 18:58:41.298332"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.300748"], ["updated_at", "2014-08-26 18:58:41.300748"], ["user_id", 35]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 32]] [shard 1077 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 35]] [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.309253"], ["updated_at", "2014-08-26 18:58:41.309253"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.310748"], ["updated_at", "2014-08-26 18:58:41.310748"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.345020"], ["updated_at", "2014-08-26 18:58:41.345020"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.346556"], ["updated_at", "2014-08-26 18:58:41.346556"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.349161"], ["updated_at", "2014-08-26 18:58:41.349161"], ["user_id", 37]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.354698"], ["updated_at", "2014-08-26 18:58:41.354698"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.356161"], ["updated_at", "2014-08-26 18:58:41.356161"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.358474"], ["updated_at", "2014-08-26 18:58:41.358474"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.2ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.368690"], ["updated_at", "2014-08-26 18:58:41.368690"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.370219"], ["updated_at", "2014-08-26 18:58:41.370219"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.372813"], ["parent_id", 39], ["updated_at", "2014-08-26 18:58:41.372813"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.375221"], ["parent_id", 40], ["updated_at", "2014-08-26 18:58:41.375221"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 39]] [shard 1077 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 41 LIMIT 1 [["parent_id", 39]] [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.384711"], ["id", 41], ["updated_at", "2014-08-26 18:58:41.384711"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 39]] [shard 1077 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 10780000000000041 LIMIT 1 [["parent_id", 39]] [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.395137"], ["updated_at", "2014-08-26 18:58:41.395137"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.396954"], ["updated_at", "2014-08-26 18:58:41.396954"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.405164"], ["updated_at", "2014-08-26 18:58:41.405164"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.406976"], ["updated_at", "2014-08-26 18:58:41.406976"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.410098"], ["updated_at", "2014-08-26 18:58:41.410098"], ["user_id", 43]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 34], ["created_at", "2014-08-26 18:58:41.420842"], ["updated_at", "2014-08-26 18:58:41.420842"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 43], ["id", 1]] [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.2ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.433281"], ["updated_at", "2014-08-26 18:58:41.433281"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.434930"], ["updated_at", "2014-08-26 18:58:41.434930"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.437605"], ["updated_at", "2014-08-26 18:58:41.437605"], ["user_id", 44]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 44], ["id", 35]] [shard 1077 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 26], ["id", 35]] [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.448502"], ["updated_at", "2014-08-26 18:58:41.448502"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.450106"], ["updated_at", "2014-08-26 18:58:41.450106"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.456826"], ["updated_at", "2014-08-26 18:58:41.456826"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.458282"], ["updated_at", "2014-08-26 18:58:41.458282"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:41.459730"], ["updated_at", "2014-08-26 18:58:41.459730"], ["user_id", 46], ["value", 1]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.462205"], ["updated_at", "2014-08-26 18:58:41.462205"], ["user_id", 10770000000000046]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 46]] [shard 1077 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 10770000000000046]] [shard 1078 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 1077 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 46]] [shard 1077 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 10770000000000046]] [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.476483"], ["updated_at", "2014-08-26 18:58:41.476483"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.478183"], ["updated_at", "2014-08-26 18:58:41.478183"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:41.480049"], ["updated_at", "2014-08-26 18:58:41.480049"], ["user_id", 47], ["value", 1]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.483245"], ["updated_at", "2014-08-26 18:58:41.483245"], ["user_id", 10770000000000047]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:41.485726"], ["updated_at", "2014-08-26 18:58:41.485726"], ["user_id", 47], ["value", 2]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 47]] [shard 1077 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 47]] [shard 1077 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 10770000000000047]] [shard 1078 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 47]] [shard 1077 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 47]] [shard 1077 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 10770000000000047]] [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.498602"], ["updated_at", "2014-08-26 18:58:41.498602"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.500281"], ["updated_at", "2014-08-26 18:58:41.500281"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.502568"], ["updated_at", "2014-08-26 18:58:41.502568"], ["user_id", 48]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 39], ["created_at", "2014-08-26 18:58:41.505391"], ["updated_at", "2014-08-26 18:58:41.505391"], ["value", 1]] [shard 1077 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.508805"], ["updated_at", "2014-08-26 18:58:41.508805"], ["user_id", 10770000000000048]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 41], ["created_at", "2014-08-26 18:58:41.512392"], ["updated_at", "2014-08-26 18:58:41.512392"], ["value", 2]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 48]] [shard 1077 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 48]] [shard 1077 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 48]] [shard 1077 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 10770000000000048]] [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.524420"], ["updated_at", "2014-08-26 18:58:41.524420"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.526146"], ["updated_at", "2014-08-26 18:58:41.526146"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.527705"], ["updated_at", "2014-08-26 18:58:41.527705"], ["user_id", 49]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 40], ["created_at", "2014-08-26 18:58:41.530129"], ["updated_at", "2014-08-26 18:58:41.530129"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 40], ["created_at", "2014-08-26 18:58:41.532151"], ["updated_at", "2014-08-26 18:58:41.532151"], ["value", 1]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.534204"], ["updated_at", "2014-08-26 18:58:41.534204"], ["user_id", 10770000000000049]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 42], ["created_at", "2014-08-26 18:58:41.536523"], ["updated_at", "2014-08-26 18:58:41.536523"], ["value", 2]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 49]] [shard 1077 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 10770000000000049]] [shard 1078 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 49]] [shard 1077 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 49]] [shard 1077 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 10770000000000049]] [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.2ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.548853"], ["updated_at", "2014-08-26 18:58:41.548853"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.550394"], ["updated_at", "2014-08-26 18:58:41.550394"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:41.552136"], ["updated_at", "2014-08-26 18:58:41.552136"], ["user_id", 50], ["value", 1]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:41.554303"], ["updated_at", "2014-08-26 18:58:41.554303"], ["user_id", 10770000000000050], ["value", 2]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 50]] [shard 1077 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 50]] [shard 1077 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 50]] [shard 1077 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 10770000000000050]] [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.564439"], ["updated_at", "2014-08-26 18:58:41.564439"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.565749"], ["updated_at", "2014-08-26 18:58:41.565749"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.567181"], ["updated_at", "2014-08-26 18:58:41.567181"], ["user_id", 51]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 42], ["created_at", "2014-08-26 18:58:41.569419"], ["updated_at", "2014-08-26 18:58:41.569419"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.571420"], ["updated_at", "2014-08-26 18:58:41.571420"], ["user_id", 10770000000000051]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 44], ["created_at", "2014-08-26 18:58:41.573681"], ["updated_at", "2014-08-26 18:58:41.573681"], ["value", 2]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 51]] [shard 1077 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 10770000000000051]] [shard 1078 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 51]] [shard 1077 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 51]] [shard 1077 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 10770000000000051]] [shard 1078 master]  (0.2ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.2ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.587302"], ["updated_at", "2014-08-26 18:58:41.587302"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.589202"], ["updated_at", "2014-08-26 18:58:41.589202"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.591108"], ["updated_at", "2014-08-26 18:58:41.591108"], ["user_id", 52]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 43], ["created_at", "2014-08-26 18:58:41.593870"], ["updated_at", "2014-08-26 18:58:41.593870"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.596298"], ["updated_at", "2014-08-26 18:58:41.596298"], ["user_id", 10770000000000052]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 45], ["created_at", "2014-08-26 18:58:41.599114"], ["updated_at", "2014-08-26 18:58:41.599114"], ["value", 2]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 52]] [shard 1077 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 10770000000000052]] [shard 1078 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 52]] [shard 1077 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 52]] [shard 1077 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 10770000000000052]] [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.612676"], ["updated_at", "2014-08-26 18:58:41.612676"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.614157"], ["updated_at", "2014-08-26 18:58:41.614157"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.616016"], ["updated_at", "2014-08-26 18:58:41.616016"], ["user_id", 10780000000000035]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 44]] [shard 1077 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 35]] [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.623014"], ["updated_at", "2014-08-26 18:58:41.623014"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.624489"], ["updated_at", "2014-08-26 18:58:41.624489"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.626148"], ["updated_at", "2014-08-26 18:58:41.626148"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 54]] [shard 1077 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.629489"], ["updated_at", "2014-08-26 18:58:41.629489"], ["user_id", 54]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 45]] [shard 1077 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 54]] [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.636324"], ["updated_at", "2014-08-26 18:58:41.636324"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.637709"], ["updated_at", "2014-08-26 18:58:41.637709"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.3ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.645503"], ["updated_at", "2014-08-26 18:58:41.645503"], ["user_id", 10780000000000037]] [shard 1076 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master] Root Load (0.2ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 45]] [shard 1076 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 37]] [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.653263"], ["updated_at", "2014-08-26 18:58:41.653263"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.654774"], ["updated_at", "2014-08-26 18:58:41.654774"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.656810"], ["updated_at", "2014-08-26 18:58:41.656810"], ["user_id", 10770000000000056]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 921], ["created_at", "2014-08-26 18:58:41.659319"], ["updated_at", "2014-08-26 18:58:41.659319"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.661573"], ["updated_at", "2014-08-26 18:58:41.661573"], ["user_id", 10780000000000038]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 10770000000000046], ["created_at", "2014-08-26 18:58:41.663255"], ["updated_at", "2014-08-26 18:58:41.663255"]] [shard 1076 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 1076 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (921) [shard 1076 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (46) [shard 1077 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 1077 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38) [shard 1078 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 56 [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.682254"], ["updated_at", "2014-08-26 18:58:41.682254"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.683818"], ["updated_at", "2014-08-26 18:58:41.683818"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.686089"], ["updated_at", "2014-08-26 18:58:41.686089"], ["user_id", 10770000000000057]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.688091"], ["updated_at", "2014-08-26 18:58:41.688091"], ["user_id", 10780000000000039]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.689553"], ["updated_at", "2014-08-26 18:58:41.689553"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.691944"], ["updated_at", "2014-08-26 18:58:41.691944"], ["user_id", 1834]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 1076 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1834) [shard 1076 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 1077 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) [shard 1078 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 57 [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.2ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.701278"], ["updated_at", "2014-08-26 18:58:41.701278"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.702733"], ["updated_at", "2014-08-26 18:58:41.702733"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.705220"], ["updated_at", "2014-08-26 18:58:41.705220"], ["user_id", 58]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.707049"], ["updated_at", "2014-08-26 18:58:41.707049"], ["user_id", 10770000000000058]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.708890"], ["updated_at", "2014-08-26 18:58:41.708890"], ["user_id", 10780000000000040]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 1077 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (58) [shard 1077 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (10770000000000058) [shard 1078 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) [shard 1078 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (40) [shard 1078 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 47 [shard 1077 master]  (0.2ms) ROLLBACK [shard 1078 master]  (0.2ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.724123"], ["updated_at", "2014-08-26 18:58:41.724123"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.726155"], ["updated_at", "2014-08-26 18:58:41.726155"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.728650"], ["updated_at", "2014-08-26 18:58:41.728650"], ["user_id", 59]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.730574"], ["updated_at", "2014-08-26 18:58:41.730574"], ["user_id", 10770000000000059]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.732150"], ["updated_at", "2014-08-26 18:58:41.732150"], ["user_id", 10770000000000059]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 49], ["created_at", "2014-08-26 18:58:41.734919"], ["updated_at", "2014-08-26 18:58:41.734919"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 48], ["created_at", "2014-08-26 18:58:41.737638"], ["updated_at", "2014-08-26 18:58:41.737638"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 10780000000000048], ["created_at", "2014-08-26 18:58:41.739970"], ["updated_at", "2014-08-26 18:58:41.739970"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 10780000000000049], ["created_at", "2014-08-26 18:58:41.741493"], ["updated_at", "2014-08-26 18:58:41.741493"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.743003"], ["updated_at", "2014-08-26 18:58:41.743003"], ["user_id", 10780000000000041]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.745662"], ["updated_at", "2014-08-26 18:58:41.745662"], ["user_id", 41]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.747761"], ["updated_at", "2014-08-26 18:58:41.747761"], ["user_id", 41]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 10770000000000050], ["created_at", "2014-08-26 18:58:41.749383"], ["updated_at", "2014-08-26 18:58:41.749383"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 10780000000000050], ["created_at", "2014-08-26 18:58:41.751034"], ["updated_at", "2014-08-26 18:58:41.751034"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 10780000000000051], ["created_at", "2014-08-26 18:58:41.752340"], ["updated_at", "2014-08-26 18:58:41.752340"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 1077 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (59) [shard 1077 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (10770000000000059) [shard 1078 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (49, 10780000000000048) [shard 1077 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (48, 49) [shard 1078 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [shard 1078 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (41) [shard 1078 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (50) [shard 1078 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (10780000000000051) [shard 1077 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.775062"], ["updated_at", "2014-08-26 18:58:41.775062"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.776616"], ["updated_at", "2014-08-26 18:58:41.776616"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.778104"], ["updated_at", "2014-08-26 18:58:41.778104"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.3ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:41.782683"], ["owner_id", 925], ["owner_type", "Appendage"], ["updated_at", "2014-08-26 18:58:41.782683"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 89]] [shard 1076 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 925]] [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) UPDATE "features" SET "owner_id" = $1, "owner_type" = $2, "updated_at" = $3 WHERE "features"."id" = 89 [["owner_id", 10770000000000060], ["owner_type", "User"], ["updated_at", "2014-08-26 18:58:41.791147"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 89]] [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.797981"], ["updated_at", "2014-08-26 18:58:41.797981"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.799370"], ["updated_at", "2014-08-26 18:58:41.799370"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (5.0ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-08-26 18:58:41.800896"], ["owner_id", 61], ["owner_type", "User"], ["updated_at", "2014-08-26 18:58:41.800896"], ["value", 1]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-08-26 18:58:41.808595"], ["owner_id", 10770000000000061], ["owner_type", "User"], ["updated_at", "2014-08-26 18:58:41.808595"], ["value", 2]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 61], ["owner_type", "User"]] [shard 1077 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [shard 1077 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 61], ["owner_type", "User"]] [shard 1077 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 10770000000000061], ["owner_type", "User"]] [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1076]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1077], ["name", "switchman_test_shard_1077"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1078], ["name", "switchman_test_shard_1078"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1076 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1076]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1077], ["name", "switchman_test_shard_1077"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1078], ["name", "switchman_test_shard_1078"]] [shard 1076 master]  (0.2ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.840960"], ["updated_at", "2014-08-26 18:58:41.840960"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SELECT COUNT(*) FROM "users" [shard 1078 master]  (0.1ms) SAVEPOINT active_record_2 [shard 1078 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.845218"], ["updated_at", "2014-08-26 18:58:41.845218"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1078 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) SELECT COUNT(*) FROM "users" [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1076]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1077], ["name", "switchman_test_shard_1077"]] [shard 1076 master]  (0.2ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1078], ["name", "switchman_test_shard_1078"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1077,1078)) AND "switchman_shards"."id" IN (1076, 1077) [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1076]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1077], ["name", "switchman_test_shard_1077"]] [shard 1076 master]  (0.2ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1078], ["name", "switchman_test_shard_1078"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.884004"], ["updated_at", "2014-08-26 18:58:41.884004"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.885380"], ["updated_at", "2014-08-26 18:58:41.885380"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.886772"], ["updated_at", "2014-08-26 18:58:41.886772"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1077 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master] User Load (0.4ms) SELECT "users".* FROM "users" [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.951097"], ["updated_at", "2014-08-26 18:58:41.951097"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1076 master] SQL (0.1ms) DELETE FROM "users" [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.956827"], ["updated_at", "2014-08-26 18:58:41.956827"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1076 master] SQL (0.1ms) DELETE FROM "users" [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.960278"], ["updated_at", "2014-08-26 18:58:41.960278"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1076 master] SQL (0.4ms) DELETE FROM "users" [shard 1076 master] SQL (0.1ms) DELETE FROM "users" [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.964263"], ["updated_at", "2014-08-26 18:58:41.964263"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1076 master] SQL (0.3ms) DELETE FROM "users" [shard 1076 master] SQL (0.1ms) DELETE FROM "users" [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.968123"], ["updated_at", "2014-08-26 18:58:41.968123"]] [shard 1076 master]  (0.2ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:41.969662"], ["name", "a"], ["updated_at", "2014-08-26 18:58:41.969662"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1841]] [shard 1076 master] CACHE (0.0ms) 1076::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1841]] CACHE (0.0ms) 1076::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1841]]  (0.1ms) BEGIN [shard 1076 master] SQL (0.2ms) UPDATE "users" SET "name" = $1, "updated_at" = $2 WHERE "users"."id" = 1841 [["name", "b"], ["updated_at", "2014-08-26 18:58:41.972748"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1841]] [shard 1076 master] CACHE (0.0ms) 1076::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1841]] SQL (0.3ms) DELETE FROM "users" [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.979506"], ["updated_at", "2014-08-26 18:58:41.979506"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1076 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-08-26 18:58:41.981099' [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.985242"], ["updated_at", "2014-08-26 18:58:41.985242"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1076 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-08-26 18:58:41.986540' [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.988476"], ["updated_at", "2014-08-26 18:58:41.988476"]] [shard 1076 master]  (0.4ms) COMMIT [shard 1076 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1076 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-08-26 18:58:41.990151' [shard 1076 master] SQL (0.4ms) DELETE FROM "users" [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.992891"], ["updated_at", "2014-08-26 18:58:41.992891"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1076 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-08-26 18:58:41.994538' [shard 1076 master] SQL (0.4ms) DELETE FROM "users" [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:41.999836"], ["updated_at", "2014-08-26 18:58:41.999836"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.004732"], ["updated_at", "2014-08-26 18:58:42.004732"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.010793"], ["updated_at", "2014-08-26 18:58:42.010793"]] [shard 1076 master]  (0.4ms) COMMIT [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.017854"], ["updated_at", "2014-08-26 18:58:42.017854"]] [shard 1076 master]  (0.2ms) COMMIT [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1076 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1076]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1077], ["name", "switchman_test_shard_1077"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1078], ["name", "switchman_test_shard_1078"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1078 LIMIT 1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11078 LIMIT 1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1077 LIMIT 1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.2ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.4ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1096]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1097]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1097 LIMIT 1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '28' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "28"], ["name", "public"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1098 [shard 1098 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1098 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1098 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1098 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1098 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1098 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1098 deploy]  (0.3ms) COMMIT [shard 1098 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 1098 deploy]  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1098 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1098 deploy]  (0.4ms) COMMIT [shard 1098 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1098 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1098 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1098 deploy]  (0.4ms) COMMIT [shard 1098 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1098 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1098 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1098 deploy]  (0.4ms) COMMIT [shard 1098 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1098 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1098 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1098 deploy]  (0.3ms) COMMIT [shard 1098 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1098 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1098 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1098 deploy]  (0.2ms) COMMIT [shard 1098 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1098 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1098 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1098 deploy]  (0.4ms) COMMIT [shard 1098 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1098 [["name", "switchman_test_shard_1098"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) BEGIN [shard 1098 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.324506"], ["updated_at", "2014-08-26 18:58:42.324506"]] [shard 1098 master]  (0.3ms) COMMIT [shard 1098 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 1098 master]  (4.4ms) DROP SCHEMA switchman_test_shard_1098 CASCADE [shard 1098 deploy]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 1098 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1076]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1077], ["name", "switchman_test_shard_1077"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1078], ["name", "switchman_test_shard_1078"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1076]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1077], ["name", "switchman_test_shard_1077"]] [shard 1076 master]  (0.2ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1078], ["name", "switchman_test_shard_1078"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.372655"], ["updated_at", "2014-08-26 18:58:42.372655"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.379967"], ["updated_at", "2014-08-26 18:58:42.379967"], ["user_id", 1850]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.382842"], ["updated_at", "2014-08-26 18:58:42.382842"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.385795"], ["updated_at", "2014-08-26 18:58:42.385795"], ["user_id", 64]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.387817"], ["updated_at", "2014-08-26 18:58:42.387817"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.395100"], ["updated_at", "2014-08-26 18:58:42.395100"], ["user_id", 46]] [shard 1078 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.2ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.402847"], ["updated_at", "2014-08-26 18:58:42.402847"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.405520"], ["updated_at", "2014-08-26 18:58:42.405520"], ["user_id", 1851]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.407379"], ["updated_at", "2014-08-26 18:58:42.407379"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.410172"], ["updated_at", "2014-08-26 18:58:42.410172"], ["user_id", 65]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.411887"], ["updated_at", "2014-08-26 18:58:42.411887"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.414843"], ["updated_at", "2014-08-26 18:58:42.414843"], ["user_id", 47]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1077 LIMIT 1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.422374"], ["updated_at", "2014-08-26 18:58:42.422374"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.424649"], ["updated_at", "2014-08-26 18:58:42.424649"], ["user_id", 1852]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.426184"], ["updated_at", "2014-08-26 18:58:42.426184"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.428747"], ["updated_at", "2014-08-26 18:58:42.428747"], ["user_id", 66]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.430641"], ["updated_at", "2014-08-26 18:58:42.430641"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.434069"], ["updated_at", "2014-08-26 18:58:42.434069"], ["user_id", 48]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.439537"], ["updated_at", "2014-08-26 18:58:42.439537"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.441812"], ["updated_at", "2014-08-26 18:58:42.441812"], ["user_id", 1853]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.443424"], ["updated_at", "2014-08-26 18:58:42.443424"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.445996"], ["updated_at", "2014-08-26 18:58:42.445996"], ["user_id", 67]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.447513"], ["updated_at", "2014-08-26 18:58:42.447513"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.450084"], ["updated_at", "2014-08-26 18:58:42.450084"], ["user_id", 49]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.455767"], ["updated_at", "2014-08-26 18:58:42.455767"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.458056"], ["updated_at", "2014-08-26 18:58:42.458056"], ["user_id", 1854]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.459695"], ["updated_at", "2014-08-26 18:58:42.459695"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.462186"], ["updated_at", "2014-08-26 18:58:42.462186"], ["user_id", 68]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.463672"], ["updated_at", "2014-08-26 18:58:42.463672"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.466244"], ["updated_at", "2014-08-26 18:58:42.466244"], ["user_id", 50]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.471097"], ["updated_at", "2014-08-26 18:58:42.471097"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.473349"], ["updated_at", "2014-08-26 18:58:42.473349"], ["user_id", 1855]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.475057"], ["updated_at", "2014-08-26 18:58:42.475057"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.477994"], ["updated_at", "2014-08-26 18:58:42.477994"], ["user_id", 69]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.479726"], ["updated_at", "2014-08-26 18:58:42.479726"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.482650"], ["updated_at", "2014-08-26 18:58:42.482650"], ["user_id", 51]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.2ms) ROLLBACK [shard 1078 master]  (0.2ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.490563"], ["updated_at", "2014-08-26 18:58:42.490563"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.493169"], ["updated_at", "2014-08-26 18:58:42.493169"], ["user_id", 1856]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.494974"], ["updated_at", "2014-08-26 18:58:42.494974"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.497916"], ["updated_at", "2014-08-26 18:58:42.497916"], ["user_id", 70]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.499466"], ["updated_at", "2014-08-26 18:58:42.499466"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.502108"], ["updated_at", "2014-08-26 18:58:42.502108"], ["user_id", 52]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.508179"], ["updated_at", "2014-08-26 18:58:42.508179"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.510657"], ["updated_at", "2014-08-26 18:58:42.510657"], ["user_id", 1857]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.512559"], ["updated_at", "2014-08-26 18:58:42.512559"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.515172"], ["updated_at", "2014-08-26 18:58:42.515172"], ["user_id", 71]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.516657"], ["updated_at", "2014-08-26 18:58:42.516657"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.519104"], ["updated_at", "2014-08-26 18:58:42.519104"], ["user_id", 53]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.524527"], ["updated_at", "2014-08-26 18:58:42.524527"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.526899"], ["updated_at", "2014-08-26 18:58:42.526899"], ["user_id", 1858]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.528715"], ["updated_at", "2014-08-26 18:58:42.528715"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.532132"], ["updated_at", "2014-08-26 18:58:42.532132"], ["user_id", 72]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.534031"], ["updated_at", "2014-08-26 18:58:42.534031"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.536858"], ["updated_at", "2014-08-26 18:58:42.536858"], ["user_id", 54]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.542179"], ["updated_at", "2014-08-26 18:58:42.542179"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.544388"], ["updated_at", "2014-08-26 18:58:42.544388"], ["user_id", 1859]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.545996"], ["updated_at", "2014-08-26 18:58:42.545996"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.548649"], ["updated_at", "2014-08-26 18:58:42.548649"], ["user_id", 73]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.550148"], ["updated_at", "2014-08-26 18:58:42.550148"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.552630"], ["updated_at", "2014-08-26 18:58:42.552630"], ["user_id", 55]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.557612"], ["updated_at", "2014-08-26 18:58:42.557612"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.560125"], ["updated_at", "2014-08-26 18:58:42.560125"], ["user_id", 1860]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.561883"], ["updated_at", "2014-08-26 18:58:42.561883"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.564595"], ["updated_at", "2014-08-26 18:58:42.564595"], ["user_id", 74]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.566069"], ["updated_at", "2014-08-26 18:58:42.566069"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.568565"], ["updated_at", "2014-08-26 18:58:42.568565"], ["user_id", 56]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.573949"], ["updated_at", "2014-08-26 18:58:42.573949"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.576244"], ["updated_at", "2014-08-26 18:58:42.576244"], ["user_id", 1861]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.577934"], ["updated_at", "2014-08-26 18:58:42.577934"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.580473"], ["updated_at", "2014-08-26 18:58:42.580473"], ["user_id", 75]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.581947"], ["updated_at", "2014-08-26 18:58:42.581947"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.584579"], ["updated_at", "2014-08-26 18:58:42.584579"], ["user_id", 57]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.591942"], ["updated_at", "2014-08-26 18:58:42.591942"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.594712"], ["updated_at", "2014-08-26 18:58:42.594712"], ["user_id", 1862]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.596708"], ["updated_at", "2014-08-26 18:58:42.596708"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.599526"], ["updated_at", "2014-08-26 18:58:42.599526"], ["user_id", 76]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.601214"], ["updated_at", "2014-08-26 18:58:42.601214"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.603952"], ["updated_at", "2014-08-26 18:58:42.603952"], ["user_id", 58]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.2ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.609777"], ["updated_at", "2014-08-26 18:58:42.609777"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.612109"], ["updated_at", "2014-08-26 18:58:42.612109"], ["user_id", 1863]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.613758"], ["updated_at", "2014-08-26 18:58:42.613758"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.616245"], ["updated_at", "2014-08-26 18:58:42.616245"], ["user_id", 77]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.617708"], ["updated_at", "2014-08-26 18:58:42.617708"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.620263"], ["updated_at", "2014-08-26 18:58:42.620263"], ["user_id", 59]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.626028"], ["updated_at", "2014-08-26 18:58:42.626028"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.628233"], ["updated_at", "2014-08-26 18:58:42.628233"], ["user_id", 1864]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.629779"], ["updated_at", "2014-08-26 18:58:42.629779"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.632339"], ["updated_at", "2014-08-26 18:58:42.632339"], ["user_id", 78]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.633846"], ["updated_at", "2014-08-26 18:58:42.633846"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.637054"], ["updated_at", "2014-08-26 18:58:42.637054"], ["user_id", 60]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.643894"], ["updated_at", "2014-08-26 18:58:42.643894"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.650932"], ["updated_at", "2014-08-26 18:58:42.650932"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.653827"], ["updated_at", "2014-08-26 18:58:42.653827"], ["user_id", 1865]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1077 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.655580"], ["updated_at", "2014-08-26 18:58:42.655580"]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.658537"], ["updated_at", "2014-08-26 18:58:42.658537"], ["user_id", 79]] [shard 1077 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1077 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.660449"], ["updated_at", "2014-08-26 18:58:42.660449"]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1078 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.664112"], ["updated_at", "2014-08-26 18:58:42.664112"], ["user_id", 61]] [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1078 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.667968"], ["parent_id", 1865], ["updated_at", "2014-08-26 18:58:42.667968"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 18:58:42.670887"], ["parent_id", 1866], ["updated_at", "2014-08-26 18:58:42.670887"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1866]] [shard 1076 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1865]] [shard 1076 master] User Load (0.2ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 [["parent_id", 1865]] [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1076]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1077], ["name", "switchman_test_shard_1077"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1078], ["name", "switchman_test_shard_1078"]] [shard 1076 master]  (0.2ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.698427"], ["updated_at", "2014-08-26 18:58:42.698427"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 43]] [shard 1076 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 43]] [shard 1076 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 43 ORDER BY "mirror_users"."id" ASC LIMIT 1 [shard 1077 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1077 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1076 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1076 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1076]] [shard 1076 master]  (0.4ms) COMMIT [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1077], ["name", "switchman_test_shard_1077"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1078], ["name", "switchman_test_shard_1078"]] [shard 1076 master]  (0.3ms) COMMIT [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.714790"], ["updated_at", "2014-08-26 18:58:42.714790"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1077 LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1078 LIMIT 1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.723635"], ["updated_at", "2014-08-26 18:58:42.723635"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master]  (0.1ms) BEGIN [shard 1076 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1077]] [shard 1076 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1078]] [shard 1076 master]  (0.1ms) BEGIN [shard 1078 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 18:58:42.728231"], ["updated_at", "2014-08-26 18:58:42.728231"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1076 master] SQL (0.3ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 18:58:42.733498"], ["owner_id", 1869], ["owner_type", "User"], ["updated_at", "2014-08-26 18:58:42.733498"]] [shard 1076 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1076 master] Feature Load (0.2ms) SELECT "features"."owner_id" FROM "features" WHERE "features"."id" = 90 ORDER BY "features"."id" ASC LIMIT 1 [shard 1076 master]  (0.1ms) ROLLBACK [shard 1078 master]  (0.1ms) ROLLBACK [shard 1076 master] SQL (6.2ms) DELETE FROM "switchman_shards" [shard 1076 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1076 master]  (4.9ms) DROP SCHEMA switchman_test_shard_1077 CASCADE [shard 1077 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1077]]  (0.1ms) COMMIT  (5.7ms) DROP SCHEMA switchman_test_shard_1078 CASCADE [shard 1078 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1078]]  (0.1ms) COMMIT  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.2ms) BEGIN  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.4ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1100 [shard 1100 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1100 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1100 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1100 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1100 deploy] SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1100 deploy] Migrating to CreateAppendages (20130411202442)  (3.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1100 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1100 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1100 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1100 deploy] Migrating to CreateDigits (20131022202028)  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1100 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1100 deploy] Migrating to CreateFeatures (20131206172923)  (2.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1100 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1100 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1100 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1100 deploy] Migrating to CreateRoots (20140219183820)  (2.3ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1100 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1100 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1100 [["name", "switchman_test_shard_1100"]] [shard 1099 master]  (1.2ms) COMMIT [shard 1099 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_1101 [shard 1101 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1101 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1101 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1101 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1101 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1101 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1101 deploy]  (0.4ms) COMMIT [shard 1101 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 1101 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1101 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1101 deploy]  (0.3ms) COMMIT [shard 1101 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1101 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1101 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1101 deploy]  (0.3ms) COMMIT [shard 1101 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 1101 deploy]  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1101 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1101 deploy]  (0.3ms) COMMIT [shard 1101 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1101 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1101 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1101 deploy]  (0.3ms) COMMIT [shard 1101 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 1101 deploy]  (0.4ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1101 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1101 deploy]  (0.3ms) COMMIT [shard 1101 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1101 deploy]  (3.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1101 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1101 deploy]  (0.3ms) COMMIT [shard 1101 deploy]  (0.1ms) BEGIN [shard 1099 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1101 [["name", "switchman_test_shard_1101"]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1099]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1100], ["name", "switchman_test_shard_1100"]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1101], ["name", "switchman_test_shard_1101"]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:22.524880"], ["updated_at", "2014-08-26 19:03:22.524880"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1099]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1100], ["name", "switchman_test_shard_1100"]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1101], ["name", "switchman_test_shard_1101"]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:22.551043"], ["updated_at", "2014-08-26 19:03:22.551043"]] [shard 1099 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.2ms) ROLLBACK [shard 1101 master]  (0.2ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:22.560331"], ["updated_at", "2014-08-26 19:03:22.560331"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1100 LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1101 LIMIT 1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.2ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:22.578466"], ["updated_at", "2014-08-26 19:03:22.578466"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.3ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.582743"], ["owner_id", 1871], ["owner_type", "User"], ["updated_at", "2014-08-26 19:03:22.582743"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master] Feature Load (0.3ms) SELECT "features"."owner_id" FROM "features" WHERE "features"."id" = 91 ORDER BY "features"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master] SQL (10.1ms) DELETE FROM "switchman_shards" [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1099]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1100], ["name", "switchman_test_shard_1100"]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1101], ["name", "switchman_test_shard_1101"]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:22.612133"], ["updated_at", "2014-08-26 19:03:22.612133"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:22.613846"], ["name", "multi-shard exists"], ["updated_at", "2014-08-26 19:03:22.613846"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 1099 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1099 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1100 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:22.624187"], ["updated_at", "2014-08-26 19:03:22.624187"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 3 LIMIT 1 [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:22.630649"], ["updated_at", "2014-08-26 19:03:22.630649"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1100 LIMIT 1 [shard 1099 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (4) LIMIT 1 [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:22.639289"], ["updated_at", "2014-08-26 19:03:22.639289"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 5 LIMIT 1 [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:22.646131"], ["updated_at", "2014-08-26 19:03:22.646131"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 6]] [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:22.653263"], ["updated_at", "2014-08-26 19:03:22.653263"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 7]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 11000000000000007 ORDER BY "users"."id" ASC LIMIT 1 [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master] SQL (4.4ms) DELETE FROM "switchman_shards" [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1099]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1100], ["name", "switchman_test_shard_1100"]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1101], ["name", "switchman_test_shard_1101"]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.3ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:22.672435"], ["updated_at", "2014-08-26 19:03:22.672435"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 44]] [shard 1099 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 44]] [shard 1099 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 44 ORDER BY "mirror_users"."id" ASC LIMIT 1 [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1099]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1100], ["name", "switchman_test_shard_1100"]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1101], ["name", "switchman_test_shard_1101"]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:22.713508"], ["updated_at", "2014-08-26 19:03:22.713508"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:22.715136"], ["updated_at", "2014-08-26 19:03:22.715136"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1100 LIMIT 1 [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (5.6ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:22.720438"], ["updated_at", "2014-08-26 19:03:22.720438"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.2ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:22.740949"], ["updated_at", "2014-08-26 19:03:22.740949"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:22.746697"], ["updated_at", "2014-08-26 19:03:22.746697"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:22.748659"], ["updated_at", "2014-08-26 19:03:22.748659"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:22.754553"], ["updated_at", "2014-08-26 19:03:22.754553"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1099]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1100], ["name", "switchman_test_shard_1100"]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1101], ["name", "switchman_test_shard_1101"]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:22.771948"], ["name", "user1"], ["updated_at", "2014-08-26 19:03:22.771948"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.2ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:22.781923"], ["name", "user1"], ["updated_at", "2014-08-26 19:03:22.781923"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:22.787513"], ["name", "user1"], ["updated_at", "2014-08-26 19:03:22.787513"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:22.793019"], ["name", "user1"], ["updated_at", "2014-08-26 19:03:22.793019"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:22.798406"], ["name", "user1"], ["updated_at", "2014-08-26 19:03:22.798406"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:22.804208"], ["name", "user1"], ["updated_at", "2014-08-26 19:03:22.804208"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:22.809606"], ["name", "user1"], ["updated_at", "2014-08-26 19:03:22.809606"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:22.815236"], ["name", "user1"], ["updated_at", "2014-08-26 19:03:22.815236"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:22.820983"], ["name", "user1"], ["updated_at", "2014-08-26 19:03:22.820983"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:22.822618"], ["name", "user2"], ["updated_at", "2014-08-26 19:03:22.822618"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.824316"], ["updated_at", "2014-08-26 19:03:22.824316"], ["user_id", 19], ["value", 1]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1101 LIMIT 1 [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.828959"], ["updated_at", "2014-08-26 19:03:22.828959"], ["user_id", 11010000000000002], ["value", 3]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1100 LIMIT 1 [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.833185"], ["updated_at", "2014-08-26 19:03:22.833185"], ["user_id", 11000000000000019], ["value", 2]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.835767"], ["updated_at", "2014-08-26 19:03:22.835767"], ["user_id", 2], ["value", 4]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.837562"], ["updated_at", "2014-08-26 19:03:22.837562"], ["user_id", 2], ["value", 5]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1100 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1101 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1100 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1101 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1100 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1101 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1100 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 1100 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2) [shard 1101 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1101 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2) [shard 1101 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 1100 master]  (0.2ms) ROLLBACK [shard 1101 master]  (0.2ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:22.854127"], ["name", "user1"], ["updated_at", "2014-08-26 19:03:22.854127"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:22.855826"], ["name", "user2"], ["updated_at", "2014-08-26 19:03:22.855826"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.857404"], ["updated_at", "2014-08-26 19:03:22.857404"], ["user_id", 20], ["value", 1]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.859415"], ["updated_at", "2014-08-26 19:03:22.859415"], ["user_id", 11010000000000003], ["value", 3]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.861414"], ["updated_at", "2014-08-26 19:03:22.861414"], ["user_id", 11000000000000020], ["value", 2]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.863057"], ["updated_at", "2014-08-26 19:03:22.863057"], ["user_id", 3], ["value", 4]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.864610"], ["updated_at", "2014-08-26 19:03:22.864610"], ["user_id", 3], ["value", 5]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:22.870328"], ["name", "user1"], ["updated_at", "2014-08-26 19:03:22.870328"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:22.871939"], ["name", "user2"], ["updated_at", "2014-08-26 19:03:22.871939"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.873647"], ["updated_at", "2014-08-26 19:03:22.873647"], ["user_id", 21], ["value", 1]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.875621"], ["updated_at", "2014-08-26 19:03:22.875621"], ["user_id", 11010000000000004], ["value", 3]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.877609"], ["updated_at", "2014-08-26 19:03:22.877609"], ["user_id", 11000000000000021], ["value", 2]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.879132"], ["updated_at", "2014-08-26 19:03:22.879132"], ["user_id", 4], ["value", 4]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.880605"], ["updated_at", "2014-08-26 19:03:22.880605"], ["user_id", 4], ["value", 5]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1100 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1101 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1100 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1101 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1100 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1101 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1100 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 1100 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (4) [shard 1101 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1101 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (4) [shard 1101 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:22.895374"], ["name", "user1"], ["updated_at", "2014-08-26 19:03:22.895374"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:22.896972"], ["name", "user2"], ["updated_at", "2014-08-26 19:03:22.896972"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.898557"], ["updated_at", "2014-08-26 19:03:22.898557"], ["user_id", 22], ["value", 1]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.900555"], ["updated_at", "2014-08-26 19:03:22.900555"], ["user_id", 11010000000000005], ["value", 3]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.903016"], ["updated_at", "2014-08-26 19:03:22.903016"], ["user_id", 11000000000000022], ["value", 2]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.904808"], ["updated_at", "2014-08-26 19:03:22.904808"], ["user_id", 5], ["value", 4]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.906296"], ["updated_at", "2014-08-26 19:03:22.906296"], ["user_id", 5], ["value", 5]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1100 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1101 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1100 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1101 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1100 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1101 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1100 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 1100 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [shard 1101 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1101 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [shard 1101 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:22.921484"], ["name", "user1"], ["updated_at", "2014-08-26 19:03:22.921484"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:22.923096"], ["name", "user2"], ["updated_at", "2014-08-26 19:03:22.923096"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.925082"], ["updated_at", "2014-08-26 19:03:22.925082"], ["user_id", 23], ["value", 1]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.927205"], ["updated_at", "2014-08-26 19:03:22.927205"], ["user_id", 11010000000000006], ["value", 3]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.929219"], ["updated_at", "2014-08-26 19:03:22.929219"], ["user_id", 11000000000000023], ["value", 2]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.930906"], ["updated_at", "2014-08-26 19:03:22.930906"], ["user_id", 6], ["value", 4]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.932607"], ["updated_at", "2014-08-26 19:03:22.932607"], ["user_id", 6], ["value", 5]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1100 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1101 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1100 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1101 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1100 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1101 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1100 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 1100 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) [shard 1101 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1101 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) [shard 1101 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:22.948302"], ["name", "user1"], ["updated_at", "2014-08-26 19:03:22.948302"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:22.949937"], ["name", "user2"], ["updated_at", "2014-08-26 19:03:22.949937"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.951523"], ["updated_at", "2014-08-26 19:03:22.951523"], ["user_id", 24], ["value", 1]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.953487"], ["updated_at", "2014-08-26 19:03:22.953487"], ["user_id", 11010000000000007], ["value", 3]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.955698"], ["updated_at", "2014-08-26 19:03:22.955698"], ["user_id", 11000000000000024], ["value", 2]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.957311"], ["updated_at", "2014-08-26 19:03:22.957311"], ["user_id", 7], ["value", 4]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:22.958709"], ["updated_at", "2014-08-26 19:03:22.958709"], ["user_id", 7], ["value", 5]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1100 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1101 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1100 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1101 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1100 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1101 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1100 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 1100 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (7) [shard 1101 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1101 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (7) [shard 1101 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 1100 master]  (0.2ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1099]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1100], ["name", "switchman_test_shard_1100"]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1101], ["name", "switchman_test_shard_1101"]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1099]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1100], ["name", "switchman_test_shard_1100"]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1101], ["name", "switchman_test_shard_1101"]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.010223"], ["updated_at", "2014-08-26 19:03:23.010223"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.012013"], ["updated_at", "2014-08-26 19:03:23.012013"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.017626"], ["updated_at", "2014-08-26 19:03:23.017626"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.019218"], ["updated_at", "2014-08-26 19:03:23.019218"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.024801"], ["updated_at", "2014-08-26 19:03:23.024801"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.026257"], ["updated_at", "2014-08-26 19:03:23.026257"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.028027"], ["updated_at", "2014-08-26 19:03:23.028027"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.035195"], ["updated_at", "2014-08-26 19:03:23.035195"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.036735"], ["updated_at", "2014-08-26 19:03:23.036735"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.042382"], ["updated_at", "2014-08-26 19:03:23.042382"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.043995"], ["updated_at", "2014-08-26 19:03:23.043995"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.049268"], ["updated_at", "2014-08-26 19:03:23.049268"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.050740"], ["updated_at", "2014-08-26 19:03:23.050740"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.055865"], ["updated_at", "2014-08-26 19:03:23.055865"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.057602"], ["updated_at", "2014-08-26 19:03:23.057602"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.063183"], ["updated_at", "2014-08-26 19:03:23.063183"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.064829"], ["updated_at", "2014-08-26 19:03:23.064829"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.071015"], ["updated_at", "2014-08-26 19:03:23.071015"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.072721"], ["updated_at", "2014-08-26 19:03:23.072721"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.078568"], ["updated_at", "2014-08-26 19:03:23.078568"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.080197"], ["updated_at", "2014-08-26 19:03:23.080197"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.086206"], ["updated_at", "2014-08-26 19:03:23.086206"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.087767"], ["updated_at", "2014-08-26 19:03:23.087767"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.093787"], ["updated_at", "2014-08-26 19:03:23.093787"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.095357"], ["updated_at", "2014-08-26 19:03:23.095357"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:23.096926"], ["updated_at", "2014-08-26 19:03:23.096926"], ["user_id", 36]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.103936"], ["updated_at", "2014-08-26 19:03:23.103936"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.105630"], ["updated_at", "2014-08-26 19:03:23.105630"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:23.107462"], ["updated_at", "2014-08-26 19:03:23.107462"], ["user_id", 37]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.113244"], ["updated_at", "2014-08-26 19:03:23.113244"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.114854"], ["updated_at", "2014-08-26 19:03:23.114854"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:23.116515"], ["updated_at", "2014-08-26 19:03:23.116515"], ["user_id", 38], ["value", 1]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1100 LIMIT 1 [shard 1099 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:23.120838"], ["updated_at", "2014-08-26 19:03:23.120838"], ["user_id", 11000000000000038]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.126902"], ["updated_at", "2014-08-26 19:03:23.126902"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.128426"], ["updated_at", "2014-08-26 19:03:23.128426"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:23.130063"], ["updated_at", "2014-08-26 19:03:23.130063"], ["user_id", 39]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.135902"], ["updated_at", "2014-08-26 19:03:23.135902"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.137436"], ["updated_at", "2014-08-26 19:03:23.137436"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:23.138898"], ["updated_at", "2014-08-26 19:03:23.138898"], ["user_id", 40]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.144674"], ["updated_at", "2014-08-26 19:03:23.144674"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.154700"], ["updated_at", "2014-08-26 19:03:23.154700"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:23.156388"], ["updated_at", "2014-08-26 19:03:23.156388"], ["user_id", 41], ["value", 1]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:23.158681"], ["updated_at", "2014-08-26 19:03:23.158681"], ["user_id", 11000000000000041], ["value", 2]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.164702"], ["updated_at", "2014-08-26 19:03:23.164702"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.166413"], ["updated_at", "2014-08-26 19:03:23.166413"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:23.168010"], ["updated_at", "2014-08-26 19:03:23.168010"], ["user_id", 42], ["value", 1]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:23.170059"], ["updated_at", "2014-08-26 19:03:23.170059"], ["user_id", 11000000000000042]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.2ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.176088"], ["updated_at", "2014-08-26 19:03:23.176088"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.177892"], ["updated_at", "2014-08-26 19:03:23.177892"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-08-26 19:03:23.179904"], ["owner_id", 43], ["owner_type", "User"], ["updated_at", "2014-08-26 19:03:23.179904"], ["value", 1]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-08-26 19:03:23.182652"], ["owner_id", 11000000000000043], ["owner_type", "User"], ["updated_at", "2014-08-26 19:03:23.182652"], ["value", 2]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.189179"], ["updated_at", "2014-08-26 19:03:23.189179"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.190633"], ["updated_at", "2014-08-26 19:03:23.190633"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.192403"], ["updated_at", "2014-08-26 19:03:23.192403"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:03:23.194440"], ["owner_id", 944], ["owner_type", "Appendage"], ["updated_at", "2014-08-26 19:03:23.194440"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 92]] [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.201115"], ["updated_at", "2014-08-26 19:03:23.201115"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.202789"], ["updated_at", "2014-08-26 19:03:23.202789"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.204301"], ["updated_at", "2014-08-26 19:03:23.204301"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.211546"], ["updated_at", "2014-08-26 19:03:23.211546"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.213299"], ["updated_at", "2014-08-26 19:03:23.213299"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1101 LIMIT 1 [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:23.217454"], ["updated_at", "2014-08-26 19:03:23.217454"], ["user_id", 11010000000000029]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 21]] [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.224188"], ["updated_at", "2014-08-26 19:03:23.224188"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.225718"], ["updated_at", "2014-08-26 19:03:23.225718"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.232368"], ["updated_at", "2014-08-26 19:03:23.232368"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.233957"], ["updated_at", "2014-08-26 19:03:23.233957"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.239386"], ["updated_at", "2014-08-26 19:03:23.239386"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.240951"], ["updated_at", "2014-08-26 19:03:23.240951"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:23.243113"], ["updated_at", "2014-08-26 19:03:23.243113"], ["user_id", 11000000000000049]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.248875"], ["updated_at", "2014-08-26 19:03:23.248875"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.250533"], ["updated_at", "2014-08-26 19:03:23.250533"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:23.252892"], ["updated_at", "2014-08-26 19:03:23.252892"], ["user_id", 11000000000000050]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:23.254889"], ["updated_at", "2014-08-26 19:03:23.254889"], ["user_id", 11010000000000033]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.256343"], ["updated_at", "2014-08-26 19:03:23.256343"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.261901"], ["updated_at", "2014-08-26 19:03:23.261901"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.263539"], ["updated_at", "2014-08-26 19:03:23.263539"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.268968"], ["updated_at", "2014-08-26 19:03:23.268968"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.270501"], ["updated_at", "2014-08-26 19:03:23.270501"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1099]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1100], ["name", "switchman_test_shard_1100"]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1101], ["name", "switchman_test_shard_1101"]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1099]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1100], ["name", "switchman_test_shard_1100"]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1101], ["name", "switchman_test_shard_1101"]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.2ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1099]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1100], ["name", "switchman_test_shard_1100"]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1101], ["name", "switchman_test_shard_1101"]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.321654"], ["updated_at", "2014-08-26 19:03:23.321654"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "3"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "4"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master] SQL (0.7ms) DELETE FROM "switchman_shards" [shard 1099 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1099 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1099]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1100], ["name", "switchman_test_shard_1100"]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1101], ["name", "switchman_test_shard_1101"]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:23.479355"], ["updated_at", "2014-08-26 19:04:23.479355"]] [shard 1100 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.0ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "5"], ["name", "non_existent_shard"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "5"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 1106 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.7ms) SELECT COUNT(*) FROM "users" [shard 1107 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "6"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "7"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "8"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "9"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "10"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "11"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1099]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1100], ["name", "switchman_test_shard_1100"]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1101], ["name", "switchman_test_shard_1101"]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.569116"], ["updated_at", "2014-08-26 19:03:23.569116"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.570718"], ["updated_at", "2014-08-26 19:03:23.570718"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.601291"], ["updated_at", "2014-08-26 19:03:23.601291"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1100 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.630957"], ["updated_at", "2014-08-26 19:03:23.630957"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master] User Load (0.3ms) SELECT "users".* FROM "users" [shard 1099 master] SQL (0.2ms) DELETE FROM "users" [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.639109"], ["updated_at", "2014-08-26 19:03:23.639109"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1099 master] SQL (0.1ms) DELETE FROM "users" [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.643528"], ["updated_at", "2014-08-26 19:03:23.643528"]] [shard 1099 master]  (0.4ms) COMMIT [shard 1099 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1099 master] SQL (0.3ms) DELETE FROM "users" [shard 1099 master] SQL (0.2ms) DELETE FROM "users" [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.648945"], ["updated_at", "2014-08-26 19:03:23.648945"]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1099 master] SQL (0.3ms) DELETE FROM "users" [shard 1099 master] SQL (0.2ms) DELETE FROM "users" [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.653835"], ["updated_at", "2014-08-26 19:03:23.653835"]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:23.655846"], ["name", "a"], ["updated_at", "2014-08-26 19:03:23.655846"]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1882]] [shard 1099 master] CACHE (0.0ms) 1099::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1882]] CACHE (0.0ms) 1099::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1882]]  (0.1ms) BEGIN [shard 1099 master] SQL (0.2ms) UPDATE "users" SET "name" = $1, "updated_at" = $2 WHERE "users"."id" = 1882 [["name", "b"], ["updated_at", "2014-08-26 19:03:23.659775"]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1882]] [shard 1099 master] CACHE (0.0ms) 1099::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1882]] SQL (0.3ms) DELETE FROM "users" [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.680447"], ["updated_at", "2014-08-26 19:03:23.680447"]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.686973"], ["updated_at", "2014-08-26 19:03:23.686973"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.692819"], ["updated_at", "2014-08-26 19:03:23.692819"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.698854"], ["updated_at", "2014-08-26 19:03:23.698854"]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.747335"], ["updated_at", "2014-08-26 19:03:23.747335"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1099 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-08-26 19:03:23.749269' [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.754570"], ["updated_at", "2014-08-26 19:03:23.754570"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1099 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-08-26 19:03:23.756107' [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.758517"], ["updated_at", "2014-08-26 19:03:23.758517"]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1099 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-08-26 19:03:23.760608' [shard 1099 master] SQL (0.3ms) DELETE FROM "users" [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.763763"], ["updated_at", "2014-08-26 19:03:23.763763"]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1099 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-08-26 19:03:23.765693' [shard 1099 master] SQL (0.3ms) DELETE FROM "users" [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "12"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "12"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1099]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1100], ["name", "switchman_test_shard_1100"]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1101], ["name", "switchman_test_shard_1101"]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11101 LIMIT 1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1100 LIMIT 1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1101 LIMIT 1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1116]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1116 LIMIT 1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1117]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '13' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "13"], ["name", "public"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1118 [shard 1118 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1118 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1118 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1118 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1118 deploy]  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1118 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1118 deploy]  (0.3ms) COMMIT [shard 1118 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 1118 deploy]  (2.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1118 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1118 deploy]  (0.3ms) COMMIT [shard 1118 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1118 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1118 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1118 deploy]  (0.4ms) COMMIT [shard 1118 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 1118 deploy]  (2.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1118 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1118 deploy]  (0.4ms) COMMIT [shard 1118 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 1118 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1118 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1118 deploy]  (0.4ms) COMMIT [shard 1118 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 1118 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1118 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1118 deploy]  (0.3ms) COMMIT [shard 1118 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1118 deploy]  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1118 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1118 deploy]  (0.3ms) COMMIT [shard 1118 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1118 [["name", "switchman_test_shard_1118"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) BEGIN [shard 1118 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:23.987352"], ["updated_at", "2014-08-26 19:03:23.987352"]] [shard 1118 master]  (0.3ms) COMMIT [shard 1118 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1118 master]  (4.7ms) DROP SCHEMA switchman_test_shard_1118 CASCADE [shard 1118 deploy]  (0.5ms) SELECT COUNT(*) FROM "users" [shard 1118 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.2ms) ROLLBACK [shard 1101 master]  (0.2ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master] Switchman::Shard Load (1.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1099]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1100], ["name", "switchman_test_shard_1100"]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1101], ["name", "switchman_test_shard_1101"]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '33' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "33"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 1119 deploy]  (0.1ms) select sqlite_version(*) [shard 1119 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1119 deploy] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1119 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 1119 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 1119 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130403132607"]] [shard 1119 deploy]  (0.7ms) commit transaction [shard 1119 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 1119 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 1119 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202442"]] [shard 1119 deploy]  (0.6ms) commit transaction [shard 1119 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 1119 deploy]  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 1119 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202551"]] [shard 1119 deploy]  (0.7ms) commit transaction [shard 1119 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) begin transaction [shard 1119 deploy]  (0.3ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 1119 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131022202028"]] [shard 1119 deploy]  (0.7ms) commit transaction [shard 1119 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 1119 deploy]  (0.3ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 1119 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131206172923"]] [shard 1119 deploy]  (0.6ms) commit transaction [shard 1119 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 1119 deploy]  (0.3ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 1119 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140123154135"]] [shard 1119 deploy]  (0.7ms) commit transaction [shard 1119 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 1119 deploy]  (0.3ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 1119 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219183820"]] [shard 1119 deploy]  (0.7ms) commit transaction [shard 1119 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1119 [["name", "db/shard_1119.sqlite3"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.0ms) begin transaction [shard 1119 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-08-26 19:03:24.145626"], ["updated_at", "2014-08-26 19:03:24.145626"]] [shard 1119 master]  (0.7ms) commit transaction [shard 1119 master] Drop failed: No such file or directory @ unlink_internal - db/shard_1119.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1119]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '34' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "34"], ["name", "public"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (6.2ms) CREATE SCHEMA switchman_test_shard_1120 [shard 1120 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1120 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1120 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1120 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1120 deploy]  (2.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1120 deploy] SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1120 deploy]  (0.4ms) COMMIT [shard 1120 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 1120 deploy]  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1120 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1120 deploy]  (0.2ms) COMMIT [shard 1120 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1120 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1120 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1120 deploy]  (0.4ms) COMMIT [shard 1120 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 1120 deploy]  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1120 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1120 deploy]  (0.3ms) COMMIT [shard 1120 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1120 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1120 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1120 deploy]  (0.3ms) COMMIT [shard 1120 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1120 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1120 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1120 deploy]  (0.3ms) COMMIT [shard 1120 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1120 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1120 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1120 deploy]  (0.3ms) COMMIT [shard 1120 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1120 [["name", "switchman_test_shard_1120"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) BEGIN [shard 1120 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:24.239991"], ["updated_at", "2014-08-26 19:03:24.239991"]] [shard 1120 master]  (0.2ms) COMMIT [shard 1120 master]  (4.6ms) DROP SCHEMA switchman_test_shard_1120 CASCADE [shard 1120 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1120]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [shard 1099 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_1121 [shard 1121 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1121 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1121 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1121 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1121 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1121 deploy] Migrating to CreateAppendages (20130411202442)  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1121 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1121 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1121 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1121 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1121 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1121 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1121 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1121 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1121 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1121 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1121 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1121 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1121 [["name", "switchman_test_shard_1121"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1121 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:24.312901"], ["updated_at", "2014-08-26 19:03:24.312901"]] [shard 1121 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1121 master]  (2.5ms) DROP SCHEMA switchman_test_shard_1121 CASCADE [shard 1121 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1121]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (2.3ms) ROLLBACK [shard 1099 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1099]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1100], ["name", "switchman_test_shard_1100"]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1101], ["name", "switchman_test_shard_1101"]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:24.340425"], ["name", "user1"], ["updated_at", "2014-08-26 19:03:24.340425"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:24.342368"], ["name", "user2"], ["updated_at", "2014-08-26 19:03:24.342368"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1100 LIMIT 1 [shard 1099 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1891) [shard 1099 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:24.351811"], ["name", "user1"], ["updated_at", "2014-08-26 19:03:24.351811"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:24.353394"], ["name", "user2"], ["updated_at", "2014-08-26 19:03:24.353394"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 57 ORDER BY "users"."id" ASC LIMIT 1 [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:24.360214"], ["name", "user1"], ["updated_at", "2014-08-26 19:03:24.360214"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:24.361990"], ["name", "user2"], ["updated_at", "2014-08-26 19:03:24.361990"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (1893) [shard 1099 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (58) [shard 1100 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1893]] [shard 1099 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 58]] [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:24.378686"], ["name", "user1"], ["updated_at", "2014-08-26 19:03:24.378686"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:24.380460"], ["name", "user2"], ["updated_at", "2014-08-26 19:03:24.380460"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 59 [shard 1100 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1894]] [shard 1099 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 59]] [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:24.388495"], ["name", "user1"], ["updated_at", "2014-08-26 19:03:24.388495"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1100 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:03:24.390287"], ["name", "user2"], ["updated_at", "2014-08-26 19:03:24.390287"]] [shard 1100 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1100 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1100 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1099]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1100], ["name", "switchman_test_shard_1100"]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1101], ["name", "switchman_test_shard_1101"]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:24.403552"], ["updated_at", "2014-08-26 19:03:24.403552"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:24.409459"], ["updated_at", "2014-08-26 19:03:24.409459"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:24.415493"], ["updated_at", "2014-08-26 19:03:24.415493"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:24.420674"], ["updated_at", "2014-08-26 19:03:24.420674"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:24.426555"], ["updated_at", "2014-08-26 19:03:24.426555"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:24.431677"], ["updated_at", "2014-08-26 19:03:24.431677"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:24.436798"], ["updated_at", "2014-08-26 19:03:24.436798"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:24.442980"], ["updated_at", "2014-08-26 19:03:24.442980"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:24.451634"], ["updated_at", "2014-08-26 19:03:24.451634"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:24.456559"], ["updated_at", "2014-08-26 19:03:24.456559"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:24.462898"], ["updated_at", "2014-08-26 19:03:24.462898"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:24.468004"], ["updated_at", "2014-08-26 19:03:24.468004"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:24.473343"], ["updated_at", "2014-08-26 19:03:24.473343"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:24.478359"], ["updated_at", "2014-08-26 19:03:24.478359"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:24.483405"], ["updated_at", "2014-08-26 19:03:24.483405"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1099 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:24.488380"], ["updated_at", "2014-08-26 19:03:24.488380"]] [shard 1099 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1099 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1099]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1100], ["name", "switchman_test_shard_1100"]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1101], ["name", "switchman_test_shard_1101"]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1100,1101)) AND "switchman_shards"."id" IN (1099, 1100) [shard 1099 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.2ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1099 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1099]] [shard 1099 master]  (0.3ms) COMMIT [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1100], ["name", "switchman_test_shard_1100"]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1101], ["name", "switchman_test_shard_1101"]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1099]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1100], ["name", "switchman_test_shard_1100"]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1099 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1101], ["name", "switchman_test_shard_1101"]] [shard 1099 master]  (0.2ms) COMMIT [shard 1099 master]  (0.1ms) BEGIN [shard 1101 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:24.539574"], ["updated_at", "2014-08-26 19:03:24.539574"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) BEGIN [shard 1099 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1100]] [shard 1099 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1101]] [shard 1099 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1101 master]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 1101 master]  (0.1ms) SAVEPOINT active_record_2 [shard 1101 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:03:24.545690"], ["updated_at", "2014-08-26 19:03:24.545690"]] [shard 1101 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1101 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1101 master]  (0.1ms) ROLLBACK [shard 1099 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1101 master]  (0.1ms) ROLLBACK [shard 1101 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1099 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1099 master]  (5.1ms) DROP SCHEMA switchman_test_shard_1100 CASCADE [shard 1100 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1100]]  (0.1ms) COMMIT  (6.4ms) DROP SCHEMA switchman_test_shard_1101 CASCADE [shard 1101 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1101]]  (0.1ms) COMMIT  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (6.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1123 [shard 1123 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1123 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1123 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1123 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1123 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1123 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1123 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1123 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1123 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1123 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1123 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1123 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1123 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1123 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1123 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1123 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1123 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1123 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1123 [["name", "switchman_test_shard_1123"]] [shard 1122 master]  (1.5ms) COMMIT [shard 1122 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1124 [shard 1124 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1124 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1124 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1124 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1124 deploy]  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1124 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1124 deploy]  (0.3ms) COMMIT [shard 1124 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 1124 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1124 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1124 deploy]  (0.4ms) COMMIT [shard 1124 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1124 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1124 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1124 deploy]  (0.3ms) COMMIT [shard 1124 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1124 deploy]  (2.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1124 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1124 deploy]  (0.4ms) COMMIT [shard 1124 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1124 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1124 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1124 deploy]  (0.4ms) COMMIT [shard 1124 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1124 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1124 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1124 deploy]  (0.2ms) COMMIT [shard 1124 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1124 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1124 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1124 deploy]  (0.3ms) COMMIT [shard 1124 deploy]  (0.1ms) BEGIN [shard 1122 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1124 [["name", "switchman_test_shard_1124"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1122]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1123], ["name", "switchman_test_shard_1123"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1124], ["name", "switchman_test_shard_1124"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.052623"], ["updated_at", "2014-08-26 19:04:13.052623"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.061977"], ["updated_at", "2014-08-26 19:04:13.061977"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.2ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.072180"], ["updated_at", "2014-08-26 19:04:13.072180"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.073889"], ["updated_at", "2014-08-26 19:04:13.073889"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.080436"], ["updated_at", "2014-08-26 19:04:13.080436"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.081994"], ["updated_at", "2014-08-26 19:04:13.081994"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.087478"], ["updated_at", "2014-08-26 19:04:13.087478"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.088971"], ["updated_at", "2014-08-26 19:04:13.088971"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.094066"], ["updated_at", "2014-08-26 19:04:13.094066"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.095516"], ["updated_at", "2014-08-26 19:04:13.095516"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.100833"], ["updated_at", "2014-08-26 19:04:13.100833"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.102467"], ["updated_at", "2014-08-26 19:04:13.102467"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.104323"], ["updated_at", "2014-08-26 19:04:13.104323"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.114944"], ["updated_at", "2014-08-26 19:04:13.114944"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.116815"], ["updated_at", "2014-08-26 19:04:13.116815"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.123000"], ["updated_at", "2014-08-26 19:04:13.123000"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.124682"], ["updated_at", "2014-08-26 19:04:13.124682"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.129851"], ["updated_at", "2014-08-26 19:04:13.129851"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.131156"], ["updated_at", "2014-08-26 19:04:13.131156"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.136398"], ["updated_at", "2014-08-26 19:04:13.136398"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.137903"], ["updated_at", "2014-08-26 19:04:13.137903"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.143119"], ["updated_at", "2014-08-26 19:04:13.143119"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.144622"], ["updated_at", "2014-08-26 19:04:13.144622"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.150151"], ["updated_at", "2014-08-26 19:04:13.150151"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.151782"], ["updated_at", "2014-08-26 19:04:13.151782"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:13.158737"], ["updated_at", "2014-08-26 19:04:13.158737"], ["user_id", 12], ["value", 1]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1123 LIMIT 1 [shard 1122 master] SQL (6.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:13.163590"], ["updated_at", "2014-08-26 19:04:13.163590"], ["user_id", 11230000000000012], ["value", 2]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.177086"], ["updated_at", "2014-08-26 19:04:13.177086"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.178745"], ["updated_at", "2014-08-26 19:04:13.178745"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:13.180481"], ["updated_at", "2014-08-26 19:04:13.180481"], ["user_id", 13]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.186740"], ["updated_at", "2014-08-26 19:04:13.186740"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.188220"], ["updated_at", "2014-08-26 19:04:13.188220"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:13.189633"], ["updated_at", "2014-08-26 19:04:13.189633"], ["user_id", 14], ["value", 1]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:13.191624"], ["updated_at", "2014-08-26 19:04:13.191624"], ["user_id", 11230000000000014]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.196956"], ["updated_at", "2014-08-26 19:04:13.196956"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.198423"], ["updated_at", "2014-08-26 19:04:13.198423"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:13.199973"], ["updated_at", "2014-08-26 19:04:13.199973"], ["user_id", 15]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.205927"], ["updated_at", "2014-08-26 19:04:13.205927"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.207429"], ["updated_at", "2014-08-26 19:04:13.207429"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:13.209067"], ["updated_at", "2014-08-26 19:04:13.209067"], ["user_id", 16]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.214454"], ["updated_at", "2014-08-26 19:04:13.214454"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.216236"], ["updated_at", "2014-08-26 19:04:13.216236"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:13.217740"], ["updated_at", "2014-08-26 19:04:13.217740"], ["user_id", 17]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.223773"], ["updated_at", "2014-08-26 19:04:13.223773"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.225487"], ["updated_at", "2014-08-26 19:04:13.225487"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:13.227081"], ["updated_at", "2014-08-26 19:04:13.227081"], ["user_id", 18], ["value", 1]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:13.229243"], ["updated_at", "2014-08-26 19:04:13.229243"], ["user_id", 11230000000000018]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.234999"], ["updated_at", "2014-08-26 19:04:13.234999"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.236603"], ["updated_at", "2014-08-26 19:04:13.236603"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.241705"], ["updated_at", "2014-08-26 19:04:13.241705"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.243183"], ["updated_at", "2014-08-26 19:04:13.243183"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.248302"], ["updated_at", "2014-08-26 19:04:13.248302"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.249651"], ["updated_at", "2014-08-26 19:04:13.249651"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:13.251881"], ["updated_at", "2014-08-26 19:04:13.251881"], ["user_id", 11230000000000021]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.257629"], ["updated_at", "2014-08-26 19:04:13.257629"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.259172"], ["updated_at", "2014-08-26 19:04:13.259172"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:13.261295"], ["updated_at", "2014-08-26 19:04:13.261295"], ["user_id", 11230000000000022]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1124 LIMIT 1 [shard 1122 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:13.264943"], ["updated_at", "2014-08-26 19:04:13.264943"], ["user_id", 11240000000000022]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.266528"], ["updated_at", "2014-08-26 19:04:13.266528"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.272231"], ["updated_at", "2014-08-26 19:04:13.272231"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.273808"], ["updated_at", "2014-08-26 19:04:13.273808"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (6.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-08-26 19:04:13.282591"], ["owner_id", 23], ["owner_type", "User"], ["updated_at", "2014-08-26 19:04:13.282591"], ["value", 1]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-08-26 19:04:13.291921"], ["owner_id", 11230000000000023], ["owner_type", "User"], ["updated_at", "2014-08-26 19:04:13.291921"], ["value", 2]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.299073"], ["updated_at", "2014-08-26 19:04:13.299073"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.300754"], ["updated_at", "2014-08-26 19:04:13.300754"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.302528"], ["updated_at", "2014-08-26 19:04:13.302528"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.3ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:13.304362"], ["owner_id", 951], ["owner_type", "Appendage"], ["updated_at", "2014-08-26 19:04:13.304362"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 93]] [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.311361"], ["updated_at", "2014-08-26 19:04:13.311361"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.312904"], ["updated_at", "2014-08-26 19:04:13.312904"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.314411"], ["updated_at", "2014-08-26 19:04:13.314411"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.321034"], ["updated_at", "2014-08-26 19:04:13.321034"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.322497"], ["updated_at", "2014-08-26 19:04:13.322497"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:13.324420"], ["updated_at", "2014-08-26 19:04:13.324420"], ["user_id", 11240000000000026]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 8]] [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.331090"], ["updated_at", "2014-08-26 19:04:13.331090"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.332658"], ["updated_at", "2014-08-26 19:04:13.332658"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.338722"], ["updated_at", "2014-08-26 19:04:13.338722"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.340171"], ["updated_at", "2014-08-26 19:04:13.340171"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1122]] [shard 1122 master]  (0.2ms) COMMIT [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1123], ["name", "switchman_test_shard_1123"]] [shard 1122 master]  (0.2ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1124], ["name", "switchman_test_shard_1124"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '7' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "7"], ["name", "public"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1125 [shard 1125 deploy]  (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1125 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1125 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1125 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1125 deploy]  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1125 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1125 deploy]  (0.3ms) COMMIT [shard 1125 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1125 deploy]  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1125 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1125 deploy]  (0.4ms) COMMIT [shard 1125 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) BEGIN [shard 1125 deploy]  (2.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1125 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1125 deploy]  (0.4ms) COMMIT [shard 1125 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 1125 deploy]  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1125 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1125 deploy]  (0.3ms) COMMIT [shard 1125 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1125 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1125 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1125 deploy]  (0.3ms) COMMIT [shard 1125 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 1125 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1125 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1125 deploy]  (0.3ms) COMMIT [shard 1125 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1125 deploy]  (2.3ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1125 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1125 deploy]  (0.3ms) COMMIT [shard 1125 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1125 [["name", "switchman_test_shard_1125"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) BEGIN [shard 1125 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.466359"], ["updated_at", "2014-08-26 19:04:13.466359"]] [shard 1125 master]  (0.3ms) COMMIT [shard 1125 master]  (4.7ms) DROP SCHEMA switchman_test_shard_1125 CASCADE [shard 1125 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1125]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '8' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "8"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (20.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 1126 deploy]  (0.1ms) select sqlite_version(*) [shard 1126 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1126 deploy] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1126 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 1126 deploy]  (0.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime, "updated_at" datetime) [shard 1126 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130403132607"]] [shard 1126 deploy]  (0.7ms) commit transaction [shard 1126 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 1126 deploy]  (0.3ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [shard 1126 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202442"]] [shard 1126 deploy]  (0.7ms) commit transaction [shard 1126 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) begin transaction [shard 1126 deploy]  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [shard 1126 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202551"]] [shard 1126 deploy]  (0.6ms) commit transaction [shard 1126 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 1126 deploy]  (0.4ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [shard 1126 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131022202028"]] [shard 1126 deploy]  (0.8ms) commit transaction [shard 1126 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 1126 deploy]  (0.3ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime, "updated_at" datetime) [shard 1126 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131206172923"]] [shard 1126 deploy]  (0.7ms) commit transaction [shard 1126 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 1126 deploy]  (0.3ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 1126 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140123154135"]] [shard 1126 deploy]  (0.7ms) commit transaction [shard 1126 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 1126 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [shard 1126 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219183820"]] [shard 1126 deploy]  (0.6ms) commit transaction [shard 1126 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1126 [["name", "db/shard_1126.sqlite3"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.0ms) begin transaction [shard 1126 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-08-26 19:04:13.554281"], ["updated_at", "2014-08-26 19:04:13.554281"]] [shard 1126 master]  (0.8ms) commit transaction [shard 1126 master] Drop failed: No such file or directory @ unlink_internal - db/shard_1126.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1126]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.2ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [shard 1122 master]  (0.1ms) CREATE SCHEMA switchman_test_shard_1127 [shard 1127 deploy]  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1127 deploy]  (6.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1127 deploy] ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1127 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1127 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1127 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1127 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1127 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1127 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1127 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1127 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1127 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1127 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1127 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1127 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1127 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1127 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1127 deploy] SQL (0.1ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1127 [["name", "switchman_test_shard_1127"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1127 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.621149"], ["updated_at", "2014-08-26 19:04:13.621149"]] [shard 1127 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1127 master]  (2.4ms) DROP SCHEMA switchman_test_shard_1127 CASCADE [shard 1127 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1127]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (2.2ms) ROLLBACK [shard 1122 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "9"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "9"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1122]] [shard 1122 master]  (0.4ms) COMMIT [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1123], ["name", "switchman_test_shard_1123"]] [shard 1122 master]  (0.2ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1124], ["name", "switchman_test_shard_1124"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "10"], ["name", "non_existent_shard"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "10"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 1130 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.6ms) SELECT COUNT(*) FROM "users" [shard 1131 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "11"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "12"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "13"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "14"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "15"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "16"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1122]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1123], ["name", "switchman_test_shard_1123"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1124], ["name", "switchman_test_shard_1124"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1122]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1123], ["name", "switchman_test_shard_1123"]] [shard 1122 master]  (0.2ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1124], ["name", "switchman_test_shard_1124"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.783350"], ["updated_at", "2014-08-26 19:04:13.783350"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1122 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1122]] [shard 1122 master]  (0.4ms) COMMIT [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1123], ["name", "switchman_test_shard_1123"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1124], ["name", "switchman_test_shard_1124"]] [shard 1122 master]  (0.2ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.3ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:13.806742"], ["updated_at", "2014-08-26 19:04:13.806742"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 45]] [shard 1122 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 45]] [shard 1122 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 45 ORDER BY "mirror_users"."id" ASC LIMIT 1 [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1122]] [shard 1122 master]  (0.4ms) COMMIT [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1123], ["name", "switchman_test_shard_1123"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1124], ["name", "switchman_test_shard_1124"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1123 LIMIT 1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1138]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1139]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1139 LIMIT 1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11124 LIMIT 1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1124 LIMIT 1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '18' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "18"], ["name", "public"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (5.4ms) CREATE SCHEMA switchman_test_shard_1140 [shard 1140 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1140 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1140 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1140 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1140 deploy]  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1140 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1140 deploy]  (0.4ms) COMMIT [shard 1140 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1140 deploy]  (2.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1140 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1140 deploy]  (0.3ms) COMMIT [shard 1140 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1140 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1140 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1140 deploy]  (0.3ms) COMMIT [shard 1140 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1140 deploy]  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1140 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1140 deploy]  (0.3ms) COMMIT [shard 1140 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1140 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1140 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1140 deploy]  (0.4ms) COMMIT [shard 1140 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1140 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1140 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1140 deploy]  (0.3ms) COMMIT [shard 1140 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1140 deploy]  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1140 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1140 deploy]  (0.4ms) COMMIT [shard 1140 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1140 [["name", "switchman_test_shard_1140"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) BEGIN [shard 1140 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.035351"], ["updated_at", "2014-08-26 19:04:14.035351"]] [shard 1140 master]  (0.4ms) COMMIT [shard 1140 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1140 master]  (4.8ms) DROP SCHEMA switchman_test_shard_1140 CASCADE [shard 1140 deploy]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 1140 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1122]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1123], ["name", "switchman_test_shard_1123"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1124], ["name", "switchman_test_shard_1124"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.118925"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:14.118925"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.121124"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:14.121124"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.127182"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:14.127182"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.128854"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:14.128854"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1123 LIMIT 1 [shard 1122 master] SQL (0.4ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (1914) [shard 1122 master] SQL (0.3ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (31) [shard 1123 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1914]] [shard 1122 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 31]] [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.139217"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:14.139217"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.140908"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:14.140908"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master] SQL (0.3ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 32 [shard 1123 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1915]] [shard 1122 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 32]] [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.149089"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:14.149089"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.150774"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:14.150774"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1916) [shard 1122 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (33) [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.157247"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:14.157247"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.158880"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:14.158880"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 34 ORDER BY "users"."id" ASC LIMIT 1 [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1122]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1123], ["name", "switchman_test_shard_1123"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1124], ["name", "switchman_test_shard_1124"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.170294"], ["updated_at", "2014-08-26 19:04:14.170294"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 1124 master]  (0.1ms) SAVEPOINT active_record_2 [shard 1124 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.175512"], ["updated_at", "2014-08-26 19:04:14.175512"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1124 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1122]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1123], ["name", "switchman_test_shard_1123"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1124], ["name", "switchman_test_shard_1124"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1122 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1122]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1123], ["name", "switchman_test_shard_1123"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1124], ["name", "switchman_test_shard_1124"]] [shard 1122 master]  (0.2ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:05:14.200667"], ["updated_at", "2014-08-26 19:05:14.200667"]] [shard 1123 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.0ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1122]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1123], ["name", "switchman_test_shard_1123"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1124], ["name", "switchman_test_shard_1124"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.214037"], ["updated_at", "2014-08-26 19:04:14.214037"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.215344"], ["updated_at", "2014-08-26 19:04:14.215344"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.216700"], ["updated_at", "2014-08-26 19:04:14.216700"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1123 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.222489"], ["updated_at", "2014-08-26 19:04:14.222489"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1122 master] SQL (0.1ms) DELETE FROM "users" [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.227726"], ["updated_at", "2014-08-26 19:04:14.227726"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1122 master] SQL (0.1ms) DELETE FROM "users" [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.230874"], ["updated_at", "2014-08-26 19:04:14.230874"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.232384"], ["name", "a"], ["updated_at", "2014-08-26 19:04:14.232384"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1922]] [shard 1122 master] CACHE (0.0ms) 1122::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1922]] CACHE (0.0ms) 1122::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1922]]  (0.1ms) BEGIN [shard 1122 master] SQL (0.2ms) UPDATE "users" SET "name" = $1, "updated_at" = $2 WHERE "users"."id" = 1922 [["name", "b"], ["updated_at", "2014-08-26 19:04:14.235223"]] [shard 1122 master]  (0.4ms) COMMIT [shard 1122 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1922]] [shard 1122 master] CACHE (0.0ms) 1122::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1922]] SQL (0.3ms) DELETE FROM "users" [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.241063"], ["updated_at", "2014-08-26 19:04:14.241063"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1122 master] SQL (0.9ms) DELETE FROM "users" [shard 1122 master] SQL (0.2ms) DELETE FROM "users" [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.288253"], ["updated_at", "2014-08-26 19:04:14.288253"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master] User Load (0.3ms) SELECT "users".* FROM "users" [shard 1122 master] SQL (0.5ms) DELETE FROM "users" [shard 1122 master] SQL (0.2ms) DELETE FROM "users" [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.332512"], ["updated_at", "2014-08-26 19:04:14.332512"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.339112"], ["updated_at", "2014-08-26 19:04:14.339112"]] [shard 1122 master]  (0.2ms) COMMIT [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.345436"], ["updated_at", "2014-08-26 19:04:14.345436"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.350984"], ["updated_at", "2014-08-26 19:04:14.350984"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.371266"], ["updated_at", "2014-08-26 19:04:14.371266"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1122 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-08-26 19:04:14.373000' [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.378734"], ["updated_at", "2014-08-26 19:04:14.378734"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1122 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-08-26 19:04:14.380458' [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.383209"], ["updated_at", "2014-08-26 19:04:14.383209"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1122 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-08-26 19:04:14.385181' [shard 1122 master] SQL (0.4ms) DELETE FROM "users" [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.388264"], ["updated_at", "2014-08-26 19:04:14.388264"]] [shard 1122 master]  (0.2ms) COMMIT [shard 1122 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1122 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-08-26 19:04:14.390065' [shard 1122 master] SQL (0.3ms) DELETE FROM "users" [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1122]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1123], ["name", "switchman_test_shard_1123"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1124], ["name", "switchman_test_shard_1124"]] [shard 1122 master]  (0.2ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.421017"], ["updated_at", "2014-08-26 19:04:14.421017"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.3ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.427945"], ["owner_id", 1933], ["owner_type", "User"], ["updated_at", "2014-08-26 19:04:14.427945"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master] Feature Load (0.3ms) SELECT "features"."owner_id" FROM "features" WHERE "features"."id" = 94 ORDER BY "features"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.439459"], ["updated_at", "2014-08-26 19:04:14.439459"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1123 LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1124 LIMIT 1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.450758"], ["updated_at", "2014-08-26 19:04:14.450758"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master] SQL (6.2ms) DELETE FROM "switchman_shards" [shard 1122 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1122]] [shard 1122 master]  (6.0ms) COMMIT [shard 1122 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1123], ["name", "switchman_test_shard_1123"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1124], ["name", "switchman_test_shard_1124"]] [shard 1122 master]  (0.2ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.477464"], ["updated_at", "2014-08-26 19:04:14.477464"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 38]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 11230000000000038 ORDER BY "users"."id" ASC LIMIT 1 [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.485993"], ["updated_at", "2014-08-26 19:04:14.485993"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.487651"], ["name", "multi-shard exists"], ["updated_at", "2014-08-26 19:04:14.487651"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 1122 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1122 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1123 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.500324"], ["updated_at", "2014-08-26 19:04:14.500324"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 40 LIMIT 1 [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.508604"], ["updated_at", "2014-08-26 19:04:14.508604"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1123 LIMIT 1 [shard 1122 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) LIMIT 1 [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.517906"], ["updated_at", "2014-08-26 19:04:14.517906"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 42 LIMIT 1 [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.525070"], ["updated_at", "2014-08-26 19:04:14.525070"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 43]] [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master] SQL (6.0ms) DELETE FROM "switchman_shards" [shard 1122 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1122]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1123], ["name", "switchman_test_shard_1123"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1124], ["name", "switchman_test_shard_1124"]] [shard 1122 master]  (0.2ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.548689"], ["updated_at", "2014-08-26 19:04:14.548689"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.558095"], ["updated_at", "2014-08-26 19:04:14.558095"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1123 LIMIT 1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.564902"], ["updated_at", "2014-08-26 19:04:14.564902"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.566718"], ["updated_at", "2014-08-26 19:04:14.566718"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.575884"], ["updated_at", "2014-08-26 19:04:14.575884"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.577471"], ["updated_at", "2014-08-26 19:04:14.577471"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.580159"], ["updated_at", "2014-08-26 19:04:14.580159"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master] SQL (4.7ms) DELETE FROM "switchman_shards" [shard 1122 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1122]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1123], ["name", "switchman_test_shard_1123"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1124], ["name", "switchman_test_shard_1124"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1123,1124)) AND "switchman_shards"."id" IN (1122, 1123) [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1122]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1123], ["name", "switchman_test_shard_1123"]] [shard 1122 master]  (0.2ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1124], ["name", "switchman_test_shard_1124"]] [shard 1122 master]  (0.2ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "19"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "20"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.664373"], ["updated_at", "2014-08-26 19:04:14.664373"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master] SQL (0.7ms) DELETE FROM "switchman_shards" [shard 1122 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1122]] [shard 1122 master]  (0.4ms) COMMIT [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1123], ["name", "switchman_test_shard_1123"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1124], ["name", "switchman_test_shard_1124"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.777726"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:14.777726"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.779838"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:14.779838"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.782231"], ["updated_at", "2014-08-26 19:04:14.782231"], ["user_id", 47], ["value", 1]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1124 LIMIT 1 [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.786883"], ["updated_at", "2014-08-26 19:04:14.786883"], ["user_id", 11240000000000032], ["value", 3]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1123 LIMIT 1 [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.791132"], ["updated_at", "2014-08-26 19:04:14.791132"], ["user_id", 11230000000000047], ["value", 2]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.793401"], ["updated_at", "2014-08-26 19:04:14.793401"], ["user_id", 32], ["value", 4]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.794957"], ["updated_at", "2014-08-26 19:04:14.794957"], ["user_id", 32], ["value", 5]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1123 master]  (0.6ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1124 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1123 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1124 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1123 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1124 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1123 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (47) [shard 1123 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (32) [shard 1124 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1124 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (32) [shard 1124 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (47) [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.812099"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:14.812099"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.813727"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:14.813727"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.815249"], ["updated_at", "2014-08-26 19:04:14.815249"], ["user_id", 48], ["value", 1]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.817124"], ["updated_at", "2014-08-26 19:04:14.817124"], ["user_id", 11240000000000033], ["value", 3]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.819093"], ["updated_at", "2014-08-26 19:04:14.819093"], ["user_id", 11230000000000048], ["value", 2]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.820744"], ["updated_at", "2014-08-26 19:04:14.820744"], ["user_id", 33], ["value", 4]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.822302"], ["updated_at", "2014-08-26 19:04:14.822302"], ["user_id", 33], ["value", 5]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1123 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1124 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1123 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1124 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1123 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1124 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1123 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (48) [shard 1123 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (33) [shard 1124 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1124 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (33) [shard 1124 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (48) [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.836975"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:14.836975"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.838582"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:14.838582"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.840118"], ["updated_at", "2014-08-26 19:04:14.840118"], ["user_id", 49], ["value", 1]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.842008"], ["updated_at", "2014-08-26 19:04:14.842008"], ["user_id", 11240000000000034], ["value", 3]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.843934"], ["updated_at", "2014-08-26 19:04:14.843934"], ["user_id", 11230000000000049], ["value", 2]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.845484"], ["updated_at", "2014-08-26 19:04:14.845484"], ["user_id", 34], ["value", 4]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.847011"], ["updated_at", "2014-08-26 19:04:14.847011"], ["user_id", 34], ["value", 5]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.852532"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:14.852532"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.854457"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:14.854457"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.856246"], ["updated_at", "2014-08-26 19:04:14.856246"], ["user_id", 50], ["value", 1]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.858277"], ["updated_at", "2014-08-26 19:04:14.858277"], ["user_id", 11240000000000035], ["value", 3]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.860193"], ["updated_at", "2014-08-26 19:04:14.860193"], ["user_id", 11230000000000050], ["value", 2]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.861691"], ["updated_at", "2014-08-26 19:04:14.861691"], ["user_id", 35], ["value", 4]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.863124"], ["updated_at", "2014-08-26 19:04:14.863124"], ["user_id", 35], ["value", 5]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.5ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1123 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1124 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1123 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1124 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1123 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1124 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1123 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (50) [shard 1123 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35) [shard 1124 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1124 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35) [shard 1124 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (50) [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.877679"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:14.877679"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.879242"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:14.879242"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.880774"], ["updated_at", "2014-08-26 19:04:14.880774"], ["user_id", 51], ["value", 1]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.882606"], ["updated_at", "2014-08-26 19:04:14.882606"], ["user_id", 11240000000000036], ["value", 3]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.884764"], ["updated_at", "2014-08-26 19:04:14.884764"], ["user_id", 11230000000000051], ["value", 2]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.886329"], ["updated_at", "2014-08-26 19:04:14.886329"], ["user_id", 36], ["value", 4]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.887837"], ["updated_at", "2014-08-26 19:04:14.887837"], ["user_id", 36], ["value", 5]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1123 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1124 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1123 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1124 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1123 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1124 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1123 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (51) [shard 1123 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (36) [shard 1124 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1124 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (36) [shard 1124 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (51) [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.902006"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:14.902006"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.903761"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:14.903761"]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.905834"], ["updated_at", "2014-08-26 19:04:14.905834"], ["user_id", 52], ["value", 1]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.908223"], ["updated_at", "2014-08-26 19:04:14.908223"], ["user_id", 11240000000000037], ["value", 3]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.910451"], ["updated_at", "2014-08-26 19:04:14.910451"], ["user_id", 11230000000000052], ["value", 2]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.919458"], ["updated_at", "2014-08-26 19:04:14.919458"], ["user_id", 37], ["value", 4]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1124 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:14.921075"], ["updated_at", "2014-08-26 19:04:14.921075"], ["user_id", 37], ["value", 5]] [shard 1124 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1124 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1123 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1124 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1123 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1124 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1123 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1124 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1123 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (52) [shard 1123 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 1124 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1124 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 1124 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (52) [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.937467"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:14.937467"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.943305"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:14.943305"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.948886"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:14.948886"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.954852"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:14.954852"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.962265"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:14.962265"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.969258"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:14.969258"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.976416"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:14.976416"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1123 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:14.981982"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:14.981982"]] [shard 1123 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1123 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1123 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1122]] [shard 1122 master]  (0.5ms) COMMIT [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1123], ["name", "switchman_test_shard_1123"]] [shard 1122 master]  (0.4ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1124], ["name", "switchman_test_shard_1124"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:14.996900"], ["updated_at", "2014-08-26 19:04:14.996900"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:15.003664"], ["updated_at", "2014-08-26 19:04:15.003664"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:15.009197"], ["updated_at", "2014-08-26 19:04:15.009197"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:15.014455"], ["updated_at", "2014-08-26 19:04:15.014455"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:15.019547"], ["updated_at", "2014-08-26 19:04:15.019547"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:15.024493"], ["updated_at", "2014-08-26 19:04:15.024493"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:15.029286"], ["updated_at", "2014-08-26 19:04:15.029286"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:15.033923"], ["updated_at", "2014-08-26 19:04:15.033923"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:15.038286"], ["updated_at", "2014-08-26 19:04:15.038286"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:15.042758"], ["updated_at", "2014-08-26 19:04:15.042758"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:15.047541"], ["updated_at", "2014-08-26 19:04:15.047541"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:15.052461"], ["updated_at", "2014-08-26 19:04:15.052461"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:15.057569"], ["updated_at", "2014-08-26 19:04:15.057569"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:15.062421"], ["updated_at", "2014-08-26 19:04:15.062421"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:15.067246"], ["updated_at", "2014-08-26 19:04:15.067246"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:15.072094"], ["updated_at", "2014-08-26 19:04:15.072094"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1122]] [shard 1122 master]  (0.4ms) COMMIT [shard 1122 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1123], ["name", "switchman_test_shard_1123"]] [shard 1122 master]  (0.3ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1124], ["name", "switchman_test_shard_1124"]] [shard 1122 master]  (0.2ms) COMMIT [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master]  (0.1ms) BEGIN [shard 1122 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1123]] [shard 1122 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1124]] [shard 1122 master]  (0.1ms) BEGIN [shard 1124 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "21"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1122 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "21"]] [shard 1122 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1122 master]  (0.1ms) ROLLBACK [shard 1124 master]  (0.1ms) ROLLBACK [shard 1122 master] SQL (6.0ms) DELETE FROM "switchman_shards" [shard 1122 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1122 master]  (4.9ms) DROP SCHEMA switchman_test_shard_1123 CASCADE [shard 1123 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1123]]  (0.1ms) COMMIT  (5.5ms) DROP SCHEMA switchman_test_shard_1124 CASCADE [shard 1124 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1124]]  (0.1ms) COMMIT  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "1"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "1"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK SQL (0.3ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.2ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.2ms) CREATE SCHEMA switchman_test_shard_1148 [shard 1148 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1148 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1148 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1148 deploy] Migrating to CreateUsers (20130403132607)  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1148 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1148 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1148 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1148 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1148 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1148 deploy] Migrating to CreateDigits (20131022202028)  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1148 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1148 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1148 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1148 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1148 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1148 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1148 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1148 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1148 [["name", "switchman_test_shard_1148"]] [shard 1147 master]  (0.7ms) COMMIT [shard 1147 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '2' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "2"], ["name", "public"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1149 [shard 1149 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1149 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1149 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1149 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1149 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1149 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1149 deploy]  (0.4ms) COMMIT [shard 1149 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 1149 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1149 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1149 deploy]  (0.4ms) COMMIT [shard 1149 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1149 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1149 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1149 deploy]  (0.4ms) COMMIT [shard 1149 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1149 deploy]  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1149 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1149 deploy]  (0.3ms) COMMIT [shard 1149 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1149 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1149 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1149 deploy]  (0.3ms) COMMIT [shard 1149 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1149 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1149 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1149 deploy]  (0.4ms) COMMIT [shard 1149 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1149 deploy]  (2.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1149 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1149 deploy]  (0.3ms) COMMIT [shard 1149 deploy]  (0.1ms) BEGIN [shard 1147 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1149 [["name", "switchman_test_shard_1149"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1147]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1148], ["name", "switchman_test_shard_1148"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 1149], ["name", "switchman_test_shard_1149"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '3' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "3"], ["name", "public"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1150 [shard 1150 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1150 deploy]  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1150 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1150 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1150 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1150 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1150 deploy]  (0.3ms) COMMIT [shard 1150 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 1150 deploy]  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1150 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1150 deploy]  (0.4ms) COMMIT [shard 1150 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1150 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1150 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1150 deploy]  (0.4ms) COMMIT [shard 1150 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 1150 deploy]  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1150 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1150 deploy]  (0.3ms) COMMIT [shard 1150 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1150 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1150 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1150 deploy]  (0.4ms) COMMIT [shard 1150 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1150 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1150 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1150 deploy]  (0.2ms) COMMIT [shard 1150 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1150 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1150 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1150 deploy]  (0.3ms) COMMIT [shard 1150 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1150 [["name", "switchman_test_shard_1150"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) BEGIN [shard 1150 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:54.639621"], ["updated_at", "2014-08-26 19:04:54.639621"]] [shard 1150 master]  (0.4ms) COMMIT [shard 1150 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1150 master]  (4.5ms) DROP SCHEMA switchman_test_shard_1150 CASCADE [shard 1150 deploy]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 1150 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1148 LIMIT 1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1149 LIMIT 1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11149 LIMIT 1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1151]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1151 LIMIT 1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1152]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1147]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1148], ["name", "switchman_test_shard_1148"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 1149], ["name", "switchman_test_shard_1149"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "5"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "5"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1147]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1148], ["name", "switchman_test_shard_1148"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 1149], ["name", "switchman_test_shard_1149"]] [shard 1147 master]  (0.2ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:54.835559"], ["updated_at", "2014-08-26 19:04:54.835559"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:54.837705"], ["updated_at", "2014-08-26 19:04:54.837705"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:54.851196"], ["updated_at", "2014-08-26 19:04:54.851196"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:54.852816"], ["updated_at", "2014-08-26 19:04:54.852816"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:54.858656"], ["updated_at", "2014-08-26 19:04:54.858656"], ["user_id", 2]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1148 LIMIT 1 [shard 1147 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 1]] [shard 1148 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2]] [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:54.870633"], ["updated_at", "2014-08-26 19:04:54.870633"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:54.872417"], ["updated_at", "2014-08-26 19:04:54.872417"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:54.875269"], ["updated_at", "2014-08-26 19:04:54.875269"], ["user_id", 3]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 3], ["id", 2]] [shard 1148 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 3], ["id", 2]] [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:54.887986"], ["updated_at", "2014-08-26 19:04:54.887986"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:54.889905"], ["updated_at", "2014-08-26 19:04:54.889905"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:54.893156"], ["updated_at", "2014-08-26 19:04:54.893156"], ["user_id", 4]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:54.900059"], ["updated_at", "2014-08-26 19:04:54.900059"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:54.901814"], ["updated_at", "2014-08-26 19:04:54.901814"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:54.904752"], ["updated_at", "2014-08-26 19:04:54.904752"], ["user_id", 5]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 5]] [shard 1148 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 5]] [shard 1148 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 5]] [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:54.914378"], ["updated_at", "2014-08-26 19:04:54.914378"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:54.915875"], ["updated_at", "2014-08-26 19:04:54.915875"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:54.918449"], ["updated_at", "2014-08-26 19:04:54.918449"], ["user_id", 6]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 5], ["created_at", "2014-08-26 19:04:54.926965"], ["updated_at", "2014-08-26 19:04:54.926965"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 6], ["id", 1]] [shard 1148 master]  (0.2ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:54.939954"], ["updated_at", "2014-08-26 19:04:54.939954"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:54.941554"], ["updated_at", "2014-08-26 19:04:54.941554"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:54.944450"], ["updated_at", "2014-08-26 19:04:54.944450"], ["user_id", 7]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:54.947278"], ["updated_at", "2014-08-26 19:04:54.947278"], ["user_id", 7]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1149 LIMIT 1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:54.956816"], ["updated_at", "2014-08-26 19:04:54.956816"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:54.958349"], ["updated_at", "2014-08-26 19:04:54.958349"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (5.9ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:54.960150"], ["updated_at", "2014-08-26 19:04:54.960150"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:54.976895"], ["updated_at", "2014-08-26 19:04:54.976895"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:54.978447"], ["updated_at", "2014-08-26 19:04:54.978447"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:54.981250"], ["updated_at", "2014-08-26 19:04:54.981250"], ["user_id", 9]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:54.987298"], ["updated_at", "2014-08-26 19:04:54.987298"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:54.988827"], ["updated_at", "2014-08-26 19:04:54.988827"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:54.991618"], ["parent_id", 10], ["updated_at", "2014-08-26 19:04:54.991618"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.002494"], ["parent_id", 11], ["updated_at", "2014-08-26 19:04:55.002494"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 10]] [shard 1148 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 12 LIMIT 1 [["parent_id", 10]] [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.008895"], ["id", 12], ["updated_at", "2014-08-26 19:04:55.008895"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 10]] [shard 1148 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 11490000000000012 LIMIT 1 [["parent_id", 10]] [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.017742"], ["updated_at", "2014-08-26 19:04:55.017742"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.019279"], ["updated_at", "2014-08-26 19:04:55.019279"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.027160"], ["updated_at", "2014-08-26 19:04:55.027160"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.028891"], ["updated_at", "2014-08-26 19:04:55.028891"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.030427"], ["updated_at", "2014-08-26 19:04:55.030427"], ["user_id", 14]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 8], ["created_at", "2014-08-26 19:04:55.033067"], ["updated_at", "2014-08-26 19:04:55.033067"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", "2014-08-26 19:04:55.035280"], ["updated_at", "2014-08-26 19:04:55.035280"], ["value", 1]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.037700"], ["updated_at", "2014-08-26 19:04:55.037700"], ["user_id", 11480000000000014]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2], ["created_at", "2014-08-26 19:04:55.041113"], ["updated_at", "2014-08-26 19:04:55.041113"], ["value", 2]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 14]] [shard 1148 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 11480000000000014]] [shard 1149 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 14]] [shard 1148 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 14]] [shard 1148 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 11480000000000014]] [shard 1149 master]  (0.2ms) ROLLBACK [shard 1149 master]  (0.2ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.056110"], ["updated_at", "2014-08-26 19:04:55.056110"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.057722"], ["updated_at", "2014-08-26 19:04:55.057722"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:55.059345"], ["updated_at", "2014-08-26 19:04:55.059345"], ["user_id", 15], ["value", 1]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.061567"], ["updated_at", "2014-08-26 19:04:55.061567"], ["user_id", 11480000000000015]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 15]] [shard 1148 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 11480000000000015]] [shard 1149 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 15]] [shard 1148 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 15]] [shard 1148 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 11480000000000015]] [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.072175"], ["updated_at", "2014-08-26 19:04:55.072175"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.073663"], ["updated_at", "2014-08-26 19:04:55.073663"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.075130"], ["updated_at", "2014-08-26 19:04:55.075130"], ["user_id", 16]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 10], ["created_at", "2014-08-26 19:04:55.077334"], ["updated_at", "2014-08-26 19:04:55.077334"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.079221"], ["updated_at", "2014-08-26 19:04:55.079221"], ["user_id", 11480000000000016]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4], ["created_at", "2014-08-26 19:04:55.081619"], ["updated_at", "2014-08-26 19:04:55.081619"], ["value", 2]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 16]] [shard 1148 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 11480000000000016]] [shard 1149 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 16]] [shard 1148 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 16]] [shard 1148 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 11480000000000016]] [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.095825"], ["updated_at", "2014-08-26 19:04:55.095825"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.097524"], ["updated_at", "2014-08-26 19:04:55.097524"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:55.099204"], ["updated_at", "2014-08-26 19:04:55.099204"], ["user_id", 17], ["value", 1]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.101904"], ["updated_at", "2014-08-26 19:04:55.101904"], ["user_id", 11480000000000017]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:55.105026"], ["updated_at", "2014-08-26 19:04:55.105026"], ["user_id", 17], ["value", 2]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 1148 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 17]] [shard 1148 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 11480000000000017]] [shard 1149 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 1148 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 17]] [shard 1148 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 11480000000000017]] [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.116812"], ["updated_at", "2014-08-26 19:04:55.116812"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.118393"], ["updated_at", "2014-08-26 19:04:55.118393"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.119823"], ["updated_at", "2014-08-26 19:04:55.119823"], ["user_id", 18]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 13], ["created_at", "2014-08-26 19:04:55.122060"], ["updated_at", "2014-08-26 19:04:55.122060"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.123964"], ["updated_at", "2014-08-26 19:04:55.123964"], ["user_id", 11480000000000018]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6], ["created_at", "2014-08-26 19:04:55.126296"], ["updated_at", "2014-08-26 19:04:55.126296"], ["value", 2]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 18]] [shard 1148 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 11480000000000018]] [shard 1149 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 1148 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 18]] [shard 1148 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 11480000000000018]] [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.138869"], ["updated_at", "2014-08-26 19:04:55.138869"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.140553"], ["updated_at", "2014-08-26 19:04:55.140553"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.142201"], ["updated_at", "2014-08-26 19:04:55.142201"], ["user_id", 19]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 14], ["created_at", "2014-08-26 19:04:55.144589"], ["updated_at", "2014-08-26 19:04:55.144589"], ["value", 1]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.146532"], ["updated_at", "2014-08-26 19:04:55.146532"], ["user_id", 11480000000000019]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7], ["created_at", "2014-08-26 19:04:55.148796"], ["updated_at", "2014-08-26 19:04:55.148796"], ["value", 2]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 19]] [shard 1148 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [shard 1148 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 19]] [shard 1148 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 11480000000000019]] [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.160127"], ["updated_at", "2014-08-26 19:04:55.160127"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.161488"], ["updated_at", "2014-08-26 19:04:55.161488"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:55.163093"], ["updated_at", "2014-08-26 19:04:55.163093"], ["user_id", 20], ["value", 1]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:55.165051"], ["updated_at", "2014-08-26 19:04:55.165051"], ["user_id", 11480000000000020], ["value", 2]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 20]] [shard 1148 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 1148 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 20]] [shard 1148 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 11480000000000020]] [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.175498"], ["updated_at", "2014-08-26 19:04:55.175498"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.177113"], ["updated_at", "2014-08-26 19:04:55.177113"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.179931"], ["updated_at", "2014-08-26 19:04:55.179931"], ["user_id", 21]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.181881"], ["updated_at", "2014-08-26 19:04:55.181881"], ["user_id", 11480000000000021]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.183707"], ["updated_at", "2014-08-26 19:04:55.183707"], ["user_id", 11490000000000019]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 1148 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (21) [shard 1148 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (11480000000000021) [shard 1149 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 1149 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (19) [shard 1149 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 16 [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.199010"], ["updated_at", "2014-08-26 19:04:55.199010"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.200684"], ["updated_at", "2014-08-26 19:04:55.200684"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.203731"], ["updated_at", "2014-08-26 19:04:55.203731"], ["user_id", 22]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.205767"], ["updated_at", "2014-08-26 19:04:55.205767"], ["user_id", 11480000000000022]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.207344"], ["updated_at", "2014-08-26 19:04:55.207344"], ["user_id", 11480000000000022]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 18], ["created_at", "2014-08-26 19:04:55.210180"], ["updated_at", "2014-08-26 19:04:55.210180"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 10], ["created_at", "2014-08-26 19:04:55.213230"], ["updated_at", "2014-08-26 19:04:55.213230"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 11490000000000010], ["created_at", "2014-08-26 19:04:55.215584"], ["updated_at", "2014-08-26 19:04:55.215584"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 11490000000000011], ["created_at", "2014-08-26 19:04:55.217174"], ["updated_at", "2014-08-26 19:04:55.217174"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.218867"], ["updated_at", "2014-08-26 19:04:55.218867"], ["user_id", 11490000000000020]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.221601"], ["updated_at", "2014-08-26 19:04:55.221601"], ["user_id", 20]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.223863"], ["updated_at", "2014-08-26 19:04:55.223863"], ["user_id", 20]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 11480000000000019], ["created_at", "2014-08-26 19:04:55.225878"], ["updated_at", "2014-08-26 19:04:55.225878"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 11490000000000012], ["created_at", "2014-08-26 19:04:55.228211"], ["updated_at", "2014-08-26 19:04:55.228211"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 11490000000000013], ["created_at", "2014-08-26 19:04:55.229992"], ["updated_at", "2014-08-26 19:04:55.229992"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 1148 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (22) [shard 1148 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (11480000000000022) [shard 1149 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (18, 11490000000000010) [shard 1148 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (10, 11) [shard 1149 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 1149 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (20) [shard 1149 master] Digit Load (0.1ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (12) [shard 1149 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (11490000000000013) [shard 1148 master] SQL (0.3ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 1148 master]  (0.2ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.256481"], ["updated_at", "2014-08-26 19:04:55.256481"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.258148"], ["updated_at", "2014-08-26 19:04:55.258148"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.260484"], ["updated_at", "2014-08-26 19:04:55.260484"], ["user_id", 11480000000000023]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 953], ["created_at", "2014-08-26 19:04:55.263044"], ["updated_at", "2014-08-26 19:04:55.263044"]] [shard 1147 master]  (0.6ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.265845"], ["updated_at", "2014-08-26 19:04:55.265845"], ["user_id", 11490000000000021]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 11480000000000020], ["created_at", "2014-08-26 19:04:55.267688"], ["updated_at", "2014-08-26 19:04:55.267688"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 1147 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (953) [shard 1147 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (20) [shard 1148 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 1148 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 1149 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 23 [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.284185"], ["updated_at", "2014-08-26 19:04:55.284185"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.285829"], ["updated_at", "2014-08-26 19:04:55.285829"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.288285"], ["updated_at", "2014-08-26 19:04:55.288285"], ["user_id", 11480000000000024]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.291651"], ["updated_at", "2014-08-26 19:04:55.291651"], ["user_id", 11490000000000022]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.293196"], ["updated_at", "2014-08-26 19:04:55.293196"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.295825"], ["updated_at", "2014-08-26 19:04:55.295825"], ["user_id", 1954]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 1147 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1954) [shard 1147 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 1148 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 1149 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 24 [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.305572"], ["updated_at", "2014-08-26 19:04:55.305572"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.307160"], ["updated_at", "2014-08-26 19:04:55.307160"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-08-26 19:04:55.314810"], ["owner_id", 25], ["owner_type", "User"], ["updated_at", "2014-08-26 19:04:55.314810"], ["value", 1]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-08-26 19:04:55.317832"], ["owner_id", 11480000000000025], ["owner_type", "User"], ["updated_at", "2014-08-26 19:04:55.317832"], ["value", 2]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 25], ["owner_type", "User"]] [shard 1148 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 25]] [shard 1148 master] Feature Load (0.1ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 25], ["owner_type", "User"]] [shard 1148 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 11480000000000025], ["owner_type", "User"]] [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.329909"], ["updated_at", "2014-08-26 19:04:55.329909"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.331357"], ["updated_at", "2014-08-26 19:04:55.331357"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.333060"], ["updated_at", "2014-08-26 19:04:55.333060"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.3ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:55.334718"], ["owner_id", 957], ["owner_type", "Appendage"], ["updated_at", "2014-08-26 19:04:55.334718"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 95]] [shard 1147 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 957]] [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) UPDATE "features" SET "owner_id" = $1, "owner_type" = $2, "updated_at" = $3 WHERE "features"."id" = 95 [["owner_id", 11480000000000026], ["owner_type", "User"], ["updated_at", "2014-08-26 19:04:55.338950"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master] Feature Load (0.1ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 95]] [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.345421"], ["updated_at", "2014-08-26 19:04:55.345421"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.346951"], ["updated_at", "2014-08-26 19:04:55.346951"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.348465"], ["updated_at", "2014-08-26 19:04:55.348465"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 27]] [shard 1148 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.351045"], ["updated_at", "2014-08-26 19:04:55.351045"], ["user_id", 27]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 21]] [shard 1148 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 27]] [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.357170"], ["updated_at", "2014-08-26 19:04:55.357170"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.358700"], ["updated_at", "2014-08-26 19:04:55.358700"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.360643"], ["updated_at", "2014-08-26 19:04:55.360643"], ["user_id", 11490000000000026]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 22]] [shard 1148 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 26]] [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.368061"], ["updated_at", "2014-08-26 19:04:55.368061"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.369531"], ["updated_at", "2014-08-26 19:04:55.369531"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.3ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.377588"], ["updated_at", "2014-08-26 19:04:55.377588"], ["user_id", 11490000000000027]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master] Root Load (0.2ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 46]] [shard 1147 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 27]] [shard 1149 master]  (0.2ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.385858"], ["updated_at", "2014-08-26 19:04:55.385858"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.387417"], ["updated_at", "2014-08-26 19:04:55.387417"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1147]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1148], ["name", "switchman_test_shard_1148"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 1149], ["name", "switchman_test_shard_1149"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.402036"], ["updated_at", "2014-08-26 19:04:55.402036"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:55.403838"], ["owner_id", 1955], ["owner_type", "User"], ["updated_at", "2014-08-26 19:04:55.403838"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master] Feature Load (0.2ms) SELECT "features"."owner_id" FROM "features" WHERE "features"."id" = 96 ORDER BY "features"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.409969"], ["updated_at", "2014-08-26 19:04:55.409969"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1148 LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1149 LIMIT 1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.419067"], ["updated_at", "2014-08-26 19:04:55.419067"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master] SQL (5.7ms) DELETE FROM "switchman_shards" [shard 1147 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1147]] [shard 1147 master]  (6.2ms) COMMIT [shard 1147 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1148], ["name", "switchman_test_shard_1148"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 1149], ["name", "switchman_test_shard_1149"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.445103"], ["updated_at", "2014-08-26 19:04:55.445103"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1147]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1148], ["name", "switchman_test_shard_1148"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 1149], ["name", "switchman_test_shard_1149"]] [shard 1147 master]  (0.4ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.460644"], ["updated_at", "2014-08-26 19:04:55.460644"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.462139"], ["updated_at", "2014-08-26 19:04:55.462139"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.464256"], ["updated_at", "2014-08-26 19:04:55.464256"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1148 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.482685"], ["updated_at", "2014-08-26 19:04:55.482685"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master] User Load (0.3ms) SELECT "users".* FROM "users" [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.494064"], ["updated_at", "2014-08-26 19:04:55.494064"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.500891"], ["updated_at", "2014-08-26 19:04:55.500891"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.506649"], ["updated_at", "2014-08-26 19:04:55.506649"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.553391"], ["updated_at", "2014-08-26 19:04:55.553391"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1147 master] SQL (0.1ms) DELETE FROM "users" [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.558820"], ["updated_at", "2014-08-26 19:04:55.558820"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1147 master] SQL (0.1ms) DELETE FROM "users" [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.562495"], ["updated_at", "2014-08-26 19:04:55.562495"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.564250"], ["name", "a"], ["updated_at", "2014-08-26 19:04:55.564250"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1965]] [shard 1147 master] CACHE (0.0ms) 1147::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1965]] CACHE (0.0ms) 1147::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1965]]  (0.1ms) BEGIN [shard 1147 master] SQL (0.2ms) UPDATE "users" SET "name" = $1, "updated_at" = $2 WHERE "users"."id" = 1965 [["name", "b"], ["updated_at", "2014-08-26 19:04:55.567518"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1965]] [shard 1147 master] CACHE (0.0ms) 1147::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1965]] SQL (0.3ms) DELETE FROM "users" [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.571578"], ["updated_at", "2014-08-26 19:04:55.571578"]] [shard 1147 master]  (0.2ms) COMMIT [shard 1147 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1147 master] SQL (0.3ms) DELETE FROM "users" [shard 1147 master] SQL (0.1ms) DELETE FROM "users" [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.575817"], ["updated_at", "2014-08-26 19:04:55.575817"]] [shard 1147 master]  (0.2ms) COMMIT [shard 1147 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1147 master] SQL (0.3ms) DELETE FROM "users" [shard 1147 master] SQL (0.1ms) DELETE FROM "users" [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.586117"], ["updated_at", "2014-08-26 19:04:55.586117"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1147 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-08-26 19:04:55.587713' [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.592083"], ["updated_at", "2014-08-26 19:04:55.592083"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1147 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-08-26 19:04:55.593585' [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.595885"], ["updated_at", "2014-08-26 19:04:55.595885"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1147 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-08-26 19:04:55.597670' [shard 1147 master] SQL (0.4ms) DELETE FROM "users" [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.600694"], ["updated_at", "2014-08-26 19:04:55.600694"]] [shard 1147 master]  (0.2ms) COMMIT [shard 1147 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1147 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-08-26 19:04:55.602619' [shard 1147 master] SQL (0.3ms) DELETE FROM "users" [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1147]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1148], ["name", "switchman_test_shard_1148"]] [shard 1147 master]  (0.2ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 1149], ["name", "switchman_test_shard_1149"]] [shard 1147 master]  (0.2ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.624946"], ["updated_at", "2014-08-26 19:04:55.624946"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.628176"], ["updated_at", "2014-08-26 19:04:55.628176"], ["user_id", 1972]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.630217"], ["updated_at", "2014-08-26 19:04:55.630217"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.633024"], ["updated_at", "2014-08-26 19:04:55.633024"], ["user_id", 34]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.634801"], ["updated_at", "2014-08-26 19:04:55.634801"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.637465"], ["updated_at", "2014-08-26 19:04:55.637465"], ["user_id", 29]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.642978"], ["updated_at", "2014-08-26 19:04:55.642978"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.645268"], ["updated_at", "2014-08-26 19:04:55.645268"], ["user_id", 1973]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.646937"], ["updated_at", "2014-08-26 19:04:55.646937"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.649380"], ["updated_at", "2014-08-26 19:04:55.649380"], ["user_id", 35]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.650871"], ["updated_at", "2014-08-26 19:04:55.650871"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.653550"], ["updated_at", "2014-08-26 19:04:55.653550"], ["user_id", 30]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1148 LIMIT 1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.2ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.661885"], ["updated_at", "2014-08-26 19:04:55.661885"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.664388"], ["updated_at", "2014-08-26 19:04:55.664388"], ["user_id", 1974]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.666458"], ["updated_at", "2014-08-26 19:04:55.666458"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.669170"], ["updated_at", "2014-08-26 19:04:55.669170"], ["user_id", 36]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.670780"], ["updated_at", "2014-08-26 19:04:55.670780"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.673610"], ["updated_at", "2014-08-26 19:04:55.673610"], ["user_id", 31]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.3ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.675565"], ["updated_at", "2014-08-26 19:04:55.675565"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.680881"], ["updated_at", "2014-08-26 19:04:55.680881"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.683079"], ["updated_at", "2014-08-26 19:04:55.683079"], ["user_id", 1975]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.684705"], ["updated_at", "2014-08-26 19:04:55.684705"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.687143"], ["updated_at", "2014-08-26 19:04:55.687143"], ["user_id", 37]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.688613"], ["updated_at", "2014-08-26 19:04:55.688613"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.691288"], ["updated_at", "2014-08-26 19:04:55.691288"], ["user_id", 32]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.697248"], ["updated_at", "2014-08-26 19:04:55.697248"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.699532"], ["updated_at", "2014-08-26 19:04:55.699532"], ["user_id", 1976]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.701218"], ["updated_at", "2014-08-26 19:04:55.701218"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.703795"], ["updated_at", "2014-08-26 19:04:55.703795"], ["user_id", 38]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.705317"], ["updated_at", "2014-08-26 19:04:55.705317"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.707729"], ["updated_at", "2014-08-26 19:04:55.707729"], ["user_id", 33]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.713266"], ["updated_at", "2014-08-26 19:04:55.713266"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.715629"], ["updated_at", "2014-08-26 19:04:55.715629"], ["user_id", 1977]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.717288"], ["updated_at", "2014-08-26 19:04:55.717288"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.719769"], ["updated_at", "2014-08-26 19:04:55.719769"], ["user_id", 39]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.721222"], ["updated_at", "2014-08-26 19:04:55.721222"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.723942"], ["updated_at", "2014-08-26 19:04:55.723942"], ["user_id", 34]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.726398"], ["parent_id", 1977], ["updated_at", "2014-08-26 19:04:55.726398"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.728571"], ["parent_id", 1978], ["updated_at", "2014-08-26 19:04:55.728571"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1978]] [shard 1147 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1977]] [shard 1147 master] User Load (0.2ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 [["parent_id", 1977]] [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.736626"], ["updated_at", "2014-08-26 19:04:55.736626"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.738873"], ["updated_at", "2014-08-26 19:04:55.738873"], ["user_id", 1980]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.740526"], ["updated_at", "2014-08-26 19:04:55.740526"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.742957"], ["updated_at", "2014-08-26 19:04:55.742957"], ["user_id", 40]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.744400"], ["updated_at", "2014-08-26 19:04:55.744400"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.746898"], ["updated_at", "2014-08-26 19:04:55.746898"], ["user_id", 35]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.752328"], ["updated_at", "2014-08-26 19:04:55.752328"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.754727"], ["updated_at", "2014-08-26 19:04:55.754727"], ["user_id", 1981]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.756379"], ["updated_at", "2014-08-26 19:04:55.756379"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.758906"], ["updated_at", "2014-08-26 19:04:55.758906"], ["user_id", 41]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.760419"], ["updated_at", "2014-08-26 19:04:55.760419"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.763097"], ["updated_at", "2014-08-26 19:04:55.763097"], ["user_id", 36]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.768734"], ["updated_at", "2014-08-26 19:04:55.768734"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.771044"], ["updated_at", "2014-08-26 19:04:55.771044"], ["user_id", 1982]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.772880"], ["updated_at", "2014-08-26 19:04:55.772880"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.775604"], ["updated_at", "2014-08-26 19:04:55.775604"], ["user_id", 42]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.777156"], ["updated_at", "2014-08-26 19:04:55.777156"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.779748"], ["updated_at", "2014-08-26 19:04:55.779748"], ["user_id", 37]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.785535"], ["updated_at", "2014-08-26 19:04:55.785535"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.787804"], ["updated_at", "2014-08-26 19:04:55.787804"], ["user_id", 1983]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.789411"], ["updated_at", "2014-08-26 19:04:55.789411"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.792009"], ["updated_at", "2014-08-26 19:04:55.792009"], ["user_id", 43]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.793471"], ["updated_at", "2014-08-26 19:04:55.793471"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.796032"], ["updated_at", "2014-08-26 19:04:55.796032"], ["user_id", 38]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.801865"], ["updated_at", "2014-08-26 19:04:55.801865"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.804338"], ["updated_at", "2014-08-26 19:04:55.804338"], ["user_id", 1984]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.806039"], ["updated_at", "2014-08-26 19:04:55.806039"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.838744"], ["updated_at", "2014-08-26 19:04:55.838744"], ["user_id", 44]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.840652"], ["updated_at", "2014-08-26 19:04:55.840652"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.843413"], ["updated_at", "2014-08-26 19:04:55.843413"], ["user_id", 39]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.849496"], ["updated_at", "2014-08-26 19:04:55.849496"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.852069"], ["updated_at", "2014-08-26 19:04:55.852069"], ["user_id", 1985]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.854172"], ["updated_at", "2014-08-26 19:04:55.854172"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.856914"], ["updated_at", "2014-08-26 19:04:55.856914"], ["user_id", 45]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.858651"], ["updated_at", "2014-08-26 19:04:55.858651"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.861855"], ["updated_at", "2014-08-26 19:04:55.861855"], ["user_id", 40]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.867936"], ["updated_at", "2014-08-26 19:04:55.867936"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.870615"], ["updated_at", "2014-08-26 19:04:55.870615"], ["user_id", 1986]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.872312"], ["updated_at", "2014-08-26 19:04:55.872312"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.875187"], ["updated_at", "2014-08-26 19:04:55.875187"], ["user_id", 46]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.877010"], ["updated_at", "2014-08-26 19:04:55.877010"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.879870"], ["updated_at", "2014-08-26 19:04:55.879870"], ["user_id", 41]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.885830"], ["updated_at", "2014-08-26 19:04:55.885830"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.888296"], ["updated_at", "2014-08-26 19:04:55.888296"], ["user_id", 1987]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.890178"], ["updated_at", "2014-08-26 19:04:55.890178"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.892801"], ["updated_at", "2014-08-26 19:04:55.892801"], ["user_id", 47]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.894287"], ["updated_at", "2014-08-26 19:04:55.894287"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.896971"], ["updated_at", "2014-08-26 19:04:55.896971"], ["user_id", 42]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.902766"], ["updated_at", "2014-08-26 19:04:55.902766"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.905425"], ["updated_at", "2014-08-26 19:04:55.905425"], ["user_id", 1988]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.907408"], ["updated_at", "2014-08-26 19:04:55.907408"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.910123"], ["updated_at", "2014-08-26 19:04:55.910123"], ["user_id", 48]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.911774"], ["updated_at", "2014-08-26 19:04:55.911774"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.915041"], ["updated_at", "2014-08-26 19:04:55.915041"], ["user_id", 43]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.921826"], ["updated_at", "2014-08-26 19:04:55.921826"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.924556"], ["updated_at", "2014-08-26 19:04:55.924556"], ["user_id", 1989]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.926803"], ["updated_at", "2014-08-26 19:04:55.926803"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.930665"], ["updated_at", "2014-08-26 19:04:55.930665"], ["user_id", 49]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:55.933142"], ["updated_at", "2014-08-26 19:04:55.933142"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:55.937140"], ["updated_at", "2014-08-26 19:04:55.937140"], ["user_id", 44]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.2ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1147 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master]  (0.2ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1147 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1147]] [shard 1147 master]  (0.4ms) COMMIT [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1148], ["name", "switchman_test_shard_1148"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 1149], ["name", "switchman_test_shard_1149"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '15' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "15"], ["name", "public"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1155 [shard 1155 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1155 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1155 deploy] ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1155 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1155 deploy]  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1155 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1155 deploy]  (0.3ms) COMMIT [shard 1155 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1155 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1155 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1155 deploy]  (0.4ms) COMMIT [shard 1155 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1155 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1155 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1155 deploy]  (0.3ms) COMMIT [shard 1155 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1155 deploy]  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1155 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1155 deploy]  (0.3ms) COMMIT [shard 1155 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1155 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1155 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1155 deploy]  (0.4ms) COMMIT [shard 1155 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1155 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1155 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1155 deploy]  (0.3ms) COMMIT [shard 1155 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1155 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1155 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1155 deploy]  (0.3ms) COMMIT [shard 1155 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1155 [["name", "switchman_test_shard_1155"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) BEGIN [shard 1155 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:56.053654"], ["updated_at", "2014-08-26 19:04:56.053654"]] [shard 1155 master]  (0.3ms) COMMIT [shard 1155 master]  (4.6ms) DROP SCHEMA switchman_test_shard_1155 CASCADE [shard 1155 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1155]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '16' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "16"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 1156 deploy]  (0.1ms) select sqlite_version(*) [shard 1156 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1156 deploy] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1156 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 1156 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 1156 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130403132607"]] [shard 1156 deploy]  (0.7ms) commit transaction [shard 1156 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 1156 deploy]  (0.3ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 1156 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202442"]] [shard 1156 deploy]  (0.8ms) commit transaction [shard 1156 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 1156 deploy]  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 1156 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202551"]] [shard 1156 deploy]  (0.8ms) commit transaction [shard 1156 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 1156 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 1156 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131022202028"]] [shard 1156 deploy]  (0.6ms) commit transaction [shard 1156 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 1156 deploy]  (0.3ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 1156 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131206172923"]] [shard 1156 deploy]  (0.7ms) commit transaction [shard 1156 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 1156 deploy]  (0.3ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 1156 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140123154135"]] [shard 1156 deploy]  (0.6ms) commit transaction [shard 1156 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 1156 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 1156 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219183820"]] [shard 1156 deploy]  (0.9ms) commit transaction [shard 1156 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1156 [["name", "db/shard_1156.sqlite3"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.0ms) begin transaction [shard 1156 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-08-26 19:04:56.105378"], ["updated_at", "2014-08-26 19:04:56.105378"]] [shard 1156 master]  (0.7ms) commit transaction [shard 1156 master] Drop failed: No such file or directory @ unlink_internal - db/shard_1156.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1156]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [shard 1147 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_1157 [shard 1157 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1157 deploy]  (6.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1157 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1157 deploy] Migrating to CreateUsers (20130403132607)  (2.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1157 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1157 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1157 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1157 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1157 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1157 deploy] Migrating to CreateDigits (20131022202028)  (2.3ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1157 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1157 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1157 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1157 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1157 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1157 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1157 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1157 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1157 [["name", "switchman_test_shard_1157"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1157 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:56.174603"], ["updated_at", "2014-08-26 19:04:56.174603"]] [shard 1157 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1157 master]  (2.5ms) DROP SCHEMA switchman_test_shard_1157 CASCADE [shard 1157 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1157]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (2.1ms) ROLLBACK [shard 1147 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1147 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1147]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1148], ["name", "switchman_test_shard_1148"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 1149], ["name", "switchman_test_shard_1149"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:56.200027"], ["updated_at", "2014-08-26 19:04:56.200027"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "17"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "18"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master] SQL (0.7ms) DELETE FROM "switchman_shards" [shard 1147 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1147 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1147]] [shard 1147 master]  (0.4ms) COMMIT [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1148], ["name", "switchman_test_shard_1148"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 1149], ["name", "switchman_test_shard_1149"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1148,1149)) AND "switchman_shards"."id" IN (1147, 1148) [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1147]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1148], ["name", "switchman_test_shard_1148"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 1149], ["name", "switchman_test_shard_1149"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.371778"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:56.371778"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.373728"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:56.373728"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.378744"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:56.378744"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.380291"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:56.380291"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1148 LIMIT 1 [shard 1147 master] SQL (0.3ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (1992) [shard 1147 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (51) [shard 1148 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1992]] [shard 1147 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 51]] [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.391102"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:56.391102"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.392796"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:56.392796"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 52 [shard 1148 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1993]] [shard 1147 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 52]] [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.400537"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:56.400537"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.402305"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:56.402305"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1994) [shard 1147 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.410036"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:56.410036"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.411775"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:56.411775"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 54 ORDER BY "users"."id" ASC LIMIT 1 [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1147]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1148], ["name", "switchman_test_shard_1148"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 1149], ["name", "switchman_test_shard_1149"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.425148"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:56.425148"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.426753"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:56.426753"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.433019"], ["updated_at", "2014-08-26 19:04:56.433019"], ["user_id", 55], ["value", 1]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1149 LIMIT 1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.437174"], ["updated_at", "2014-08-26 19:04:56.437174"], ["user_id", 11490000000000045], ["value", 3]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1148 LIMIT 1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.440765"], ["updated_at", "2014-08-26 19:04:56.440765"], ["user_id", 11480000000000055], ["value", 2]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.442535"], ["updated_at", "2014-08-26 19:04:56.442535"], ["user_id", 45], ["value", 4]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.443873"], ["updated_at", "2014-08-26 19:04:56.443873"], ["user_id", 45], ["value", 5]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1148 master]  (0.7ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1149 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1148 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1149 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1148 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1149 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1148 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 1148 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [shard 1149 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1149 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [shard 1149 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.2ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.460455"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:56.460455"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.462075"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:56.462075"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.463612"], ["updated_at", "2014-08-26 19:04:56.463612"], ["user_id", 56], ["value", 1]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.465542"], ["updated_at", "2014-08-26 19:04:56.465542"], ["user_id", 11490000000000046], ["value", 3]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.474811"], ["updated_at", "2014-08-26 19:04:56.474811"], ["user_id", 11480000000000056], ["value", 2]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.476453"], ["updated_at", "2014-08-26 19:04:56.476453"], ["user_id", 46], ["value", 4]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.478017"], ["updated_at", "2014-08-26 19:04:56.478017"], ["user_id", 46], ["value", 5]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1148 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1149 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1148 master]  (0.4ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1149 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1148 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1149 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1148 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 1148 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (46) [shard 1149 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1149 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (46) [shard 1149 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.495987"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:56.495987"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.497844"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:56.497844"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.499991"], ["updated_at", "2014-08-26 19:04:56.499991"], ["user_id", 57], ["value", 1]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.502159"], ["updated_at", "2014-08-26 19:04:56.502159"], ["user_id", 11490000000000047], ["value", 3]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.504195"], ["updated_at", "2014-08-26 19:04:56.504195"], ["user_id", 11480000000000057], ["value", 2]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.505985"], ["updated_at", "2014-08-26 19:04:56.505985"], ["user_id", 47], ["value", 4]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.507746"], ["updated_at", "2014-08-26 19:04:56.507746"], ["user_id", 47], ["value", 5]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1148 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1149 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1148 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1149 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1148 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1149 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1148 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 1148 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (47) [shard 1149 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1149 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (47) [shard 1149 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.524472"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:56.524472"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.526081"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:56.526081"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.527818"], ["updated_at", "2014-08-26 19:04:56.527818"], ["user_id", 58], ["value", 1]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.529753"], ["updated_at", "2014-08-26 19:04:56.529753"], ["user_id", 11490000000000048], ["value", 3]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.531795"], ["updated_at", "2014-08-26 19:04:56.531795"], ["user_id", 11480000000000058], ["value", 2]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.533319"], ["updated_at", "2014-08-26 19:04:56.533319"], ["user_id", 48], ["value", 4]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.535036"], ["updated_at", "2014-08-26 19:04:56.535036"], ["user_id", 48], ["value", 5]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.537767"], ["updated_at", "2014-08-26 19:04:56.537767"], ["user_id", 58]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:56.540190"], ["updated_at", "2014-08-26 19:04:56.540190"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.543182"], ["updated_at", "2014-08-26 19:04:56.543182"], ["user_id", 59]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.550399"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:56.550399"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.552014"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:56.552014"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.553604"], ["updated_at", "2014-08-26 19:04:56.553604"], ["user_id", 60], ["value", 1]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.555546"], ["updated_at", "2014-08-26 19:04:56.555546"], ["user_id", 11490000000000049], ["value", 3]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.558117"], ["updated_at", "2014-08-26 19:04:56.558117"], ["user_id", 11480000000000060], ["value", 2]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.559562"], ["updated_at", "2014-08-26 19:04:56.559562"], ["user_id", 49], ["value", 4]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.561027"], ["updated_at", "2014-08-26 19:04:56.561027"], ["user_id", 49], ["value", 5]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1148 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1149 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1148 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1149 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1148 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1149 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1148 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [shard 1148 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (49) [shard 1149 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1149 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (49) [shard 1149 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.576370"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:56.576370"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.578173"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:56.578173"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.580284"], ["updated_at", "2014-08-26 19:04:56.580284"], ["user_id", 61], ["value", 1]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.582766"], ["updated_at", "2014-08-26 19:04:56.582766"], ["user_id", 11490000000000050], ["value", 3]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.585243"], ["updated_at", "2014-08-26 19:04:56.585243"], ["user_id", 11480000000000061], ["value", 2]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.586804"], ["updated_at", "2014-08-26 19:04:56.586804"], ["user_id", 50], ["value", 4]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.588725"], ["updated_at", "2014-08-26 19:04:56.588725"], ["user_id", 50], ["value", 5]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1148 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1149 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1148 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1149 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1148 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1149 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1148 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [shard 1148 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (50) [shard 1149 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1149 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (50) [shard 1149 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.605406"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:56.605406"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.607880"], ["updated_at", "2014-08-26 19:04:56.607880"], ["user_id", 62], ["value", 1]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.609746"], ["updated_at", "2014-08-26 19:04:56.609746"], ["user_id", 62], ["value", 2]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.611312"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:56.611312"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.615431"], ["updated_at", "2014-08-26 19:04:56.615431"], ["user_id", 51], ["value", 3]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.617285"], ["updated_at", "2014-08-26 19:04:56.617285"], ["user_id", 51], ["value", 4]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.619034"], ["updated_at", "2014-08-26 19:04:56.619034"], ["user_id", 51], ["value", 5]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 62]] [shard 1148 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1148 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 51]] [shard 1149 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1149 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (53, 54) [shard 1148 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (49, 50, 51) [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.629284"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:56.629284"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.631577"], ["updated_at", "2014-08-26 19:04:56.631577"], ["user_id", 63], ["value", 1]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.633434"], ["updated_at", "2014-08-26 19:04:56.633434"], ["user_id", 63], ["value", 2]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.634990"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:56.634990"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.637342"], ["updated_at", "2014-08-26 19:04:56.637342"], ["user_id", 52], ["value", 3]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.639382"], ["updated_at", "2014-08-26 19:04:56.639382"], ["user_id", 52], ["value", 4]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.641367"], ["updated_at", "2014-08-26 19:04:56.641367"], ["user_id", 52], ["value", 5]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 63]] [shard 1148 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1148 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 52]] [shard 1149 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1149 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (55, 56) [shard 1148 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (52, 53, 54) [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.651722"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:56.651722"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.655093"], ["updated_at", "2014-08-26 19:04:56.655093"], ["user_id", 64], ["value", 1]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.657434"], ["updated_at", "2014-08-26 19:04:56.657434"], ["user_id", 64], ["value", 2]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.659256"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:56.659256"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.662035"], ["updated_at", "2014-08-26 19:04:56.662035"], ["user_id", 53], ["value", 3]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.664440"], ["updated_at", "2014-08-26 19:04:56.664440"], ["user_id", 53], ["value", 4]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.666857"], ["updated_at", "2014-08-26 19:04:56.666857"], ["user_id", 53], ["value", 5]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 64]] [shard 1148 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 1148 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 53]] [shard 1149 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 1149 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (57, 58) [shard 1148 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (55, 56, 57) [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.677909"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:56.677909"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.680411"], ["updated_at", "2014-08-26 19:04:56.680411"], ["user_id", 65], ["value", 1]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.682292"], ["updated_at", "2014-08-26 19:04:56.682292"], ["user_id", 65], ["value", 2]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.683926"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:56.683926"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.686405"], ["updated_at", "2014-08-26 19:04:56.686405"], ["user_id", 54], ["value", 3]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.688324"], ["updated_at", "2014-08-26 19:04:56.688324"], ["user_id", 54], ["value", 4]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.690172"], ["updated_at", "2014-08-26 19:04:56.690172"], ["user_id", 54], ["value", 5]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 65]] [shard 1148 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1148 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 54]] [shard 1149 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1149 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (59, 60) [shard 1148 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (58, 59, 60) [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.700318"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:56.700318"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.702858"], ["updated_at", "2014-08-26 19:04:56.702858"], ["user_id", 66], ["value", 1]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.704949"], ["updated_at", "2014-08-26 19:04:56.704949"], ["user_id", 66], ["value", 2]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.706630"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:56.706630"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.708889"], ["updated_at", "2014-08-26 19:04:56.708889"], ["user_id", 55], ["value", 3]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.710734"], ["updated_at", "2014-08-26 19:04:56.710734"], ["user_id", 55], ["value", 4]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-08-26 19:04:56.712476"], ["updated_at", "2014-08-26 19:04:56.712476"], ["user_id", 55], ["value", 5]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 66]] [shard 1148 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1148 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 55]] [shard 1149 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1149 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (61, 62) [shard 1148 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (61, 62, 63) [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.722988"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:56.722988"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.725280"], ["updated_at", "2014-08-26 19:04:56.725280"], ["user_id", 67]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.726839"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:56.726839"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.729231"], ["updated_at", "2014-08-26 19:04:56.729231"], ["user_id", 56]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 63 [shard 1148 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 64 [shard 1149 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 63 [shard 1148 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 64 [shard 1149 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 63 [shard 1148 master]  (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 64 [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.741238"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:56.741238"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.743824"], ["updated_at", "2014-08-26 19:04:56.743824"], ["user_id", 68]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.745417"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:56.745417"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.747694"], ["updated_at", "2014-08-26 19:04:56.747694"], ["user_id", 57]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 64 [shard 1148 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 65 [shard 1149 master]  (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 64 [shard 1148 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 65 [shard 1149 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 64 [shard 1148 master]  (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 65 [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.756950"], ["name", "user1"], ["updated_at", "2014-08-26 19:04:56.756950"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.759212"], ["updated_at", "2014-08-26 19:04:56.759212"], ["user_id", 69]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.760703"], ["name", "user2"], ["updated_at", "2014-08-26 19:04:56.760703"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.762923"], ["updated_at", "2014-08-26 19:04:56.762923"], ["user_id", 58]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (69) [shard 1148 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (58) [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1147]] [shard 1147 master]  (0.2ms) COMMIT [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1148], ["name", "switchman_test_shard_1148"]] [shard 1147 master]  (0.2ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 1149], ["name", "switchman_test_shard_1149"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:56.782298"], ["updated_at", "2014-08-26 19:04:56.782298"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:56.787692"], ["updated_at", "2014-08-26 19:04:56.787692"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:56.789474"], ["updated_at", "2014-08-26 19:04:56.789474"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:56.794235"], ["updated_at", "2014-08-26 19:04:56.794235"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:56.795611"], ["updated_at", "2014-08-26 19:04:56.795611"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1148 LIMIT 1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:56.799817"], ["updated_at", "2014-08-26 19:04:56.799817"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:56.808987"], ["updated_at", "2014-08-26 19:04:56.808987"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master] SQL (7.2ms) DELETE FROM "switchman_shards" [shard 1147 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1147 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1147]] [shard 1147 master]  (0.4ms) COMMIT [shard 1147 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1148], ["name", "switchman_test_shard_1148"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 1149], ["name", "switchman_test_shard_1149"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.2ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.3ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:56.844213"], ["updated_at", "2014-08-26 19:04:56.844213"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 46]] [shard 1147 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 46]] [shard 1147 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 46 ORDER BY "mirror_users"."id" ASC LIMIT 1 [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1147]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1148], ["name", "switchman_test_shard_1148"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 1149], ["name", "switchman_test_shard_1149"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:56.864117"], ["updated_at", "2014-08-26 19:04:56.864117"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1149 master]  (0.1ms) SAVEPOINT active_record_2 [shard 1149 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:56.868513"], ["updated_at", "2014-08-26 19:04:56.868513"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1149 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) SELECT COUNT(*) FROM "users" [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1147]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1148], ["name", "switchman_test_shard_1148"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 1149], ["name", "switchman_test_shard_1149"]] [shard 1147 master]  (0.2ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1147 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1147]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.2ms) BEGIN [shard 1147 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1148], ["name", "switchman_test_shard_1148"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 1149], ["name", "switchman_test_shard_1149"]] [shard 1147 master]  (0.4ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:56.896156"], ["updated_at", "2014-08-26 19:04:56.896156"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 73]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 11480000000000073 ORDER BY "users"."id" ASC LIMIT 1 [shard 1148 master]  (0.2ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:56.903963"], ["updated_at", "2014-08-26 19:04:56.903963"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1149 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-08-26 19:04:56.905807"], ["name", "multi-shard exists"], ["updated_at", "2014-08-26 19:04:56.905807"]] [shard 1149 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1149 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 1147 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1147 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1148 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:56.915598"], ["updated_at", "2014-08-26 19:04:56.915598"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 75 LIMIT 1 [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:56.921653"], ["updated_at", "2014-08-26 19:04:56.921653"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1148 LIMIT 1 [shard 1147 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (76) LIMIT 1 [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:56.929522"], ["updated_at", "2014-08-26 19:04:56.929522"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 77 LIMIT 1 [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:04:56.935878"], ["updated_at", "2014-08-26 19:04:56.935878"]] [shard 1148 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 78]] [shard 1148 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master] SQL (6.3ms) DELETE FROM "switchman_shards" [shard 1147 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1147]] [shard 1147 master]  (0.4ms) COMMIT [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1148], ["name", "switchman_test_shard_1148"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 1149], ["name", "switchman_test_shard_1149"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1147]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1148], ["name", "switchman_test_shard_1148"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 1149], ["name", "switchman_test_shard_1149"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1148 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-08-26 19:05:56.966840"], ["updated_at", "2014-08-26 19:05:56.966840"]] [shard 1148 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1148 master]  (0.0ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1148 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "19"], ["name", "non_existent_shard"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "19"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 1160 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.5ms) SELECT COUNT(*) FROM "users" [shard 1161 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "20"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "21"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "22"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "23"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "24"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "25"]] [shard 1147 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1147 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1147]] [shard 1147 master]  (0.4ms) COMMIT [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1148], ["name", "switchman_test_shard_1148"]] [shard 1147 master]  (0.2ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["id", 1149], ["name", "switchman_test_shard_1149"]] [shard 1147 master]  (0.3ms) COMMIT [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master]  (0.1ms) BEGIN [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1148]] [shard 1147 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1149]] [shard 1147 master]  (0.1ms) BEGIN [shard 1149 master]  (0.1ms) ROLLBACK [shard 1149 master]  (0.1ms) ROLLBACK [shard 1147 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1147 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1147 master]  (4.8ms) DROP SCHEMA switchman_test_shard_1148 CASCADE [shard 1148 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1148]]  (0.1ms) COMMIT  (5.1ms) DROP SCHEMA switchman_test_shard_1149 CASCADE [shard 1149 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1149]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (6.2ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (1.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (2.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (1.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (2.1ms) CREATE SCHEMA switchman_test_shard_1169 [shard 1169 deploy]  (9.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1169 deploy]  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1169 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1169 deploy] Migrating to CreateUsers (20130403132607)  (28.6ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1169 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1169 deploy] Migrating to CreateAppendages (20130411202442)  (10.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1169 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1169 deploy] Migrating to CreateMirrorUsers (20130411202551)  (7.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1169 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1169 deploy] Migrating to CreateDigits (20131022202028)  (13.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1169 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1169 deploy] Migrating to CreateFeatures (20131206172923)  (7.4ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1169 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1169 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1169 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1169 deploy] Migrating to CreateRoots (20140219183820)  (7.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1169 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1169 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1169' WHERE "switchman_shards"."id" = 1169 [shard 1168 master]  (6.6ms) COMMIT [shard 1168 master] Switchman::Shard Load (4.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1170 [shard 1170 deploy]  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1170 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1170 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1170 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1170 deploy]  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1170 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1170 deploy]  (0.3ms) COMMIT [shard 1170 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1170 deploy]  (1.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1170 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1170 deploy]  (0.3ms) COMMIT [shard 1170 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1170 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1170 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1170 deploy]  (0.3ms) COMMIT [shard 1170 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1170 deploy]  (2.3ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1170 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1170 deploy]  (0.2ms) COMMIT [shard 1170 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1170 deploy]  (1.4ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1170 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1170 deploy]  (0.3ms) COMMIT [shard 1170 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1170 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1170 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1170 deploy]  (0.3ms) COMMIT [shard 1170 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1170 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1170 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1170 deploy]  (0.3ms) COMMIT [shard 1170 deploy]  (0.1ms) BEGIN [shard 1168 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1170' WHERE "switchman_shards"."id" = 1170 [shard 1168 master]  (0.2ms) COMMIT [shard 1168 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1168], ["name", nil]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1169], ["name", "switchman_test_shard_1169"]] [shard 1168 master]  (0.2ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1170], ["name", "switchman_test_shard_1170"]] [shard 1168 master]  (0.2ms) COMMIT [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (2.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1169 master] User Load (0.5ms) SELECT "users".* FROM "users" [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master] User Load (0.4ms) SELECT "users".* FROM "users"  [shard 1168 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-10-22 18:23:43.156768' [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1168 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-10-22 18:23:43.189016' [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1168 master] SQL (0.8ms) UPDATE "users" SET "updated_at" = '2014-10-22 18:23:43.193057' [shard 1168 master] SQL (0.3ms) DELETE FROM "users" [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1168 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-10-22 18:23:43.202244' [shard 1168 master] SQL (0.2ms) DELETE FROM "users" [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1168 master] SQL (0.1ms) DELETE FROM "users" [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1168 master] SQL (0.1ms) DELETE FROM "users" [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1168 master] SQL (0.3ms) DELETE FROM "users" [shard 1168 master] SQL (0.1ms) DELETE FROM "users" [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1168 master]  (0.4ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1168 master]  (0.2ms) COMMIT [shard 1168 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2007]] [shard 1168 master] CACHE (0.0ms) 1168::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2007]] CACHE (0.0ms) 1168::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2007]]  (0.1ms) BEGIN [shard 1168 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-10-22 18:23:43.236087' WHERE "users"."id" = 2007 [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2007]] [shard 1168 master] CACHE (0.0ms) 1168::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2007]] SQL (0.3ms) DELETE FROM "users" [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1168 master] SQL (0.3ms) DELETE FROM "users" [shard 1168 master] SQL (0.1ms) DELETE FROM "users" [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.2ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.2ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.0ms) ROLLBACK [shard 1168 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 1168 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1168], ["name", nil]] [shard 1168 master]  (6.0ms) COMMIT [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1169], ["name", "switchman_test_shard_1169"]] [shard 1168 master]  (6.0ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1170], ["name", "switchman_test_shard_1170"]] [shard 1168 master]  (4.9ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 1170 master]  (0.1ms) SAVEPOINT active_record_2 [shard 1170 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1170 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master] SQL (6.1ms) DELETE FROM "switchman_shards" [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1168], ["name", nil]] [shard 1168 master]  (5.9ms) COMMIT [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1169], ["name", "switchman_test_shard_1169"]] [shard 1168 master]  (6.0ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1170], ["name", "switchman_test_shard_1170"]] [shard 1168 master]  (0.4ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1168], ["name", nil]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1169], ["name", "switchman_test_shard_1169"]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1170], ["name", "switchman_test_shard_1170"]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (2.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["user_id", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 47]] [shard 1168 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 47]] [shard 1168 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 47 LIMIT 1 [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1168], ["name", nil]] [shard 1168 master]  (0.2ms) COMMIT [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1169], ["name", "switchman_test_shard_1169"]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1170], ["name", "switchman_test_shard_1170"]] [shard 1168 master]  (0.2ms) COMMIT [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master] SQL (0.9ms) DELETE FROM "switchman_shards" [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master]  (0.0ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master]  (0.0ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1168], ["name", nil]] [shard 1168 master]  (6.0ms) COMMIT [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1169], ["name", "switchman_test_shard_1169"]] [shard 1168 master]  (6.0ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1170], ["name", "switchman_test_shard_1170"]] [shard 1168 master]  (4.8ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '4' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) select sqlite_version(*) [shard 1173 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 1173 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1173 deploy]  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1173 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 1173 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1173 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1173 deploy]  (0.7ms) commit transaction [shard 1173 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 1173 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1173 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1173 deploy]  (0.7ms) commit transaction [shard 1173 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 1173 deploy]  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1173 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1173 deploy]  (0.6ms) commit transaction [shard 1173 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 1173 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1173 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1173 deploy]  (0.8ms) commit transaction [shard 1173 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 1173 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1173 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1173 deploy]  (0.7ms) commit transaction [shard 1173 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 1173 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 1173 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1173 deploy]  (0.7ms) commit transaction [shard 1173 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 1173 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1173 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1173 deploy]  (0.7ms) commit transaction [shard 1173 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'db/shard_1173.sqlite3' WHERE "switchman_shards"."id" = 1173 [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.0ms) begin transaction [shard 1173 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1173 master]  (0.8ms) commit transaction [shard 1173 master] Drop failed: No such file or directory @ unlink_internal - db/shard_1173.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1173]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '5' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", "public"]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (6.2ms) CREATE SCHEMA switchman_test_shard_1174 [shard 1174 deploy]  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1174 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1174 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1174 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1174 deploy]  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1174 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1174 deploy]  (0.4ms) COMMIT [shard 1174 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1174 deploy]  (2.3ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1174 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1174 deploy]  (0.3ms) COMMIT [shard 1174 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1174 deploy]  (1.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1174 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1174 deploy]  (0.3ms) COMMIT [shard 1174 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1174 deploy]  (1.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1174 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1174 deploy]  (0.3ms) COMMIT [shard 1174 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1174 deploy]  (1.4ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1174 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1174 deploy]  (0.4ms) COMMIT [shard 1174 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1174 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1174 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1174 deploy]  (0.2ms) COMMIT [shard 1174 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1174 deploy]  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1174 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1174 deploy]  (0.3ms) COMMIT [shard 1174 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1174' WHERE "switchman_shards"."id" = 1174 [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) BEGIN [shard 1174 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1174 master]  (0.3ms) COMMIT [shard 1174 master]  (8.1ms) DROP SCHEMA switchman_test_shard_1174 CASCADE [shard 1174 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1174]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 1168 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_1175 [shard 1175 deploy]  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1175 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1175 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1175 deploy] Migrating to CreateUsers (20130403132607)  (3.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1175 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1175 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1175 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1175 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1175 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1175 deploy] Migrating to CreateDigits (20131022202028)  (1.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1175 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1175 deploy] Migrating to CreateFeatures (20131206172923)  (1.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1175 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1175 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1175 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1175 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1175 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1175 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1175' WHERE "switchman_shards"."id" = 1175 [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1175 master] SQL (6.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1175 master]  (12.8ms) DROP SCHEMA switchman_test_shard_1175 CASCADE [shard 1175 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1175]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (2.0ms) ROLLBACK [shard 1168 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1168 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master]  (0.0ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master]  (0.0ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master]  (0.0ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master]  (0.0ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1168], ["name", nil]] [shard 1168 master]  (5.7ms) COMMIT [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1169], ["name", "switchman_test_shard_1169"]] [shard 1168 master]  (5.6ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1170], ["name", "switchman_test_shard_1170"]] [shard 1168 master]  (6.0ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1169 LIMIT 1 [shard 1168 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 3 AND "appendages"."id" = $1 LIMIT 1 [["id", 1]] [shard 1169 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 3 AND "appendages"."id" = $1 LIMIT 1 [["id", 1]] [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (5.1ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["user_id", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1170 LIMIT 1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 8], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 9], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 8]] [shard 1169 master]  (0.1ms) SHOW max_identifier_length [shard 1169 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 8 AND "users"."id" = 10 LIMIT 1 [shard 1169 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 8]] [shard 1169 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 8 AND "users"."id" = 11700000000000009 LIMIT 1 [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.4ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 11 [shard 1169 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 11]] [shard 1169 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 11 [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5], ["created_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:43 UTC +00:00], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 13 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 7]] [shard 1169 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 15 LIMIT 1 [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 11690000000000017], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2], ["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["value", 2]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17 AND "digits"."value" IS NULL [shard 1169 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 11690000000000017 AND "digits"."value" IS NULL [shard 1170 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 1169 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17 AND "digits"."value" IS NULL [shard 1169 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 11690000000000017 AND "digits"."value" IS NULL [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 18], ["value", 1]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 11690000000000018], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 18], ["value", 2]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 1169 master]  (1.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 18 AND (appendages.value IS NOT NULL) [shard 1169 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 11690000000000018 AND (appendages.value IS NOT NULL) [shard 1170 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 1169 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 18 AND (appendages.value IS NOT NULL) [shard 1169 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 11690000000000018 AND (appendages.value IS NOT NULL) [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11], ["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["value", 1]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 11690000000000019], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4], ["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["value", 2]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 19 [shard 1169 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [shard 1169 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 19 [shard 1169 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 11690000000000019 [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.2ms) ROLLBACK [shard 1169 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 20], ["value", 1]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 11690000000000020], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 20 AND "appendages"."value" IS NULL [shard 1169 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 11690000000000020 AND "appendages"."value" IS NULL [shard 1170 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 1169 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 20 AND "appendages"."value" IS NULL [shard 1169 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 11690000000000020 AND "appendages"."value" IS NULL [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 21], ["value", 1]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 11690000000000021], ["value", 2]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 21 [shard 1169 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 1169 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 21 [shard 1169 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 11690000000000021 [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 14], ["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 11690000000000022], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7], ["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["value", 2]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 22 AND "digits"."value" IS NULL [shard 1169 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 11690000000000022 AND "digits"."value" IS NULL [shard 1170 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 22]] [shard 1169 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 22 AND "digits"."value" IS NULL [shard 1169 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 11690000000000022 AND "digits"."value" IS NULL [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15], ["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15], ["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["value", 1]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 11690000000000023], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["value", 2]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 23 AND (digits.value IS NOT NULL) [shard 1169 master]  (0.5ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 11690000000000023 AND (digits.value IS NOT NULL) [shard 1170 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 23]] [shard 1169 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 23 AND (digits.value IS NOT NULL) [shard 1169 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 11690000000000023 AND (digits.value IS NOT NULL) [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 11690000000000024], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 11700000000000023], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 1169 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (24) [shard 1169 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (11690000000000024) [shard 1170 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 1170 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (23) [shard 1170 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 16 [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (2.0ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 11690000000000025], ["value", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 11700000000000024], ["value", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 2014], ["value", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages"  [shard 1168 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 1169 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 1170 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2014) [shard 1168 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 25 [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 26], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 11690000000000026], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 11690000000000026], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 18], ["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10], ["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11700000000000010], ["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11700000000000011], ["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 11700000000000025], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 25], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 25], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11690000000000019], ["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11700000000000012], ["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["value", nil]] [shard 1169 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11700000000000013], ["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["value", nil]] [shard 1169 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 1169 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (26) [shard 1169 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (11690000000000026) [shard 1170 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (18) [shard 1169 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (10, 11) [shard 1170 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 1170 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (25) [shard 1170 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (12, 13) [shard 1170 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 11690000000000027], ["value", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (8.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 978], ["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["value", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 11700000000000026], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11690000000000020], ["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["value", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 1168 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (978) [shard 1168 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (20) [shard 1169 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 1169 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 1170 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 27 [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (7.4ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 11700000000000027]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master] Root Load (0.4ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 47]] [shard 1168 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 27 LIMIT 1 [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (2.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["owner_id", 979], ["owner_type", "Appendage"], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["value", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 97]] [shard 1168 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 979 LIMIT 1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master]  (0.2ms) UPDATE "features" SET "owner_id" = 11690000000000029, "owner_type" = 'User', "updated_at" = '2014-10-22 18:23:44.345201' WHERE "features"."id" = 97 [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 97]] [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["owner_id", 30], ["owner_type", "User"], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["value", 1]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["owner_id", 11690000000000030], ["owner_type", "User"], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["value", 2]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 30 AND "features"."owner_type" = 'User' [shard 1169 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 30]] [shard 1169 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 30 AND "features"."owner_type" = 'User' [shard 1169 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 11690000000000030 AND "features"."owner_type" = 'User' [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 11700000000000030], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 21]] [shard 1169 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 30 LIMIT 1 [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 32 LIMIT 1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 22]] [shard 1169 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 32 LIMIT 1 [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1168], ["name", nil]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1169], ["name", "switchman_test_shard_1169"]] [shard 1168 master]  (0.4ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1170], ["name", "switchman_test_shard_1170"]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1168], ["name", nil]] [shard 1168 master]  (0.2ms) COMMIT [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1169], ["name", "switchman_test_shard_1169"]] [shard 1168 master]  (0.2ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1170], ["name", "switchman_test_shard_1170"]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1168], ["name", nil]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1169], ["name", "switchman_test_shard_1169"]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1170], ["name", "switchman_test_shard_1170"]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 2015], ["value", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 2016], ["value", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1169 LIMIT 1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 2017], ["value", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 2018], ["value", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.3ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 2019], ["value", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 2020], ["value", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 2021], ["value", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 2022], ["value", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 2023], ["value", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 2024], ["value", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2024], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2025], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2025]] [shard 1168 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2024 LIMIT 1 [shard 1168 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 2024 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 2027], ["value", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 2028], ["value", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 2029], ["value", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 2030], ["value", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 2031], ["value", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 2032], ["value", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", "non_existent_shard"]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 1176 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.7ms) SELECT COUNT(*) FROM "users"  [shard 1177 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "17"], ["default", false], ["name", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "18"], ["default", false], ["name", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "19"], ["default", false], ["name", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1168], ["name", nil]] [shard 1168 master]  (0.4ms) COMMIT [shard 1168 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1169], ["name", "switchman_test_shard_1169"]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1170], ["name", "switchman_test_shard_1170"]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.3ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["owner_id", 2034], ["owner_type", "User"], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["value", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 98 LIMIT 1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1169 LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1170 LIMIT 1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master] SQL (6.1ms) DELETE FROM "switchman_shards" [shard 1168 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "20"], ["default", false], ["name", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "20"], ["default", false], ["name", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master]  (0.0ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1168], ["name", nil]] [shard 1168 master]  (5.6ms) COMMIT [shard 1168 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1169], ["name", "switchman_test_shard_1169"]] [shard 1168 master]  (4.5ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1170], ["name", "switchman_test_shard_1170"]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 50 LIMIT 1 [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1169 LIMIT 1 [shard 1168 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2036) [shard 1168 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (51) [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 53 [shard 1169 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2038]] [shard 1168 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 53]] [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (2039) [shard 1168 master] SQL (0.1ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (54) [shard 1169 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2039]] [shard 1168 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 54]] [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1168], ["name", nil]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1169], ["name", "switchman_test_shard_1169"]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1170], ["name", "switchman_test_shard_1170"]] [shard 1168 master]  (0.2ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) ROLLBACK [shard 1170 master]  (0.0ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) ROLLBACK [shard 1170 master]  (0.0ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) ROLLBACK [shard 1170 master]  (0.0ms) ROLLBACK [shard 1168 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1168], ["name", nil]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1169], ["name", "switchman_test_shard_1169"]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1170], ["name", "switchman_test_shard_1170"]] [shard 1168 master]  (0.2ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '21' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1168 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "21"], ["default", false], ["name", "public"]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1186 [shard 1186 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1186 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1186 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1186 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1186 deploy]  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1186 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1186 deploy]  (0.3ms) COMMIT [shard 1186 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1186 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1186 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1186 deploy]  (0.4ms) COMMIT [shard 1186 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) BEGIN [shard 1186 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1186 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1186 deploy]  (0.3ms) COMMIT [shard 1186 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1186 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1186 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1186 deploy]  (0.2ms) COMMIT [shard 1186 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1186 deploy]  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1186 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1186 deploy]  (0.3ms) COMMIT [shard 1186 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 1186 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1186 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1186 deploy]  (0.2ms) COMMIT [shard 1186 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1186 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1186 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1186 deploy]  (0.4ms) COMMIT [shard 1186 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1186' WHERE "switchman_shards"."id" = 1186 [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) BEGIN [shard 1186 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:44 UTC +00:00]] [shard 1186 master]  (0.3ms) COMMIT [shard 1186 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1186 master]  (4.8ms) DROP SCHEMA switchman_test_shard_1186 CASCADE [shard 1186 deploy]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 1186 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1169 LIMIT 1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1187]] [shard 1168 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1187 LIMIT 1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.0ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1188]] [shard 1168 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.0ms) ROLLBACK [shard 1170 master]  (0.0ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11170 LIMIT 1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1170 LIMIT 1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.2ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.0ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) ROLLBACK [shard 1170 master]  (0.0ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master] SQL (0.8ms) DELETE FROM "switchman_shards" [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1168], ["name", nil]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1169], ["name", "switchman_test_shard_1169"]] [shard 1168 master]  (0.2ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1170], ["name", "switchman_test_shard_1170"]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (1168, 1169) AND (id IN (1169,1170)) [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) ROLLBACK [shard 1170 master]  (0.0ms) ROLLBACK [shard 1168 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1168], ["name", nil]] [shard 1168 master]  (0.2ms) COMMIT [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1169], ["name", "switchman_test_shard_1169"]] [shard 1168 master]  (0.2ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1170], ["name", "switchman_test_shard_1170"]] [shard 1168 master]  (0.2ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "23"], ["default", false], ["name", nil]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "23"], ["default", false], ["name", nil]] [shard 1168 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1168], ["name", nil]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1169], ["name", "switchman_test_shard_1169"]] [shard 1168 master]  (0.2ms) COMMIT [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1170], ["name", "switchman_test_shard_1170"]] [shard 1168 master]  (0.2ms) COMMIT [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1169 LIMIT 1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (1.0ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) ROLLBACK [shard 1170 master]  (0.0ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) ROLLBACK [shard 1170 master]  (0.0ms) ROLLBACK [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1168 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1168 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1168 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.0ms) ROLLBACK [shard 1168 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1168], ["name", nil]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1169], ["name", "switchman_test_shard_1169"]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1170], ["name", "switchman_test_shard_1170"]] [shard 1168 master]  (0.2ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:45 UTC +00:00]] [shard 1169 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.0ms) ROLLBACK [shard 1170 master]  (0.0ms) ROLLBACK [shard 1169 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1168], ["name", nil]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1169], ["name", "switchman_test_shard_1169"]] [shard 1168 master]  (0.2ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1170], ["name", "switchman_test_shard_1170"]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.4ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 59]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 11690000000000059 LIMIT 1 [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1169 LIMIT 1 [shard 1168 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 60]] [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 61 LIMIT 1 [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 1168 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1168 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1169 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 63 LIMIT 1 [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) LIMIT 1 [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1168], ["name", nil]] [shard 1168 master]  (0.4ms) COMMIT [shard 1168 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1169], ["name", "switchman_test_shard_1169"]] [shard 1168 master]  (0.3ms) COMMIT [shard 1168 master]  (0.1ms) BEGIN [shard 1168 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1170], ["name", "switchman_test_shard_1170"]] [shard 1168 master]  (0.2ms) COMMIT [shard 1168 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 65], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1169 LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1170 LIMIT 1 [shard 1168 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (65) [shard 1169 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (49) [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 66], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 1169 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 1170 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 1169 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 1170 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 1169 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 67], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 1169 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 1170 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 1169 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 1170 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 1169 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 68], ["value", 1]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 11700000000000052], ["value", 3]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 11690000000000068], ["value", 2]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 52], ["value", 4]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 52], ["value", 5]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SHOW max_identifier_length [shard 1168 master]  (0.8ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1169 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1170 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1169 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1170 master]  (0.1ms) SHOW max_identifier_length [shard 1170 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1169 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1170 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1169 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (68) [shard 1169 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (52) [shard 1170 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1170 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (52) [shard 1170 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (68) [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 69], ["value", 1]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 11700000000000053], ["value", 3]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 11690000000000069], ["value", 2]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 53], ["value", 4]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 53], ["value", 5]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1169 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1170 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1169 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1170 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1169 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1170 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1169 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (69) [shard 1169 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 1170 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1170 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 1170 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (69) [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1170 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 70], ["value", 1]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 11700000000000054], ["value", 3]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 11690000000000070], ["value", 2]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 54], ["value", 4]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 54], ["value", 5]] [shard 1170 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1169 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1170 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1169 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1170 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1169 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1170 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1169 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [shard 1169 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 1170 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1170 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 1170 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 71], ["value", 1]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 11700000000000055], ["value", 3]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 11690000000000071], ["value", 2]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 55], ["value", 4]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 55], ["value", 5]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.6ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1169 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1170 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1169 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1170 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1169 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1170 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1169 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [shard 1169 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 1170 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1170 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 1170 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 72], ["value", 1]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 11700000000000056], ["value", 3]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 11690000000000072], ["value", 2]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 56], ["value", 4]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 56], ["value", 5]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.7ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1169 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1170 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1169 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1170 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1169 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1170 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1169 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [shard 1169 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 1170 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1170 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 1170 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 73], ["value", 1]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 11700000000000057], ["value", 3]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 11690000000000073], ["value", 2]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 57], ["value", 4]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 57], ["value", 5]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 73], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 74], ["value", nil]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 1169 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.1ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 75], ["value", 1]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 75], ["value", 2]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 58], ["value", 3]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 58], ["value", 4]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 58], ["value", 5]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 75 [shard 1169 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 1169 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 58 [shard 1170 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 1170 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (57, 58) [shard 1169 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (53, 54, 55) [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 76], ["value", 1]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 76], ["value", 2]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 59], ["value", 3]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 59], ["value", 4]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 59], ["value", 5]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 76 [shard 1169 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 1169 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 59 [shard 1170 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 1170 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (59, 60) [shard 1169 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (56, 57, 58) [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.1ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 77], ["value", 1]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 77], ["value", 2]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 60], ["value", 3]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 60], ["value", 4]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 60], ["value", 5]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 77 [shard 1169 master]  (0.1ms) SELECT COUNT(*) FROM "appendages"  [shard 1169 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 60 [shard 1170 master]  (0.1ms) SELECT COUNT(*) FROM "appendages"  [shard 1170 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (61, 62) [shard 1169 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (59, 60, 61) [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 78], ["value", 1]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 78], ["value", 2]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 61], ["value", 3]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 61], ["value", 4]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 61], ["value", 5]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 78 [shard 1169 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 1169 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 61 [shard 1170 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 1170 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (63, 64) [shard 1169 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (62, 63, 64) [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master]  (0.0ms) BEGIN [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1169]] [shard 1168 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1170]] [shard 1168 master]  (0.0ms) BEGIN [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 79], ["value", 1]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1169 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 79], ["value", 2]] [shard 1169 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1169 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 62], ["value", 3]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 62], ["value", 4]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1170 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:23:45 UTC +00:00], ["user_id", 62], ["value", 5]] [shard 1170 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1170 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 79 [shard 1169 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 1169 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 62 [shard 1170 master]  (0.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 1170 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (65, 66) [shard 1169 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (65, 66, 67) [shard 1170 master]  (0.1ms) ROLLBACK [shard 1170 master]  (0.1ms) ROLLBACK [shard 1169 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1168 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1168 master]  (5.1ms) DROP SCHEMA switchman_test_shard_1169 CASCADE [shard 1169 deploy]  (0.1ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1169]]  (0.1ms) COMMIT  (5.1ms) DROP SCHEMA switchman_test_shard_1170 CASCADE [shard 1170 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1170]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1192 [shard 1192 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1192 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1192 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1192 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1192 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1192 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1192 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1192 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1192 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1192 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1192 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1192 deploy] Migrating to CreateFeatures (20131206172923)  (2.3ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1192 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1192 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1192 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1192 deploy] Migrating to CreateRoots (20140219183820)  (3.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1192 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1192 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1192' WHERE "switchman_shards"."id" = 1192 [shard 1191 master]  (0.7ms) COMMIT [shard 1191 master] Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1193 [shard 1193 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1193 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1193 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1193 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1193 deploy]  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1193 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1193 deploy]  (0.3ms) COMMIT [shard 1193 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 1193 deploy]  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1193 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1193 deploy]  (0.3ms) COMMIT [shard 1193 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1193 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1193 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1193 deploy]  (0.3ms) COMMIT [shard 1193 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1193 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1193 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1193 deploy]  (0.3ms) COMMIT [shard 1193 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1193 deploy]  (2.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1193 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1193 deploy]  (0.4ms) COMMIT [shard 1193 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 1193 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1193 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1193 deploy]  (0.2ms) COMMIT [shard 1193 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1193 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1193 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1193 deploy]  (0.3ms) COMMIT [shard 1193 deploy]  (0.1ms) BEGIN [shard 1191 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1193' WHERE "switchman_shards"."id" = 1193 [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1191], ["name", nil]] [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1192], ["name", "switchman_test_shard_1192"]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1193], ["name", "switchman_test_shard_1193"]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1191], ["name", nil]] [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1192], ["name", "switchman_test_shard_1192"]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1193], ["name", "switchman_test_shard_1193"]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 2042], ["value", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 2043], ["value", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 2044], ["value", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 2045], ["value", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 2046], ["value", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 2047], ["value", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 2048], ["value", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1192 LIMIT 1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 2049], ["value", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 2050], ["value", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 1192 master]  (0.3ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.9ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 2051], ["value", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 2052], ["value", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 2053], ["value", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 2054], ["value", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 2055], ["value", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 2056], ["value", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 2057], ["value", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (2.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2057], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2058], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2058]] [shard 1191 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2057 LIMIT 1 [shard 1191 master]  (0.1ms) SHOW max_identifier_length [shard 1191 master] User Load (0.4ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 2057 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.2ms) ROLLBACK [shard 1191 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", "non_existent_shard"]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 1194 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.7ms) SELECT COUNT(*) FROM "users" [shard 1195 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master]  (0.0ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1191], ["name", nil]] [shard 1191 master]  (0.4ms) COMMIT [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1192], ["name", "switchman_test_shard_1192"]] [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1193], ["name", "switchman_test_shard_1193"]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master] SQL (0.9ms) DELETE FROM "switchman_shards" [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1191], ["name", nil]] [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1192], ["name", "switchman_test_shard_1192"]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1193], ["name", "switchman_test_shard_1193"]] [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 17 LIMIT 1 [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1192 LIMIT 1 [shard 1191 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2062) [shard 1191 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 20 [shard 1192 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2064]] [shard 1191 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (2065) [shard 1191 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (21) [shard 1192 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2065]] [shard 1191 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1191 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1191], ["name", nil]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1192], ["name", "switchman_test_shard_1192"]] [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1193], ["name", "switchman_test_shard_1193"]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 48]] [shard 1191 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 48]] [shard 1191 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 48 LIMIT 1 [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1191 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master]  (0.0ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1191], ["name", nil]] [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1192], ["name", "switchman_test_shard_1192"]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1193], ["name", "switchman_test_shard_1193"]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 1193 master]  (0.1ms) SAVEPOINT active_record_2 [shard 1193 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1193 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1191], ["name", nil]] [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1192], ["name", "switchman_test_shard_1192"]] [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1193], ["name", "switchman_test_shard_1193"]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1191], ["name", nil]] [shard 1191 master]  (0.4ms) COMMIT [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1192], ["name", "switchman_test_shard_1192"]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1193], ["name", "switchman_test_shard_1193"]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1193 LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1192 LIMIT 1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 24 [shard 1192 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 24]] [shard 1192 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 24 [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 26], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 26 AND "appendages"."id" = $1 LIMIT 1 [["id", 19]] [shard 1192 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 23 AND "appendages"."id" = $1 LIMIT 1 [["id", 11920000000000019]] [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 27], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 21], ["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 28 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 29], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 30], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 29]] [shard 1192 master]  (0.1ms) SHOW max_identifier_length [shard 1192 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 29 AND "users"."id" = 31 LIMIT 1 [shard 1192 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 29]] [shard 1192 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 29 AND "users"."id" = 11930000000000027 LIMIT 1 [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 22]] [shard 1192 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 32 LIMIT 1 [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.3ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.9ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", nil], ["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["appendage_id", 23], ["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["id", 11930000000000001], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 34 AND "digits"."id" = $1 LIMIT 1 [["id", 11930000000000001]] [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 37], ["value", 1]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 11920000000000037], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 37 AND "appendages"."value" IS NULL [shard 1192 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 11920000000000037 AND "appendages"."value" IS NULL [shard 1193 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 37]] [shard 1192 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 37 AND "appendages"."value" IS NULL [shard 1192 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 11920000000000037 AND "appendages"."value" IS NULL [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 38], ["value", 1]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 11920000000000038], ["value", 2]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 38 [shard 1192 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 38]] [shard 1192 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 38 [shard 1192 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 11920000000000038 [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 27], ["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 11920000000000039], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 20], ["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["value", 2]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 39 AND "digits"."value" IS NULL [shard 1192 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 11920000000000039 AND "digits"."value" IS NULL [shard 1193 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 39]] [shard 1192 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 39 AND "digits"."value" IS NULL [shard 1192 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 11920000000000039 AND "digits"."value" IS NULL [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 28], ["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 28], ["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["value", 1]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 11920000000000040], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 21], ["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["value", 2]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 40 AND (digits.value IS NOT NULL) [shard 1192 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 11920000000000040 AND (digits.value IS NOT NULL) [shard 1193 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 40]] [shard 1192 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 40 AND (digits.value IS NOT NULL) [shard 1192 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 11920000000000040 AND (digits.value IS NOT NULL) [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 41], ["value", 1]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 11920000000000041], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 41], ["value", 2]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]] [shard 1192 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 41 AND (appendages.value IS NOT NULL) [shard 1192 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 11920000000000041 AND (appendages.value IS NOT NULL) [shard 1193 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]] [shard 1192 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 41 AND (appendages.value IS NOT NULL) [shard 1192 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 11920000000000041 AND (appendages.value IS NOT NULL) [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 31], ["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 11920000000000042], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 23], ["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["value", 2]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 42 AND "digits"."value" IS NULL [shard 1192 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 11920000000000042 AND "digits"."value" IS NULL [shard 1193 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 42]] [shard 1192 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 42 AND "digits"."value" IS NULL [shard 1192 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 11920000000000042 AND "digits"."value" IS NULL [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.2ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 32], ["created_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:37 UTC +00:00], ["value", 1]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 11920000000000043], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 24], ["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["value", 2]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 43 [shard 1192 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 43]] [shard 1192 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 43 [shard 1192 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 11920000000000043 [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.7ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 11930000000000040]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master] Root Load (0.4ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 48]] [shard 1191 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 40 LIMIT 1 [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 11920000000000045], ["value", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 11930000000000041], ["value", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 2066], ["value", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" [shard 1191 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [shard 1192 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [shard 1193 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2066) [shard 1191 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 45 [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 11920000000000046], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 11930000000000042], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (46) [shard 1192 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (46) [shard 1192 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (11920000000000046) [shard 1193 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [shard 1193 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (42) [shard 1193 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 33 [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 11920000000000047], ["value", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1016], ["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["value", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 11930000000000043], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11920000000000035], ["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["value", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 1191 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (1016) [shard 1191 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (35) [shard 1192 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (47) [shard 1192 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) [shard 1193 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 47 [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.2ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 11920000000000048], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 11920000000000048], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 36], ["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 26], ["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11930000000000026], ["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11930000000000027], ["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 11930000000000044], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11920000000000037], ["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11930000000000028], ["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11930000000000029], ["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (48) [shard 1192 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (48) [shard 1192 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (11920000000000048) [shard 1193 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (36) [shard 1192 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (26, 27) [shard 1193 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (44) [shard 1193 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (44) [shard 1193 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (28, 29) [shard 1193 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 1192 master]  (0.2ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 11930000000000045], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 38]] [shard 1192 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 45 LIMIT 1 [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 50 LIMIT 1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 39]] [shard 1192 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 50 LIMIT 1 [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["owner_id", 1017], ["owner_type", "Appendage"], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["value", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 99]] [shard 1191 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1017 LIMIT 1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master]  (0.2ms) UPDATE "features" SET "owner_id" = 11920000000000051, "owner_type" = 'User', "updated_at" = '2014-10-22 18:24:38.174967' WHERE "features"."id" = 99 [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 99]] [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["owner_id", 52], ["owner_type", "User"], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["value", 1]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["owner_id", 11920000000000052], ["owner_type", "User"], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["value", 2]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 52 AND "features"."owner_type" = 'User' [shard 1192 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 52]] [shard 1192 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 52 AND "features"."owner_type" = 'User' [shard 1192 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 11920000000000052 AND "features"."owner_type" = 'User' [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1191], ["name", nil]] [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1192], ["name", "switchman_test_shard_1192"]] [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1193], ["name", "switchman_test_shard_1193"]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:25:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:25:38 UTC +00:00]] [shard 1192 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.0ms) ROLLBACK [shard 1192 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1191], ["name", nil]] [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1192], ["name", "switchman_test_shard_1192"]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1193], ["name", "switchman_test_shard_1193"]] [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1192 LIMIT 1 [shard 1191 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 54]] [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 55]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 11920000000000055 LIMIT 1 [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 56 LIMIT 1 [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) LIMIT 1 [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 58 LIMIT 1 [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 1191 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1191 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1192 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1191], ["name", nil]] [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1192], ["name", "switchman_test_shard_1192"]] [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1193], ["name", "switchman_test_shard_1193"]] [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1192 LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1193 LIMIT 1 [shard 1191 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (60) [shard 1192 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (50) [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 1192 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 32 [shard 1193 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 1192 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 32 [shard 1193 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 1192 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 32 [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 62], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master] SQL (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 1192 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 1193 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 1192 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 1193 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 1192 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 63], ["value", 1]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 11930000000000053], ["value", 3]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 11920000000000063], ["value", 2]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 53], ["value", 4]] [shard 1193 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 53], ["value", 5]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.5ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1192 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1193 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1192 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1193 master]  (0.1ms) SHOW max_identifier_length [shard 1193 master]  (0.5ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1192 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1193 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1192 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (63) [shard 1192 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 1193 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1193 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 1193 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (63) [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 64], ["value", 1]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 11930000000000054], ["value", 3]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 11920000000000064], ["value", 2]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 54], ["value", 4]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 54], ["value", 5]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1192 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1193 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1192 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1193 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1192 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1193 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1192 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [shard 1192 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 1193 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1193 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 1193 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 65], ["value", 1]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 11930000000000055], ["value", 3]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 11920000000000065], ["value", 2]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 55], ["value", 4]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 55], ["value", 5]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1192 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1193 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1192 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1193 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1192 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1193 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1192 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 1192 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 1193 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1193 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 1193 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 66], ["value", 1]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 11930000000000056], ["value", 3]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 11920000000000066], ["value", 2]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 56], ["value", 4]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 56], ["value", 5]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1192 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1193 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1192 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1193 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1192 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1193 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1192 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 1192 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 1193 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1193 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 1193 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 67], ["value", 1]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 11930000000000057], ["value", 3]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 11920000000000067], ["value", 2]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 57], ["value", 4]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 57], ["value", 5]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 67], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 68], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 69], ["value", 1]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 11930000000000058], ["value", 3]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 11920000000000069], ["value", 2]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 58], ["value", 4]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 58], ["value", 5]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1192 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1193 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1192 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1193 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1192 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1193 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1192 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (69) [shard 1192 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 1193 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1193 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 1193 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (69) [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 70], ["value", 1]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 70], ["value", 2]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 59], ["value", 3]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 59], ["value", 4]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 59], ["value", 5]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 70 [shard 1192 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 1192 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 59 [shard 1193 master]  (0.1ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 1193 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (57, 58) [shard 1192 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (52, 53, 54) [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 71], ["value", 1]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 71], ["value", 2]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 60], ["value", 3]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 60], ["value", 4]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 60], ["value", 5]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 71 [shard 1192 master]  (0.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 1192 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 60 [shard 1193 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 1193 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (59, 60) [shard 1192 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (55, 56, 57) [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 72], ["value", 1]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 72], ["value", 2]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 61], ["value", 3]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 61], ["value", 4]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 61], ["value", 5]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 72 [shard 1192 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 1192 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 61 [shard 1193 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 1193 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (61, 62) [shard 1192 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (58, 59, 60) [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 73], ["value", 1]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 73], ["value", 2]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 62], ["value", 3]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 62], ["value", 4]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 62], ["value", 5]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 73 [shard 1192 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 1192 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 62 [shard 1193 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 1193 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (63, 64) [shard 1192 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (61, 62, 63) [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 74], ["value", 1]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 74], ["value", 2]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 63], ["value", 3]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 63], ["value", 4]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", 63], ["value", 5]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 74 [shard 1192 master]  (0.2ms) SELECT COUNT(*) FROM "appendages"  [shard 1192 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 63 [shard 1193 master]  (0.1ms) SELECT COUNT(*) FROM "appendages"  [shard 1193 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (65, 66) [shard 1192 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (64, 65, 66) [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1191], ["name", nil]] [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1192], ["name", "switchman_test_shard_1192"]] [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1193], ["name", "switchman_test_shard_1193"]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1192 LIMIT 1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1193 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.2ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master] SQL (4.7ms) DELETE FROM "switchman_shards" [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1191], ["name", nil]] [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1192], ["name", "switchman_test_shard_1192"]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1193], ["name", "switchman_test_shard_1193"]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.0ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (1191, 1192) AND (id IN (1192,1193)) [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1191], ["name", nil]] [shard 1191 master]  (0.5ms) COMMIT [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1192], ["name", "switchman_test_shard_1192"]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1193], ["name", "switchman_test_shard_1193"]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1191], ["name", nil]] [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1192], ["name", "switchman_test_shard_1192"]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1193], ["name", "switchman_test_shard_1193"]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1192 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.0ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.0ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.0ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1191 master]  (0.4ms) COMMIT [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1191 master]  (0.4ms) COMMIT [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1191 master] SQL (0.2ms) DELETE FROM "users" [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1191 master] SQL (0.1ms) DELETE FROM "users" [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1191 master]  (0.4ms) COMMIT [shard 1191 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1191 master] SQL (0.5ms) DELETE FROM "users" [shard 1191 master] SQL (0.1ms) DELETE FROM "users" [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2078]] [shard 1191 master] CACHE (0.0ms) 1191::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2078]] CACHE (0.0ms) 1191::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2078]]  (0.1ms) BEGIN [shard 1191 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-10-22 18:24:38.741872' WHERE "users"."id" = 2078 [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2078]] [shard 1191 master] CACHE (0.0ms) 1191::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2078]] SQL (0.3ms) DELETE FROM "users" [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1191 master] SQL (0.3ms) DELETE FROM "users" [shard 1191 master] SQL (0.1ms) DELETE FROM "users" [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.0ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.0ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1191 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.0ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.0ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1191 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-10-22 18:24:38.778254' [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master] User Load (0.3ms) SELECT "users".* FROM "users"  [shard 1191 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-10-22 18:24:38.784049' [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1191 master]  (0.4ms) COMMIT [shard 1191 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1191 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-10-22 18:24:38.787810' [shard 1191 master] SQL (0.3ms) DELETE FROM "users" [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1191 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-10-22 18:24:38.792256' [shard 1191 master] SQL (0.3ms) DELETE FROM "users" [shard 1191 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1191], ["name", nil]] [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1192], ["name", "switchman_test_shard_1192"]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1193], ["name", "switchman_test_shard_1193"]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.0ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["owner_id", 2085], ["owner_type", "User"], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["value", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 100 LIMIT 1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1192 LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1193 LIMIT 1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master] SQL (6.1ms) DELETE FROM "switchman_shards" [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master]  (0.0ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master]  (0.0ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master]  (0.0ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1191], ["name", nil]] [shard 1191 master]  (4.9ms) COMMIT [shard 1191 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1192], ["name", "switchman_test_shard_1192"]] [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1193], ["name", "switchman_test_shard_1193"]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '27' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "27"], ["default", false], ["name", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.0ms) select sqlite_version(*) [shard 1206 deploy]  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 1206 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1206 deploy]  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1206 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 1206 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1206 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1206 deploy]  (0.7ms) commit transaction [shard 1206 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 1206 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1206 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1206 deploy]  (0.7ms) commit transaction [shard 1206 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 1206 deploy]  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1206 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1206 deploy]  (0.7ms) commit transaction [shard 1206 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 1206 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1206 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1206 deploy]  (0.7ms) commit transaction [shard 1206 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 1206 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1206 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1206 deploy]  (0.8ms) commit transaction [shard 1206 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 1206 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 1206 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1206 deploy]  (0.6ms) commit transaction [shard 1206 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 1206 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1206 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1206 deploy]  (0.7ms) commit transaction [shard 1206 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_1206.sqlite3' WHERE "switchman_shards"."id" = 1206 [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.0ms) begin transaction [shard 1206 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1206 master]  (0.7ms) commit transaction [shard 1206 master] Drop failed: No such file or directory @ unlink_internal - db/shard_1206.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1206]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '28' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "28"], ["default", false], ["name", "public"]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (6.4ms) CREATE SCHEMA switchman_test_shard_1207 [shard 1207 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1207 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1207 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1207 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1207 deploy]  (2.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1207 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1207 deploy]  (0.3ms) COMMIT [shard 1207 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1207 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1207 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1207 deploy]  (0.3ms) COMMIT [shard 1207 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1207 deploy]  (1.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1207 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1207 deploy]  (0.3ms) COMMIT [shard 1207 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1207 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1207 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1207 deploy]  (0.3ms) COMMIT [shard 1207 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1207 deploy]  (1.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1207 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1207 deploy]  (0.3ms) COMMIT [shard 1207 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1207 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1207 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1207 deploy]  (0.2ms) COMMIT [shard 1207 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1207 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1207 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1207 deploy]  (0.3ms) COMMIT [shard 1207 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1207' WHERE "switchman_shards"."id" = 1207 [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) BEGIN [shard 1207 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:38 UTC +00:00]] [shard 1207 master]  (0.3ms) COMMIT [shard 1207 master]  (4.7ms) DROP SCHEMA switchman_test_shard_1207 CASCADE [shard 1207 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1207]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 1191 master]  (0.2ms) CREATE SCHEMA switchman_test_shard_1208 [shard 1208 deploy]  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1208 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1208 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1208 deploy] Migrating to CreateUsers (20130403132607)  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1208 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1208 deploy] Migrating to CreateAppendages (20130411202442)  (1.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1208 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1208 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1208 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1208 deploy] Migrating to CreateDigits (20131022202028)  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1208 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1208 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1208 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1208 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1208 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1208 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1208 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1208 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1208' WHERE "switchman_shards"."id" = 1208 [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1208 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:39 UTC +00:00]] [shard 1208 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1208 master]  (2.9ms) DROP SCHEMA switchman_test_shard_1208 CASCADE [shard 1208 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1208]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (2.2ms) ROLLBACK [shard 1191 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1191], ["name", nil]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1192], ["name", "switchman_test_shard_1192"]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1193], ["name", "switchman_test_shard_1193"]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1192 LIMIT 1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.0ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1209]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1210]] [shard 1191 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1210 LIMIT 1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.2ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '29' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "29"], ["default", false], ["name", "public"]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1211 [shard 1211 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1211 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1211 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1211 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1211 deploy]  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1211 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1211 deploy]  (0.4ms) COMMIT [shard 1211 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 1211 deploy]  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1211 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1211 deploy]  (0.3ms) COMMIT [shard 1211 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1211 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1211 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1211 deploy]  (0.3ms) COMMIT [shard 1211 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1211 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1211 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1211 deploy]  (0.3ms) COMMIT [shard 1211 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1211 deploy]  (1.4ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1211 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1211 deploy]  (0.3ms) COMMIT [shard 1211 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 1211 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1211 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1211 deploy]  (0.3ms) COMMIT [shard 1211 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1211 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1211 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1211 deploy]  (0.3ms) COMMIT [shard 1211 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1211' WHERE "switchman_shards"."id" = 1211 [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) BEGIN [shard 1211 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:39 UTC +00:00]] [shard 1211 master]  (0.3ms) COMMIT [shard 1211 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1211 master]  (4.7ms) DROP SCHEMA switchman_test_shard_1211 CASCADE [shard 1211 deploy]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 1211 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.0ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1193 LIMIT 1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.0ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.0ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11193 LIMIT 1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.1ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.0ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.0ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.0ms) ROLLBACK [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) ROLLBACK [shard 1193 master]  (0.0ms) ROLLBACK [shard 1191 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1191], ["name", nil]] [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1192], ["name", "switchman_test_shard_1192"]] [shard 1191 master]  (0.3ms) COMMIT [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1193], ["name", "switchman_test_shard_1193"]] [shard 1191 master]  (0.2ms) COMMIT [shard 1191 master]  (0.0ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "31"], ["default", false], ["name", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1191 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "31"], ["default", false], ["name", nil]] [shard 1191 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1191 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1191 master] SQL (6.0ms) DELETE FROM "switchman_shards" [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1191], ["name", nil]] [shard 1191 master]  (6.0ms) COMMIT [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1192], ["name", "switchman_test_shard_1192"]] [shard 1191 master]  (5.9ms) COMMIT [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1193], ["name", "switchman_test_shard_1193"]] [shard 1191 master]  (4.8ms) COMMIT [shard 1191 master]  (0.1ms) BEGIN [shard 1191 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1192]] [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1193]] [shard 1191 master]  (0.0ms) BEGIN [shard 1193 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1192 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:24:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:24:39 UTC +00:00]] [shard 1192 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1192 master]  (0.1ms) ROLLBACK [shard 1193 master]  (0.1ms) ROLLBACK [shard 1192 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1191 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1191 master]  (5.3ms) DROP SCHEMA switchman_test_shard_1192 CASCADE [shard 1192 deploy]  (0.1ms) BEGIN SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1192]]  (0.1ms) COMMIT  (6.3ms) DROP SCHEMA switchman_test_shard_1193 CASCADE [shard 1193 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1193]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.2ms) CREATE SCHEMA switchman_test_shard_1215 [shard 1215 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1215 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1215 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1215 deploy] Migrating to CreateUsers (20130403132607)  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1215 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1215 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1215 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1215 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1215 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1215 deploy] Migrating to CreateDigits (20131022202028)  (1.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1215 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1215 deploy] Migrating to CreateFeatures (20131206172923)  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1215 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1215 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1215 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1215 deploy] Migrating to CreateRoots (20140219183820)  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1215 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1215 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1215' WHERE "switchman_shards"."id" = 1215 [shard 1214 master]  (0.7ms) COMMIT [shard 1214 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1214 master]  (0.1ms) BEGIN [shard 1214 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 1214 master]  (0.2ms) COMMIT [shard 1214 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_1216 [shard 1216 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1216 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1216 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1216 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1216 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1216 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1216 deploy]  (0.3ms) COMMIT [shard 1216 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1216 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1216 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1216 deploy]  (0.3ms) COMMIT [shard 1216 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1216 deploy]  (1.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1216 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1216 deploy]  (0.3ms) COMMIT [shard 1216 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1216 deploy]  (1.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1216 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1216 deploy]  (0.3ms) COMMIT [shard 1216 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1216 deploy]  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1216 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1216 deploy]  (0.3ms) COMMIT [shard 1216 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1216 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1216 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1216 deploy]  (0.2ms) COMMIT [shard 1216 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1216 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1216 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1216 deploy]  (0.3ms) COMMIT [shard 1216 deploy]  (0.1ms) BEGIN [shard 1214 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1216' WHERE "switchman_shards"."id" = 1216 [shard 1214 master]  (0.2ms) COMMIT [shard 1214 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1214 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1214 master]  (0.1ms) BEGIN [shard 1214 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1214 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1214], ["name", nil]] [shard 1214 master]  (0.3ms) COMMIT [shard 1214 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1214 master]  (0.1ms) BEGIN [shard 1214 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1215], ["name", "switchman_test_shard_1215"]] [shard 1214 master]  (0.5ms) COMMIT [shard 1214 master]  (0.1ms) BEGIN [shard 1214 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1216], ["name", "switchman_test_shard_1216"]] [shard 1214 master]  (0.2ms) COMMIT [shard 1214 master]  (0.1ms) BEGIN [shard 1214 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1214 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1215]] [shard 1214 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1216]] [shard 1214 master]  (0.1ms) BEGIN [shard 1216 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1215 master] SQL (1.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00]] [shard 1215 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1215 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1216 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00]] [shard 1216 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1216 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1214 master] SQL (0.9ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1215 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1215 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1215 LIMIT 1 [shard 1214 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1216 master] SQL (6.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00], ["user_id", 12150000000000001], ["value", nil]] [shard 1216 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1216 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1216 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00], ["user_id", 12150000000000001], ["value", nil]] [shard 1216 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1216 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1214 master] SQL (6.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1], ["created_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00], ["value", nil]] [shard 1215 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1215 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1214 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1216 master] SQL (0.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1], ["created_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00], ["value", nil]] [shard 1216 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1216 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1214 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1216 LIMIT 1 [shard 1214 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1215 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12160000000000001], ["created_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00], ["value", nil]] [shard 1215 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1215 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1215 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12160000000000002], ["created_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00], ["value", nil]] [shard 1215 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1215 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1215 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00], ["user_id", 12160000000000001], ["value", nil]] [shard 1215 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1215 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1214 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1216 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1216 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1216 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1214 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1214 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1216 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1216 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1216 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1214 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1216 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12150000000000002], ["created_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00], ["value", nil]] [shard 1216 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1216 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1215 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12160000000000003], ["created_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00], ["value", nil]] [shard 1215 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1215 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1215 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12160000000000004], ["created_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:25:15 UTC +00:00], ["value", nil]] [shard 1215 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1215 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1) [shard 1215 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (1) [shard 1215 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (12150000000000001) [shard 1216 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1) [shard 1215 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1, 2) [shard 1216 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1) [shard 1216 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (1) [shard 1216 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (3, 4) [shard 1216 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 1 [shard 1215 master]  (0.1ms) ROLLBACK [shard 1216 master]  (0.1ms) ROLLBACK [shard 1215 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1214 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1214 master]  (4.5ms) DROP SCHEMA switchman_test_shard_1215 CASCADE [shard 1215 deploy]  (0.1ms) BEGIN SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1215]]  (0.1ms) COMMIT  (4.8ms) DROP SCHEMA switchman_test_shard_1216 CASCADE [shard 1216 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1216]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1218 [shard 1218 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1218 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1218 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1218 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1218 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1218 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1218 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1218 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1218 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1218 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1218 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1218 deploy] Migrating to CreateFeatures (20131206172923)  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1218 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1218 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1218 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1218 deploy] Migrating to CreateRoots (20140219183820)  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1218 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1218 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1218' WHERE "switchman_shards"."id" = 1218 [shard 1217 master]  (0.7ms) COMMIT [shard 1217 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1217 master]  (0.1ms) BEGIN [shard 1217 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 1217 master]  (0.2ms) COMMIT [shard 1217 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1219 [shard 1219 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1219 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1219 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1219 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1219 deploy]  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1219 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1219 deploy]  (0.3ms) COMMIT [shard 1219 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1219 deploy]  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1219 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1219 deploy]  (0.3ms) COMMIT [shard 1219 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1219 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1219 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1219 deploy]  (0.3ms) COMMIT [shard 1219 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1219 deploy]  (1.3ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1219 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1219 deploy]  (0.3ms) COMMIT [shard 1219 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1219 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1219 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1219 deploy]  (0.4ms) COMMIT [shard 1219 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1219 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1219 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1219 deploy]  (0.2ms) COMMIT [shard 1219 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1219 deploy]  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1219 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1219 deploy]  (0.3ms) COMMIT [shard 1219 deploy]  (0.1ms) BEGIN [shard 1217 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1219' WHERE "switchman_shards"."id" = 1219 [shard 1217 master]  (0.3ms) COMMIT [shard 1217 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1217 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1217 master]  (0.1ms) BEGIN [shard 1217 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1217 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1217], ["name", nil]] [shard 1217 master]  (0.3ms) COMMIT [shard 1217 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1217 master]  (0.0ms) BEGIN [shard 1217 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1218], ["name", "switchman_test_shard_1218"]] [shard 1217 master]  (0.5ms) COMMIT [shard 1217 master]  (0.1ms) BEGIN [shard 1217 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1219], ["name", "switchman_test_shard_1219"]] [shard 1217 master]  (0.2ms) COMMIT [shard 1217 master]  (0.1ms) BEGIN [shard 1217 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1217 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1218]] [shard 1217 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1219]] [shard 1217 master]  (0.1ms) BEGIN [shard 1219 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1218 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00]] [shard 1218 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1218 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1219 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00]] [shard 1219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1219 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1217 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1218 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1218 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1218 LIMIT 1 [shard 1217 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1219 master] SQL (6.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00], ["user_id", 12180000000000001], ["value", nil]] [shard 1219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1219 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1219 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00], ["user_id", 12180000000000001], ["value", nil]] [shard 1219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1219 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1217 master] SQL (6.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1], ["created_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00], ["value", nil]] [shard 1218 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1218 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1217 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1219 master] SQL (0.9ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1], ["created_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00], ["value", nil]] [shard 1219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1217 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1219 LIMIT 1 [shard 1217 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1218 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12190000000000001], ["created_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00], ["value", nil]] [shard 1218 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1218 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1218 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12190000000000002], ["created_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00], ["value", nil]] [shard 1218 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1218 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1218 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00], ["user_id", 12190000000000001], ["value", nil]] [shard 1218 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1218 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1217 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1219 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1217 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1217 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1219 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1217 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1219 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12180000000000002], ["created_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00], ["value", nil]] [shard 1219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1219 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1218 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12190000000000003], ["created_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00], ["value", nil]] [shard 1218 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1218 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1218 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12190000000000004], ["created_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:26:08 UTC +00:00], ["value", nil]] [shard 1218 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1218 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1) [shard 1218 master] Appendage Load (0.6ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (1) [shard 1218 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (12180000000000001) [shard 1219 master] Digit Load (0.6ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1) [shard 1218 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1, 2) [shard 1219 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1) [shard 1219 master] Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.2ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'development' AND "switchman_shards"."name" IS NULL LIMIT 1  (5.9ms) SELECT * FROM unnest(current_schemas(false)) [shard master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'production' AND "switchman_shards"."name" IS NULL LIMIT 1 SQL (1.0ms) DELETE FROM "switchman_shards" [shard 1217 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1217 master]  (0.1ms) BEGIN [shard 1217 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1217 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]] [shard 1217 master]  (0.3ms) COMMIT [shard 1217 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1217 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1220 master]  (0.1ms) BEGIN [shard 1220 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 1220 master]  (0.2ms) CREATE SCHEMA switchman_test_shard_1221 [shard 1221 deploy]  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1221 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1221 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1221 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1221 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1221 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1221 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1221 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1221 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1221 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1221 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1221 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1221 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1221 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1221 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1221 deploy] Migrating to CreateRoots (20140219183820)  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1221 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1221 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1221' WHERE "switchman_shards"."id" = 1221 [shard 1220 master]  (0.8ms) COMMIT [shard 1220 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1220 master]  (0.1ms) BEGIN [shard 1220 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 1220 master]  (0.3ms) COMMIT [shard 1220 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1222 [shard 1222 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1222 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1222 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1222 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1222 deploy]  (3.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1222 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1222 deploy]  (0.3ms) COMMIT [shard 1222 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 1222 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1222 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1222 deploy]  (0.3ms) COMMIT [shard 1222 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1222 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1222 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1222 deploy]  (0.3ms) COMMIT [shard 1222 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1222 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1222 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1222 deploy]  (0.3ms) COMMIT [shard 1222 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1222 deploy]  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1222 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1222 deploy]  (0.3ms) COMMIT [shard 1222 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1222 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1222 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1222 deploy]  (0.3ms) COMMIT [shard 1222 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1222 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1222 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1222 deploy]  (0.3ms) COMMIT [shard 1222 deploy]  (0.1ms) BEGIN [shard 1220 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1222' WHERE "switchman_shards"."id" = 1222 [shard 1220 master]  (0.3ms) COMMIT [shard 1220 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1220 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1220 master]  (0.1ms) BEGIN [shard 1220 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1220 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1220], ["name", nil]] [shard 1220 master]  (0.3ms) COMMIT [shard 1220 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1220 master]  (0.0ms) BEGIN [shard 1220 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1221], ["name", "switchman_test_shard_1221"]] [shard 1220 master]  (0.3ms) COMMIT [shard 1220 master]  (0.0ms) BEGIN [shard 1220 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1222], ["name", "switchman_test_shard_1222"]] [shard 1220 master]  (0.3ms) COMMIT [shard 1220 master]  (0.0ms) BEGIN [shard 1220 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1220 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1221]] [shard 1220 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1222]] [shard 1220 master]  (0.1ms) BEGIN [shard 1222 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1221 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00]] [shard 1221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1221 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1222 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00]] [shard 1222 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1222 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1220 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1221 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1221 LIMIT 1 [shard 1220 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1222 master] SQL (6.0ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00], ["user_id", 12210000000000001], ["value", nil]] [shard 1222 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1222 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1222 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00], ["user_id", 12210000000000001], ["value", nil]] [shard 1222 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1222 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1220 master] SQL (6.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1], ["created_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00], ["value", nil]] [shard 1221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1221 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1220 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1222 master] SQL (0.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1], ["created_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00], ["value", nil]] [shard 1222 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1222 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1220 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1222 LIMIT 1 [shard 1220 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1221 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12220000000000001], ["created_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00], ["value", nil]] [shard 1221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1221 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1221 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12220000000000002], ["created_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00], ["value", nil]] [shard 1221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1221 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00], ["user_id", 12220000000000001], ["value", nil]] [shard 1221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1221 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1220 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1222 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1222 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1222 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1220 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1220 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1222 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1222 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1222 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1220 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1222 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12210000000000002], ["created_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00], ["value", nil]] [shard 1222 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1222 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1221 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12220000000000003], ["created_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00], ["value", nil]] [shard 1221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1221 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1221 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12220000000000004], ["created_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:27:06 UTC +00:00], ["value", nil]] [shard 1221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1221 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1) [shard 1221 master] Appendage Load (0.7ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (1) [shard 1221 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (12210000000000001) [shard 1222 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1) [shard 1221 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1, 2) [shard 1222 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1) [shard 1222 master] Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.2ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'development' AND "switchman_shards"."name" IS NULL LIMIT 1  (0.4ms) SELECT * FROM unnest(current_schemas(false)) [shard master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'production' AND "switchman_shards"."name" IS NULL LIMIT 1 SQL (1.1ms) DELETE FROM "switchman_shards" [shard 1220 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1220 master]  (0.1ms) BEGIN [shard 1220 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1220 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]] [shard 1220 master]  (0.4ms) COMMIT [shard 1220 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1220 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1223 master]  (0.1ms) BEGIN [shard 1223 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 1223 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_1224 [shard 1224 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1224 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1224 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1224 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1224 deploy]  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1224 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1224 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1224 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1224 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1224 deploy] Migrating to CreateDigits (20131022202028)  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1224 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1224 deploy] Migrating to CreateFeatures (20131206172923)  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1224 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1224 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1224 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1224 deploy] Migrating to CreateRoots (20140219183820)  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1224 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1224 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1224' WHERE "switchman_shards"."id" = 1224 [shard 1223 master]  (0.8ms) COMMIT [shard 1223 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1223 master]  (0.1ms) BEGIN [shard 1223 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 1223 master]  (0.2ms) COMMIT [shard 1223 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1225 [shard 1225 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1225 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1225 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1225 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1225 deploy]  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1225 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1225 deploy]  (0.3ms) COMMIT [shard 1225 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1225 deploy]  (1.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1225 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1225 deploy]  (0.3ms) COMMIT [shard 1225 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1225 deploy]  (1.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1225 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1225 deploy]  (0.3ms) COMMIT [shard 1225 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1225 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1225 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1225 deploy]  (0.3ms) COMMIT [shard 1225 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1225 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1225 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1225 deploy]  (0.3ms) COMMIT [shard 1225 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1225 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1225 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1225 deploy]  (0.3ms) COMMIT [shard 1225 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1225 deploy]  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1225 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1225 deploy]  (0.3ms) COMMIT [shard 1225 deploy]  (0.1ms) BEGIN [shard 1223 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1225' WHERE "switchman_shards"."id" = 1225 [shard 1223 master]  (0.2ms) COMMIT [shard 1223 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1223 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1223 master]  (0.1ms) BEGIN [shard 1223 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1223 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1223], ["name", nil]] [shard 1223 master]  (0.3ms) COMMIT [shard 1223 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1223 master]  (0.0ms) BEGIN [shard 1223 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1224], ["name", "switchman_test_shard_1224"]] [shard 1223 master]  (0.3ms) COMMIT [shard 1223 master]  (0.0ms) BEGIN [shard 1223 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1225], ["name", "switchman_test_shard_1225"]] [shard 1223 master]  (0.2ms) COMMIT [shard 1223 master]  (0.0ms) BEGIN [shard 1223 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1223 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1224]] [shard 1223 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1225]] [shard 1223 master]  (0.1ms) BEGIN [shard 1225 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1224 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00]] [shard 1224 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1224 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1225 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00]] [shard 1225 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1225 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1223 master] SQL (1.0ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1224 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1224 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1224 LIMIT 1 [shard 1223 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1225 master] SQL (6.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00], ["user_id", 12240000000000001], ["value", nil]] [shard 1225 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1225 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1225 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00], ["user_id", 12240000000000001], ["value", nil]] [shard 1225 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1225 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1223 master] SQL (6.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1], ["created_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00], ["value", nil]] [shard 1224 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1224 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1223 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1225 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1], ["created_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00], ["value", nil]] [shard 1225 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1225 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1223 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1225 LIMIT 1 [shard 1223 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1224 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12250000000000001], ["created_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00], ["value", nil]] [shard 1224 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1224 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1224 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12250000000000002], ["created_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00], ["value", nil]] [shard 1224 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1224 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1224 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00], ["user_id", 12250000000000001], ["value", nil]] [shard 1224 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1224 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1223 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1225 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1225 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1225 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1223 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1223 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1225 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1225 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1225 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1223 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1225 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12240000000000002], ["created_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00], ["value", nil]] [shard 1225 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1225 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1224 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12250000000000003], ["created_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00], ["value", nil]] [shard 1224 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1224 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1224 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12250000000000004], ["created_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:33:48 UTC +00:00], ["value", nil]] [shard 1224 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1224 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1) [shard 1224 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (1) [shard 1224 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (12240000000000001) [shard 1225 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1) [shard 1224 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1, 2) [shard 1225 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1) [shard 1225 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (1) [shard 1225 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (3, 4) [shard 1225 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 1 [shard 1224 master]  (0.1ms) ROLLBACK [shard 1225 master]  (0.1ms) ROLLBACK [shard 1224 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1223 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1223 master]  (4.5ms) DROP SCHEMA switchman_test_shard_1224 CASCADE [shard 1224 deploy]  (0.1ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1224]]  (0.1ms) COMMIT  (4.9ms) DROP SCHEMA switchman_test_shard_1225 CASCADE [shard 1225 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1225]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1227 [shard 1227 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1227 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1227 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1227 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1227 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1227 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1227 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1227 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1227 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1227 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1227 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1227 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1227 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1227 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1227 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1227 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1227 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1227 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1227' WHERE "switchman_shards"."id" = 1227 [shard 1226 master]  (0.6ms) COMMIT [shard 1226 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1226 master]  (0.1ms) BEGIN [shard 1226 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 1226 master]  (0.2ms) COMMIT [shard 1226 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1228 [shard 1228 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1228 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1228 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1228 deploy] Migrating to CreateUsers (20130403132607)  (0.2ms) BEGIN [shard 1228 deploy]  (2.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1228 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1228 deploy]  (0.3ms) COMMIT [shard 1228 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1228 deploy]  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1228 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1228 deploy]  (0.3ms) COMMIT [shard 1228 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1228 deploy]  (1.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1228 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1228 deploy]  (0.3ms) COMMIT [shard 1228 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1228 deploy]  (1.3ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1228 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1228 deploy]  (0.2ms) COMMIT [shard 1228 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1228 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1228 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1228 deploy]  (0.3ms) COMMIT [shard 1228 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1228 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1228 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1228 deploy]  (0.2ms) COMMIT [shard 1228 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1228 deploy]  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1228 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1228 deploy]  (0.3ms) COMMIT [shard 1228 deploy]  (0.1ms) BEGIN [shard 1226 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1228' WHERE "switchman_shards"."id" = 1228 [shard 1226 master]  (0.3ms) COMMIT [shard 1226 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1226 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1226 master]  (0.1ms) BEGIN [shard 1226 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1226 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1226], ["name", nil]] [shard 1226 master]  (0.3ms) COMMIT [shard 1226 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1226 master]  (0.1ms) BEGIN [shard 1226 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1227], ["name", "switchman_test_shard_1227"]] [shard 1226 master]  (0.4ms) COMMIT [shard 1226 master]  (0.1ms) BEGIN [shard 1226 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1228], ["name", "switchman_test_shard_1228"]] [shard 1226 master]  (0.3ms) COMMIT [shard 1226 master]  (0.1ms) BEGIN [shard 1226 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1226 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1227]] [shard 1226 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1228]] [shard 1226 master]  (0.1ms) BEGIN [shard 1228 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1227 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00]] [shard 1227 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1227 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1228 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00]] [shard 1228 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1228 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1226 master] SQL (0.9ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1227 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1227 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1227 LIMIT 1 [shard 1226 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1228 master] SQL (6.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00], ["user_id", 12270000000000001], ["value", nil]] [shard 1228 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1228 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1228 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00], ["user_id", 12270000000000001], ["value", nil]] [shard 1228 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1228 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1226 master] SQL (5.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1], ["created_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00], ["value", nil]] [shard 1227 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1227 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1226 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1228 master] SQL (0.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1], ["created_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00], ["value", nil]] [shard 1228 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1228 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1226 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1228 LIMIT 1 [shard 1226 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1227 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12280000000000001], ["created_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00], ["value", nil]] [shard 1227 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1227 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1227 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12280000000000002], ["created_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00], ["value", nil]] [shard 1227 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1227 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1227 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00], ["user_id", 12280000000000001], ["value", nil]] [shard 1227 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1227 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1226 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1228 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1228 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1228 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1226 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1226 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1228 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1228 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1228 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1226 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1228 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12270000000000002], ["created_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00], ["value", nil]] [shard 1228 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1228 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1227 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12280000000000003], ["created_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00], ["value", nil]] [shard 1227 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1227 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1228 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4], ["created_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:34:54 UTC +00:00], ["value", nil]] [shard 1228 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1228 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1) [shard 1227 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (1) [shard 1227 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (12270000000000001) [shard 1228 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1) [shard 1227 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1, 2) [shard 1228 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1) [shard 1228 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (1) [shard 1228 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (3, 4) [shard 1228 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 1 [shard 1227 master]  (0.2ms) ROLLBACK [shard 1228 master]  (0.1ms) ROLLBACK [shard 1227 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1226 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1226 master]  (4.7ms) DROP SCHEMA switchman_test_shard_1227 CASCADE [shard 1227 deploy]  (0.1ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1227]]  (0.1ms) COMMIT  (4.9ms) DROP SCHEMA switchman_test_shard_1228 CASCADE [shard 1228 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1228]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.4ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.5ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.4ms) CREATE SCHEMA switchman_test_shard_1230 [shard 1230 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1230 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1230 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1230 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1230 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1230 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1230 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1230 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1230 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1230 deploy] Migrating to CreateDigits (20131022202028)  (1.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1230 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1230 deploy] Migrating to CreateFeatures (20131206172923)  (1.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1230 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1230 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1230 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1230 deploy] Migrating to CreateRoots (20140219183820)  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1230 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1230 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1230' WHERE "switchman_shards"."id" = 1230 [shard 1229 master]  (1.2ms) COMMIT [shard 1229 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1229 master]  (0.1ms) BEGIN [shard 1229 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 1229 master]  (0.3ms) COMMIT [shard 1229 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1231 [shard 1231 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1231 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1231 deploy]  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1231 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1231 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1231 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1231 deploy]  (0.3ms) COMMIT [shard 1231 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 1231 deploy]  (2.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1231 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1231 deploy]  (0.3ms) COMMIT [shard 1231 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1231 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1231 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1231 deploy]  (0.3ms) COMMIT [shard 1231 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1231 deploy]  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1231 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1231 deploy]  (0.3ms) COMMIT [shard 1231 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1231 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1231 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1231 deploy]  (0.3ms) COMMIT [shard 1231 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1231 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1231 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1231 deploy]  (0.2ms) COMMIT [shard 1231 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) BEGIN [shard 1231 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1231 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1231 deploy]  (0.6ms) COMMIT [shard 1231 deploy]  (0.1ms) BEGIN [shard 1229 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1231' WHERE "switchman_shards"."id" = 1231 [shard 1229 master]  (0.4ms) COMMIT [shard 1229 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1229 master]  (0.1ms) BEGIN [shard 1229 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1229 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1229], ["name", nil]] [shard 1229 master]  (0.3ms) COMMIT [shard 1229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1229 master]  (0.1ms) BEGIN [shard 1229 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1230], ["name", "switchman_test_shard_1230"]] [shard 1229 master]  (0.4ms) COMMIT [shard 1229 master]  (0.1ms) BEGIN [shard 1229 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1231], ["name", "switchman_test_shard_1231"]] [shard 1229 master]  (0.3ms) COMMIT [shard 1229 master]  (0.0ms) BEGIN [shard 1229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1229 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1230]] [shard 1229 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1231]] [shard 1229 master]  (0.1ms) BEGIN [shard 1231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1230 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00]] [shard 1230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1231 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00]] [shard 1231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1229 master] SQL (0.9ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1230 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1230 LIMIT 1 [shard 1229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1231 master] SQL (6.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00], ["user_id", 12300000000000001], ["value", nil]] [shard 1231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1231 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00], ["user_id", 12300000000000001], ["value", nil]] [shard 1231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1229 master] SQL (6.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1], ["created_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00], ["value", nil]] [shard 1230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1231 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1], ["created_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00], ["value", nil]] [shard 1231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1231 LIMIT 1 [shard 1229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1230 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12310000000000001], ["created_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00], ["value", nil]] [shard 1230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1230 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12310000000000002], ["created_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00], ["value", nil]] [shard 1230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1230 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00], ["user_id", 12310000000000001], ["value", nil]] [shard 1230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1230 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1229 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1231 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1229 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1231 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12300000000000002], ["created_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00], ["value", nil]] [shard 1231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1231 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1230 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12310000000000003], ["created_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00], ["value", nil]] [shard 1230 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1230 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1231 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4], ["created_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:40:10 UTC +00:00], ["value", nil]] [shard 1231 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1231 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1) [shard 1230 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (1) [shard 1230 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (12300000000000001) [shard 1231 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1) [shard 1230 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1, 2) [shard 1231 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1) [shard 1231 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (1) [shard 1231 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (3, 4) [shard 1231 master] SQL (0.3ms) DELETE FROM "digits" WHERE "digits"."id" = 1 [shard 1230 master]  (0.2ms) ROLLBACK [shard 1231 master]  (0.2ms) ROLLBACK [shard 1230 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1229 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1229 master]  (4.5ms) DROP SCHEMA switchman_test_shard_1230 CASCADE [shard 1230 deploy]  (0.1ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1230]]  (0.1ms) COMMIT  (5.2ms) DROP SCHEMA switchman_test_shard_1231 CASCADE [shard 1231 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1231]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.9ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.2ms) CREATE SCHEMA switchman_test_shard_1233 [shard 1233 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1233 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1233 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1233 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1233 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1233 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1233 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1233 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1233 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1233 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1233 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1233 deploy] Migrating to CreateFeatures (20131206172923)  (1.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1233 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1233 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1233 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1233 deploy] Migrating to CreateRoots (20140219183820)  (1.4ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1233 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1233 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1233' WHERE "switchman_shards"."id" = 1233 [shard 1232 master]  (0.7ms) COMMIT [shard 1232 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1232 master]  (0.1ms) BEGIN [shard 1232 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 1232 master]  (0.3ms) COMMIT [shard 1232 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1234 [shard 1234 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1234 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1234 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1234 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1234 deploy]  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1234 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1234 deploy]  (0.3ms) COMMIT [shard 1234 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1234 deploy]  (1.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1234 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1234 deploy]  (0.3ms) COMMIT [shard 1234 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1234 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1234 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1234 deploy]  (0.3ms) COMMIT [shard 1234 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1234 deploy]  (1.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1234 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1234 deploy]  (0.3ms) COMMIT [shard 1234 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1234 deploy]  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1234 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1234 deploy]  (0.3ms) COMMIT [shard 1234 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1234 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1234 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1234 deploy]  (0.3ms) COMMIT [shard 1234 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) BEGIN [shard 1234 deploy]  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1234 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1234 deploy]  (0.3ms) COMMIT [shard 1234 deploy]  (0.1ms) BEGIN [shard 1232 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1234' WHERE "switchman_shards"."id" = 1234 [shard 1232 master]  (0.3ms) COMMIT [shard 1232 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1232 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1232 master]  (0.1ms) BEGIN [shard 1232 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1232 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1232], ["name", nil]] [shard 1232 master]  (0.3ms) COMMIT [shard 1232 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1232 master]  (0.0ms) BEGIN [shard 1232 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1233], ["name", "switchman_test_shard_1233"]] [shard 1232 master]  (0.3ms) COMMIT [shard 1232 master]  (0.1ms) BEGIN [shard 1232 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1234], ["name", "switchman_test_shard_1234"]] [shard 1232 master]  (0.2ms) COMMIT [shard 1232 master]  (0.1ms) BEGIN [shard 1232 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1232 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1233]] [shard 1232 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1234]] [shard 1232 master]  (0.1ms) BEGIN [shard 1234 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1233 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:40:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:40:15 UTC +00:00]] [shard 1233 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1233 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1234 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:40:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 22 Oct 2014 18:40:15 UTC +00:00]] [shard 1234 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1234 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1232 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 22 Oct 2014 18:40:15 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:40:15 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1232 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1232 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1232 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1019], ["created_at", Wed, 22 Oct 2014 18:40:15 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:40:15 UTC +00:00], ["value", nil]] [shard 1232 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1232 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1233 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12320000000001019], ["created_at", Wed, 22 Oct 2014 18:40:15 UTC +00:00], ["updated_at", Wed, 22 Oct 2014 18:40:15 UTC +00:00], ["value", nil]] [shard 1233 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1233 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1019 LIMIT 1 [shard 1232 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1019) [shard 1232 master]  (0.1ms) ROLLBACK [shard 1234 master]  (0.1ms) ROLLBACK [shard 1232 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1232 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1232 master]  (4.6ms) DROP SCHEMA switchman_test_shard_1233 CASCADE [shard 1233 deploy]  (0.0ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1233]]  (0.1ms) COMMIT  (4.7ms) DROP SCHEMA switchman_test_shard_1234 CASCADE [shard 1234 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1234]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.6ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (6.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.2ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (5.5ms) CREATE SCHEMA switchman_test_shard_1236 [shard 1236 deploy]  (7.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1236 deploy]  (6.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1236 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1236 deploy] Migrating to CreateUsers (20130403132607)  (13.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1236 deploy]  (5.6ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1236 deploy] Migrating to CreateAppendages (20130411202442)  (7.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1236 deploy]  (5.6ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1236 deploy] Migrating to CreateMirrorUsers (20130411202551)  (7.3ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1236 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1236 deploy] Migrating to CreateDigits (20131022202028)  (7.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1236 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1236 deploy] Migrating to CreateFeatures (20131206172923)  (7.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1236 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1236 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1236 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1236 deploy] Migrating to CreateRoots (20140219183820)  (7.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1236 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1236 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1236' WHERE "switchman_shards"."id" = 1236 [shard 1235 master]  (7.1ms) COMMIT [shard 1235 master] Switchman::Shard Load (4.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1237 [shard 1237 deploy]  (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1237 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1237 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1237 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1237 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1237 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1237 deploy]  (0.3ms) COMMIT [shard 1237 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1237 deploy]  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1237 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1237 deploy]  (0.3ms) COMMIT [shard 1237 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) BEGIN [shard 1237 deploy]  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1237 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1237 deploy]  (0.3ms) COMMIT [shard 1237 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 1237 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1237 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1237 deploy]  (0.3ms) COMMIT [shard 1237 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 1237 deploy]  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1237 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1237 deploy]  (0.3ms) COMMIT [shard 1237 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1237 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1237 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1237 deploy]  (0.3ms) COMMIT [shard 1237 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) BEGIN [shard 1237 deploy]  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1237 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1237 deploy]  (0.4ms) COMMIT [shard 1237 deploy]  (0.1ms) BEGIN [shard 1235 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1237' WHERE "switchman_shards"."id" = 1237 [shard 1235 master]  (0.2ms) COMMIT [shard 1235 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1235], ["name", nil]] [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1236], ["name", "switchman_test_shard_1236"]] [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1237], ["name", "switchman_test_shard_1237"]] [shard 1235 master]  (0.2ms) COMMIT [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (7.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (6.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (5.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 1], ["value", 1]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1237 LIMIT 1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 12370000000000001], ["value", 3]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1236 LIMIT 1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (5.9ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 12360000000000001], ["value", 2]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 1], ["value", 4]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 1], ["value", 5]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SHOW max_identifier_length [shard 1235 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1236 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1237 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1236 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1237 master]  (0.1ms) SHOW max_identifier_length [shard 1237 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1236 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1237 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1236 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1) [shard 1236 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1) [shard 1237 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1237 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1) [shard 1237 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1) [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 2], ["value", 1]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 12370000000000002], ["value", 3]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 12360000000000002], ["value", 2]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 2], ["value", 4]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 2], ["value", 5]] [shard 1237 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1236 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1237 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1236 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1237 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1236 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1237 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1236 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2) [shard 1236 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2) [shard 1237 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1237 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2) [shard 1237 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2) [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 3], ["value", 1]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 12370000000000003], ["value", 3]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 12360000000000003], ["value", 2]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 3], ["value", 4]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 3], ["value", 5]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1236 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1237 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1236 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1237 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1236 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1237 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1236 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (3) [shard 1236 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (3) [shard 1237 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1237 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (3) [shard 1237 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (3) [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 4], ["value", 1]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 12370000000000004], ["value", 3]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 12360000000000004], ["value", 2]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 4], ["value", 4]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 4], ["value", 5]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1236 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1237 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1236 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1237 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1236 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1237 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1236 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (4) [shard 1236 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (4) [shard 1237 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1237 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (4) [shard 1237 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (4) [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 5], ["value", 1]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 12370000000000005], ["value", 3]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 12360000000000005], ["value", 2]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 5], ["value", 4]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 5], ["value", 5]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1236 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1237 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1236 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1237 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1236 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1237 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1236 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [shard 1236 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [shard 1237 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1237 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [shard 1237 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 6], ["value", 1]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 12370000000000006], ["value", 3]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 12360000000000006], ["value", 2]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 6], ["value", 4]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 6], ["value", 5]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 15 [shard 1236 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 1237 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 15 [shard 1236 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 1237 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 15 [shard 1236 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 19 [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.2ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (9) [shard 1236 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (8) [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 17 [shard 1236 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 21 [shard 1237 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 17 [shard 1236 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 21 [shard 1237 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 17 [shard 1236 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 21 [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 11], ["value", 1]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 11], ["value", 2]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 10], ["value", 3]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 10], ["value", 4]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 10], ["value", 5]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 11 [shard 1236 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 1236 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 10 [shard 1237 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 1237 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (18, 19) [shard 1236 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (22, 23, 24) [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 12], ["value", 1]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 12], ["value", 2]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 11], ["value", 3]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 11], ["value", 4]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 11], ["value", 5]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 12 [shard 1236 master]  (0.2ms) SELECT COUNT(*) FROM "appendages"  [shard 1236 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 11 [shard 1237 master]  (0.1ms) SELECT COUNT(*) FROM "appendages"  [shard 1237 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (20, 21) [shard 1236 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (25, 26, 27) [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 13], ["value", 1]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 13], ["value", 2]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 12], ["value", 3]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 12], ["value", 4]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 12], ["value", 5]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 13 [shard 1236 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 1236 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 12 [shard 1237 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 1237 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (22, 23) [shard 1236 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (28, 29, 30) [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 14], ["value", 1]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 14], ["value", 2]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 13], ["value", 3]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 13], ["value", 4]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 13], ["value", 5]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 14 [shard 1236 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 1236 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 13 [shard 1237 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 1237 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (24, 25) [shard 1236 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (31, 32, 33) [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 15], ["value", 1]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 15], ["value", 2]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 14], ["value", 3]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 14], ["value", 4]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", 14], ["value", 5]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 15 [shard 1236 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 1236 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 14 [shard 1237 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 1237 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (26, 27) [shard 1236 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (34, 35, 36) [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1235], ["name", nil]] [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1236], ["name", "switchman_test_shard_1236"]] [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1237], ["name", "switchman_test_shard_1237"]] [shard 1235 master]  (0.2ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 16 LIMIT 1 [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 1235 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1235 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1236 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 18]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 12360000000000018 LIMIT 1 [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1236 LIMIT 1 [shard 1235 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 20 LIMIT 1 [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) LIMIT 1 [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master] SQL (5.9ms) DELETE FROM "switchman_shards" [shard 1235 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", "non_existent_shard"]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (6.6ms) SELECT COUNT(*) FROM "users" [shard 1238 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.8ms) SELECT COUNT(*) FROM "users"  [shard 1239 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1235], ["name", nil]] [shard 1235 master]  (0.4ms) COMMIT [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1236], ["name", "switchman_test_shard_1236"]] [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1237], ["name", "switchman_test_shard_1237"]] [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1236 LIMIT 1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) ROLLBACK [shard 1237 master]  (0.0ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.0ms) ROLLBACK [shard 1235 master] SQL (4.9ms) DELETE FROM "switchman_shards" [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1235], ["name", nil]] [shard 1235 master]  (0.4ms) COMMIT [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1236], ["name", "switchman_test_shard_1236"]] [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1237], ["name", "switchman_test_shard_1237"]] [shard 1235 master]  (0.2ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1235], ["name", nil]] [shard 1235 master]  (0.2ms) COMMIT [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1236], ["name", "switchman_test_shard_1236"]] [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1237], ["name", "switchman_test_shard_1237"]] [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:23 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.2ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master] SQL (0.9ms) DELETE FROM "switchman_shards" [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1235], ["name", nil]] [shard 1235 master]  (0.2ms) COMMIT [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1236], ["name", "switchman_test_shard_1236"]] [shard 1235 master]  (0.2ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1237], ["name", "switchman_test_shard_1237"]] [shard 1235 master]  (0.2ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1235], ["name", nil]] [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1236], ["name", "switchman_test_shard_1236"]] [shard 1235 master]  (0.2ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1237], ["name", "switchman_test_shard_1237"]] [shard 1235 master]  (0.2ms) COMMIT [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:24 UTC +00:00]] [shard 1236 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.0ms) ROLLBACK [shard 1237 master]  (0.0ms) ROLLBACK [shard 1236 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1235], ["name", nil]] [shard 1235 master]  (5.9ms) COMMIT [shard 1235 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1236], ["name", "switchman_test_shard_1236"]] [shard 1235 master]  (5.6ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1237], ["name", "switchman_test_shard_1237"]] [shard 1235 master]  (5.9ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '11' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) select sqlite_version(*) [shard 1248 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 1248 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1248 deploy]  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1248 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 1248 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1248 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1248 deploy]  (0.8ms) commit transaction [shard 1248 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 1248 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1248 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1248 deploy]  (0.5ms) commit transaction [shard 1248 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 1248 deploy]  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1248 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1248 deploy]  (0.7ms) commit transaction [shard 1248 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 1248 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1248 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1248 deploy]  (0.6ms) commit transaction [shard 1248 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 1248 deploy]  (0.3ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1248 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1248 deploy]  (0.5ms) commit transaction [shard 1248 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 1248 deploy]  (0.3ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 1248 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1248 deploy]  (0.7ms) commit transaction [shard 1248 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 1248 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1248 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1248 deploy]  (0.7ms) commit transaction [shard 1248 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'db/shard_1248.sqlite3' WHERE "switchman_shards"."id" = 1248 [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) begin transaction [shard 1248 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1248 master]  (0.6ms) commit transaction [shard 1248 master] Drop failed: No such file or directory @ unlink_internal - db/shard_1248.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1248]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '12' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", "public"]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (6.0ms) CREATE SCHEMA switchman_test_shard_1249 [shard 1249 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1249 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1249 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1249 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1249 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1249 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1249 deploy]  (0.3ms) COMMIT [shard 1249 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1249 deploy]  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1249 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1249 deploy]  (0.3ms) COMMIT [shard 1249 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1249 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1249 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1249 deploy]  (0.3ms) COMMIT [shard 1249 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1249 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1249 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1249 deploy]  (0.3ms) COMMIT [shard 1249 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1249 deploy]  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1249 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1249 deploy]  (0.3ms) COMMIT [shard 1249 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1249 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1249 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1249 deploy]  (0.2ms) COMMIT [shard 1249 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) BEGIN [shard 1249 deploy]  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1249 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1249 deploy]  (0.3ms) COMMIT [shard 1249 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1249' WHERE "switchman_shards"."id" = 1249 [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) BEGIN [shard 1249 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1249 master]  (0.3ms) COMMIT [shard 1249 master]  (4.8ms) DROP SCHEMA switchman_test_shard_1249 CASCADE [shard 1249 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1249]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 1235 master]  (0.2ms) CREATE SCHEMA switchman_test_shard_1250 [shard 1250 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1250 deploy]  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1250 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1250 deploy] Migrating to CreateUsers (20130403132607)  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1250 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1250 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1250 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1250 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1250 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1250 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1250 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1250 deploy] Migrating to CreateFeatures (20131206172923)  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1250 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1250 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1250 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1250 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1250 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1250 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1250' WHERE "switchman_shards"."id" = 1250 [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1250 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1250 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1250 master]  (2.8ms) DROP SCHEMA switchman_test_shard_1250 CASCADE [shard 1250 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1250]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (2.3ms) ROLLBACK [shard 1235 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.2ms) BEGIN [shard 1235 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master]  (0.0ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master]  (0.0ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master]  (0.0ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1235], ["name", nil]] [shard 1235 master]  (5.4ms) COMMIT [shard 1235 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1236], ["name", "switchman_test_shard_1236"]] [shard 1235 master]  (5.9ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1237], ["name", "switchman_test_shard_1237"]] [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1251]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1251 LIMIT 1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.0ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1236 LIMIT 1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1252]] [shard 1235 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11237 LIMIT 1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1237 LIMIT 1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '28' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "28"], ["default", false], ["name", "public"]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_1253 [shard 1253 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1253 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1253 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1253 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1253 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1253 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1253 deploy]  (0.3ms) COMMIT [shard 1253 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1253 deploy]  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1253 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1253 deploy]  (0.4ms) COMMIT [shard 1253 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) BEGIN [shard 1253 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1253 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1253 deploy]  (0.3ms) COMMIT [shard 1253 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1253 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1253 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1253 deploy]  (0.3ms) COMMIT [shard 1253 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 1253 deploy]  (2.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1253 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1253 deploy]  (0.3ms) COMMIT [shard 1253 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1253 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1253 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1253 deploy]  (0.3ms) COMMIT [shard 1253 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1253 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1253 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1253 deploy]  (0.3ms) COMMIT [shard 1253 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1253' WHERE "switchman_shards"."id" = 1253 [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) BEGIN [shard 1253 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1253 master]  (0.3ms) COMMIT [shard 1253 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 1253 master]  (4.9ms) DROP SCHEMA switchman_test_shard_1253 CASCADE [shard 1253 deploy]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 1253 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) ROLLBACK [shard 1237 master]  (0.0ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.0ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1235], ["name", nil]] [shard 1235 master]  (5.9ms) COMMIT [shard 1235 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1236], ["name", "switchman_test_shard_1236"]] [shard 1235 master]  (5.9ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1237], ["name", "switchman_test_shard_1237"]] [shard 1235 master]  (5.7ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["user_id", 27], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["user_id", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1236 LIMIT 1 [shard 1235 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 30]] [shard 1236 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 29 LIMIT 1 [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (5.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", nil], ["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1237 LIMIT 1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (5.9ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["appendage_id", 31], ["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["id", 12370000000000001], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 30 AND "digits"."id" = $1 LIMIT 1 [["id", 12370000000000001]] [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["user_id", 31], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 32], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 33], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 32]] [shard 1236 master]  (0.1ms) SHOW max_identifier_length [shard 1236 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 32 AND "users"."id" = 34 LIMIT 1 [shard 1236 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 32]] [shard 1236 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 32 AND "users"."id" = 12370000000000022 LIMIT 1 [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 35 [shard 1236 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 35]] [shard 1236 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 35 [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 37 AND "appendages"."id" = $1 LIMIT 1 [["id", 34]] [shard 1236 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 25 AND "appendages"."id" = $1 LIMIT 1 [["id", 12360000000000034]] [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 35], ["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 38 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["user_id", 27], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 37], ["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["user_id", 12360000000000042], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 39], ["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["value", 2]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 42 AND "digits"."value" IS NULL [shard 1236 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 12360000000000042 AND "digits"."value" IS NULL [shard 1237 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 42]] [shard 1236 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 42 AND "digits"."value" IS NULL [shard 1236 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 12360000000000042 AND "digits"."value" IS NULL [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 38], ["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["value", 1]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["user_id", 12360000000000043], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 40], ["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["value", 2]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 43 [shard 1236 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 43]] [shard 1236 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 43 [shard 1236 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 12360000000000043 [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["user_id", 44], ["value", 1]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["user_id", 12360000000000044], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["user_id", 44], ["value", 2]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 44]] [shard 1236 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 44 AND (appendages.value IS NOT NULL) [shard 1236 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 12360000000000044 AND (appendages.value IS NOT NULL) [shard 1237 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 44]] [shard 1236 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 44 AND (appendages.value IS NOT NULL) [shard 1236 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 12360000000000044 AND (appendages.value IS NOT NULL) [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 41], ["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["user_id", 12360000000000045], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 42], ["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["value", 2]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 45 AND "digits"."value" IS NULL [shard 1236 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 12360000000000045 AND "digits"."value" IS NULL [shard 1237 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 45]] [shard 1236 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 45 AND "digits"."value" IS NULL [shard 1236 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 12360000000000045 AND "digits"."value" IS NULL [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["user_id", 46], ["value", 1]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["user_id", 12360000000000046], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 46 AND "appendages"."value" IS NULL [shard 1236 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 12360000000000046 AND "appendages"."value" IS NULL [shard 1237 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 1236 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 46 AND "appendages"."value" IS NULL [shard 1236 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 12360000000000046 AND "appendages"."value" IS NULL [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["user_id", 47], ["value", 1]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["user_id", 12360000000000047], ["value", 2]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 47 [shard 1236 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 47]] [shard 1236 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 47 [shard 1236 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 12360000000000047 [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 44], ["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 44], ["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["value", 1]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["user_id", 12360000000000048], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 45], ["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["value", 2]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 48 AND (digits.value IS NOT NULL) [shard 1236 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 12360000000000048 AND (digits.value IS NOT NULL) [shard 1237 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 48]] [shard 1236 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 48 AND (digits.value IS NOT NULL) [shard 1236 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 12360000000000048 AND (digits.value IS NOT NULL) [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:24 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.9ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["owner_id", 1020], ["owner_type", "Appendage"], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["value", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 101]] [shard 1235 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1020 LIMIT 1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master]  (0.2ms) UPDATE "features" SET "owner_id" = 12360000000000049, "owner_type" = 'User', "updated_at" = '2014-10-23 16:23:25.011553' WHERE "features"."id" = 101 [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 101]] [shard 1235 master]  (0.2ms) ROLLBACK [shard 1237 master]  (0.2ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (9.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["owner_id", 50], ["owner_type", "User"], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["value", 1]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.8ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["owner_id", 12360000000000050], ["owner_type", "User"], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["value", 2]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 50 AND "features"."owner_type" = 'User' [shard 1236 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 50]] [shard 1236 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 50 AND "features"."owner_type" = 'User' [shard 1236 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 12360000000000050 AND "features"."owner_type" = 'User' [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 12360000000000051], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 12360000000000051], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 45], ["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 46], ["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12370000000000046], ["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12370000000000047], ["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 12370000000000039], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12360000000000046], ["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12370000000000048], ["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 49], ["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (51) [shard 1236 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (51) [shard 1236 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (12360000000000051) [shard 1237 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (45) [shard 1236 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (46, 47) [shard 1237 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) [shard 1237 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (39) [shard 1237 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (48, 49) [shard 1237 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 12360000000000052], ["value", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1021], ["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["value", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 12370000000000040], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12360000000000047], ["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["value", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 1235 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (1021) [shard 1235 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (47) [shard 1236 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (52) [shard 1236 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) [shard 1237 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 52 [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1022], ["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["value", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12350000000001022], ["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1022 LIMIT 1 [shard 1235 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1022) [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 12360000000000054], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 12370000000000042], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 1236 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (54) [shard 1236 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (12360000000000054) [shard 1237 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [shard 1237 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (42) [shard 1237 master] SQL (0.1ms) DELETE FROM "appendages" WHERE "appendages"."id" = 48 [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 12360000000000055], ["value", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 12370000000000043], ["value", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 2089], ["value", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages"  [shard 1235 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 1236 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) [shard 1237 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2089) [shard 1235 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 55 [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.9ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 12370000000000044]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 49]] [shard 1235 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 44 LIMIT 1 [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 12370000000000045], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 50]] [shard 1236 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 45 LIMIT 1 [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 58 LIMIT 1 [shard 1236 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 51]] [shard 1236 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 58 LIMIT 1 [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1235], ["name", nil]] [shard 1235 master]  (0.2ms) COMMIT [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1236], ["name", "switchman_test_shard_1236"]] [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1237], ["name", "switchman_test_shard_1237"]] [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "29"], ["default", false], ["name", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "29"], ["default", false], ["name", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master] SQL (5.7ms) DELETE FROM "switchman_shards" [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1235], ["name", nil]] [shard 1235 master]  (5.9ms) COMMIT [shard 1235 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1236], ["name", "switchman_test_shard_1236"]] [shard 1235 master]  (5.9ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1237], ["name", "switchman_test_shard_1237"]] [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SELECT COUNT(*) FROM "users" [shard 1237 master]  (0.1ms) SAVEPOINT active_record_2 [shard 1237 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1237 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) SELECT COUNT(*) FROM "users" [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master] SQL (5.8ms) DELETE FROM "switchman_shards" [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 1235 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master]  (0.0ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1235], ["name", nil]] [shard 1235 master]  (6.0ms) COMMIT [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1236], ["name", "switchman_test_shard_1236"]] [shard 1235 master]  (4.9ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1237], ["name", "switchman_test_shard_1237"]] [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1235], ["name", nil]] [shard 1235 master]  (0.2ms) COMMIT [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1236], ["name", "switchman_test_shard_1236"]] [shard 1235 master]  (0.2ms) COMMIT [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1237], ["name", "switchman_test_shard_1237"]] [shard 1235 master]  (0.2ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 60 LIMIT 1 [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1236 LIMIT 1 [shard 1235 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2092) [shard 1235 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 62 [shard 1236 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2093]] [shard 1235 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 62]] [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (2094) [shard 1235 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (63) [shard 1236 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2094]] [shard 1235 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master] SQL (5.0ms) DELETE FROM "switchman_shards" [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "30"], ["default", false], ["name", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "30"], ["default", false], ["name", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master]  (0.0ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1235], ["name", nil]] [shard 1235 master]  (0.4ms) COMMIT [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1236], ["name", "switchman_test_shard_1236"]] [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1237], ["name", "switchman_test_shard_1237"]] [shard 1235 master]  (0.2ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["owner_id", 2095], ["owner_type", "User"], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["value", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 102 LIMIT 1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1236 LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1237 LIMIT 1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master] SQL (6.1ms) DELETE FROM "switchman_shards" [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1235], ["name", nil]] [shard 1235 master]  (6.0ms) COMMIT [shard 1235 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1236], ["name", "switchman_test_shard_1236"]] [shard 1235 master]  (6.0ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1237], ["name", "switchman_test_shard_1237"]] [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 49]] [shard 1235 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 49]] [shard 1235 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 49 LIMIT 1 [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) ROLLBACK [shard 1237 master]  (0.0ms) ROLLBACK [shard 1235 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1235], ["name", nil]] [shard 1235 master]  (0.2ms) COMMIT [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1236], ["name", "switchman_test_shard_1236"]] [shard 1235 master]  (0.2ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1237], ["name", "switchman_test_shard_1237"]] [shard 1235 master]  (0.2ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 2097], ["value", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 2098], ["value", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 65], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2098], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2099], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2099]] [shard 1235 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2098 LIMIT 1 [shard 1235 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 2098 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 2101], ["value", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 66], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1236 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 2102], ["value", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 67], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1236 LIMIT 1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 2103], ["value", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 68], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 2104], ["value", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 2105], ["value", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 70], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.2ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 2106], ["value", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 71], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 2107], ["value", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 72], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 2108], ["value", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 73], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 2109], ["value", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 74], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 2110], ["value", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 75], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 2111], ["value", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 76], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 2112], ["value", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 77], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 62], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 2113], ["value", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 78], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 63], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 2114], ["value", nil]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 79], ["value", nil]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1237 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1235], ["name", nil]] [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1236], ["name", "switchman_test_shard_1236"]] [shard 1235 master]  (0.2ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1237], ["name", "switchman_test_shard_1237"]] [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1236 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1236 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1236 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1236 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.0ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1235 master]  (0.0ms) ROLLBACK [shard 1237 master]  (0.0ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1235 master] SQL (0.1ms) DELETE FROM "users" [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1235 master] SQL (0.1ms) DELETE FROM "users" [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2119]] [shard 1235 master] CACHE (0.0ms) 1235::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2119]] CACHE (0.0ms) 1235::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2119]]  (0.1ms) BEGIN [shard 1235 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-10-23 16:23:25.714121' WHERE "users"."id" = 2119 [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2119]] [shard 1235 master] CACHE (0.0ms) 1235::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2119]] SQL (0.3ms) DELETE FROM "users" [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1235 master] SQL (0.9ms) DELETE FROM "users" [shard 1235 master] SQL (0.1ms) DELETE FROM "users" [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.2ms) COMMIT [shard 1235 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1235 master] SQL (0.3ms) DELETE FROM "users" [shard 1235 master] SQL (0.1ms) DELETE FROM "users" [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1235 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-10-23 16:23:25.730603' [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1235 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-10-23 16:23:25.736087' [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.2ms) COMMIT [shard 1235 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1235 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-10-23 16:23:25.739977' [shard 1235 master] SQL (0.4ms) DELETE FROM "users" [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1235 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-10-23 16:23:25.744748' [shard 1235 master] SQL (0.3ms) DELETE FROM "users" [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.4ms) COMMIT [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1235 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1235 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:23:25 UTC +00:00]] [shard 1235 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) ROLLBACK [shard 1237 master]  (0.0ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master]  (0.0ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1235], ["name", nil]] [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1236], ["name", "switchman_test_shard_1236"]] [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1237], ["name", "switchman_test_shard_1237"]] [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1235], ["name", nil]] [shard 1235 master]  (0.4ms) COMMIT [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1236], ["name", "switchman_test_shard_1236"]] [shard 1235 master]  (0.3ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1237], ["name", "switchman_test_shard_1237"]] [shard 1235 master]  (0.2ms) COMMIT [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.0ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.1ms) BEGIN [shard 1237 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (1235, 1236) AND (id IN (1236,1237)) [shard 1235 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.1ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master]  (0.1ms) BEGIN [shard 1235 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1236]] [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1237]] [shard 1235 master]  (0.0ms) BEGIN [shard 1237 master]  (0.0ms) ROLLBACK [shard 1237 master]  (0.1ms) ROLLBACK [shard 1235 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1235 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1235 master]  (5.1ms) DROP SCHEMA switchman_test_shard_1236 CASCADE [shard 1236 deploy]  (0.1ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1236]]  (0.1ms) COMMIT  (6.2ms) DROP SCHEMA switchman_test_shard_1237 CASCADE [shard 1237 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1237]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.2ms) CREATE SCHEMA switchman_test_shard_1259 [shard 1259 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1259 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1259 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1259 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1259 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1259 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1259 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1259 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1259 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1259 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1259 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1259 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1259 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1259 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1259 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1259 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1259 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1259 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1259' WHERE "switchman_shards"."id" = 1259 [shard 1258 master]  (0.6ms) COMMIT [shard 1258 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1260 [shard 1260 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1260 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1260 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1260 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1260 deploy]  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1260 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1260 deploy]  (0.3ms) COMMIT [shard 1260 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1260 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1260 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1260 deploy]  (0.3ms) COMMIT [shard 1260 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1260 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1260 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1260 deploy]  (0.3ms) COMMIT [shard 1260 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1260 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1260 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1260 deploy]  (0.3ms) COMMIT [shard 1260 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1260 deploy]  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1260 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1260 deploy]  (0.3ms) COMMIT [shard 1260 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1260 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1260 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1260 deploy]  (0.3ms) COMMIT [shard 1260 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1260 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1260 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1260 deploy]  (0.4ms) COMMIT [shard 1260 deploy]  (0.1ms) BEGIN [shard 1258 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1260' WHERE "switchman_shards"."id" = 1260 [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1258], ["name", nil]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1259], ["name", "switchman_test_shard_1259"]] [shard 1258 master]  (0.2ms) COMMIT [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1260], ["name", "switchman_test_shard_1260"]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1260 LIMIT 1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11260 LIMIT 1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.0ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.0ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1258 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.0ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.0ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1259 LIMIT 1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '3' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", "public"]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (6.0ms) CREATE SCHEMA switchman_test_shard_1261 [shard 1261 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1261 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1261 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1261 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1261 deploy]  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1261 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1261 deploy]  (0.3ms) COMMIT [shard 1261 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1261 deploy]  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1261 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1261 deploy]  (0.3ms) COMMIT [shard 1261 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1261 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1261 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1261 deploy]  (0.4ms) COMMIT [shard 1261 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1261 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1261 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1261 deploy]  (0.3ms) COMMIT [shard 1261 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1261 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1261 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1261 deploy]  (0.4ms) COMMIT [shard 1261 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 1261 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1261 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1261 deploy]  (0.3ms) COMMIT [shard 1261 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1261 deploy]  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1261 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1261 deploy]  (0.3ms) COMMIT [shard 1261 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1261' WHERE "switchman_shards"."id" = 1261 [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) BEGIN [shard 1261 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1261 master]  (0.2ms) COMMIT [shard 1261 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 1261 master]  (5.1ms) DROP SCHEMA switchman_test_shard_1261 CASCADE [shard 1261 deploy]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 1261 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.0ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1262]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.0ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1263]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1263 LIMIT 1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master] SQL (6.1ms) DELETE FROM "switchman_shards" [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1258], ["name", nil]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1259], ["name", "switchman_test_shard_1259"]] [shard 1258 master]  (0.2ms) COMMIT [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1260], ["name", "switchman_test_shard_1260"]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1260 LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1259 LIMIT 1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 2]] [shard 1259 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 4 LIMIT 1 [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 5], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 6], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 5]] [shard 1259 master]  (0.1ms) SHOW max_identifier_length [shard 1259 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 5 AND "users"."id" = 7 LIMIT 1 [shard 1259 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 5]] [shard 1259 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 5 AND "users"."id" = 12600000000000006 LIMIT 1 [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 8 [shard 1259 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 8]] [shard 1259 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 8 [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", nil], ["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["appendage_id", 5], ["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["id", 12600000000000001], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 10 AND "digits"."id" = $1 LIMIT 1 [["id", 12600000000000001]] [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 11 AND "appendages"."id" = $1 LIMIT 1 [["id", 6]] [shard 1259 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 10 AND "appendages"."id" = $1 LIMIT 1 [["id", 12590000000000006]] [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7], ["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 12 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 16], ["value", 1]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 12590000000000016], ["value", 2]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 16 [shard 1259 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 16]] [shard 1259 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 16 [shard 1259 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 12590000000000016 [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 17], ["value", 1]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 12590000000000017], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 17], ["value", 2]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 1259 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 17 AND (appendages.value IS NOT NULL) [shard 1259 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 12590000000000017 AND (appendages.value IS NOT NULL) [shard 1260 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 1259 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 17 AND (appendages.value IS NOT NULL) [shard 1259 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 12590000000000017 AND (appendages.value IS NOT NULL) [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12], ["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12], ["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["value", 1]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 12590000000000018], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4], ["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["value", 2]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 18 AND (digits.value IS NOT NULL) [shard 1259 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 12590000000000018 AND (digits.value IS NOT NULL) [shard 1260 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 1259 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 18 AND (digits.value IS NOT NULL) [shard 1259 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 12590000000000018 AND (digits.value IS NOT NULL) [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 19], ["value", 1]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 12590000000000019], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 19 AND "appendages"."value" IS NULL [shard 1259 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 12590000000000019 AND "appendages"."value" IS NULL [shard 1260 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [shard 1259 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 19 AND "appendages"."value" IS NULL [shard 1259 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 12590000000000019 AND "appendages"."value" IS NULL [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 14], ["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 12590000000000020], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6], ["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["value", 2]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 20 AND "digits"."value" IS NULL [shard 1259 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 12590000000000020 AND "digits"."value" IS NULL [shard 1260 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 1259 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 20 AND "digits"."value" IS NULL [shard 1259 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 12590000000000020 AND "digits"."value" IS NULL [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15], ["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 12590000000000021], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7], ["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["value", 2]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 21 AND "digits"."value" IS NULL [shard 1259 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 12590000000000021 AND "digits"."value" IS NULL [shard 1260 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 1259 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 21 AND "digits"."value" IS NULL [shard 1259 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 12590000000000021 AND "digits"."value" IS NULL [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 16], ["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["value", 1]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 12590000000000022], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["value", 2]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 22 [shard 1259 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 22]] [shard 1259 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 22 [shard 1259 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 12590000000000022 [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 12590000000000023], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 12600000000000022], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 1259 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (23) [shard 1259 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (12590000000000023) [shard 1260 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 1260 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (22) [shard 1260 master] SQL (0.1ms) DELETE FROM "appendages" WHERE "appendages"."id" = 17 [shard 1259 master]  (0.2ms) ROLLBACK [shard 1260 master]  (0.2ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 12590000000000024], ["value", nil]] [shard 1258 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 12600000000000023], ["value", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 2130], ["value", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages"  [shard 1258 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 1259 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 1260 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2130) [shard 1258 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 24 [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 25], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 12590000000000025], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["user_id", 12590000000000025], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 19], ["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10], ["created_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:29 UTC +00:00], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12600000000000010], ["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12600000000000011], ["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 12600000000000024], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12590000000000020], ["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12600000000000012], ["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 13], ["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 1259 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (25) [shard 1259 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (12590000000000025) [shard 1260 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (19) [shard 1259 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (10, 11) [shard 1260 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 1260 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (24) [shard 1260 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (12, 13) [shard 1260 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1046], ["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["value", nil]] [shard 1258 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12580000000001046], ["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1046 LIMIT 1 [shard 1258 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1046) [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.2ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 12590000000000027], ["value", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1047], ["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["value", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 12600000000000026], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12590000000000021], ["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["value", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 1258 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (1047) [shard 1258 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (21) [shard 1259 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 1259 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 1260 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 27 [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 12600000000000027]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 50]] [shard 1258 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 27 LIMIT 1 [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["owner_id", 1048], ["owner_type", "Appendage"], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["value", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 103]] [shard 1258 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1048 LIMIT 1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master]  (0.2ms) UPDATE "features" SET "owner_id" = 12590000000000029, "owner_type" = 'User', "updated_at" = '2014-10-23 16:24:30.095644' WHERE "features"."id" = 103 [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 103]] [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["owner_id", 30], ["owner_type", "User"], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["value", 1]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["owner_id", 12590000000000030], ["owner_type", "User"], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["value", 2]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 30 AND "features"."owner_type" = 'User' [shard 1259 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 30]] [shard 1259 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 30 AND "features"."owner_type" = 'User' [shard 1259 master] Feature Load (0.6ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 12590000000000030 AND "features"."owner_type" = 'User' [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 12600000000000030], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 22]] [shard 1259 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 30 LIMIT 1 [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 32 LIMIT 1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 23]] [shard 1259 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 32 LIMIT 1 [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1258], ["name", nil]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1259], ["name", "switchman_test_shard_1259"]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1260], ["name", "switchman_test_shard_1260"]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.0ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.0ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1258], ["name", nil]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1259], ["name", "switchman_test_shard_1259"]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1260], ["name", "switchman_test_shard_1260"]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["owner_id", 2132], ["owner_type", "User"], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["value", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 104 LIMIT 1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1259 LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1260 LIMIT 1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master] SQL (6.0ms) DELETE FROM "switchman_shards" [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1258], ["name", nil]] [shard 1258 master]  (6.0ms) COMMIT [shard 1258 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1259], ["name", "switchman_test_shard_1259"]] [shard 1258 master]  (6.1ms) COMMIT [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1260], ["name", "switchman_test_shard_1260"]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1259 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1258 master]  (0.4ms) COMMIT [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1258 master]  (0.4ms) COMMIT [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.0ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.0ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.0ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1258 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-10-23 16:24:30.303639' [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1258 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-10-23 16:24:30.309288' [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1258 master] SQL (0.6ms) UPDATE "users" SET "updated_at" = '2014-10-23 16:24:30.313327' [shard 1258 master] SQL (0.3ms) DELETE FROM "users" [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1258 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-10-23 16:24:30.317792' [shard 1258 master] SQL (0.3ms) DELETE FROM "users" [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1258 master] SQL (0.1ms) DELETE FROM "users" [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1258 master] SQL (0.1ms) DELETE FROM "users" [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1258 master]  (0.2ms) COMMIT [shard 1258 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1258 master] SQL (0.3ms) DELETE FROM "users" [shard 1258 master] SQL (0.1ms) DELETE FROM "users" [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2146]] [shard 1258 master] CACHE (0.0ms) 1258::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2146]] CACHE (0.0ms) 1258::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2146]]  (0.1ms) BEGIN [shard 1258 master]  (0.3ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-10-23 16:24:30.339326' WHERE "users"."id" = 2146 [shard 1258 master]  (0.2ms) COMMIT [shard 1258 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2146]] [shard 1258 master] CACHE (0.0ms) 1258::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2146]] SQL (0.3ms) DELETE FROM "users" [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1258 master] SQL (0.3ms) DELETE FROM "users" [shard 1258 master] SQL (0.1ms) DELETE FROM "users" [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master]  (0.0ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1258], ["name", nil]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1259], ["name", "switchman_test_shard_1259"]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1260], ["name", "switchman_test_shard_1260"]] [shard 1258 master]  (0.2ms) COMMIT [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1259 LIMIT 1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master] SQL (6.1ms) DELETE FROM "switchman_shards" [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1258], ["name", nil]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1259], ["name", "switchman_test_shard_1259"]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1260], ["name", "switchman_test_shard_1260"]] [shard 1258 master]  (0.2ms) COMMIT [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1258 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1258], ["name", nil]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1259], ["name", "switchman_test_shard_1259"]] [shard 1258 master]  (0.2ms) COMMIT [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1260], ["name", "switchman_test_shard_1260"]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1259 LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1260 LIMIT 1 [shard 1258 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (38) [shard 1259 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (32) [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 26 [shard 1259 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 17 [shard 1260 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 26 [shard 1259 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 17 [shard 1260 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 26 [shard 1259 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 17 [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 27 [shard 1259 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 18 [shard 1260 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 27 [shard 1259 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 18 [shard 1260 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 27 [shard 1259 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 18 [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 41], ["value", 1]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 12600000000000035], ["value", 3]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 12590000000000041], ["value", 2]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 35], ["value", 4]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 35], ["value", 5]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1259 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1260 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1259 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1260 master]  (0.1ms) SHOW max_identifier_length [shard 1260 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1259 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1260 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1259 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [shard 1259 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35) [shard 1260 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1260 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35) [shard 1260 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 42], ["value", 1]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 12600000000000036], ["value", 3]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 12590000000000042], ["value", 2]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 36], ["value", 4]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 36], ["value", 5]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1259 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1260 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1259 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1260 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1259 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1260 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1259 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [shard 1259 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (36) [shard 1260 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1260 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (36) [shard 1260 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 43], ["value", 1]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 12600000000000037], ["value", 3]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 12590000000000043], ["value", 2]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 37], ["value", 4]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 37], ["value", 5]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1259 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1260 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1259 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1260 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1259 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1260 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1259 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) [shard 1259 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 1260 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1260 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 1260 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 44], ["value", 1]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 12600000000000038], ["value", 3]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 12590000000000044], ["value", 2]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 38], ["value", 4]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 38], ["value", 5]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 46], ["value", 1]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 12600000000000039], ["value", 3]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 12590000000000046], ["value", 2]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 39], ["value", 4]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 39], ["value", 5]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1259 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1260 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1259 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1260 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1259 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1260 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1259 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (46) [shard 1259 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) [shard 1260 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1260 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) [shard 1260 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (46) [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 47], ["value", 1]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 12600000000000040], ["value", 3]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 12590000000000047], ["value", 2]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 40], ["value", 4]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 40], ["value", 5]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1259 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1260 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1259 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1260 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1259 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1260 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1259 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (47) [shard 1259 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) [shard 1260 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1260 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) [shard 1260 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (47) [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 48], ["value", 1]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 48], ["value", 2]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 41], ["value", 3]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 41], ["value", 4]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 41], ["value", 5]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 48 [shard 1259 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1259 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 41 [shard 1260 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1260 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (42, 43) [shard 1259 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (37, 38, 39) [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 49], ["value", 1]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 49], ["value", 2]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 42], ["value", 3]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 42], ["value", 4]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 42], ["value", 5]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 49 [shard 1259 master]  (0.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1259 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 42 [shard 1260 master]  (0.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1260 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (44, 45) [shard 1259 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (40, 41, 42) [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 50], ["value", 1]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 50], ["value", 2]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 43], ["value", 3]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 43], ["value", 4]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 43], ["value", 5]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 50 [shard 1259 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1259 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 43 [shard 1260 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1260 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (46, 47) [shard 1259 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (43, 44, 45) [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 51], ["value", 1]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 51], ["value", 2]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 44], ["value", 3]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 44], ["value", 4]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 44], ["value", 5]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 51 [shard 1259 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1259 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 44 [shard 1260 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1260 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (48, 49) [shard 1259 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (46, 47, 48) [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 52], ["value", 1]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 52], ["value", 2]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 45], ["value", 3]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 45], ["value", 4]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["user_id", 45], ["value", 5]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 52 [shard 1259 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 1259 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 45 [shard 1260 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 1260 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (50, 51) [shard 1259 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (49, 50, 51) [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1258], ["name", nil]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1259], ["name", "switchman_test_shard_1259"]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1260], ["name", "switchman_test_shard_1260"]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.0ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (1258, 1259) AND (id IN (1259,1260)) [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1258], ["name", nil]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1259], ["name", "switchman_test_shard_1259"]] [shard 1258 master]  (0.2ms) COMMIT [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1260], ["name", "switchman_test_shard_1260"]] [shard 1258 master]  (0.2ms) COMMIT [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1258 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master]  (0.0ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1258], ["name", nil]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1259], ["name", "switchman_test_shard_1259"]] [shard 1258 master]  (0.2ms) COMMIT [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1260], ["name", "switchman_test_shard_1260"]] [shard 1258 master]  (0.2ms) COMMIT [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SELECT COUNT(*) FROM "users" [shard 1260 master]  (0.1ms) SAVEPOINT active_record_2 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1260 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) SELECT COUNT(*) FROM "users" [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1258], ["name", nil]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1259], ["name", "switchman_test_shard_1259"]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1260], ["name", "switchman_test_shard_1260"]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1258], ["name", nil]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1259], ["name", "switchman_test_shard_1259"]] [shard 1258 master]  (0.2ms) COMMIT [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1260], ["name", "switchman_test_shard_1260"]] [shard 1258 master]  (0.2ms) COMMIT [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 54]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 12590000000000054 LIMIT 1 [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1259 LIMIT 1 [shard 1258 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 55]] [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 56 LIMIT 1 [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 1258 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1258 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1259 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 58 LIMIT 1 [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) LIMIT 1 [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", "non_existent_shard"]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 1266 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.8ms) SELECT COUNT(*) FROM "users"  [shard 1267 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1258], ["name", nil]] [shard 1258 master]  (0.2ms) COMMIT [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1259], ["name", "switchman_test_shard_1259"]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1260], ["name", "switchman_test_shard_1260"]] [shard 1258 master]  (0.2ms) COMMIT [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master] SQL (0.9ms) DELETE FROM "switchman_shards" [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1258], ["name", nil]] [shard 1258 master]  (0.2ms) COMMIT [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1259], ["name", "switchman_test_shard_1259"]] [shard 1258 master]  (0.2ms) COMMIT [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1260], ["name", "switchman_test_shard_1260"]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 60 LIMIT 1 [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:30 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1259 LIMIT 1 [shard 1258 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2152) [shard 1258 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 63 [shard 1259 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2154]] [shard 1258 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (2155) [shard 1258 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (64) [shard 1259 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2155]] [shard 1258 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 64]] [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1258], ["name", nil]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1259], ["name", "switchman_test_shard_1259"]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1260], ["name", "switchman_test_shard_1260"]] [shard 1258 master]  (0.2ms) COMMIT [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 50]] [shard 1258 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 50]] [shard 1258 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 50 LIMIT 1 [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.0ms) ROLLBACK [shard 1258 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master]  (0.0ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master]  (0.0ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master]  (0.0ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master]  (0.0ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master]  (0.0ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master]  (0.0ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master]  (0.0ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master]  (0.0ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master]  (0.0ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master]  (0.0ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1258], ["name", nil]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1259], ["name", "switchman_test_shard_1259"]] [shard 1258 master]  (0.2ms) COMMIT [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1260], ["name", "switchman_test_shard_1260"]] [shard 1258 master]  (0.2ms) COMMIT [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '31' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "31"], ["default", false], ["name", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.0ms) select sqlite_version(*) [shard 1276 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 1276 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1276 deploy]  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1276 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 1276 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1276 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1276 deploy]  (0.8ms) commit transaction [shard 1276 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 1276 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1276 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1276 deploy]  (0.7ms) commit transaction [shard 1276 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 1276 deploy]  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1276 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1276 deploy]  (0.6ms) commit transaction [shard 1276 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 1276 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1276 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1276 deploy]  (0.6ms) commit transaction [shard 1276 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 1276 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1276 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1276 deploy]  (0.8ms) commit transaction [shard 1276 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 1276 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 1276 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1276 deploy]  (0.7ms) commit transaction [shard 1276 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 1276 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1276 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1276 deploy]  (0.6ms) commit transaction [shard 1276 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_1276.sqlite3' WHERE "switchman_shards"."id" = 1276 [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) begin transaction [shard 1276 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1276 master]  (0.7ms) commit transaction [shard 1276 master] Drop failed: No such file or directory @ unlink_internal - db/shard_1276.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1276]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '32' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "32"], ["default", false], ["name", "public"]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (6.4ms) CREATE SCHEMA switchman_test_shard_1277 [shard 1277 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1277 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1277 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1277 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1277 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1277 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1277 deploy]  (0.3ms) COMMIT [shard 1277 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1277 deploy]  (1.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1277 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1277 deploy]  (0.3ms) COMMIT [shard 1277 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1277 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1277 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1277 deploy]  (0.3ms) COMMIT [shard 1277 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1277 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1277 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1277 deploy]  (0.3ms) COMMIT [shard 1277 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1277 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1277 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1277 deploy]  (0.3ms) COMMIT [shard 1277 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1277 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1277 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1277 deploy]  (0.2ms) COMMIT [shard 1277 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1277 deploy]  (1.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1277 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1277 deploy]  (0.2ms) COMMIT [shard 1277 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1277' WHERE "switchman_shards"."id" = 1277 [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) BEGIN [shard 1277 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1277 master]  (0.3ms) COMMIT [shard 1277 master]  (4.8ms) DROP SCHEMA switchman_test_shard_1277 CASCADE [shard 1277 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1277]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 1258 master]  (0.2ms) CREATE SCHEMA switchman_test_shard_1278 [shard 1278 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1278 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1278 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1278 deploy] Migrating to CreateUsers (20130403132607)  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1278 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1278 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1278 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1278 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1278 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1278 deploy] Migrating to CreateDigits (20131022202028)  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1278 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1278 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1278 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1278 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1278 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1278 deploy] Migrating to CreateRoots (20140219183820)  (2.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1278 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1278 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1278' WHERE "switchman_shards"."id" = 1278 [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1278 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1278 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1278 master]  (2.7ms) DROP SCHEMA switchman_test_shard_1278 CASCADE [shard 1278 deploy]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1278]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (2.1ms) ROLLBACK [shard 1258 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1258], ["name", nil]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1259], ["name", "switchman_test_shard_1259"]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1260], ["name", "switchman_test_shard_1260"]] [shard 1258 master]  (0.2ms) COMMIT [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "33"], ["default", false], ["name", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "33"], ["default", false], ["name", nil]] [shard 1258 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1258], ["name", nil]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1259], ["name", "switchman_test_shard_1259"]] [shard 1258 master]  (0.2ms) COMMIT [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1260], ["name", "switchman_test_shard_1260"]] [shard 1258 master]  (0.2ms) COMMIT [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:31 UTC +00:00]] [shard 1259 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.0ms) ROLLBACK [shard 1260 master]  (0.0ms) ROLLBACK [shard 1259 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1258], ["name", nil]] [shard 1258 master]  (0.3ms) COMMIT [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1259], ["name", "switchman_test_shard_1259"]] [shard 1258 master]  (0.2ms) COMMIT [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1260], ["name", "switchman_test_shard_1260"]] [shard 1258 master]  (0.2ms) COMMIT [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 2156], ["value", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 66], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 2157], ["value", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 67], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1259 LIMIT 1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 2158], ["value", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 68], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 2159], ["value", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1259 master]  (0.0ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 2160], ["value", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 70], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 2161], ["value", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 71], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 2162], ["value", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 72], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 2163], ["value", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 73], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 2164], ["value", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 74], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 2165], ["value", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 75], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2165], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2166], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2166]] [shard 1258 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2165 LIMIT 1 [shard 1258 master]  (0.1ms) SHOW max_identifier_length [shard 1258 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 2165 [shard 1258 master]  (0.2ms) ROLLBACK [shard 1260 master]  (0.2ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 2168], ["value", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 76], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.0ms) BEGIN [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 2169], ["value", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 77], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 2170], ["value", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 78], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 2171], ["value", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 79], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 62], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 2172], ["value", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 80], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 63], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master]  (0.1ms) BEGIN [shard 1258 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1259]] [shard 1258 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1260]] [shard 1258 master]  (0.1ms) BEGIN [shard 1260 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 2173], ["value", nil]] [shard 1258 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1259 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 81], ["value", nil]] [shard 1259 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1259 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1260 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:24:31 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1260 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1258 master]  (0.1ms) ROLLBACK [shard 1260 master]  (0.1ms) ROLLBACK [shard 1258 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1258 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1258 master]  (0.0ms) BEGIN [shard 1258 master]  (0.0ms) ROLLBACK [shard 1258 master]  (4.2ms) DROP SCHEMA switchman_test_shard_1259 CASCADE [shard 1259 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1259]]  (0.1ms) COMMIT  (5.7ms) DROP SCHEMA switchman_test_shard_1260 CASCADE [shard 1260 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1260]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.8ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.3ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.2ms) CREATE SCHEMA switchman_test_shard_1282 [shard 1282 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1282 deploy]  (6.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1282 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1282 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1282 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1282 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1282 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1282 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1282 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1282 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1282 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1282 deploy] Migrating to CreateFeatures (20131206172923)  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1282 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1282 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1282 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1282 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1282 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1282 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1282' WHERE "switchman_shards"."id" = 1282 [shard 1281 master]  (0.7ms) COMMIT [shard 1281 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_1283 [shard 1283 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1283 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1283 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1283 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1283 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1283 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1283 deploy]  (0.3ms) COMMIT [shard 1283 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1283 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1283 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1283 deploy]  (0.3ms) COMMIT [shard 1283 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1283 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1283 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1283 deploy]  (0.3ms) COMMIT [shard 1283 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1283 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1283 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1283 deploy]  (0.3ms) COMMIT [shard 1283 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1283 deploy]  (2.3ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1283 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1283 deploy]  (0.4ms) COMMIT [shard 1283 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1283 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1283 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1283 deploy]  (0.2ms) COMMIT [shard 1283 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) BEGIN [shard 1283 deploy]  (1.4ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1283 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1283 deploy]  (0.3ms) COMMIT [shard 1283 deploy]  (0.1ms) BEGIN [shard 1281 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1283' WHERE "switchman_shards"."id" = 1283 [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1281], ["name", nil]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1282], ["name", "switchman_test_shard_1282"]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1283], ["name", "switchman_test_shard_1283"]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (1.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1282 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1281 master] SQL (0.1ms) DELETE FROM "users" [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1281 master] SQL (0.1ms) DELETE FROM "users" [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00]] [shard 1281 master]  (0.4ms) COMMIT [shard 1281 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1281 master] SQL (1.0ms) DELETE FROM "users" [shard 1281 master] SQL (0.2ms) DELETE FROM "users" [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2179]] [shard 1281 master] CACHE (0.0ms) 1281::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2179]] CACHE (0.0ms) 1281::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2179]]  (0.1ms) BEGIN [shard 1281 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-10-23 16:25:42.889195' WHERE "users"."id" = 2179 [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2179]] [shard 1281 master] CACHE (0.0ms) 1281::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2179]] SQL (0.4ms) DELETE FROM "users" [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00]] [shard 1281 master]  (0.4ms) COMMIT [shard 1281 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1281 master] SQL (0.3ms) DELETE FROM "users" [shard 1281 master] SQL (0.1ms) DELETE FROM "users" [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1281 master]  (0.0ms) ROLLBACK [shard 1283 master]  (0.0ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.0ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00]] [shard 1281 master]  (0.4ms) COMMIT [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1281 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-10-23 16:25:42.969925' [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1281 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-10-23 16:25:42.975144' [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1281 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-10-23 16:25:42.978886' [shard 1281 master] SQL (0.3ms) DELETE FROM "users" [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:42 UTC +00:00]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1281 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-10-23 16:25:42.983212' [shard 1281 master] SQL (0.3ms) DELETE FROM "users" [shard 1281 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1281], ["name", nil]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1282], ["name", "switchman_test_shard_1282"]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1283], ["name", "switchman_test_shard_1283"]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1284]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1282 LIMIT 1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1285]] [shard 1281 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1285 LIMIT 1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '2' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", "public"]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1286 [shard 1286 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1286 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1286 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1286 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1286 deploy]  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1286 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1286 deploy]  (0.3ms) COMMIT [shard 1286 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1286 deploy]  (1.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1286 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1286 deploy]  (0.3ms) COMMIT [shard 1286 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) BEGIN [shard 1286 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1286 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1286 deploy]  (0.3ms) COMMIT [shard 1286 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1286 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1286 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1286 deploy]  (0.3ms) COMMIT [shard 1286 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1286 deploy]  (1.4ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1286 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1286 deploy]  (0.3ms) COMMIT [shard 1286 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 1286 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1286 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1286 deploy]  (0.3ms) COMMIT [shard 1286 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1286 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1286 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1286 deploy]  (0.3ms) COMMIT [shard 1286 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1286' WHERE "switchman_shards"."id" = 1286 [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) BEGIN [shard 1286 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1286 master]  (0.3ms) COMMIT [shard 1286 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 1286 master]  (4.7ms) DROP SCHEMA switchman_test_shard_1286 CASCADE [shard 1286 deploy]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 1286 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11283 LIMIT 1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1283 LIMIT 1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) ROLLBACK [shard 1283 master]  (0.0ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) ROLLBACK [shard 1283 master]  (0.0ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) ROLLBACK [shard 1283 master]  (0.0ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) ROLLBACK [shard 1283 master]  (0.0ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) ROLLBACK [shard 1283 master]  (0.0ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master] SQL (6.1ms) DELETE FROM "switchman_shards" [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1281], ["name", nil]] [shard 1281 master]  (4.8ms) COMMIT [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1282], ["name", "switchman_test_shard_1282"]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1283], ["name", "switchman_test_shard_1283"]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 5 [shard 1282 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1282 LIMIT 1 [shard 1281 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 5]] [shard 1282 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 5 [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 2]] [shard 1282 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 6 LIMIT 1 [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 7 AND "appendages"."id" = $1 LIMIT 1 [["id", 3]] [shard 1282 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 5 AND "appendages"."id" = $1 LIMIT 1 [["id", 12820000000000003]] [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1283 LIMIT 1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 9], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 10], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 9]] [shard 1282 master]  (0.1ms) SHOW max_identifier_length [shard 1282 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 9 AND "users"."id" = 11 LIMIT 1 [shard 1282 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 9]] [shard 1282 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 9 AND "users"."id" = 12830000000000008 LIMIT 1 [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6], ["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 13 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", nil], ["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["appendage_id", 8], ["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["id", 12830000000000001], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 16 AND "digits"."id" = $1 LIMIT 1 [["id", 12830000000000001]] [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9], ["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12820000000000018], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2], ["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["value", 2]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 18 AND "digits"."value" IS NULL [shard 1282 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 12820000000000018 AND "digits"."value" IS NULL [shard 1283 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 1282 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 18 AND "digits"."value" IS NULL [shard 1282 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 12820000000000018 AND "digits"."value" IS NULL [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10], ["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10], ["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["value", 1]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12820000000000019], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3], ["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["value", 2]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 19 AND (digits.value IS NOT NULL) [shard 1282 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 12820000000000019 AND (digits.value IS NOT NULL) [shard 1283 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [shard 1282 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 19 AND (digits.value IS NOT NULL) [shard 1282 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 12820000000000019 AND (digits.value IS NOT NULL) [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 20], ["value", 1]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12820000000000020], ["value", 2]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 20 [shard 1282 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 1282 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 20 [shard 1282 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 12820000000000020 [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12], ["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12820000000000021], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5], ["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["value", 2]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 21 AND "digits"."value" IS NULL [shard 1282 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 12820000000000021 AND "digits"."value" IS NULL [shard 1283 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 1282 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 21 AND "digits"."value" IS NULL [shard 1282 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 12820000000000021 AND "digits"."value" IS NULL [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 22], ["value", 1]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12820000000000022], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 22], ["value", 2]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 22]] [shard 1282 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 22 AND (appendages.value IS NOT NULL) [shard 1282 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 12820000000000022 AND (appendages.value IS NOT NULL) [shard 1283 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 22]] [shard 1282 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 22 AND (appendages.value IS NOT NULL) [shard 1282 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 12820000000000022 AND (appendages.value IS NOT NULL) [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 23], ["value", 1]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12820000000000023], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 23 AND "appendages"."value" IS NULL [shard 1282 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 12820000000000023 AND "appendages"."value" IS NULL [shard 1283 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 23]] [shard 1282 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 23 AND "appendages"."value" IS NULL [shard 1282 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 12820000000000023 AND "appendages"."value" IS NULL [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 16], ["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["value", 1]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12820000000000024], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["value", 2]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 24 [shard 1282 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 24]] [shard 1282 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 24 [shard 1282 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 12820000000000024 [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12830000000000022]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 51]] [shard 1281 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 22 LIMIT 1 [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 26], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12820000000000026], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12820000000000026], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 17], ["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9], ["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12830000000000009], ["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12830000000000010], ["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12830000000000023], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12820000000000018], ["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12830000000000011], ["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (6.9ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12], ["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 1282 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (26) [shard 1282 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (12820000000000026) [shard 1283 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (17) [shard 1282 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (9, 10) [shard 1283 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 1283 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (23) [shard 1283 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (11, 12) [shard 1283 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 1282 master]  (0.2ms) ROLLBACK [shard 1283 master]  (0.2ms) ROLLBACK [shard 1282 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12820000000000027], ["value", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12830000000000024], ["value", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 2189], ["value", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 1281 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 1282 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 1283 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2189) [shard 1281 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 27 [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12820000000000028], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12830000000000025], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 1282 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (28) [shard 1282 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (12820000000000028) [shard 1283 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 1283 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (25) [shard 1283 master] SQL (0.1ms) DELETE FROM "appendages" WHERE "appendages"."id" = 19 [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1069], ["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["value", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12810000000001069], ["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1069 LIMIT 1 [shard 1281 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1069) [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12820000000000030], ["value", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1070], ["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["value", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12830000000000027], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12820000000000021], ["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["value", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 1281 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (1070) [shard 1281 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (21) [shard 1282 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [shard 1282 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 1283 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 30 [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12830000000000028], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 22]] [shard 1282 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 28 LIMIT 1 [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 32 LIMIT 1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 23]] [shard 1282 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 32 LIMIT 1 [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["owner_id", 1071], ["owner_type", "Appendage"], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["value", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 105]] [shard 1281 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1071 LIMIT 1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master]  (0.2ms) UPDATE "features" SET "owner_id" = 12820000000000033, "owner_type" = 'User', "updated_at" = '2014-10-23 16:25:43.725630' WHERE "features"."id" = 105 [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 105]] [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["owner_id", 34], ["owner_type", "User"], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["value", 1]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["owner_id", 12820000000000034], ["owner_type", "User"], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["value", 2]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 34 AND "features"."owner_type" = 'User' [shard 1282 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 34]] [shard 1282 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 34 AND "features"."owner_type" = 'User' [shard 1282 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 12820000000000034 AND "features"."owner_type" = 'User' [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1281], ["name", nil]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1282], ["name", "switchman_test_shard_1282"]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1283], ["name", "switchman_test_shard_1283"]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", "non_existent_shard"]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 1287 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.7ms) SELECT COUNT(*) FROM "users"  [shard 1288 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1281], ["name", nil]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1282], ["name", "switchman_test_shard_1282"]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1283], ["name", "switchman_test_shard_1283"]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1282 LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1283 LIMIT 1 [shard 1281 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (36) [shard 1282 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (32) [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 25 [shard 1282 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 16 [shard 1283 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 25 [shard 1282 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 16 [shard 1283 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 25 [shard 1282 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 16 [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 26 [shard 1282 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 17 [shard 1283 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 26 [shard 1282 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 17 [shard 1283 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 26 [shard 1282 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 17 [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 39], ["value", 1]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12830000000000035], ["value", 3]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12820000000000039], ["value", 2]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 35], ["value", 4]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 35], ["value", 5]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 41], ["value", 1]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12830000000000036], ["value", 3]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12820000000000041], ["value", 2]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 36], ["value", 4]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 36], ["value", 5]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1282 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1283 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1282 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1283 master]  (0.1ms) SHOW max_identifier_length [shard 1283 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1282 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1283 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1282 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [shard 1282 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (36) [shard 1283 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1283 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (36) [shard 1283 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 42], ["value", 1]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12830000000000037], ["value", 3]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12820000000000042], ["value", 2]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 37], ["value", 4]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 37], ["value", 5]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1282 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1283 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1282 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1283 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1282 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1283 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1282 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [shard 1282 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 1283 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1283 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 1283 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 43], ["value", 1]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12830000000000038], ["value", 3]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12820000000000043], ["value", 2]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 38], ["value", 4]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 38], ["value", 5]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1282 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1283 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1282 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1283 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1282 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1283 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1282 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) [shard 1282 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38) [shard 1283 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1283 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38) [shard 1283 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 44], ["value", 1]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12830000000000039], ["value", 3]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12820000000000044], ["value", 2]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 39], ["value", 4]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 39], ["value", 5]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1282 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1283 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1282 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1283 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1282 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1283 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1282 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (44) [shard 1282 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) [shard 1283 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1283 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) [shard 1283 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (44) [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 45], ["value", 1]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12830000000000040], ["value", 3]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 12820000000000045], ["value", 2]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 40], ["value", 4]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:43 UTC +00:00], ["user_id", 40], ["value", 5]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1282 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1283 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1282 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1283 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1282 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1283 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1282 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [shard 1282 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) [shard 1283 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1283 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) [shard 1283 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.2ms) ROLLBACK [shard 1282 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 46], ["value", 1]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 46], ["value", 2]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 41], ["value", 3]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 41], ["value", 4]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 41], ["value", 5]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 46 [shard 1282 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 1282 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 41 [shard 1283 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 1283 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (41, 42) [shard 1282 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (36, 37, 38) [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 47], ["value", 1]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 47], ["value", 2]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 42], ["value", 3]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 42], ["value", 4]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 42], ["value", 5]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 47 [shard 1282 master]  (0.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 1282 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 42 [shard 1283 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 1283 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (43, 44) [shard 1282 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (39, 40, 41) [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 48], ["value", 1]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 48], ["value", 2]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 43], ["value", 3]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 43], ["value", 4]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 43], ["value", 5]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 48 [shard 1282 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 1282 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 43 [shard 1283 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 1283 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (45, 46) [shard 1282 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (42, 43, 44) [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 49], ["value", 1]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 49], ["value", 2]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 44], ["value", 3]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 44], ["value", 4]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 44], ["value", 5]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 49 [shard 1282 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 1282 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 44 [shard 1283 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 1283 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (47, 48) [shard 1282 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (45, 46, 47) [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 50], ["value", 1]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 50], ["value", 2]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 45], ["value", 3]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 45], ["value", 4]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 45], ["value", 5]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 50 [shard 1282 master]  (0.2ms) SELECT COUNT(*) FROM "appendages"  [shard 1282 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 45 [shard 1283 master]  (0.2ms) SELECT COUNT(*) FROM "appendages"  [shard 1283 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (49, 50) [shard 1282 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (48, 49, 50) [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 1281 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1281], ["name", nil]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1282], ["name", "switchman_test_shard_1282"]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1283], ["name", "switchman_test_shard_1283"]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 1283 master]  (0.1ms) SAVEPOINT active_record_2 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1283 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) SELECT COUNT(*) FROM "users"  [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1281], ["name", nil]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1282], ["name", "switchman_test_shard_1282"]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1283], ["name", "switchman_test_shard_1283"]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1281], ["name", nil]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1282], ["name", "switchman_test_shard_1282"]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1283], ["name", "switchman_test_shard_1283"]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 51 LIMIT 1 [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1282 LIMIT 1 [shard 1281 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2191) [shard 1281 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (52) [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 54 [shard 1282 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2193]] [shard 1281 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 54]] [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (2194) [shard 1281 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (55) [shard 1282 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2194]] [shard 1281 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 55]] [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1281], ["name", nil]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1282], ["name", "switchman_test_shard_1282"]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1283], ["name", "switchman_test_shard_1283"]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) ROLLBACK [shard 1283 master]  (0.0ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) ROLLBACK [shard 1283 master]  (0.0ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.0ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.0ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1281], ["name", nil]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1282], ["name", "switchman_test_shard_1282"]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1283], ["name", "switchman_test_shard_1283"]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 2195], ["value", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 2196], ["value", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 2197], ["value", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 2198], ["value", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 2199], ["value", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 2200], ["value", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 2201], ["value", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 62], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1282 LIMIT 1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 2202], ["value", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 63], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 2203], ["value", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 2204], ["value", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 65], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 2205], ["value", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 66], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 2206], ["value", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 67], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 2207], ["value", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 68], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 2208], ["value", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 2209], ["value", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 70], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 62], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 2210], ["value", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 71], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", 63], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2210], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2211], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2211]] [shard 1281 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2210 LIMIT 1 [shard 1281 master] User Load (0.4ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 2210 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master]  (0.0ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master]  (0.0ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master]  (0.0ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master]  (0.0ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master]  (0.0ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master]  (0.0ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master]  (0.0ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master]  (0.0ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master]  (0.0ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master]  (0.0ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master]  (0.0ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1281], ["name", nil]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1282], ["name", "switchman_test_shard_1282"]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1283], ["name", "switchman_test_shard_1283"]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '27' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "27"], ["default", false], ["name", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.0ms) select sqlite_version(*) [shard 1297 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 1297 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1297 deploy]  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1297 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 1297 deploy]  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1297 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1297 deploy]  (0.8ms) commit transaction [shard 1297 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 1297 deploy]  (0.4ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1297 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1297 deploy]  (0.8ms) commit transaction [shard 1297 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 1297 deploy]  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1297 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1297 deploy]  (0.7ms) commit transaction [shard 1297 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 1297 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1297 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1297 deploy]  (0.6ms) commit transaction [shard 1297 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 1297 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1297 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1297 deploy]  (0.7ms) commit transaction [shard 1297 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 1297 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 1297 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1297 deploy]  (0.7ms) commit transaction [shard 1297 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 1297 deploy]  (0.3ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1297 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1297 deploy]  (0.8ms) commit transaction [shard 1297 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_1297.sqlite3' WHERE "switchman_shards"."id" = 1297 [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) begin transaction [shard 1297 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1297 master]  (10.9ms) commit transaction [shard 1297 master] Drop failed: No such file or directory @ unlink_internal - db/shard_1297.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1297]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '28' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "28"], ["default", false], ["name", "public"]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (5.5ms) CREATE SCHEMA switchman_test_shard_1298 [shard 1298 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1298 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1298 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1298 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1298 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1298 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1298 deploy]  (0.4ms) COMMIT [shard 1298 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1298 deploy]  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1298 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1298 deploy]  (0.3ms) COMMIT [shard 1298 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1298 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1298 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1298 deploy]  (0.4ms) COMMIT [shard 1298 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1298 deploy]  (1.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1298 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1298 deploy]  (0.3ms) COMMIT [shard 1298 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1298 deploy]  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1298 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1298 deploy]  (0.4ms) COMMIT [shard 1298 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1298 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1298 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1298 deploy]  (0.2ms) COMMIT [shard 1298 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1298 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1298 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1298 deploy]  (0.4ms) COMMIT [shard 1298 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1298' WHERE "switchman_shards"."id" = 1298 [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) BEGIN [shard 1298 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1298 master]  (0.3ms) COMMIT [shard 1298 master]  (4.6ms) DROP SCHEMA switchman_test_shard_1298 CASCADE [shard 1298 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1298]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 1281 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_1299 [shard 1299 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1299 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1299 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1299 deploy] Migrating to CreateUsers (20130403132607)  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1299 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1299 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1299 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1299 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1299 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1299 deploy] Migrating to CreateDigits (20131022202028)  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1299 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1299 deploy] Migrating to CreateFeatures (20131206172923)  (1.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1299 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1299 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1299 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1299 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1299 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1299 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1299' WHERE "switchman_shards"."id" = 1299 [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1299 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1299 master]  (2.7ms) DROP SCHEMA switchman_test_shard_1299 CASCADE [shard 1299 deploy]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1299]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (2.1ms) ROLLBACK [shard 1281 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1281], ["name", nil]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1282], ["name", "switchman_test_shard_1282"]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1283], ["name", "switchman_test_shard_1283"]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1282 LIMIT 1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1281], ["name", nil]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1282], ["name", "switchman_test_shard_1282"]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1283], ["name", "switchman_test_shard_1283"]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "29"], ["default", false], ["name", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "30"], ["default", false], ["name", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master] SQL (0.9ms) DELETE FROM "switchman_shards" [shard 1281 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1281], ["name", nil]] [shard 1281 master]  (0.4ms) COMMIT [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1282], ["name", "switchman_test_shard_1282"]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1283], ["name", "switchman_test_shard_1283"]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (1281, 1282) AND (id IN (1282,1283)) [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1281], ["name", nil]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1282], ["name", "switchman_test_shard_1282"]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1283], ["name", "switchman_test_shard_1283"]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["owner_id", 2217], ["owner_type", "User"], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["value", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master] Feature Load (0.3ms) SELECT owner_id FROM "features" WHERE "features"."id" = 106 LIMIT 1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:44 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1282 LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1283 LIMIT 1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master] SQL (5.8ms) DELETE FROM "switchman_shards" [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1281], ["name", nil]] [shard 1281 master]  (5.8ms) COMMIT [shard 1281 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1282], ["name", "switchman_test_shard_1282"]] [shard 1281 master]  (5.5ms) COMMIT [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1283], ["name", "switchman_test_shard_1283"]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:26:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:26:45 UTC +00:00]] [shard 1282 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.0ms) ROLLBACK [shard 1283 master]  (0.0ms) ROLLBACK [shard 1282 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1281], ["name", nil]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1282], ["name", "switchman_test_shard_1282"]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1283], ["name", "switchman_test_shard_1283"]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "31"], ["default", false], ["name", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "31"], ["default", false], ["name", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1281], ["name", nil]] [shard 1281 master]  (0.3ms) COMMIT [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1282], ["name", "switchman_test_shard_1282"]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1283], ["name", "switchman_test_shard_1283"]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:45 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1282 LIMIT 1 [shard 1281 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 76]] [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:45 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 77]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 12820000000000077 LIMIT 1 [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:45 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 78 LIMIT 1 [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:45 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (79) LIMIT 1 [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:45 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 80 LIMIT 1 [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1282 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:45 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:45 UTC +00:00]] [shard 1282 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1282 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1283 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:45 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Thu, 23 Oct 2014 16:25:45 UTC +00:00]] [shard 1283 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1283 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 1281 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1281 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1282 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1281], ["name", nil]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1282], ["name", "switchman_test_shard_1282"]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1283], ["name", "switchman_test_shard_1283"]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.1ms) BEGIN [shard 1283 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1281 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 23 Oct 2014 16:25:45 UTC +00:00], ["updated_at", Thu, 23 Oct 2014 16:25:45 UTC +00:00], ["user_id", nil]] [shard 1281 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1281 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 51]] [shard 1281 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 51]] [shard 1281 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 51 LIMIT 1 [shard 1282 master]  (0.1ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1282 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master]  (0.0ms) ROLLBACK [shard 1281 master]  (0.1ms) BEGIN [shard 1281 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1281], ["name", nil]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1282], ["name", "switchman_test_shard_1282"]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1283], ["name", "switchman_test_shard_1283"]] [shard 1281 master]  (0.2ms) COMMIT [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1282]] [shard 1281 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1283]] [shard 1281 master]  (0.0ms) BEGIN [shard 1283 master]  (0.0ms) ROLLBACK [shard 1283 master]  (0.1ms) ROLLBACK [shard 1281 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1281 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1281 master]  (0.0ms) BEGIN [shard 1281 master]  (0.0ms) ROLLBACK [shard 1281 master]  (5.2ms) DROP SCHEMA switchman_test_shard_1282 CASCADE [shard 1282 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1282]]  (0.1ms) COMMIT  (5.8ms) DROP SCHEMA switchman_test_shard_1283 CASCADE [shard 1283 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1283]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (7.6ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (20.0ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (24.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (1.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (2.6ms) CREATE SCHEMA switchman_test_shard_1305 [shard 1305 deploy]  (25.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1305 deploy]  (2.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1305 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1305 deploy] Migrating to CreateUsers (20130403132607)  (7.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1305 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1305 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1305 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1305 deploy] Migrating to CreateMirrorUsers (20130411202551)  (3.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1305 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1305 deploy] Migrating to CreateDigits (20131022202028)  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1305 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1305 deploy] Migrating to CreateFeatures (20131206172923)  (1.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1305 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1305 deploy] Migrating to AddParentIdToUsers (20140123154135)  (1.0ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1305 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1305 deploy] Migrating to CreateRoots (20140219183820)  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1305 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1305 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1305' WHERE "switchman_shards"."id" = 1305 [shard 1304 master]  (1.2ms) COMMIT [shard 1304 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1304 master]  (0.1ms) BEGIN [shard 1304 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 1304 master]  (0.3ms) COMMIT [shard 1304 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1306 [shard 1306 deploy]  (2.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1306 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1306 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1306 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1306 deploy]  (5.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1306 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1306 deploy]  (0.3ms) COMMIT [shard 1306 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1306 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1306 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1306 deploy]  (0.3ms) COMMIT [shard 1306 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1306 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1306 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1306 deploy]  (0.4ms) COMMIT [shard 1306 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1306 deploy]  (2.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1306 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1306 deploy]  (0.3ms) COMMIT [shard 1306 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1306 deploy]  (2.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1306 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1306 deploy]  (0.7ms) COMMIT [shard 1306 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1306 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1306 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1306 deploy]  (2.2ms) COMMIT [shard 1306 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1306 deploy]  (4.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1306 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1306 deploy]  (0.6ms) COMMIT [shard 1306 deploy]  (0.1ms) BEGIN [shard 1304 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1306' WHERE "switchman_shards"."id" = 1306 [shard 1304 master]  (0.3ms) COMMIT [shard 1304 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1304 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1304 master]  (0.1ms) BEGIN [shard 1304 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1304 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1304], ["name", nil]] [shard 1304 master]  (0.3ms) COMMIT [shard 1304 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1304 master]  (0.0ms) BEGIN [shard 1304 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1305], ["name", "switchman_test_shard_1305"]] [shard 1304 master]  (0.3ms) COMMIT [shard 1304 master]  (0.0ms) BEGIN [shard 1304 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1306], ["name", "switchman_test_shard_1306"]] [shard 1304 master]  (0.3ms) COMMIT [shard 1304 master]  (0.0ms) BEGIN [shard 1304 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1304 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1305]] [shard 1304 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1306]] [shard 1304 master]  (0.1ms) BEGIN [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (7.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1305 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (12.0ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (5.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1305 LIMIT 1 [shard 1304 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1306 LIMIT 1 [shard 1304 master] SQL (0.4ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (1) [shard 1305 master] SQL (0.3ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (1) [shard 1306 master]  (0.2ms) ROLLBACK [shard 1306 master]  (0.1ms) ROLLBACK [shard 1305 master]  (0.0ms) BEGIN [shard 1304 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1304 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1305]] [shard 1304 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1306]] [shard 1304 master]  (0.1ms) BEGIN [shard 1306 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master] SQL (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 2 [shard 1305 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 2 [shard 1306 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 2 [shard 1305 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 2 [shard 1306 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 2 [shard 1305 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 2 [shard 1306 master]  (0.1ms) ROLLBACK [shard 1306 master]  (0.1ms) ROLLBACK [shard 1305 master]  (0.0ms) BEGIN [shard 1304 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1304 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1305]] [shard 1304 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1306]] [shard 1304 master]  (0.0ms) BEGIN [shard 1306 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1304 master] SQL (2.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1304 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1304 master] SQL (0.8ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (2218) [shard 1304 master] SQL (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (3) [shard 1305 master] SQL (0.5ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (3) [shard 1306 master]  (0.1ms) ROLLBACK [shard 1306 master]  (0.1ms) ROLLBACK [shard 1305 master]  (0.1ms) BEGIN [shard 1304 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1304 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1305]] [shard 1304 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1306]] [shard 1304 master]  (0.1ms) BEGIN [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 4 [shard 1305 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 4 [shard 1306 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 4 [shard 1305 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 4 [shard 1306 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 4 [shard 1305 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 4 [shard 1306 master]  (0.1ms) ROLLBACK [shard 1306 master]  (0.1ms) ROLLBACK [shard 1305 master]  (0.0ms) BEGIN [shard 1304 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1304 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1305]] [shard 1304 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1306]] [shard 1304 master]  (0.0ms) BEGIN [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 5], ["value", 1]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 13060000000000005], ["value", 3]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 13050000000000005], ["value", 2]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 5], ["value", 4]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 5], ["value", 5]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SHOW max_identifier_length [shard 1304 master]  (1.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1305 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1306 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1305 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1306 master]  (0.1ms) SHOW max_identifier_length [shard 1306 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1305 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1306 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1305 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [shard 1305 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [shard 1306 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1306 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [shard 1306 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [shard 1305 master]  (0.1ms) ROLLBACK [shard 1306 master]  (0.1ms) ROLLBACK [shard 1305 master]  (0.0ms) BEGIN [shard 1304 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1304 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1305]] [shard 1304 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1306]] [shard 1304 master]  (0.0ms) BEGIN [shard 1306 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 6], ["value", 1]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 13060000000000006], ["value", 3]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 13050000000000006], ["value", 2]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 6], ["value", 4]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 6], ["value", 5]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (1.1ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1305 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1306 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1305 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1306 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1305 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1306 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1305 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) [shard 1305 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) [shard 1306 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1306 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) [shard 1306 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) [shard 1305 master]  (0.1ms) ROLLBACK [shard 1306 master]  (0.1ms) ROLLBACK [shard 1305 master]  (0.0ms) BEGIN [shard 1304 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1304 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1305]] [shard 1304 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1306]] [shard 1304 master]  (0.0ms) BEGIN [shard 1306 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1305 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 7], ["value", 1]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 13060000000000007], ["value", 3]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 13050000000000007], ["value", 2]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 7], ["value", 4]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 7], ["value", 5]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1305 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1306 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1305 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1306 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1305 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1306 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1305 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (7) [shard 1305 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (7) [shard 1306 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1306 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (7) [shard 1306 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (7) [shard 1305 master]  (0.1ms) ROLLBACK [shard 1306 master]  (0.1ms) ROLLBACK [shard 1305 master]  (0.1ms) BEGIN [shard 1304 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1304 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1305]] [shard 1304 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1306]] [shard 1304 master]  (0.1ms) BEGIN [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 8], ["value", 1]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 13060000000000008], ["value", 3]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 13050000000000008], ["value", 2]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 8], ["value", 4]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 8], ["value", 5]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.7ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1305 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1306 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1305 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1306 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1305 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1306 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1305 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (8) [shard 1305 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (8) [shard 1306 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1306 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (8) [shard 1306 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (8) [shard 1305 master]  (0.1ms) ROLLBACK [shard 1306 master]  (0.1ms) ROLLBACK [shard 1305 master]  (0.0ms) BEGIN [shard 1304 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1304 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1305]] [shard 1304 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1306]] [shard 1304 master]  (0.0ms) BEGIN [shard 1306 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 9], ["value", 1]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 13060000000000009], ["value", 3]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 13050000000000009], ["value", 2]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 9], ["value", 4]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 9], ["value", 5]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1305 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1306 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1305 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1306 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1305 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1306 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1305 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (9) [shard 1305 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (9) [shard 1306 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1306 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (9) [shard 1306 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (9) [shard 1305 master]  (0.1ms) ROLLBACK [shard 1306 master]  (0.1ms) ROLLBACK [shard 1305 master]  (0.0ms) BEGIN [shard 1304 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1304 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1305]] [shard 1304 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1306]] [shard 1304 master]  (0.1ms) BEGIN [shard 1306 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 10], ["value", 1]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 13060000000000010], ["value", 3]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 13050000000000010], ["value", 2]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 10], ["value", 4]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 10], ["value", 5]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 1305 master]  (0.1ms) ROLLBACK [shard 1306 master]  (0.1ms) ROLLBACK [shard 1305 master]  (0.0ms) BEGIN [shard 1304 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1304 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1305]] [shard 1304 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1306]] [shard 1304 master]  (0.0ms) BEGIN [shard 1306 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 12], ["value", 1]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 12], ["value", 2]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 11], ["value", 3]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 11], ["value", 4]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 11], ["value", 5]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 12 [shard 1305 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1305 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 11 [shard 1306 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1306 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (19, 20) [shard 1305 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (23, 24, 25) [shard 1306 master]  (0.1ms) ROLLBACK [shard 1306 master]  (0.2ms) ROLLBACK [shard 1305 master]  (0.0ms) BEGIN [shard 1304 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1304 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1305]] [shard 1304 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1306]] [shard 1304 master]  (0.1ms) BEGIN [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 13], ["value", 1]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 13], ["value", 2]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 12], ["value", 3]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 12], ["value", 4]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 12], ["value", 5]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 13 [shard 1305 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1305 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 12 [shard 1306 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1306 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (21, 22) [shard 1305 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (26, 27, 28) [shard 1306 master]  (0.1ms) ROLLBACK [shard 1306 master]  (0.1ms) ROLLBACK [shard 1305 master]  (0.0ms) BEGIN [shard 1304 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1304 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1305]] [shard 1304 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1306]] [shard 1304 master]  (0.1ms) BEGIN [shard 1306 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 14], ["value", 1]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 14], ["value", 2]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 13], ["value", 3]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 13], ["value", 4]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 13], ["value", 5]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 14 [shard 1305 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1305 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 13 [shard 1306 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1306 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (23, 24) [shard 1305 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (29, 30, 31) [shard 1306 master]  (0.1ms) ROLLBACK [shard 1306 master]  (0.1ms) ROLLBACK [shard 1305 master]  (0.1ms) BEGIN [shard 1304 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1304 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1305]] [shard 1304 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1306]] [shard 1304 master]  (0.1ms) BEGIN [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 15], ["value", 1]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 15], ["value", 2]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 14], ["value", 3]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 14], ["value", 4]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 14], ["value", 5]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 15 [shard 1305 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1305 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 14 [shard 1306 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1306 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (25, 26) [shard 1305 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (32, 33, 34) [shard 1306 master]  (0.1ms) ROLLBACK [shard 1306 master]  (0.1ms) ROLLBACK [shard 1305 master]  (0.1ms) BEGIN [shard 1304 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1304 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1305]] [shard 1304 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1306]] [shard 1304 master]  (0.1ms) BEGIN [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 16], ["value", 1]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1305 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 16], ["value", 2]] [shard 1305 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1305 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 15], ["value", 3]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 15], ["value", 4]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1306 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["updated_at", Tue, 18 Nov 2014 19:52:56 UTC +00:00], ["user_id", 15], ["value", 5]] [shard 1306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1306 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 16 [shard 1305 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 1305 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 15 [shard 1306 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 1306 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (27, 28) [shard 1305 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (35, 36, 37) [shard 1306 master]  (0.1ms) ROLLBACK [shard 1306 master]  (0.1ms) ROLLBACK [shard 1305 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1304 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1304 master]  (8.5ms) DROP SCHEMA switchman_test_shard_1305 CASCADE [shard 1305 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1305]]  (0.1ms) COMMIT  (5.5ms) DROP SCHEMA switchman_test_shard_1306 CASCADE [shard 1306 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1306]]  (0.1ms) COMMIT  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (1.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.4ms) BEGIN Switchman::Shard Exists (0.4ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.4ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (6.1ms) COMMIT Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (1.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1308 [shard 1308 deploy]  (8.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1308 deploy]  (7.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1308 deploy] ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1308 deploy] Migrating to CreateUsers (20130403132607)  (8.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1308 deploy] SQL (6.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1308 deploy] Migrating to CreateAppendages (20130411202442)  (31.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1308 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1308 deploy] Migrating to CreateMirrorUsers (20130411202551)  (9.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1308 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1308 deploy] Migrating to CreateDigits (20131022202028)  (6.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1308 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1308 deploy] Migrating to CreateFeatures (20131206172923)  (2.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1308 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1308 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1308 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1308 deploy] Migrating to CreateRoots (20140219183820)  (3.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1308 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1308 deploy] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1308 [["name", "switchman_test_shard_1308"]] [shard 1307 master]  (7.3ms) COMMIT [shard 1307 master] Switchman::Shard Load (17.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1307 master]  (0.1ms) BEGIN [shard 1307 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1307 master]  (0.3ms) COMMIT [shard 1307 master]  (0.8ms) CREATE SCHEMA switchman_test_shard_1309 [shard 1309 deploy]  (9.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1309 deploy]  (13.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1309 deploy] ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1309 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1309 deploy]  (15.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1309 deploy] SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1309 deploy]  (0.6ms) COMMIT [shard 1309 deploy] Migrating to CreateAppendages (20130411202442)  (0.3ms) BEGIN [shard 1309 deploy]  (8.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1309 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1309 deploy]  (0.4ms) COMMIT [shard 1309 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.3ms) BEGIN [shard 1309 deploy]  (2.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1309 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1309 deploy]  (0.4ms) COMMIT [shard 1309 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 1309 deploy]  (5.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1309 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1309 deploy]  (0.6ms) COMMIT [shard 1309 deploy] Migrating to CreateFeatures (20131206172923)  (0.3ms) BEGIN [shard 1309 deploy]  (3.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1309 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1309 deploy]  (2.5ms) COMMIT [shard 1309 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) BEGIN [shard 1309 deploy]  (1.1ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1309 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1309 deploy]  (0.7ms) COMMIT [shard 1309 deploy] Migrating to CreateRoots (20140219183820)  (0.2ms) BEGIN [shard 1309 deploy]  (3.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1309 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1309 deploy]  (0.5ms) COMMIT [shard 1309 deploy]  (0.2ms) BEGIN [shard 1307 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1309 [["name", "switchman_test_shard_1309"]] [shard 1307 master]  (0.4ms) COMMIT [shard 1307 master] SQL (1.2ms) DELETE FROM "switchman_shards" [shard 1307 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1307 master]  (0.2ms) BEGIN [shard 1307 master] Switchman::Shard Exists (0.4ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1307 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1307]] [shard 1307 master]  (0.4ms) COMMIT [shard 1307 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1307 master]  (0.1ms) BEGIN [shard 1307 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1308], ["name", "switchman_test_shard_1308"]] [shard 1307 master]  (0.4ms) COMMIT [shard 1307 master]  (0.1ms) BEGIN [shard 1307 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1309], ["name", "switchman_test_shard_1309"]] [shard 1307 master]  (0.8ms) COMMIT [shard 1307 master]  (0.1ms) BEGIN [shard 1307 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1307 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1308]] [shard 1307 master] Switchman::Shard Load (1.0ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1309]] [shard 1307 master]  (0.1ms) BEGIN [shard 1309 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:07.507316"], ["name", "user1"], ["updated_at", "2014-11-18 19:58:07.507316"]] [shard 1308 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.592890"], ["updated_at", "2014-11-18 19:58:07.592890"], ["user_id", 1], ["value", 1]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.598143"], ["updated_at", "2014-11-18 19:58:07.598143"], ["user_id", 1], ["value", 2]] [shard 1308 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:07.601763"], ["name", "user2"], ["updated_at", "2014-11-18 19:58:07.601763"]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.609541"], ["updated_at", "2014-11-18 19:58:07.609541"], ["user_id", 1], ["value", 3]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.614256"], ["updated_at", "2014-11-18 19:58:07.614256"], ["user_id", 1], ["value", 4]] [shard 1309 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.617932"], ["updated_at", "2014-11-18 19:58:07.617932"], ["user_id", 1], ["value", 5]] [shard 1309 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 1]] [shard 1308 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1308 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 1]] [shard 1309 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1309 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1308 LIMIT 1 [shard 1307 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1309 LIMIT 1 [shard 1307 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (1, 2) [shard 1308 master]  (0.5ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (1, 2, 3) [shard 1309 master]  (0.2ms) ROLLBACK [shard 1309 master]  (0.4ms) ROLLBACK [shard 1308 master]  (0.1ms) BEGIN [shard 1307 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1307 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1308]] [shard 1307 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1309]] [shard 1307 master]  (0.1ms) BEGIN [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:07.652860"], ["name", "user1"], ["updated_at", "2014-11-18 19:58:07.652860"]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.657664"], ["updated_at", "2014-11-18 19:58:07.657664"], ["user_id", 2], ["value", 1]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.661728"], ["updated_at", "2014-11-18 19:58:07.661728"], ["user_id", 2], ["value", 2]] [shard 1308 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:07.665001"], ["name", "user2"], ["updated_at", "2014-11-18 19:58:07.665001"]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (1.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.669223"], ["updated_at", "2014-11-18 19:58:07.669223"], ["user_id", 2], ["value", 3]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.673922"], ["updated_at", "2014-11-18 19:58:07.673922"], ["user_id", 2], ["value", 4]] [shard 1309 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.676575"], ["updated_at", "2014-11-18 19:58:07.676575"], ["user_id", 2], ["value", 5]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 2]] [shard 1308 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" [shard 1308 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 2]] [shard 1309 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" [shard 1309 master]  (0.4ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (3, 4) [shard 1308 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (4, 5, 6) [shard 1309 master]  (0.5ms) ROLLBACK [shard 1309 master]  (0.2ms) ROLLBACK [shard 1308 master]  (0.1ms) BEGIN [shard 1307 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1307 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1308]] [shard 1307 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1309]] [shard 1307 master]  (0.1ms) BEGIN [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:07.698335"], ["name", "user1"], ["updated_at", "2014-11-18 19:58:07.698335"]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.703020"], ["updated_at", "2014-11-18 19:58:07.703020"], ["user_id", 3], ["value", 1]] [shard 1308 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.706948"], ["updated_at", "2014-11-18 19:58:07.706948"], ["user_id", 3], ["value", 2]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:07.709965"], ["name", "user2"], ["updated_at", "2014-11-18 19:58:07.709965"]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.714606"], ["updated_at", "2014-11-18 19:58:07.714606"], ["user_id", 3], ["value", 3]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.717821"], ["updated_at", "2014-11-18 19:58:07.717821"], ["user_id", 3], ["value", 4]] [shard 1309 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.721841"], ["updated_at", "2014-11-18 19:58:07.721841"], ["user_id", 3], ["value", 5]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 3]] [shard 1308 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1308 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 3]] [shard 1309 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1309 master]  (0.5ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (5, 6) [shard 1308 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (7, 8, 9) [shard 1309 master]  (0.3ms) ROLLBACK [shard 1309 master]  (0.2ms) ROLLBACK [shard 1308 master]  (0.1ms) BEGIN [shard 1307 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1307 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1308]] [shard 1307 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1309]] [shard 1307 master]  (0.1ms) BEGIN [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:07.752301"], ["name", "user1"], ["updated_at", "2014-11-18 19:58:07.752301"]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.756606"], ["updated_at", "2014-11-18 19:58:07.756606"], ["user_id", 4], ["value", 1]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.759168"], ["updated_at", "2014-11-18 19:58:07.759168"], ["user_id", 4], ["value", 2]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:07.761415"], ["name", "user2"], ["updated_at", "2014-11-18 19:58:07.761415"]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.764990"], ["updated_at", "2014-11-18 19:58:07.764990"], ["user_id", 4], ["value", 3]] [shard 1309 master]  (0.4ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.769298"], ["updated_at", "2014-11-18 19:58:07.769298"], ["user_id", 4], ["value", 4]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.773360"], ["updated_at", "2014-11-18 19:58:07.773360"], ["user_id", 4], ["value", 5]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 4]] [shard 1308 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1308 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 4]] [shard 1309 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1309 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (7, 8) [shard 1308 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (10, 11, 12) [shard 1309 master]  (0.1ms) ROLLBACK [shard 1309 master]  (0.2ms) ROLLBACK [shard 1308 master]  (0.1ms) BEGIN [shard 1307 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1307 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1308]] [shard 1307 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1309]] [shard 1307 master]  (0.1ms) BEGIN [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:07.794430"], ["name", "user1"], ["updated_at", "2014-11-18 19:58:07.794430"]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.798043"], ["updated_at", "2014-11-18 19:58:07.798043"], ["user_id", 5], ["value", 1]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.800896"], ["updated_at", "2014-11-18 19:58:07.800896"], ["user_id", 5], ["value", 2]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:07.803789"], ["name", "user2"], ["updated_at", "2014-11-18 19:58:07.803789"]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.808387"], ["updated_at", "2014-11-18 19:58:07.808387"], ["user_id", 5], ["value", 3]] [shard 1309 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.811946"], ["updated_at", "2014-11-18 19:58:07.811946"], ["user_id", 5], ["value", 4]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.815400"], ["updated_at", "2014-11-18 19:58:07.815400"], ["user_id", 5], ["value", 5]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 5]] [shard 1308 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1308 master]  (0.5ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 5]] [shard 1309 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1309 master]  (0.5ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (9, 10) [shard 1308 master]  (0.6ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (13, 14, 15) [shard 1309 master]  (0.4ms) ROLLBACK [shard 1309 master]  (0.2ms) ROLLBACK [shard 1308 master]  (0.1ms) BEGIN [shard 1307 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1307 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1308]] [shard 1307 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1309]] [shard 1307 master]  (0.1ms) BEGIN [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:07.839275"], ["name", "user1"], ["updated_at", "2014-11-18 19:58:07.839275"]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:07.842505"], ["name", "user2"], ["updated_at", "2014-11-18 19:58:07.842505"]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.845984"], ["updated_at", "2014-11-18 19:58:07.845984"], ["user_id", 6], ["value", 1]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.851042"], ["updated_at", "2014-11-18 19:58:07.851042"], ["user_id", 13090000000000006], ["value", 3]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.854683"], ["updated_at", "2014-11-18 19:58:07.854683"], ["user_id", 13080000000000006], ["value", 2]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.857749"], ["updated_at", "2014-11-18 19:58:07.857749"], ["user_id", 6], ["value", 4]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.860550"], ["updated_at", "2014-11-18 19:58:07.860550"], ["user_id", 6], ["value", 5]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:07.866265"], ["updated_at", "2014-11-18 19:58:07.866265"], ["user_id", 6]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 19:58:07.869296"], ["updated_at", "2014-11-18 19:58:07.869296"]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:07.873509"], ["updated_at", "2014-11-18 19:58:07.873509"], ["user_id", 7]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 1308 master]  (0.1ms) ROLLBACK [shard 1309 master]  (0.1ms) ROLLBACK [shard 1308 master]  (0.1ms) BEGIN [shard 1307 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1307 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1308]] [shard 1307 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1309]] [shard 1307 master]  (0.1ms) BEGIN [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:07.897439"], ["name", "user1"], ["updated_at", "2014-11-18 19:58:07.897439"]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:07.899455"], ["name", "user2"], ["updated_at", "2014-11-18 19:58:07.899455"]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.901249"], ["updated_at", "2014-11-18 19:58:07.901249"], ["user_id", 8], ["value", 1]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.903688"], ["updated_at", "2014-11-18 19:58:07.903688"], ["user_id", 13090000000000007], ["value", 3]] [shard 1308 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.909130"], ["updated_at", "2014-11-18 19:58:07.909130"], ["user_id", 13080000000000008], ["value", 2]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.911965"], ["updated_at", "2014-11-18 19:58:07.911965"], ["user_id", 7], ["value", 4]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.914735"], ["updated_at", "2014-11-18 19:58:07.914735"], ["user_id", 7], ["value", 5]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1308 master]  (0.5ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1309 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1308 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1309 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1308 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1309 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1308 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (8) [shard 1308 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (7) [shard 1309 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1309 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (7) [shard 1309 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (8) [shard 1308 master]  (0.2ms) ROLLBACK [shard 1309 master]  (0.2ms) ROLLBACK [shard 1308 master]  (0.4ms) BEGIN [shard 1307 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1307 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1308]] [shard 1307 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1309]] [shard 1307 master]  (0.1ms) BEGIN [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:07.947039"], ["name", "user1"], ["updated_at", "2014-11-18 19:58:07.947039"]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:07.950132"], ["name", "user2"], ["updated_at", "2014-11-18 19:58:07.950132"]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.953151"], ["updated_at", "2014-11-18 19:58:07.953151"], ["user_id", 9], ["value", 1]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.956593"], ["updated_at", "2014-11-18 19:58:07.956593"], ["user_id", 13090000000000008], ["value", 3]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.960027"], ["updated_at", "2014-11-18 19:58:07.960027"], ["user_id", 13080000000000009], ["value", 2]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.963121"], ["updated_at", "2014-11-18 19:58:07.963121"], ["user_id", 8], ["value", 4]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:07.965981"], ["updated_at", "2014-11-18 19:58:07.965981"], ["user_id", 8], ["value", 5]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1308 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1309 master]  (0.4ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1308 master]  (0.4ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1309 master]  (0.4ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1308 master]  (0.4ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1309 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1308 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (9) [shard 1308 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (8) [shard 1309 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1309 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (8) [shard 1309 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (9) [shard 1308 master]  (0.2ms) ROLLBACK [shard 1309 master]  (0.2ms) ROLLBACK [shard 1308 master]  (0.1ms) BEGIN [shard 1307 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1307 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1308]] [shard 1307 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1309]] [shard 1307 master]  (0.1ms) BEGIN [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:07.997983"], ["name", "user1"], ["updated_at", "2014-11-18 19:58:07.997983"]] [shard 1308 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:08.001094"], ["name", "user2"], ["updated_at", "2014-11-18 19:58:08.001094"]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:08.004245"], ["updated_at", "2014-11-18 19:58:08.004245"], ["user_id", 10], ["value", 1]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:08.008191"], ["updated_at", "2014-11-18 19:58:08.008191"], ["user_id", 13090000000000009], ["value", 3]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:08.012098"], ["updated_at", "2014-11-18 19:58:08.012098"], ["user_id", 13080000000000010], ["value", 2]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:08.015092"], ["updated_at", "2014-11-18 19:58:08.015092"], ["user_id", 9], ["value", 4]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:08.018038"], ["updated_at", "2014-11-18 19:58:08.018038"], ["user_id", 9], ["value", 5]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1308 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1309 master]  (0.4ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1308 master]  (0.4ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1309 master]  (0.4ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1308 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1309 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1308 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [shard 1308 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (9) [shard 1309 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1309 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (9) [shard 1309 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [shard 1308 master]  (0.2ms) ROLLBACK [shard 1309 master]  (0.1ms) ROLLBACK [shard 1308 master]  (0.1ms) BEGIN [shard 1307 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1307 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1308]] [shard 1307 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1309]] [shard 1307 master]  (0.2ms) BEGIN [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:08.050722"], ["name", "user1"], ["updated_at", "2014-11-18 19:58:08.050722"]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:08.053590"], ["name", "user2"], ["updated_at", "2014-11-18 19:58:08.053590"]] [shard 1309 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:08.084094"], ["updated_at", "2014-11-18 19:58:08.084094"], ["user_id", 11], ["value", 1]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:08.087448"], ["updated_at", "2014-11-18 19:58:08.087448"], ["user_id", 13090000000000010], ["value", 3]] [shard 1308 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (1.0ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:08.092263"], ["updated_at", "2014-11-18 19:58:08.092263"], ["user_id", 13080000000000011], ["value", 2]] [shard 1309 master]  (0.5ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:08.096049"], ["updated_at", "2014-11-18 19:58:08.096049"], ["user_id", 10], ["value", 4]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:08.098987"], ["updated_at", "2014-11-18 19:58:08.098987"], ["user_id", 10], ["value", 5]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1308 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1309 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1308 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1309 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1308 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1309 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1308 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (11) [shard 1308 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [shard 1309 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1309 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [shard 1309 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (11) [shard 1308 master]  (0.2ms) ROLLBACK [shard 1309 master]  (0.2ms) ROLLBACK [shard 1308 master]  (0.1ms) BEGIN [shard 1307 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1307 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1308]] [shard 1307 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1309]] [shard 1307 master]  (0.1ms) BEGIN [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:08.130647"], ["name", "user1"], ["updated_at", "2014-11-18 19:58:08.130647"]] [shard 1308 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:08.141314"], ["name", "user2"], ["updated_at", "2014-11-18 19:58:08.141314"]] [shard 1309 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:08.144819"], ["updated_at", "2014-11-18 19:58:08.144819"], ["user_id", 12], ["value", 1]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:08.149098"], ["updated_at", "2014-11-18 19:58:08.149098"], ["user_id", 13090000000000011], ["value", 3]] [shard 1308 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:08.153373"], ["updated_at", "2014-11-18 19:58:08.153373"], ["user_id", 13080000000000012], ["value", 2]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:08.156825"], ["updated_at", "2014-11-18 19:58:08.156825"], ["user_id", 11], ["value", 4]] [shard 1309 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 19:58:08.160382"], ["updated_at", "2014-11-18 19:58:08.160382"], ["user_id", 11], ["value", 5]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1308 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1309 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1308 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1309 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1308 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1309 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1308 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (12) [shard 1308 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (11) [shard 1309 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1309 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (11) [shard 1309 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (12) [shard 1308 master]  (0.2ms) ROLLBACK [shard 1309 master]  (0.3ms) ROLLBACK [shard 1308 master]  (0.1ms) BEGIN [shard 1307 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1307 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1308]] [shard 1307 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1309]] [shard 1307 master]  (0.1ms) BEGIN [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:08.195566"], ["name", "user1"], ["updated_at", "2014-11-18 19:58:08.195566"]] [shard 1308 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.5ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:08.202228"], ["updated_at", "2014-11-18 19:58:08.202228"], ["user_id", 13]] [shard 1308 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:08.206103"], ["name", "user2"], ["updated_at", "2014-11-18 19:58:08.206103"]] [shard 1309 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:08.211599"], ["updated_at", "2014-11-18 19:58:08.211599"], ["user_id", 12]] [shard 1309 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.5ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 25 [shard 1308 master]  (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 1309 master]  (0.4ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 25 [shard 1308 master]  (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 1309 master]  (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 25 [shard 1308 master]  (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 1309 master]  (0.1ms) ROLLBACK [shard 1309 master]  (0.2ms) ROLLBACK [shard 1308 master]  (0.1ms) BEGIN [shard 1307 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1307 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1308]] [shard 1307 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1309]] [shard 1307 master]  (0.1ms) BEGIN [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:08.236898"], ["name", "user1"], ["updated_at", "2014-11-18 19:58:08.236898"]] [shard 1308 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:08.243158"], ["updated_at", "2014-11-18 19:58:08.243158"], ["user_id", 14]] [shard 1308 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:08.247029"], ["name", "user2"], ["updated_at", "2014-11-18 19:58:08.247029"]] [shard 1309 master]  (0.3ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:08.254639"], ["updated_at", "2014-11-18 19:58:08.254639"], ["user_id", 13]] [shard 1309 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.4ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 26 [shard 1308 master]  (0.4ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 1309 master]  (0.4ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 26 [shard 1308 master]  (0.4ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 1309 master]  (0.4ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 26 [shard 1308 master]  (0.4ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 1309 master]  (0.2ms) ROLLBACK [shard 1309 master]  (0.2ms) ROLLBACK [shard 1308 master]  (0.1ms) BEGIN [shard 1307 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1307 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1308]] [shard 1307 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1309]] [shard 1307 master]  (0.1ms) BEGIN [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:08.279854"], ["name", "user1"], ["updated_at", "2014-11-18 19:58:08.279854"]] [shard 1308 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:08.284924"], ["updated_at", "2014-11-18 19:58:08.284924"], ["user_id", 15]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:08.287174"], ["name", "user2"], ["updated_at", "2014-11-18 19:58:08.287174"]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:08.289911"], ["updated_at", "2014-11-18 19:58:08.289911"], ["user_id", 14]] [shard 1309 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.3ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (15) [shard 1308 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (14) [shard 1309 master]  (0.1ms) ROLLBACK [shard 1309 master]  (0.1ms) ROLLBACK [shard 1308 master]  (0.1ms) BEGIN [shard 1307 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1307 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1308]] [shard 1307 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1309]] [shard 1307 master]  (0.1ms) BEGIN [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:08.299730"], ["name", "user1"], ["updated_at", "2014-11-18 19:58:08.299730"]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1308 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:08.302252"], ["updated_at", "2014-11-18 19:58:08.302252"], ["user_id", 16]] [shard 1308 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1308 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:08.303939"], ["name", "user2"], ["updated_at", "2014-11-18 19:58:08.303939"]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1309 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:08.306862"], ["updated_at", "2014-11-18 19:58:08.306862"], ["user_id", 15]] [shard 1309 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1309 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1307 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 19:58:08.309352"], ["name", "user2"], ["updated_at", "2014-11-18 19:58:08.309352"]] [shard 1307 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1307 master]  (0.4ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (2219) [shard 1307 master]  (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (16) [shard 1308 master]  (1.0ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (15) [shard 1309 master]  (3.2ms) ROLLBACK [shard 1309 master]  (0.4ms) ROLLBACK [shard 1308 master] SQL (24.6ms) DELETE FROM "switchman_shards" [shard 1307 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1307 master]  (23.5ms) DROP SCHEMA switchman_test_shard_1308 CASCADE [shard 1308 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1308]]  (0.1ms) COMMIT  (31.1ms) DROP SCHEMA switchman_test_shard_1309 CASCADE [shard 1309 deploy]  (0.3ms) BEGIN SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1309]]  (0.2ms) COMMIT  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (6.5ms) COMMIT Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.2ms) CREATE SCHEMA switchman_test_shard_1311 [shard 1311 deploy]  (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1311 deploy]  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1311 deploy] ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1311 deploy] Migrating to CreateUsers (20130403132607)  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1311 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1311 deploy] Migrating to CreateAppendages (20130411202442)  (2.3ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1311 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1311 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1311 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1311 deploy] Migrating to CreateDigits (20131022202028)  (2.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1311 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1311 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1311 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1311 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1311 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1311 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1311 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1311 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1311 [["name", "switchman_test_shard_1311"]] [shard 1310 master]  (0.8ms) COMMIT [shard 1310 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master]  (6.1ms) CREATE SCHEMA switchman_test_shard_1312 [shard 1312 deploy]  (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1312 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1312 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1312 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1312 deploy]  (6.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1312 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1312 deploy]  (0.3ms) COMMIT [shard 1312 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 1312 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1312 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1312 deploy]  (0.4ms) COMMIT [shard 1312 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1312 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1312 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1312 deploy]  (0.4ms) COMMIT [shard 1312 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1312 deploy]  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1312 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1312 deploy]  (0.6ms) COMMIT [shard 1312 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 1312 deploy]  (2.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1312 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1312 deploy]  (0.3ms) COMMIT [shard 1312 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1312 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1312 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1312 deploy]  (0.3ms) COMMIT [shard 1312 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1312 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1312 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1312 deploy]  (0.4ms) COMMIT [shard 1312 deploy]  (0.1ms) BEGIN [shard 1310 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1312 [["name", "switchman_test_shard_1312"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1310]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1311], ["name", "switchman_test_shard_1311"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1312], ["name", "switchman_test_shard_1312"]] [shard 1310 master]  (0.2ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.254457"], ["updated_at", "2014-11-18 20:00:23.254457"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (2.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.272619"], ["updated_at", "2014-11-18 20:00:23.272619"], ["user_id", 2220]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.277282"], ["updated_at", "2014-11-18 20:00:23.277282"]] [shard 1311 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.282065"], ["updated_at", "2014-11-18 20:00:23.282065"], ["user_id", 1]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.284453"], ["updated_at", "2014-11-18 20:00:23.284453"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.288471"], ["updated_at", "2014-11-18 20:00:23.288471"], ["user_id", 1]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.296555"], ["updated_at", "2014-11-18 20:00:23.296555"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.299458"], ["updated_at", "2014-11-18 20:00:23.299458"], ["user_id", 2221]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.301482"], ["updated_at", "2014-11-18 20:00:23.301482"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.304236"], ["updated_at", "2014-11-18 20:00:23.304236"], ["user_id", 2]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.305908"], ["updated_at", "2014-11-18 20:00:23.305908"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.308976"], ["updated_at", "2014-11-18 20:00:23.308976"], ["user_id", 2]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.316083"], ["updated_at", "2014-11-18 20:00:23.316083"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.318844"], ["updated_at", "2014-11-18 20:00:23.318844"], ["user_id", 2222]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.321132"], ["updated_at", "2014-11-18 20:00:23.321132"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.324829"], ["updated_at", "2014-11-18 20:00:23.324829"], ["user_id", 3]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.327310"], ["updated_at", "2014-11-18 20:00:23.327310"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.330811"], ["updated_at", "2014-11-18 20:00:23.330811"], ["user_id", 3]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.338408"], ["updated_at", "2014-11-18 20:00:23.338408"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.342032"], ["updated_at", "2014-11-18 20:00:23.342032"], ["user_id", 2223]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.344328"], ["updated_at", "2014-11-18 20:00:23.344328"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.347829"], ["updated_at", "2014-11-18 20:00:23.347829"], ["user_id", 4]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.349570"], ["updated_at", "2014-11-18 20:00:23.349570"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.352201"], ["updated_at", "2014-11-18 20:00:23.352201"], ["user_id", 4]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.358209"], ["updated_at", "2014-11-18 20:00:23.358209"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.360695"], ["updated_at", "2014-11-18 20:00:23.360695"], ["user_id", 2224]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.362689"], ["updated_at", "2014-11-18 20:00:23.362689"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.366267"], ["updated_at", "2014-11-18 20:00:23.366267"], ["user_id", 5]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.368373"], ["updated_at", "2014-11-18 20:00:23.368373"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.371119"], ["updated_at", "2014-11-18 20:00:23.371119"], ["user_id", 5]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.377803"], ["updated_at", "2014-11-18 20:00:23.377803"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.380246"], ["updated_at", "2014-11-18 20:00:23.380246"], ["user_id", 2225]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.382014"], ["updated_at", "2014-11-18 20:00:23.382014"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.384411"], ["updated_at", "2014-11-18 20:00:23.384411"], ["user_id", 6]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.385875"], ["updated_at", "2014-11-18 20:00:23.385875"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.388389"], ["updated_at", "2014-11-18 20:00:23.388389"], ["user_id", 6]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.394253"], ["updated_at", "2014-11-18 20:00:23.394253"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.396504"], ["updated_at", "2014-11-18 20:00:23.396504"], ["user_id", 2226]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.398137"], ["updated_at", "2014-11-18 20:00:23.398137"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.400536"], ["updated_at", "2014-11-18 20:00:23.400536"], ["user_id", 7]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.402340"], ["updated_at", "2014-11-18 20:00:23.402340"]] [shard 1312 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.405612"], ["updated_at", "2014-11-18 20:00:23.405612"], ["user_id", 7]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1311 LIMIT 1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.413943"], ["updated_at", "2014-11-18 20:00:23.413943"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.416232"], ["updated_at", "2014-11-18 20:00:23.416232"], ["user_id", 2227]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.417839"], ["updated_at", "2014-11-18 20:00:23.417839"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.420658"], ["updated_at", "2014-11-18 20:00:23.420658"], ["user_id", 8]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.422280"], ["updated_at", "2014-11-18 20:00:23.422280"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.425215"], ["updated_at", "2014-11-18 20:00:23.425215"], ["user_id", 8]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (5.2ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.427728"], ["updated_at", "2014-11-18 20:00:23.427728"]] [shard 1311 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.2ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.441949"], ["updated_at", "2014-11-18 20:00:23.441949"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.444439"], ["updated_at", "2014-11-18 20:00:23.444439"], ["user_id", 2228]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.446111"], ["updated_at", "2014-11-18 20:00:23.446111"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.448551"], ["updated_at", "2014-11-18 20:00:23.448551"], ["user_id", 9]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.449984"], ["updated_at", "2014-11-18 20:00:23.449984"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.452444"], ["updated_at", "2014-11-18 20:00:23.452444"], ["user_id", 9]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.460119"], ["updated_at", "2014-11-18 20:00:23.460119"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.463029"], ["updated_at", "2014-11-18 20:00:23.463029"], ["user_id", 2229]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.465309"], ["updated_at", "2014-11-18 20:00:23.465309"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.468170"], ["updated_at", "2014-11-18 20:00:23.468170"], ["user_id", 10]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.469909"], ["updated_at", "2014-11-18 20:00:23.469909"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.473113"], ["updated_at", "2014-11-18 20:00:23.473113"], ["user_id", 10]] [shard 1312 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.477024"], ["parent_id", 2229], ["updated_at", "2014-11-18 20:00:23.477024"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.479289"], ["parent_id", 2230], ["updated_at", "2014-11-18 20:00:23.479289"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2230]] [shard 1310 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2229]] [shard 1310 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 [["parent_id", 2229]] [shard 1310 master]  (0.2ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.493379"], ["updated_at", "2014-11-18 20:00:23.493379"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.496152"], ["updated_at", "2014-11-18 20:00:23.496152"], ["user_id", 2232]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.498176"], ["updated_at", "2014-11-18 20:00:23.498176"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.500967"], ["updated_at", "2014-11-18 20:00:23.500967"], ["user_id", 11]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.502658"], ["updated_at", "2014-11-18 20:00:23.502658"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.506235"], ["updated_at", "2014-11-18 20:00:23.506235"], ["user_id", 11]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.2ms) ROLLBACK [shard 1310 master]  (0.2ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.514265"], ["updated_at", "2014-11-18 20:00:23.514265"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.517272"], ["updated_at", "2014-11-18 20:00:23.517272"], ["user_id", 2233]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.519565"], ["updated_at", "2014-11-18 20:00:23.519565"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.522260"], ["updated_at", "2014-11-18 20:00:23.522260"], ["user_id", 12]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.523995"], ["updated_at", "2014-11-18 20:00:23.523995"]] [shard 1312 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.528395"], ["updated_at", "2014-11-18 20:00:23.528395"], ["user_id", 12]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.535418"], ["updated_at", "2014-11-18 20:00:23.535418"]] [shard 1310 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.538425"], ["updated_at", "2014-11-18 20:00:23.538425"], ["user_id", 2234]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.540204"], ["updated_at", "2014-11-18 20:00:23.540204"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.543221"], ["updated_at", "2014-11-18 20:00:23.543221"], ["user_id", 13]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.544878"], ["updated_at", "2014-11-18 20:00:23.544878"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.547431"], ["updated_at", "2014-11-18 20:00:23.547431"], ["user_id", 13]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.2ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.553424"], ["updated_at", "2014-11-18 20:00:23.553424"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.555686"], ["updated_at", "2014-11-18 20:00:23.555686"], ["user_id", 2235]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.557454"], ["updated_at", "2014-11-18 20:00:23.557454"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.559970"], ["updated_at", "2014-11-18 20:00:23.559970"], ["user_id", 14]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.561505"], ["updated_at", "2014-11-18 20:00:23.561505"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.563957"], ["updated_at", "2014-11-18 20:00:23.563957"], ["user_id", 14]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.570023"], ["updated_at", "2014-11-18 20:00:23.570023"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.572741"], ["updated_at", "2014-11-18 20:00:23.572741"], ["user_id", 2236]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.575172"], ["updated_at", "2014-11-18 20:00:23.575172"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.578656"], ["updated_at", "2014-11-18 20:00:23.578656"], ["user_id", 15]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.580652"], ["updated_at", "2014-11-18 20:00:23.580652"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.583982"], ["updated_at", "2014-11-18 20:00:23.583982"], ["user_id", 15]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.592714"], ["updated_at", "2014-11-18 20:00:23.592714"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.595526"], ["updated_at", "2014-11-18 20:00:23.595526"], ["user_id", 2237]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.597346"], ["updated_at", "2014-11-18 20:00:23.597346"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.599894"], ["updated_at", "2014-11-18 20:00:23.599894"], ["user_id", 16]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.601345"], ["updated_at", "2014-11-18 20:00:23.601345"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:23.603901"], ["updated_at", "2014-11-18 20:00:23.603901"], ["user_id", 16]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "2"], ["name", "non_existent_shard"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (6.9ms) SELECT COUNT(*) FROM "users" [shard 1313 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.7ms) SELECT COUNT(*) FROM "users" [shard 1314 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "3"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "4"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "5"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "6"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "7"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "8"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1310]] [shard 1310 master]  (0.4ms) COMMIT [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.2ms) BEGIN [shard 1310 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1311], ["name", "switchman_test_shard_1311"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1312], ["name", "switchman_test_shard_1312"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "9"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.801304"], ["updated_at", "2014-11-18 20:00:23.801304"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "10"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master] SQL (10.5ms) DELETE FROM "switchman_shards" [shard 1310 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1310 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1310]] [shard 1310 master]  (25.5ms) COMMIT [shard 1310 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.3ms) BEGIN [shard 1310 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1311], ["name", "switchman_test_shard_1311"]] [shard 1310 master]  (5.6ms) COMMIT [shard 1310 master]  (0.2ms) BEGIN [shard 1310 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1312], ["name", "switchman_test_shard_1312"]] [shard 1310 master]  (6.2ms) COMMIT [shard 1310 master]  (0.2ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:23.998474"], ["updated_at", "2014-11-18 20:00:23.998474"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.000954"], ["updated_at", "2014-11-18 20:00:24.000954"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.003038"], ["updated_at", "2014-11-18 20:00:24.003038"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master] User Load (0.3ms) SELECT "users".* FROM "users" [shard 1311 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.011607"], ["updated_at", "2014-11-18 20:00:24.011607"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1310 master] SQL (0.1ms) DELETE FROM "users" [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.018855"], ["updated_at", "2014-11-18 20:00:24.018855"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1310 master] SQL (0.1ms) DELETE FROM "users" [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.022776"], ["updated_at", "2014-11-18 20:00:24.022776"]] [shard 1310 master]  (0.4ms) COMMIT [shard 1310 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1310 master] SQL (1.1ms) DELETE FROM "users" [shard 1310 master] SQL (0.2ms) DELETE FROM "users" [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.040154"], ["updated_at", "2014-11-18 20:00:24.040154"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.042365"], ["name", "a"], ["updated_at", "2014-11-18 20:00:24.042365"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2244]] [shard 1310 master] CACHE (0.0ms) 1310::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2244]] CACHE (0.0ms) 1310::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2244]]  (0.1ms) BEGIN [shard 1310 master] SQL (0.2ms) UPDATE "users" SET "name" = $1, "updated_at" = $2 WHERE "users"."id" = 2244 [["name", "b"], ["updated_at", "2014-11-18 20:00:24.046101"]] [shard 1310 master]  (0.4ms) COMMIT [shard 1310 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2244]] [shard 1310 master] CACHE (0.0ms) 1310::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2244]] SQL (0.4ms) DELETE FROM "users" [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.053228"], ["updated_at", "2014-11-18 20:00:24.053228"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1310 master] SQL (0.3ms) DELETE FROM "users" [shard 1310 master] SQL (0.1ms) DELETE FROM "users" [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.088198"], ["updated_at", "2014-11-18 20:00:24.088198"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.094491"], ["updated_at", "2014-11-18 20:00:24.094491"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.100453"], ["updated_at", "2014-11-18 20:00:24.100453"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.106253"], ["updated_at", "2014-11-18 20:00:24.106253"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.112353"], ["updated_at", "2014-11-18 20:00:24.112353"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1310 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-11-18 20:00:24.113980' [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.118386"], ["updated_at", "2014-11-18 20:00:24.118386"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1310 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-11-18 20:00:24.120224' [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.122390"], ["updated_at", "2014-11-18 20:00:24.122390"]] [shard 1310 master]  (0.4ms) COMMIT [shard 1310 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1310 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-11-18 20:00:24.124240' [shard 1310 master] SQL (0.3ms) DELETE FROM "users" [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.127216"], ["updated_at", "2014-11-18 20:00:24.127216"]] [shard 1310 master]  (0.4ms) COMMIT [shard 1310 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1310 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-11-18 20:00:24.129772' [shard 1310 master] SQL (0.3ms) DELETE FROM "users" [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master] User Load (0.1ms) SELECT "users".* FROM "users" FOR UPDATE [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1310 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1310]] [shard 1310 master]  (6.2ms) COMMIT [shard 1310 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1311], ["name", "switchman_test_shard_1311"]] [shard 1310 master]  (6.2ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1312], ["name", "switchman_test_shard_1312"]] [shard 1310 master]  (5.0ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.195642"], ["updated_at", "2014-11-18 20:00:24.195642"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 1312 master]  (0.1ms) SAVEPOINT active_record_2 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.201310"], ["updated_at", "2014-11-18 20:00:24.201310"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1312 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) SELECT COUNT(*) FROM "users" [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master] SQL (5.8ms) DELETE FROM "switchman_shards" [shard 1310 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1310 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1310]] [shard 1310 master]  (6.2ms) COMMIT [shard 1310 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1311], ["name", "switchman_test_shard_1311"]] [shard 1310 master]  (4.8ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1312], ["name", "switchman_test_shard_1312"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "11"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "11"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1310 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1310]] [shard 1310 master]  (6.2ms) COMMIT [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1311], ["name", "switchman_test_shard_1311"]] [shard 1310 master]  (6.0ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1312], ["name", "switchman_test_shard_1312"]] [shard 1310 master]  (5.7ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.273537"], ["name", "user1"], ["updated_at", "2014-11-18 20:00:24.273537"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.275386"], ["name", "user2"], ["updated_at", "2014-11-18 20:00:24.275386"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 19 ORDER BY "users"."id" ASC LIMIT 1 [shard 1311 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.282012"], ["name", "user1"], ["updated_at", "2014-11-18 20:00:24.282012"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.283655"], ["name", "user2"], ["updated_at", "2014-11-18 20:00:24.283655"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1311 LIMIT 1 [shard 1310 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2255) [shard 1310 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 1311 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.293813"], ["name", "user1"], ["updated_at", "2014-11-18 20:00:24.293813"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.295661"], ["name", "user2"], ["updated_at", "2014-11-18 20:00:24.295661"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.301272"], ["name", "user1"], ["updated_at", "2014-11-18 20:00:24.301272"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.302921"], ["name", "user2"], ["updated_at", "2014-11-18 20:00:24.302921"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 22 [shard 1311 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2257]] [shard 1310 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 22]] [shard 1311 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.311913"], ["name", "user1"], ["updated_at", "2014-11-18 20:00:24.311913"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.313660"], ["name", "user2"], ["updated_at", "2014-11-18 20:00:24.313660"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (2258) [shard 1310 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (23) [shard 1311 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2258]] [shard 1310 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 23]] [shard 1311 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1310]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1311], ["name", "switchman_test_shard_1311"]] [shard 1310 master]  (0.2ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1312], ["name", "switchman_test_shard_1312"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.332143"], ["updated_at", "2014-11-18 20:00:24.332143"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1310]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1311], ["name", "switchman_test_shard_1311"]] [shard 1310 master]  (0.2ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1312], ["name", "switchman_test_shard_1312"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.347410"], ["updated_at", "2014-11-18 20:00:24.347410"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1311 LIMIT 1 [shard 1310 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 25]] [shard 1311 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.355444"], ["updated_at", "2014-11-18 20:00:24.355444"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 26]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 13110000000000026 ORDER BY "users"."id" ASC LIMIT 1 [shard 1311 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.363804"], ["updated_at", "2014-11-18 20:00:24.363804"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 27 LIMIT 1 [shard 1311 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.370075"], ["updated_at", "2014-11-18 20:00:24.370075"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.371572"], ["name", "multi-shard exists"], ["updated_at", "2014-11-18 20:00:24.371572"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 1310 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1310 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1311 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.2ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.384215"], ["updated_at", "2014-11-18 20:00:24.384215"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 29 LIMIT 1 [shard 1311 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.391353"], ["updated_at", "2014-11-18 20:00:24.391353"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) LIMIT 1 [shard 1311 master]  (0.2ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1310]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1311], ["name", "switchman_test_shard_1311"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1312], ["name", "switchman_test_shard_1312"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.407496"], ["updated_at", "2014-11-18 20:00:24.407496"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.409211"], ["updated_at", "2014-11-18 20:00:24.409211"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.413445"], ["updated_at", "2014-11-18 20:00:24.413445"], ["user_id", 31]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 17], ["created_at", "2014-11-18 20:00:24.422091"], ["updated_at", "2014-11-18 20:00:24.422091"]] [shard 1311 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1311 LIMIT 1 [shard 1310 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 31], ["id", 1]] [shard 1311 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.435890"], ["updated_at", "2014-11-18 20:00:24.435890"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.437482"], ["updated_at", "2014-11-18 20:00:24.437482"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.440999"], ["updated_at", "2014-11-18 20:00:24.440999"], ["user_id", 32]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.444923"], ["updated_at", "2014-11-18 20:00:24.444923"], ["user_id", 21]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1312 LIMIT 1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.454213"], ["updated_at", "2014-11-18 20:00:24.454213"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.456101"], ["updated_at", "2014-11-18 20:00:24.456101"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.459130"], ["updated_at", "2014-11-18 20:00:24.459130"], ["user_id", 33]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 33], ["id", 19]] [shard 1311 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 22], ["id", 13110000000000019]] [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.469601"], ["updated_at", "2014-11-18 20:00:24.469601"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.471097"], ["updated_at", "2014-11-18 20:00:24.471097"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.477848"], ["updated_at", "2014-11-18 20:00:24.477848"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.479751"], ["updated_at", "2014-11-18 20:00:24.479751"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.482656"], ["updated_at", "2014-11-18 20:00:24.482656"], ["user_id", 35]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 35]] [shard 1311 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 35]] [shard 1311 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 35]] [shard 1311 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.494430"], ["updated_at", "2014-11-18 20:00:24.494430"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.495999"], ["updated_at", "2014-11-18 20:00:24.495999"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.498266"], ["parent_id", 36], ["updated_at", "2014-11-18 20:00:24.498266"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.500475"], ["parent_id", 37], ["updated_at", "2014-11-18 20:00:24.500475"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 36]] [shard 1311 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 38 LIMIT 1 [["parent_id", 36]] [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.505885"], ["id", 38], ["updated_at", "2014-11-18 20:00:24.505885"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 36]] [shard 1311 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 13120000000000038 LIMIT 1 [["parent_id", 36]] [shard 1311 master]  (0.2ms) ROLLBACK [shard 1312 master]  (0.2ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.515581"], ["updated_at", "2014-11-18 20:00:24.515581"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.516982"], ["updated_at", "2014-11-18 20:00:24.516982"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.519440"], ["updated_at", "2014-11-18 20:00:24.519440"], ["user_id", 39]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 21]] [shard 1311 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 39]] [shard 1311 master]  (0.2ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.527831"], ["updated_at", "2014-11-18 20:00:24.527831"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.530209"], ["updated_at", "2014-11-18 20:00:24.530209"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.533226"], ["updated_at", "2014-11-18 20:00:24.533226"], ["user_id", 40]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.4ms) INSERT INTO "digits" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.534818"], ["updated_at", "2014-11-18 20:00:24.534818"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 22], ["created_at", "2014-11-18 20:00:24.537141"], ["id", 13120000000000001], ["updated_at", "2014-11-18 20:00:24.537141"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 40], ["id", 13120000000000001]] [shard 1311 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.546071"], ["updated_at", "2014-11-18 20:00:24.546071"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.547774"], ["updated_at", "2014-11-18 20:00:24.547774"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.554455"], ["updated_at", "2014-11-18 20:00:24.554455"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.555878"], ["updated_at", "2014-11-18 20:00:24.555878"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.558443"], ["updated_at", "2014-11-18 20:00:24.558443"], ["user_id", 42]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.564338"], ["updated_at", "2014-11-18 20:00:24.564338"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.565858"], ["updated_at", "2014-11-18 20:00:24.565858"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.567322"], ["updated_at", "2014-11-18 20:00:24.567322"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.575298"], ["updated_at", "2014-11-18 20:00:24.575298"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.576887"], ["updated_at", "2014-11-18 20:00:24.576887"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.579512"], ["updated_at", "2014-11-18 20:00:24.579512"], ["user_id", 44]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.585997"], ["updated_at", "2014-11-18 20:00:24.585997"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.587387"], ["updated_at", "2014-11-18 20:00:24.587387"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.593902"], ["updated_at", "2014-11-18 20:00:24.593902"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.602156"], ["updated_at", "2014-11-18 20:00:24.602156"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:24.604152"], ["updated_at", "2014-11-18 20:00:24.604152"], ["user_id", 46], ["value", 1]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.606366"], ["updated_at", "2014-11-18 20:00:24.606366"], ["user_id", 13110000000000046]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 46]] [shard 1311 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 13110000000000046]] [shard 1312 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 1311 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 46]] [shard 1311 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 13110000000000046]] [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.619697"], ["updated_at", "2014-11-18 20:00:24.619697"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.621148"], ["updated_at", "2014-11-18 20:00:24.621148"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.622743"], ["updated_at", "2014-11-18 20:00:24.622743"], ["user_id", 47]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 26], ["created_at", "2014-11-18 20:00:24.625773"], ["updated_at", "2014-11-18 20:00:24.625773"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.628163"], ["updated_at", "2014-11-18 20:00:24.628163"], ["user_id", 13110000000000047]] [shard 1312 master]  (0.3ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 19], ["created_at", "2014-11-18 20:00:24.632334"], ["updated_at", "2014-11-18 20:00:24.632334"], ["value", 2]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 47]] [shard 1311 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 13110000000000047]] [shard 1312 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 47]] [shard 1311 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 47]] [shard 1311 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 13110000000000047]] [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.647324"], ["updated_at", "2014-11-18 20:00:24.647324"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.648967"], ["updated_at", "2014-11-18 20:00:24.648967"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:24.650738"], ["updated_at", "2014-11-18 20:00:24.650738"], ["user_id", 48], ["value", 1]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:24.653683"], ["updated_at", "2014-11-18 20:00:24.653683"], ["user_id", 13110000000000048], ["value", 2]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 48]] [shard 1311 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 48]] [shard 1311 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 48]] [shard 1311 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 13110000000000048]] [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.669113"], ["updated_at", "2014-11-18 20:00:24.669113"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.671025"], ["updated_at", "2014-11-18 20:00:24.671025"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:24.672844"], ["updated_at", "2014-11-18 20:00:24.672844"], ["user_id", 49], ["value", 1]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.675109"], ["updated_at", "2014-11-18 20:00:24.675109"], ["user_id", 13110000000000049]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:24.678023"], ["updated_at", "2014-11-18 20:00:24.678023"], ["user_id", 49], ["value", 2]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 49]] [shard 1311 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 49]] [shard 1311 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 13110000000000049]] [shard 1312 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 49]] [shard 1311 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 49]] [shard 1311 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 13110000000000049]] [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.694779"], ["updated_at", "2014-11-18 20:00:24.694779"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.696371"], ["updated_at", "2014-11-18 20:00:24.696371"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.697919"], ["updated_at", "2014-11-18 20:00:24.697919"], ["user_id", 50]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 30], ["created_at", "2014-11-18 20:00:24.701403"], ["updated_at", "2014-11-18 20:00:24.701403"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 30], ["created_at", "2014-11-18 20:00:24.703448"], ["updated_at", "2014-11-18 20:00:24.703448"], ["value", 1]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.705597"], ["updated_at", "2014-11-18 20:00:24.705597"], ["user_id", 13110000000000050]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 22], ["created_at", "2014-11-18 20:00:24.708065"], ["updated_at", "2014-11-18 20:00:24.708065"], ["value", 2]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 50]] [shard 1311 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 13110000000000050]] [shard 1312 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 50]] [shard 1311 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 50]] [shard 1311 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 13110000000000050]] [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.723235"], ["updated_at", "2014-11-18 20:00:24.723235"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.724974"], ["updated_at", "2014-11-18 20:00:24.724974"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.726741"], ["updated_at", "2014-11-18 20:00:24.726741"], ["user_id", 51]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 31], ["created_at", "2014-11-18 20:00:24.730188"], ["updated_at", "2014-11-18 20:00:24.730188"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.732703"], ["updated_at", "2014-11-18 20:00:24.732703"], ["user_id", 13110000000000051]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 23], ["created_at", "2014-11-18 20:00:24.735362"], ["updated_at", "2014-11-18 20:00:24.735362"], ["value", 2]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 51]] [shard 1311 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 13110000000000051]] [shard 1312 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 51]] [shard 1311 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 51]] [shard 1311 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 13110000000000051]] [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.749225"], ["updated_at", "2014-11-18 20:00:24.749225"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.750837"], ["updated_at", "2014-11-18 20:00:24.750837"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.752320"], ["updated_at", "2014-11-18 20:00:24.752320"], ["user_id", 52]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 32], ["created_at", "2014-11-18 20:00:24.754781"], ["updated_at", "2014-11-18 20:00:24.754781"], ["value", 1]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.756921"], ["updated_at", "2014-11-18 20:00:24.756921"], ["user_id", 13110000000000052]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 24], ["created_at", "2014-11-18 20:00:24.759118"], ["updated_at", "2014-11-18 20:00:24.759118"], ["value", 2]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 52]] [shard 1311 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 52]] [shard 1311 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 52]] [shard 1311 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 13110000000000052]] [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.772878"], ["updated_at", "2014-11-18 20:00:24.772878"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.774423"], ["updated_at", "2014-11-18 20:00:24.774423"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (1.7ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.784007"], ["updated_at", "2014-11-18 20:00:24.784007"], ["user_id", 13120000000000040]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master] Root Load (0.2ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 52]] [shard 1310 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 40]] [shard 1312 master]  (0.2ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.796162"], ["updated_at", "2014-11-18 20:00:24.796162"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.798160"], ["updated_at", "2014-11-18 20:00:24.798160"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.800695"], ["updated_at", "2014-11-18 20:00:24.800695"], ["user_id", 13110000000000054]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.803284"], ["updated_at", "2014-11-18 20:00:24.803284"], ["user_id", 13120000000000041]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.804994"], ["updated_at", "2014-11-18 20:00:24.804994"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.807510"], ["updated_at", "2014-11-18 20:00:24.807510"], ["user_id", 2259]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 1310 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 1311 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [shard 1312 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2259) [shard 1310 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 54 [shard 1311 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.822053"], ["updated_at", "2014-11-18 20:00:24.822053"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.823533"], ["updated_at", "2014-11-18 20:00:24.823533"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.826774"], ["updated_at", "2014-11-18 20:00:24.826774"], ["user_id", 55]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.829751"], ["updated_at", "2014-11-18 20:00:24.829751"], ["user_id", 13110000000000055]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.831912"], ["updated_at", "2014-11-18 20:00:24.831912"], ["user_id", 13120000000000042]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 1311 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (55) [shard 1311 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (13110000000000055) [shard 1312 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [shard 1312 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (42) [shard 1312 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 33 [shard 1311 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.848725"], ["updated_at", "2014-11-18 20:00:24.848725"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.850873"], ["updated_at", "2014-11-18 20:00:24.850873"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.854044"], ["updated_at", "2014-11-18 20:00:24.854044"], ["user_id", 56]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.856125"], ["updated_at", "2014-11-18 20:00:24.856125"], ["user_id", 13110000000000056]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.857625"], ["updated_at", "2014-11-18 20:00:24.857625"], ["user_id", 13110000000000056]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 35], ["created_at", "2014-11-18 20:00:24.860332"], ["updated_at", "2014-11-18 20:00:24.860332"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 26], ["created_at", "2014-11-18 20:00:24.863525"], ["updated_at", "2014-11-18 20:00:24.863525"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 13120000000000026], ["created_at", "2014-11-18 20:00:24.866041"], ["updated_at", "2014-11-18 20:00:24.866041"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 13120000000000027], ["created_at", "2014-11-18 20:00:24.867466"], ["updated_at", "2014-11-18 20:00:24.867466"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.869124"], ["updated_at", "2014-11-18 20:00:24.869124"], ["user_id", 13120000000000043]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.872796"], ["updated_at", "2014-11-18 20:00:24.872796"], ["user_id", 43]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.875305"], ["updated_at", "2014-11-18 20:00:24.875305"], ["user_id", 43]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 13110000000000036], ["created_at", "2014-11-18 20:00:24.877380"], ["updated_at", "2014-11-18 20:00:24.877380"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 13120000000000028], ["created_at", "2014-11-18 20:00:24.879454"], ["updated_at", "2014-11-18 20:00:24.879454"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 29], ["created_at", "2014-11-18 20:00:24.881131"], ["updated_at", "2014-11-18 20:00:24.881131"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 1311 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (56) [shard 1311 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (13110000000000056) [shard 1312 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (35) [shard 1311 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (26, 27) [shard 1312 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) [shard 1312 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (43) [shard 1312 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (28, 29) [shard 1312 master] SQL (0.3ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 1311 master]  (0.2ms) ROLLBACK [shard 1312 master]  (0.2ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.907932"], ["updated_at", "2014-11-18 20:00:24.907932"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.910340"], ["updated_at", "2014-11-18 20:00:24.910340"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.912277"], ["updated_at", "2014-11-18 20:00:24.912277"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (2.9ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1108], ["created_at", "2014-11-18 20:00:24.915799"], ["updated_at", "2014-11-18 20:00:24.915799"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 13100000000001108], ["created_at", "2014-11-18 20:00:24.921086"], ["updated_at", "2014-11-18 20:00:24.921086"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1108 ORDER BY "appendages"."id" ASC LIMIT 1 [shard 1310 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1108) [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.2ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.930091"], ["updated_at", "2014-11-18 20:00:24.930091"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.931935"], ["updated_at", "2014-11-18 20:00:24.931935"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.934498"], ["updated_at", "2014-11-18 20:00:24.934498"], ["user_id", 13110000000000058]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1109], ["created_at", "2014-11-18 20:00:24.936864"], ["updated_at", "2014-11-18 20:00:24.936864"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:24.939384"], ["updated_at", "2014-11-18 20:00:24.939384"], ["user_id", 13120000000000045]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 13110000000000037], ["created_at", "2014-11-18 20:00:24.941121"], ["updated_at", "2014-11-18 20:00:24.941121"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 1310 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (1109) [shard 1310 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (37) [shard 1311 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 1311 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [shard 1312 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 58 [shard 1311 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.956465"], ["updated_at", "2014-11-18 20:00:24.956465"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.958015"], ["updated_at", "2014-11-18 20:00:24.958015"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.959516"], ["updated_at", "2014-11-18 20:00:24.959516"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (2.1ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:24.963917"], ["owner_id", 1110], ["owner_type", "Appendage"], ["updated_at", "2014-11-18 20:00:24.963917"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 107]] [shard 1310 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 1110]] [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) UPDATE "features" SET "owner_id" = $1, "owner_type" = $2, "updated_at" = $3 WHERE "features"."id" = 107 [["owner_id", 13110000000000059], ["owner_type", "User"], ["updated_at", "2014-11-18 20:00:24.973388"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 107]] [shard 1310 master]  (0.2ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.980460"], ["updated_at", "2014-11-18 20:00:24.980460"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:24.982005"], ["updated_at", "2014-11-18 20:00:24.982005"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-11-18 20:00:24.983649"], ["owner_id", 60], ["owner_type", "User"], ["updated_at", "2014-11-18 20:00:24.983649"], ["value", 1]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-11-18 20:00:24.986133"], ["owner_id", 13110000000000060], ["owner_type", "User"], ["updated_at", "2014-11-18 20:00:24.986133"], ["value", 2]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 60], ["owner_type", "User"]] [shard 1311 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 60]] [shard 1311 master] Feature Load (0.1ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 60], ["owner_type", "User"]] [shard 1311 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 13110000000000060], ["owner_type", "User"]] [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.2ms) ROLLBACK [shard 1311 master]  (0.2ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:25.000199"], ["updated_at", "2014-11-18 20:00:25.000199"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:25.001781"], ["updated_at", "2014-11-18 20:00:25.001781"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.003808"], ["updated_at", "2014-11-18 20:00:25.003808"], ["user_id", 13120000000000048]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 38]] [shard 1311 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 48]] [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.2ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:25.011919"], ["updated_at", "2014-11-18 20:00:25.011919"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:25.013620"], ["updated_at", "2014-11-18 20:00:25.013620"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:25.015813"], ["updated_at", "2014-11-18 20:00:25.015813"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 62]] [shard 1311 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.018982"], ["updated_at", "2014-11-18 20:00:25.018982"], ["user_id", 62]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 39]] [shard 1311 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 62]] [shard 1311 master]  (0.2ms) ROLLBACK [shard 1312 master]  (0.2ms) ROLLBACK [shard 1311 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1310]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1311], ["name", "switchman_test_shard_1311"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1312], ["name", "switchman_test_shard_1312"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:25.036346"], ["updated_at", "2014-11-18 20:00:25.036346"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:25.041371"], ["updated_at", "2014-11-18 20:00:25.041371"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.3ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.043137"], ["owner_id", 2261], ["owner_type", "User"], ["updated_at", "2014-11-18 20:00:25.043137"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master] Feature Load (0.4ms) SELECT "features"."owner_id" FROM "features" WHERE "features"."id" = 108 ORDER BY "features"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:25.050684"], ["updated_at", "2014-11-18 20:00:25.050684"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1311 LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1312 LIMIT 1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master] SQL (6.2ms) DELETE FROM "switchman_shards" [shard 1310 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1310]] [shard 1310 master]  (6.1ms) COMMIT [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1311], ["name", "switchman_test_shard_1311"]] [shard 1310 master]  (4.5ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1312], ["name", "switchman_test_shard_1312"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:25.090128"], ["updated_at", "2014-11-18 20:00:25.090128"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:25.091980"], ["updated_at", "2014-11-18 20:00:25.091980"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:25.098096"], ["updated_at", "2014-11-18 20:00:25.098096"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:25.099767"], ["updated_at", "2014-11-18 20:00:25.099767"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1311 LIMIT 1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:25.105666"], ["updated_at", "2014-11-18 20:00:25.105666"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:25.111533"], ["updated_at", "2014-11-18 20:00:25.111533"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.2ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:25.125775"], ["updated_at", "2014-11-18 20:00:25.125775"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master] SQL (4.8ms) DELETE FROM "switchman_shards" [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1310 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1310]] [shard 1310 master]  (0.4ms) COMMIT [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1311], ["name", "switchman_test_shard_1311"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1312], ["name", "switchman_test_shard_1312"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (1.8ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:25.167009"], ["updated_at", "2014-11-18 20:00:25.167009"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 52]] [shard 1310 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 52]] [shard 1310 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 52 ORDER BY "mirror_users"."id" ASC LIMIT 1 [shard 1311 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1310]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1311], ["name", "switchman_test_shard_1311"]] [shard 1310 master]  (0.4ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1312], ["name", "switchman_test_shard_1312"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1311 LIMIT 1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '12' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "12"], ["name", "public"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1325 [shard 1325 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1325 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1325 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1325 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1325 deploy]  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1325 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1325 deploy]  (0.4ms) COMMIT [shard 1325 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 1325 deploy]  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1325 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1325 deploy]  (0.4ms) COMMIT [shard 1325 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1325 deploy]  (3.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1325 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1325 deploy]  (0.5ms) COMMIT [shard 1325 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1325 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1325 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1325 deploy]  (0.3ms) COMMIT [shard 1325 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1325 deploy]  (1.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1325 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1325 deploy]  (0.3ms) COMMIT [shard 1325 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1325 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1325 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1325 deploy]  (0.3ms) COMMIT [shard 1325 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1325 deploy]  (2.3ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1325 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1325 deploy]  (0.4ms) COMMIT [shard 1325 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1325 [["name", "switchman_test_shard_1325"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) BEGIN [shard 1325 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:25.290353"], ["updated_at", "2014-11-18 20:00:25.290353"]] [shard 1325 master]  (0.3ms) COMMIT [shard 1325 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1325 master]  (4.7ms) DROP SCHEMA switchman_test_shard_1325 CASCADE [shard 1325 deploy]  (0.5ms) SELECT COUNT(*) FROM "users" [shard 1325 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1312 LIMIT 1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11312 LIMIT 1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.3ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1326]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.3ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1327]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1327 LIMIT 1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.2ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1310]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1311], ["name", "switchman_test_shard_1311"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1312], ["name", "switchman_test_shard_1312"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "14"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "14"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1310]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1311], ["name", "switchman_test_shard_1311"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1312], ["name", "switchman_test_shard_1312"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1310]] [shard 1310 master]  (0.4ms) COMMIT [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1311], ["name", "switchman_test_shard_1311"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1312], ["name", "switchman_test_shard_1312"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.589067"], ["name", "user1"], ["updated_at", "2014-11-18 20:00:25.589067"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.595556"], ["updated_at", "2014-11-18 20:00:25.595556"], ["user_id", 66]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.598241"], ["name", "user2"], ["updated_at", "2014-11-18 20:00:25.598241"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.603317"], ["updated_at", "2014-11-18 20:00:25.603317"], ["user_id", 50]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1311 LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1312 LIMIT 1 [shard 1310 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (66) [shard 1311 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (50) [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.2ms) ROLLBACK [shard 1311 master]  (0.2ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.618924"], ["name", "user1"], ["updated_at", "2014-11-18 20:00:25.618924"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.621547"], ["updated_at", "2014-11-18 20:00:25.621547"], ["user_id", 67]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.623132"], ["name", "user2"], ["updated_at", "2014-11-18 20:00:25.623132"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.625903"], ["updated_at", "2014-11-18 20:00:25.625903"], ["user_id", 51]] [shard 1312 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 1311 master]  (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 1312 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 1311 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 1312 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 1311 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.641060"], ["name", "user1"], ["updated_at", "2014-11-18 20:00:25.641060"]] [shard 1311 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.644469"], ["updated_at", "2014-11-18 20:00:25.644469"], ["user_id", 68]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.646357"], ["name", "user2"], ["updated_at", "2014-11-18 20:00:25.646357"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.649031"], ["updated_at", "2014-11-18 20:00:25.649031"], ["user_id", 52]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.651193"], ["name", "user2"], ["updated_at", "2014-11-18 20:00:25.651193"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (2264) [shard 1310 master]  (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (68) [shard 1311 master]  (0.4ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (52) [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.661459"], ["name", "user1"], ["updated_at", "2014-11-18 20:00:25.661459"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.664160"], ["updated_at", "2014-11-18 20:00:25.664160"], ["user_id", 69]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.666193"], ["name", "user2"], ["updated_at", "2014-11-18 20:00:25.666193"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.668510"], ["updated_at", "2014-11-18 20:00:25.668510"], ["user_id", 53]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 44 [shard 1311 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 1312 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 44 [shard 1311 master]  (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 1312 master]  (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 44 [shard 1311 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.678770"], ["name", "user1"], ["updated_at", "2014-11-18 20:00:25.678770"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.680557"], ["name", "user2"], ["updated_at", "2014-11-18 20:00:25.680557"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.682155"], ["updated_at", "2014-11-18 20:00:25.682155"], ["user_id", 70], ["value", 1]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.684071"], ["updated_at", "2014-11-18 20:00:25.684071"], ["user_id", 13120000000000054], ["value", 3]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.685931"], ["updated_at", "2014-11-18 20:00:25.685931"], ["user_id", 13110000000000070], ["value", 2]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.687932"], ["updated_at", "2014-11-18 20:00:25.687932"], ["user_id", 54], ["value", 4]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.690004"], ["updated_at", "2014-11-18 20:00:25.690004"], ["user_id", 54], ["value", 5]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.5ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1311 master]  (0.5ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1312 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1311 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1312 master]  (0.5ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1311 master]  (0.5ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1312 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1311 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [shard 1311 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 1312 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1312 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 1312 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [shard 1311 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.713428"], ["name", "user1"], ["updated_at", "2014-11-18 20:00:25.713428"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.715769"], ["name", "user2"], ["updated_at", "2014-11-18 20:00:25.715769"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.717982"], ["updated_at", "2014-11-18 20:00:25.717982"], ["user_id", 71], ["value", 1]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.720209"], ["updated_at", "2014-11-18 20:00:25.720209"], ["user_id", 13120000000000055], ["value", 3]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.722194"], ["updated_at", "2014-11-18 20:00:25.722194"], ["user_id", 13110000000000071], ["value", 2]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.723688"], ["updated_at", "2014-11-18 20:00:25.723688"], ["user_id", 55], ["value", 4]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.725231"], ["updated_at", "2014-11-18 20:00:25.725231"], ["user_id", 55], ["value", 5]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1311 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1312 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1311 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1312 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1311 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1312 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1311 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [shard 1311 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 1312 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1312 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 1312 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [shard 1311 master]  (0.2ms) ROLLBACK [shard 1312 master]  (0.2ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.745700"], ["name", "user1"], ["updated_at", "2014-11-18 20:00:25.745700"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.747828"], ["name", "user2"], ["updated_at", "2014-11-18 20:00:25.747828"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.750492"], ["updated_at", "2014-11-18 20:00:25.750492"], ["user_id", 72], ["value", 1]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.753894"], ["updated_at", "2014-11-18 20:00:25.753894"], ["user_id", 13120000000000056], ["value", 3]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.3ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.757611"], ["updated_at", "2014-11-18 20:00:25.757611"], ["user_id", 13110000000000072], ["value", 2]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.760084"], ["updated_at", "2014-11-18 20:00:25.760084"], ["user_id", 56], ["value", 4]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.762148"], ["updated_at", "2014-11-18 20:00:25.762148"], ["user_id", 56], ["value", 5]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1311 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1312 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1311 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1312 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1311 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1312 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1311 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [shard 1311 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 1312 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1312 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 1312 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [shard 1311 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.782268"], ["name", "user1"], ["updated_at", "2014-11-18 20:00:25.782268"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.784134"], ["name", "user2"], ["updated_at", "2014-11-18 20:00:25.784134"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.786027"], ["updated_at", "2014-11-18 20:00:25.786027"], ["user_id", 73], ["value", 1]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.788067"], ["updated_at", "2014-11-18 20:00:25.788067"], ["user_id", 13120000000000057], ["value", 3]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.790005"], ["updated_at", "2014-11-18 20:00:25.790005"], ["user_id", 13110000000000073], ["value", 2]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.791629"], ["updated_at", "2014-11-18 20:00:25.791629"], ["user_id", 57], ["value", 4]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.793134"], ["updated_at", "2014-11-18 20:00:25.793134"], ["user_id", 57], ["value", 5]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1311 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1312 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1311 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1312 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1311 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1312 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1311 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (73) [shard 1311 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 1312 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1312 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 1312 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (73) [shard 1311 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.811832"], ["name", "user1"], ["updated_at", "2014-11-18 20:00:25.811832"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.813557"], ["name", "user2"], ["updated_at", "2014-11-18 20:00:25.813557"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.815888"], ["updated_at", "2014-11-18 20:00:25.815888"], ["user_id", 74], ["value", 1]] [shard 1311 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.818637"], ["updated_at", "2014-11-18 20:00:25.818637"], ["user_id", 13120000000000058], ["value", 3]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.820896"], ["updated_at", "2014-11-18 20:00:25.820896"], ["user_id", 13110000000000074], ["value", 2]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.822376"], ["updated_at", "2014-11-18 20:00:25.822376"], ["user_id", 58], ["value", 4]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.823789"], ["updated_at", "2014-11-18 20:00:25.823789"], ["user_id", 58], ["value", 5]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.826047"], ["updated_at", "2014-11-18 20:00:25.826047"], ["user_id", 74]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:25.827604"], ["updated_at", "2014-11-18 20:00:25.827604"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.829924"], ["updated_at", "2014-11-18 20:00:25.829924"], ["user_id", 75]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 1311 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.837260"], ["name", "user1"], ["updated_at", "2014-11-18 20:00:25.837260"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.838864"], ["name", "user2"], ["updated_at", "2014-11-18 20:00:25.838864"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.840421"], ["updated_at", "2014-11-18 20:00:25.840421"], ["user_id", 76], ["value", 1]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.842411"], ["updated_at", "2014-11-18 20:00:25.842411"], ["user_id", 13120000000000059], ["value", 3]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.844871"], ["updated_at", "2014-11-18 20:00:25.844871"], ["user_id", 13110000000000076], ["value", 2]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.847004"], ["updated_at", "2014-11-18 20:00:25.847004"], ["user_id", 59], ["value", 4]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.848884"], ["updated_at", "2014-11-18 20:00:25.848884"], ["user_id", 59], ["value", 5]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1311 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1312 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1311 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1312 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1311 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1312 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1311 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (76) [shard 1311 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 1312 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1312 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 1312 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (76) [shard 1311 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.868559"], ["name", "user1"], ["updated_at", "2014-11-18 20:00:25.868559"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.871340"], ["updated_at", "2014-11-18 20:00:25.871340"], ["user_id", 77], ["value", 1]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.873185"], ["updated_at", "2014-11-18 20:00:25.873185"], ["user_id", 77], ["value", 2]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.874701"], ["name", "user2"], ["updated_at", "2014-11-18 20:00:25.874701"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.876975"], ["updated_at", "2014-11-18 20:00:25.876975"], ["user_id", 60], ["value", 3]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.878754"], ["updated_at", "2014-11-18 20:00:25.878754"], ["user_id", 60], ["value", 4]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.880844"], ["updated_at", "2014-11-18 20:00:25.880844"], ["user_id", 60], ["value", 5]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 77]] [shard 1311 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1311 master]  (0.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 60]] [shard 1312 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1312 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (59, 60) [shard 1311 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (54, 55, 56) [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.892460"], ["name", "user1"], ["updated_at", "2014-11-18 20:00:25.892460"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.894824"], ["updated_at", "2014-11-18 20:00:25.894824"], ["user_id", 78], ["value", 1]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.896628"], ["updated_at", "2014-11-18 20:00:25.896628"], ["user_id", 78], ["value", 2]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.898307"], ["name", "user2"], ["updated_at", "2014-11-18 20:00:25.898307"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.900691"], ["updated_at", "2014-11-18 20:00:25.900691"], ["user_id", 61], ["value", 3]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.902656"], ["updated_at", "2014-11-18 20:00:25.902656"], ["user_id", 61], ["value", 4]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.904778"], ["updated_at", "2014-11-18 20:00:25.904778"], ["user_id", 61], ["value", 5]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 78]] [shard 1311 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1311 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 61]] [shard 1312 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1312 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (61, 62) [shard 1311 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (57, 58, 59) [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.2ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.919895"], ["name", "user1"], ["updated_at", "2014-11-18 20:00:25.919895"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.922603"], ["updated_at", "2014-11-18 20:00:25.922603"], ["user_id", 79], ["value", 1]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.924409"], ["updated_at", "2014-11-18 20:00:25.924409"], ["user_id", 79], ["value", 2]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.925935"], ["name", "user2"], ["updated_at", "2014-11-18 20:00:25.925935"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.928048"], ["updated_at", "2014-11-18 20:00:25.928048"], ["user_id", 62], ["value", 3]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.929781"], ["updated_at", "2014-11-18 20:00:25.929781"], ["user_id", 62], ["value", 4]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.931754"], ["updated_at", "2014-11-18 20:00:25.931754"], ["user_id", 62], ["value", 5]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 79]] [shard 1311 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1311 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 62]] [shard 1312 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1312 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (63, 64) [shard 1311 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (60, 61, 62) [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.2ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.942491"], ["name", "user1"], ["updated_at", "2014-11-18 20:00:25.942491"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.944838"], ["updated_at", "2014-11-18 20:00:25.944838"], ["user_id", 80], ["value", 1]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.946676"], ["updated_at", "2014-11-18 20:00:25.946676"], ["user_id", 80], ["value", 2]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.948279"], ["name", "user2"], ["updated_at", "2014-11-18 20:00:25.948279"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.950579"], ["updated_at", "2014-11-18 20:00:25.950579"], ["user_id", 63], ["value", 3]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.952480"], ["updated_at", "2014-11-18 20:00:25.952480"], ["user_id", 63], ["value", 4]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.954222"], ["updated_at", "2014-11-18 20:00:25.954222"], ["user_id", 63], ["value", 5]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 80]] [shard 1311 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1311 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 63]] [shard 1312 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1312 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (65, 66) [shard 1311 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (63, 64, 65) [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.965994"], ["name", "user1"], ["updated_at", "2014-11-18 20:00:25.965994"]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.968967"], ["updated_at", "2014-11-18 20:00:25.968967"], ["user_id", 81], ["value", 1]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.971101"], ["updated_at", "2014-11-18 20:00:25.971101"], ["user_id", 81], ["value", 2]] [shard 1311 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-18 20:00:25.972767"], ["name", "user2"], ["updated_at", "2014-11-18 20:00:25.972767"]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.975329"], ["updated_at", "2014-11-18 20:00:25.975329"], ["user_id", 64], ["value", 3]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.977194"], ["updated_at", "2014-11-18 20:00:25.977194"], ["user_id", 64], ["value", 4]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1312 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-18 20:00:25.979114"], ["updated_at", "2014-11-18 20:00:25.979114"], ["user_id", 64], ["value", 5]] [shard 1312 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1312 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 81]] [shard 1311 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 1311 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 64]] [shard 1312 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 1312 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (67, 68) [shard 1311 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (66, 67, 68) [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1310 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1310]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1311], ["name", "switchman_test_shard_1311"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1312], ["name", "switchman_test_shard_1312"]] [shard 1310 master]  (0.2ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1310]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1311], ["name", "switchman_test_shard_1311"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1312], ["name", "switchman_test_shard_1312"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1311,1312)) AND "switchman_shards"."id" IN (1310, 1311) [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1310]] [shard 1310 master]  (0.4ms) COMMIT [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1311], ["name", "switchman_test_shard_1311"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1312], ["name", "switchman_test_shard_1312"]] [shard 1310 master]  (0.3ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1311 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:01:26.038329"], ["updated_at", "2014-11-18 20:01:26.038329"]] [shard 1311 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1311 master]  (0.0ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1311 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1310 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1310]] [shard 1310 master]  (6.1ms) COMMIT [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1311], ["name", "switchman_test_shard_1311"]] [shard 1310 master]  (6.3ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1312], ["name", "switchman_test_shard_1312"]] [shard 1310 master]  (5.1ms) COMMIT [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.2ms) BEGIN [shard 1312 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '33' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "33"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 1330 deploy]  (0.1ms) select sqlite_version(*) [shard 1330 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1330 deploy] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1330 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 1330 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 1330 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130403132607"]] [shard 1330 deploy]  (0.9ms) commit transaction [shard 1330 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 1330 deploy]  (0.3ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 1330 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202442"]] [shard 1330 deploy]  (0.7ms) commit transaction [shard 1330 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 1330 deploy]  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 1330 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202551"]] [shard 1330 deploy]  (0.8ms) commit transaction [shard 1330 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 1330 deploy]  (0.3ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 1330 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131022202028"]] [shard 1330 deploy]  (0.8ms) commit transaction [shard 1330 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 1330 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 1330 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131206172923"]] [shard 1330 deploy]  (0.8ms) commit transaction [shard 1330 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 1330 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 1330 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140123154135"]] [shard 1330 deploy]  (0.6ms) commit transaction [shard 1330 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 1330 deploy]  (0.3ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 1330 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219183820"]] [shard 1330 deploy]  (0.8ms) commit transaction [shard 1330 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1330 [["name", "db/shard_1330.sqlite3"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.0ms) begin transaction [shard 1330 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-11-18 20:00:26.123861"], ["updated_at", "2014-11-18 20:00:26.123861"]] [shard 1330 master]  (0.8ms) commit transaction [shard 1330 master] Drop failed: No such file or directory @ unlink_internal - db/shard_1330.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1330]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.2ms) BEGIN [shard 1312 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '34' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "34"], ["name", "public"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1331 [shard 1331 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1331 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1331 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1331 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1331 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1331 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1331 deploy]  (0.4ms) COMMIT [shard 1331 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 1331 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1331 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1331 deploy]  (0.4ms) COMMIT [shard 1331 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1331 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1331 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1331 deploy]  (0.3ms) COMMIT [shard 1331 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1331 deploy]  (2.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1331 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1331 deploy]  (0.4ms) COMMIT [shard 1331 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1331 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1331 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1331 deploy]  (0.5ms) COMMIT [shard 1331 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 1331 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1331 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1331 deploy]  (0.3ms) COMMIT [shard 1331 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1331 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1331 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1331 deploy]  (0.3ms) COMMIT [shard 1331 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1331 [["name", "switchman_test_shard_1331"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) BEGIN [shard 1331 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:26.236969"], ["updated_at", "2014-11-18 20:00:26.236969"]] [shard 1331 master]  (0.3ms) COMMIT [shard 1331 master]  (4.3ms) DROP SCHEMA switchman_test_shard_1331 CASCADE [shard 1331 deploy]  (0.2ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1331]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (0.1ms) ROLLBACK [shard 1310 master]  (0.1ms) BEGIN [shard 1310 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1311]] [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1312]] [shard 1310 master]  (0.1ms) BEGIN [shard 1312 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [shard 1310 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_1332 [shard 1332 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1332 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1332 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1332 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1332 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1332 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1332 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1332 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1332 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1332 deploy] Migrating to CreateDigits (20131022202028)  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1332 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1332 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1332 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1332 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1332 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1332 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1332 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1332 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1332 [["name", "switchman_test_shard_1332"]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1332 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-18 20:00:26.302692"], ["updated_at", "2014-11-18 20:00:26.302692"]] [shard 1332 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1332 master]  (2.4ms) DROP SCHEMA switchman_test_shard_1332 CASCADE [shard 1332 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1310 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1332]] [shard 1310 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1310 master]  (0.1ms) ROLLBACK [shard 1312 master]  (2.2ms) ROLLBACK [shard 1310 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1310 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1310 master]  (4.6ms) DROP SCHEMA switchman_test_shard_1311 CASCADE [shard 1311 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1311]]  (0.1ms) COMMIT  (5.6ms) DROP SCHEMA switchman_test_shard_1312 CASCADE [shard 1312 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1312]]  (0.1ms) COMMIT  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.8ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.4ms) CREATE SCHEMA switchman_test_shard_1334 [shard 1334 deploy] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1334]] [shard 1333 master]  (0.8ms) DROP SCHEMA switchman_test_shard_1334 CASCADE [shard 1334 deploy]  (0.1ms) ROLLBACK [shard 1334 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1333 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1333 master]  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (6.5ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1336 [shard 1336 deploy]  (2.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1336 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1336 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1336 deploy] Migrating to CreateUsers (20130403132607)  (7.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1336 deploy] SQL (6.0ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1336 deploy] Migrating to CreateAppendages (20130411202442)  (7.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1336 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1336 deploy] Migrating to CreateMirrorUsers (20130411202551)  (7.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1336 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1336 deploy] Migrating to CreateDigits (20131022202028)  (7.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1336 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1336 deploy] Migrating to CreateFeatures (20131206172923)  (6.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1336 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1336 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1336 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1336 deploy] Migrating to CreateRoots (20140219183820)  (6.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1336 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1336 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1336 [["name", "switchman_test_shard_1336"]] [shard 1335 master]  (6.8ms) COMMIT [shard 1335 master] Switchman::Shard Load (5.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1335 master]  (0.1ms) BEGIN [shard 1335 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1335 master]  (0.3ms) COMMIT [shard 1335 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_1337 [shard 1337 deploy]  (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1337 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1337 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1337 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1337 deploy]  (2.6ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1337 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1337 deploy]  (0.3ms) COMMIT [shard 1337 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 1337 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1337 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1337 deploy]  (0.3ms) COMMIT [shard 1337 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1337 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1337 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1337 deploy]  (0.4ms) COMMIT [shard 1337 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1337 deploy]  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1337 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1337 deploy]  (0.4ms) COMMIT [shard 1337 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1337 deploy]  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1337 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1337 deploy]  (0.3ms) COMMIT [shard 1337 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1337 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1337 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1337 deploy]  (0.2ms) COMMIT [shard 1337 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1337 deploy]  (2.3ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1337 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1337 deploy]  (0.6ms) COMMIT [shard 1337 deploy]  (0.1ms) BEGIN [shard 1335 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1337 [["name", "switchman_test_shard_1337"]] [shard 1335 master]  (0.3ms) COMMIT [shard 1335 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1335 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1335 master]  (0.1ms) BEGIN [shard 1335 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1335 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1335]] [shard 1335 master]  (0.3ms) COMMIT [shard 1335 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1335 master]  (0.1ms) BEGIN [shard 1335 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1336], ["name", "switchman_test_shard_1336"]] [shard 1335 master]  (0.3ms) COMMIT [shard 1335 master]  (0.1ms) BEGIN [shard 1335 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1337], ["name", "switchman_test_shard_1337"]] [shard 1335 master]  (0.3ms) COMMIT [shard 1335 master]  (0.1ms) BEGIN [shard 1335 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1335 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1336]] [shard 1335 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1337]] [shard 1335 master]  (0.1ms) BEGIN [shard 1337 master]  (0.1ms) ROLLBACK [shard 1337 master]  (0.1ms) ROLLBACK [shard 1335 master]  (0.1ms) BEGIN [shard 1335 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1335 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1336]] [shard 1335 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1337]] [shard 1335 master]  (0.1ms) BEGIN [shard 1337 master]  (0.1ms) ROLLBACK [shard 1337 master]  (0.1ms) ROLLBACK [shard 1335 master]  (0.1ms) BEGIN [shard 1335 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1335 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1336]] [shard 1335 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1337]] [shard 1335 master]  (0.1ms) BEGIN [shard 1337 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1335 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 1335 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1335 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1335 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 1335 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1335 master]  (0.2ms) ROLLBACK [shard 1337 master]  (0.1ms) ROLLBACK [shard 1335 master]  (0.1ms) BEGIN [shard 1335 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1335 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1336]] [shard 1335 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1337]] [shard 1335 master]  (0.1ms) BEGIN [shard 1337 master]  (0.1ms) ROLLBACK [shard 1337 master]  (0.1ms) ROLLBACK [shard 1335 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1335 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1335 master]  (4.3ms) DROP SCHEMA switchman_test_shard_1336 CASCADE [shard 1336 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1336]]  (0.1ms) COMMIT  (5.3ms) DROP SCHEMA switchman_test_shard_1337 CASCADE [shard 1337 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1337]]  (0.1ms) COMMIT  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1341 [shard 1341 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1341 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1341 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1341 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1341 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1341 deploy] Migrating to CreateAppendages (20130411202442)  (11.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1341 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1341 deploy] Migrating to CreateMirrorUsers (20130411202551)  (7.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1341 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1341 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1341 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1341 deploy] Migrating to CreateFeatures (20131206172923)  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1341 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1341 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1341 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1341 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1341 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1341 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1341 [["name", "switchman_test_shard_1341"]] [shard 1340 master]  (0.8ms) COMMIT [shard 1340 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1342 [shard 1342 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1342 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1342 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1342 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1342 deploy]  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1342 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1342 deploy]  (0.3ms) COMMIT [shard 1342 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 1342 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1342 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1342 deploy]  (0.4ms) COMMIT [shard 1342 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1342 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1342 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1342 deploy]  (0.3ms) COMMIT [shard 1342 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1342 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1342 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1342 deploy]  (0.4ms) COMMIT [shard 1342 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1342 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1342 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1342 deploy]  (0.4ms) COMMIT [shard 1342 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1342 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1342 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1342 deploy]  (0.2ms) COMMIT [shard 1342 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1342 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1342 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1342 deploy]  (0.4ms) COMMIT [shard 1342 deploy]  (0.1ms) BEGIN [shard 1340 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1342 [["name", "switchman_test_shard_1342"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1340]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1341], ["name", "switchman_test_shard_1341"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1342], ["name", "switchman_test_shard_1342"]] [shard 1340 master]  (0.2ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.660048"], ["updated_at", "2014-11-19 21:55:43.660048"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1340]] [shard 1340 master]  (0.2ms) COMMIT [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1341], ["name", "switchman_test_shard_1341"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1342], ["name", "switchman_test_shard_1342"]] [shard 1340 master]  (0.2ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.681554"], ["updated_at", "2014-11-19 21:55:43.681554"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.694407"], ["updated_at", "2014-11-19 21:55:43.694407"], ["user_id", 2265]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.696990"], ["updated_at", "2014-11-19 21:55:43.696990"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.699729"], ["updated_at", "2014-11-19 21:55:43.699729"], ["user_id", 2]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.701899"], ["updated_at", "2014-11-19 21:55:43.701899"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.705440"], ["updated_at", "2014-11-19 21:55:43.705440"], ["user_id", 1]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.712787"], ["updated_at", "2014-11-19 21:55:43.712787"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.715491"], ["updated_at", "2014-11-19 21:55:43.715491"], ["user_id", 2266]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.717348"], ["updated_at", "2014-11-19 21:55:43.717348"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.719984"], ["updated_at", "2014-11-19 21:55:43.719984"], ["user_id", 3]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.721585"], ["updated_at", "2014-11-19 21:55:43.721585"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.724383"], ["updated_at", "2014-11-19 21:55:43.724383"], ["user_id", 2]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1341 LIMIT 1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.732160"], ["updated_at", "2014-11-19 21:55:43.732160"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.734654"], ["updated_at", "2014-11-19 21:55:43.734654"], ["user_id", 2267]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.736448"], ["updated_at", "2014-11-19 21:55:43.736448"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.739357"], ["updated_at", "2014-11-19 21:55:43.739357"], ["user_id", 4]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.741163"], ["updated_at", "2014-11-19 21:55:43.741163"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.744119"], ["updated_at", "2014-11-19 21:55:43.744119"], ["user_id", 3]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.750561"], ["updated_at", "2014-11-19 21:55:43.750561"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.753154"], ["updated_at", "2014-11-19 21:55:43.753154"], ["user_id", 2268]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.754919"], ["updated_at", "2014-11-19 21:55:43.754919"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.758074"], ["updated_at", "2014-11-19 21:55:43.758074"], ["user_id", 5]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.760199"], ["updated_at", "2014-11-19 21:55:43.760199"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.763492"], ["updated_at", "2014-11-19 21:55:43.763492"], ["user_id", 4]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.769695"], ["updated_at", "2014-11-19 21:55:43.769695"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.772094"], ["updated_at", "2014-11-19 21:55:43.772094"], ["user_id", 2269]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.773790"], ["updated_at", "2014-11-19 21:55:43.773790"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.776268"], ["updated_at", "2014-11-19 21:55:43.776268"], ["user_id", 6]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.778022"], ["updated_at", "2014-11-19 21:55:43.778022"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.781642"], ["updated_at", "2014-11-19 21:55:43.781642"], ["user_id", 5]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.788700"], ["updated_at", "2014-11-19 21:55:43.788700"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.791099"], ["updated_at", "2014-11-19 21:55:43.791099"], ["user_id", 2270]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.792758"], ["updated_at", "2014-11-19 21:55:43.792758"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.795923"], ["updated_at", "2014-11-19 21:55:43.795923"], ["user_id", 7]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.797519"], ["updated_at", "2014-11-19 21:55:43.797519"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.800757"], ["updated_at", "2014-11-19 21:55:43.800757"], ["user_id", 6]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.2ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.808089"], ["updated_at", "2014-11-19 21:55:43.808089"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.810812"], ["updated_at", "2014-11-19 21:55:43.810812"], ["user_id", 2271]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.812901"], ["updated_at", "2014-11-19 21:55:43.812901"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.815947"], ["updated_at", "2014-11-19 21:55:43.815947"], ["user_id", 8]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.817727"], ["updated_at", "2014-11-19 21:55:43.817727"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.820676"], ["updated_at", "2014-11-19 21:55:43.820676"], ["user_id", 7]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.826732"], ["updated_at", "2014-11-19 21:55:43.826732"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.829151"], ["updated_at", "2014-11-19 21:55:43.829151"], ["user_id", 2272]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.830885"], ["updated_at", "2014-11-19 21:55:43.830885"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.833359"], ["updated_at", "2014-11-19 21:55:43.833359"], ["user_id", 9]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.834908"], ["updated_at", "2014-11-19 21:55:43.834908"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.837495"], ["updated_at", "2014-11-19 21:55:43.837495"], ["user_id", 8]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.843774"], ["updated_at", "2014-11-19 21:55:43.843774"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.846181"], ["updated_at", "2014-11-19 21:55:43.846181"], ["user_id", 2273]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.847905"], ["updated_at", "2014-11-19 21:55:43.847905"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.850322"], ["updated_at", "2014-11-19 21:55:43.850322"], ["user_id", 10]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.851915"], ["updated_at", "2014-11-19 21:55:43.851915"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.854467"], ["updated_at", "2014-11-19 21:55:43.854467"], ["user_id", 9]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.860435"], ["updated_at", "2014-11-19 21:55:43.860435"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.862549"], ["updated_at", "2014-11-19 21:55:43.862549"], ["user_id", 2274]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.864192"], ["updated_at", "2014-11-19 21:55:43.864192"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.866630"], ["updated_at", "2014-11-19 21:55:43.866630"], ["user_id", 11]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.868191"], ["updated_at", "2014-11-19 21:55:43.868191"]] [shard 1342 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.871382"], ["updated_at", "2014-11-19 21:55:43.871382"], ["user_id", 10]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.873622"], ["updated_at", "2014-11-19 21:55:43.873622"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.883565"], ["updated_at", "2014-11-19 21:55:43.883565"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.886595"], ["updated_at", "2014-11-19 21:55:43.886595"], ["user_id", 2275]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.888457"], ["updated_at", "2014-11-19 21:55:43.888457"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.891559"], ["updated_at", "2014-11-19 21:55:43.891559"], ["user_id", 12]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.893085"], ["updated_at", "2014-11-19 21:55:43.893085"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.895725"], ["updated_at", "2014-11-19 21:55:43.895725"], ["user_id", 11]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.901429"], ["updated_at", "2014-11-19 21:55:43.901429"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.903715"], ["updated_at", "2014-11-19 21:55:43.903715"], ["user_id", 2276]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.905342"], ["updated_at", "2014-11-19 21:55:43.905342"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.907828"], ["updated_at", "2014-11-19 21:55:43.907828"], ["user_id", 13]] [shard 1341 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.909671"], ["updated_at", "2014-11-19 21:55:43.909671"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.913171"], ["updated_at", "2014-11-19 21:55:43.913171"], ["user_id", 12]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.916568"], ["parent_id", 2276], ["updated_at", "2014-11-19 21:55:43.916568"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.919426"], ["parent_id", 2277], ["updated_at", "2014-11-19 21:55:43.919426"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2277]] [shard 1340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2276]] [shard 1340 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 [["parent_id", 2276]] [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.2ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.933243"], ["updated_at", "2014-11-19 21:55:43.933243"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.935635"], ["updated_at", "2014-11-19 21:55:43.935635"], ["user_id", 2279]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.937291"], ["updated_at", "2014-11-19 21:55:43.937291"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.939829"], ["updated_at", "2014-11-19 21:55:43.939829"], ["user_id", 14]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.941342"], ["updated_at", "2014-11-19 21:55:43.941342"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.944034"], ["updated_at", "2014-11-19 21:55:43.944034"], ["user_id", 13]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.949343"], ["updated_at", "2014-11-19 21:55:43.949343"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.951425"], ["updated_at", "2014-11-19 21:55:43.951425"], ["user_id", 2280]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.953100"], ["updated_at", "2014-11-19 21:55:43.953100"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.955508"], ["updated_at", "2014-11-19 21:55:43.955508"], ["user_id", 15]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.957014"], ["updated_at", "2014-11-19 21:55:43.957014"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.959912"], ["updated_at", "2014-11-19 21:55:43.959912"], ["user_id", 14]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.967409"], ["updated_at", "2014-11-19 21:55:43.967409"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.970537"], ["updated_at", "2014-11-19 21:55:43.970537"], ["user_id", 2281]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.972713"], ["updated_at", "2014-11-19 21:55:43.972713"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.975832"], ["updated_at", "2014-11-19 21:55:43.975832"], ["user_id", 16]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.977504"], ["updated_at", "2014-11-19 21:55:43.977504"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.980447"], ["updated_at", "2014-11-19 21:55:43.980447"], ["user_id", 15]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.986530"], ["updated_at", "2014-11-19 21:55:43.986530"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.988752"], ["updated_at", "2014-11-19 21:55:43.988752"], ["user_id", 2282]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.990809"], ["updated_at", "2014-11-19 21:55:43.990809"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.994411"], ["updated_at", "2014-11-19 21:55:43.994411"], ["user_id", 17]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:43.996429"], ["updated_at", "2014-11-19 21:55:43.996429"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:43.999812"], ["updated_at", "2014-11-19 21:55:43.999812"], ["user_id", 16]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1340]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1341], ["name", "switchman_test_shard_1341"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1342], ["name", "switchman_test_shard_1342"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1340 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1340]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1341], ["name", "switchman_test_shard_1341"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1342], ["name", "switchman_test_shard_1342"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.030345"], ["name", "user1"], ["updated_at", "2014-11-19 21:55:44.030345"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.032135"], ["name", "user2"], ["updated_at", "2014-11-19 21:55:44.032135"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.034415"], ["updated_at", "2014-11-19 21:55:44.034415"], ["user_id", 18], ["value", 1]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1342 LIMIT 1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.038937"], ["updated_at", "2014-11-19 21:55:44.038937"], ["user_id", 13420000000000017], ["value", 3]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1341 LIMIT 1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.042530"], ["updated_at", "2014-11-19 21:55:44.042530"], ["user_id", 13410000000000018], ["value", 2]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.044274"], ["updated_at", "2014-11-19 21:55:44.044274"], ["user_id", 17], ["value", 4]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.045779"], ["updated_at", "2014-11-19 21:55:44.045779"], ["user_id", 17], ["value", 5]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1341 master]  (0.5ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1342 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1341 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1342 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1341 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1342 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 1341 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [shard 1342 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1342 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [shard 1342 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.062736"], ["name", "user1"], ["updated_at", "2014-11-19 21:55:44.062736"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.064394"], ["name", "user2"], ["updated_at", "2014-11-19 21:55:44.064394"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.065975"], ["updated_at", "2014-11-19 21:55:44.065975"], ["user_id", 19], ["value", 1]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.068068"], ["updated_at", "2014-11-19 21:55:44.068068"], ["user_id", 13420000000000018], ["value", 3]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.070923"], ["updated_at", "2014-11-19 21:55:44.070923"], ["user_id", 13410000000000019], ["value", 2]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.073125"], ["updated_at", "2014-11-19 21:55:44.073125"], ["user_id", 18], ["value", 4]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.075648"], ["updated_at", "2014-11-19 21:55:44.075648"], ["user_id", 18], ["value", 5]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.4ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1341 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1342 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1341 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1342 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1341 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1342 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 1341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 1342 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1342 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [shard 1342 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.093662"], ["name", "user1"], ["updated_at", "2014-11-19 21:55:44.093662"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.095324"], ["name", "user2"], ["updated_at", "2014-11-19 21:55:44.095324"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.097433"], ["updated_at", "2014-11-19 21:55:44.097433"], ["user_id", 20], ["value", 1]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.100268"], ["updated_at", "2014-11-19 21:55:44.100268"], ["user_id", 13420000000000019], ["value", 3]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.102284"], ["updated_at", "2014-11-19 21:55:44.102284"], ["user_id", 13410000000000020], ["value", 2]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.103800"], ["updated_at", "2014-11-19 21:55:44.103800"], ["user_id", 19], ["value", 4]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.105267"], ["updated_at", "2014-11-19 21:55:44.105267"], ["user_id", 19], ["value", 5]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1341 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1342 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1341 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1342 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1341 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1342 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 1341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 1342 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1342 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 1342 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.121712"], ["name", "user1"], ["updated_at", "2014-11-19 21:55:44.121712"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.123322"], ["name", "user2"], ["updated_at", "2014-11-19 21:55:44.123322"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.125177"], ["updated_at", "2014-11-19 21:55:44.125177"], ["user_id", 21], ["value", 1]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.127650"], ["updated_at", "2014-11-19 21:55:44.127650"], ["user_id", 13420000000000020], ["value", 3]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.129830"], ["updated_at", "2014-11-19 21:55:44.129830"], ["user_id", 13410000000000021], ["value", 2]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.131538"], ["updated_at", "2014-11-19 21:55:44.131538"], ["user_id", 20], ["value", 4]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.133142"], ["updated_at", "2014-11-19 21:55:44.133142"], ["user_id", 20], ["value", 5]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.135494"], ["updated_at", "2014-11-19 21:55:44.135494"], ["user_id", 21]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:44.137055"], ["updated_at", "2014-11-19 21:55:44.137055"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.139253"], ["updated_at", "2014-11-19 21:55:44.139253"], ["user_id", 22]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.146452"], ["name", "user1"], ["updated_at", "2014-11-19 21:55:44.146452"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.148457"], ["name", "user2"], ["updated_at", "2014-11-19 21:55:44.148457"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.150134"], ["updated_at", "2014-11-19 21:55:44.150134"], ["user_id", 23], ["value", 1]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.152116"], ["updated_at", "2014-11-19 21:55:44.152116"], ["user_id", 13420000000000021], ["value", 3]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.154024"], ["updated_at", "2014-11-19 21:55:44.154024"], ["user_id", 13410000000000023], ["value", 2]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.155769"], ["updated_at", "2014-11-19 21:55:44.155769"], ["user_id", 21], ["value", 4]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.157226"], ["updated_at", "2014-11-19 21:55:44.157226"], ["user_id", 21], ["value", 5]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1341 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1342 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1341 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1342 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1341 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1342 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 1341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 1342 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1342 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 1342 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.2ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.173641"], ["name", "user1"], ["updated_at", "2014-11-19 21:55:44.173641"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.175699"], ["name", "user2"], ["updated_at", "2014-11-19 21:55:44.175699"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.177439"], ["updated_at", "2014-11-19 21:55:44.177439"], ["user_id", 24], ["value", 1]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.179462"], ["updated_at", "2014-11-19 21:55:44.179462"], ["user_id", 13420000000000022], ["value", 3]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.181509"], ["updated_at", "2014-11-19 21:55:44.181509"], ["user_id", 13410000000000024], ["value", 2]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.183237"], ["updated_at", "2014-11-19 21:55:44.183237"], ["user_id", 22], ["value", 4]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.185007"], ["updated_at", "2014-11-19 21:55:44.185007"], ["user_id", 22], ["value", 5]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1341 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1342 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1341 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1342 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1341 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1342 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 1341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 1342 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1342 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 1342 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.203686"], ["name", "user1"], ["updated_at", "2014-11-19 21:55:44.203686"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.206262"], ["updated_at", "2014-11-19 21:55:44.206262"], ["user_id", 25], ["value", 1]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.208716"], ["updated_at", "2014-11-19 21:55:44.208716"], ["user_id", 25], ["value", 2]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.210974"], ["name", "user2"], ["updated_at", "2014-11-19 21:55:44.210974"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.213638"], ["updated_at", "2014-11-19 21:55:44.213638"], ["user_id", 23], ["value", 3]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.215649"], ["updated_at", "2014-11-19 21:55:44.215649"], ["user_id", 23], ["value", 4]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.217793"], ["updated_at", "2014-11-19 21:55:44.217793"], ["user_id", 23], ["value", 5]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 25]] [shard 1341 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 1341 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 23]] [shard 1342 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 1342 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (31, 32) [shard 1341 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (35, 36, 37) [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.232688"], ["name", "user1"], ["updated_at", "2014-11-19 21:55:44.232688"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.235917"], ["updated_at", "2014-11-19 21:55:44.235917"], ["user_id", 26], ["value", 1]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.238037"], ["updated_at", "2014-11-19 21:55:44.238037"], ["user_id", 26], ["value", 2]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.239763"], ["name", "user2"], ["updated_at", "2014-11-19 21:55:44.239763"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.242600"], ["updated_at", "2014-11-19 21:55:44.242600"], ["user_id", 24], ["value", 3]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.244816"], ["updated_at", "2014-11-19 21:55:44.244816"], ["user_id", 24], ["value", 4]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.246886"], ["updated_at", "2014-11-19 21:55:44.246886"], ["user_id", 24], ["value", 5]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 26]] [shard 1341 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1341 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 24]] [shard 1342 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1342 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (33, 34) [shard 1341 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (38, 39, 40) [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.259348"], ["name", "user1"], ["updated_at", "2014-11-19 21:55:44.259348"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.262449"], ["updated_at", "2014-11-19 21:55:44.262449"], ["user_id", 27], ["value", 1]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.264311"], ["updated_at", "2014-11-19 21:55:44.264311"], ["user_id", 27], ["value", 2]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.265925"], ["name", "user2"], ["updated_at", "2014-11-19 21:55:44.265925"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.268260"], ["updated_at", "2014-11-19 21:55:44.268260"], ["user_id", 25], ["value", 3]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.270293"], ["updated_at", "2014-11-19 21:55:44.270293"], ["user_id", 25], ["value", 4]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.272178"], ["updated_at", "2014-11-19 21:55:44.272178"], ["user_id", 25], ["value", 5]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 27]] [shard 1341 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1341 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 25]] [shard 1342 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1342 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (35, 36) [shard 1341 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (41, 42, 43) [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.284432"], ["name", "user1"], ["updated_at", "2014-11-19 21:55:44.284432"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.287183"], ["updated_at", "2014-11-19 21:55:44.287183"], ["user_id", 28], ["value", 1]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.289663"], ["updated_at", "2014-11-19 21:55:44.289663"], ["user_id", 28], ["value", 2]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.291381"], ["name", "user2"], ["updated_at", "2014-11-19 21:55:44.291381"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.293851"], ["updated_at", "2014-11-19 21:55:44.293851"], ["user_id", 26], ["value", 3]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.295826"], ["updated_at", "2014-11-19 21:55:44.295826"], ["user_id", 26], ["value", 4]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.297646"], ["updated_at", "2014-11-19 21:55:44.297646"], ["user_id", 26], ["value", 5]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 28]] [shard 1341 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1341 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 26]] [shard 1342 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1342 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (37, 38) [shard 1341 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (44, 45, 46) [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.308836"], ["name", "user1"], ["updated_at", "2014-11-19 21:55:44.308836"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.311311"], ["updated_at", "2014-11-19 21:55:44.311311"], ["user_id", 29], ["value", 1]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.313146"], ["updated_at", "2014-11-19 21:55:44.313146"], ["user_id", 29], ["value", 2]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.314660"], ["name", "user2"], ["updated_at", "2014-11-19 21:55:44.314660"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.316917"], ["updated_at", "2014-11-19 21:55:44.316917"], ["user_id", 27], ["value", 3]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.318766"], ["updated_at", "2014-11-19 21:55:44.318766"], ["user_id", 27], ["value", 4]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:44.320722"], ["updated_at", "2014-11-19 21:55:44.320722"], ["user_id", 27], ["value", 5]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 29]] [shard 1341 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1341 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 27]] [shard 1342 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1342 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (39, 40) [shard 1341 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (47, 48, 49) [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.3ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.332631"], ["name", "user1"], ["updated_at", "2014-11-19 21:55:44.332631"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.335565"], ["updated_at", "2014-11-19 21:55:44.335565"], ["user_id", 30]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.337493"], ["name", "user2"], ["updated_at", "2014-11-19 21:55:44.337493"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.339831"], ["updated_at", "2014-11-19 21:55:44.339831"], ["user_id", 28]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 1341 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 1342 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 1341 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 1342 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 1341 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.351973"], ["name", "user1"], ["updated_at", "2014-11-19 21:55:44.351973"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.354627"], ["updated_at", "2014-11-19 21:55:44.354627"], ["user_id", 31]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.356423"], ["name", "user2"], ["updated_at", "2014-11-19 21:55:44.356423"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.358779"], ["updated_at", "2014-11-19 21:55:44.358779"], ["user_id", 29]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 1341 master]  (0.4ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 1342 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 1341 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 1342 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 1341 master]  (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.370002"], ["name", "user1"], ["updated_at", "2014-11-19 21:55:44.370002"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.373065"], ["updated_at", "2014-11-19 21:55:44.373065"], ["user_id", 32]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.374895"], ["name", "user2"], ["updated_at", "2014-11-19 21:55:44.374895"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.377740"], ["updated_at", "2014-11-19 21:55:44.377740"], ["user_id", 30]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.379839"], ["name", "user2"], ["updated_at", "2014-11-19 21:55:44.379839"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.4ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (2283) [shard 1340 master]  (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (32) [shard 1341 master]  (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (30) [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.390483"], ["name", "user1"], ["updated_at", "2014-11-19 21:55:44.390483"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.393181"], ["updated_at", "2014-11-19 21:55:44.393181"], ["user_id", 33]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.394843"], ["name", "user2"], ["updated_at", "2014-11-19 21:55:44.394843"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:44.397138"], ["updated_at", "2014-11-19 21:55:44.397138"], ["user_id", 31]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (33) [shard 1341 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (31) [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1340]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1341], ["name", "switchman_test_shard_1341"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1342], ["name", "switchman_test_shard_1342"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.2ms) ROLLBACK [shard 1340 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1340]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1341], ["name", "switchman_test_shard_1341"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1342], ["name", "switchman_test_shard_1342"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1341 LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1342 LIMIT 1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11342 LIMIT 1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '4' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "4"], ["name", "public"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1345 [shard 1345 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1345 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1345 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1345 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1345 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1345 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1345 deploy]  (0.3ms) COMMIT [shard 1345 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1345 deploy]  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1345 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1345 deploy]  (0.4ms) COMMIT [shard 1345 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1345 deploy]  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1345 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1345 deploy]  (0.3ms) COMMIT [shard 1345 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 1345 deploy]  (2.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1345 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1345 deploy]  (0.4ms) COMMIT [shard 1345 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1345 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1345 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1345 deploy]  (0.3ms) COMMIT [shard 1345 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1345 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1345 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1345 deploy]  (0.3ms) COMMIT [shard 1345 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1345 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1345 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1345 deploy]  (0.4ms) COMMIT [shard 1345 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1345 [["name", "switchman_test_shard_1345"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) BEGIN [shard 1345 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:44.612208"], ["updated_at", "2014-11-19 21:55:44.612208"]] [shard 1345 master]  (0.3ms) COMMIT [shard 1345 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1345 master]  (4.7ms) DROP SCHEMA switchman_test_shard_1345 CASCADE [shard 1345 deploy]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 1345 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.2ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.5ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1346]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1346 LIMIT 1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1347]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1340]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1341], ["name", "switchman_test_shard_1341"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1342], ["name", "switchman_test_shard_1342"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:44.793912"], ["updated_at", "2014-11-19 21:55:44.793912"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 1342 master]  (0.1ms) SAVEPOINT active_record_2 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:44.799229"], ["updated_at", "2014-11-19 21:55:44.799229"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1342 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1340 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1340]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1341], ["name", "switchman_test_shard_1341"]] [shard 1340 master]  (0.2ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1342], ["name", "switchman_test_shard_1342"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1340 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "5"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "5"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1340]] [shard 1340 master]  (0.4ms) COMMIT [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1341], ["name", "switchman_test_shard_1341"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1342], ["name", "switchman_test_shard_1342"]] [shard 1340 master]  (0.2ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "6"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "7"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:44.928803"], ["updated_at", "2014-11-19 21:55:44.928803"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master] SQL (0.7ms) DELETE FROM "switchman_shards" [shard 1340 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1340 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1340]] [shard 1340 master]  (0.4ms) COMMIT [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1341], ["name", "switchman_test_shard_1341"]] [shard 1340 master]  (0.4ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1342], ["name", "switchman_test_shard_1342"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.2ms) BEGIN [shard 1342 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:56:45.052526"], ["updated_at", "2014-11-19 21:56:45.052526"]] [shard 1341 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.0ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "8"], ["name", "non_existent_shard"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "8"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 1352 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.6ms) SELECT COUNT(*) FROM "users" [shard 1353 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "9"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "10"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "11"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "12"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "13"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "14"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1340 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1340]] [shard 1340 master]  (0.4ms) COMMIT [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1341], ["name", "switchman_test_shard_1341"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1342], ["name", "switchman_test_shard_1342"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.153463"], ["updated_at", "2014-11-19 21:55:45.153463"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.155053"], ["updated_at", "2014-11-19 21:55:45.155053"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.162115"], ["updated_at", "2014-11-19 21:55:45.162115"], ["user_id", 35]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.6ms) INSERT INTO "digits" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.168064"], ["updated_at", "2014-11-19 21:55:45.168064"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1342 LIMIT 1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (6.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 45], ["created_at", "2014-11-19 21:55:45.177971"], ["id", 13420000000000001], ["updated_at", "2014-11-19 21:55:45.177971"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 35], ["id", 13420000000000001]] [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.195803"], ["updated_at", "2014-11-19 21:55:45.195803"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.197370"], ["updated_at", "2014-11-19 21:55:45.197370"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.200142"], ["updated_at", "2014-11-19 21:55:45.200142"], ["user_id", 36]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.202574"], ["updated_at", "2014-11-19 21:55:45.202574"], ["user_id", 35]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1341 LIMIT 1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.211379"], ["updated_at", "2014-11-19 21:55:45.211379"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.212907"], ["updated_at", "2014-11-19 21:55:45.212907"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.215556"], ["updated_at", "2014-11-19 21:55:45.215556"], ["user_id", 37]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 37], ["id", 47]] [shard 1341 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 36], ["id", 13410000000000047]] [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.225269"], ["updated_at", "2014-11-19 21:55:45.225269"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.226848"], ["updated_at", "2014-11-19 21:55:45.226848"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.233160"], ["updated_at", "2014-11-19 21:55:45.233160"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.234872"], ["updated_at", "2014-11-19 21:55:45.234872"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.237644"], ["updated_at", "2014-11-19 21:55:45.237644"], ["user_id", 39]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 48], ["created_at", "2014-11-19 21:55:45.240860"], ["updated_at", "2014-11-19 21:55:45.240860"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 39], ["id", 1]] [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.249951"], ["updated_at", "2014-11-19 21:55:45.249951"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.251452"], ["updated_at", "2014-11-19 21:55:45.251452"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.254037"], ["updated_at", "2014-11-19 21:55:45.254037"], ["user_id", 40]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.260326"], ["updated_at", "2014-11-19 21:55:45.260326"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.261801"], ["updated_at", "2014-11-19 21:55:45.261801"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.264307"], ["updated_at", "2014-11-19 21:55:45.264307"], ["user_id", 41]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.2ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.270455"], ["updated_at", "2014-11-19 21:55:45.270455"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.271867"], ["updated_at", "2014-11-19 21:55:45.271867"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.274360"], ["updated_at", "2014-11-19 21:55:45.274360"], ["user_id", 42]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 51]] [shard 1341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 42]] [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.282702"], ["updated_at", "2014-11-19 21:55:45.282702"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.284228"], ["updated_at", "2014-11-19 21:55:45.284228"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.290576"], ["updated_at", "2014-11-19 21:55:45.290576"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.291850"], ["updated_at", "2014-11-19 21:55:45.291850"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.3ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.295061"], ["updated_at", "2014-11-19 21:55:45.295061"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.302861"], ["updated_at", "2014-11-19 21:55:45.302861"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.304324"], ["updated_at", "2014-11-19 21:55:45.304324"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.307631"], ["updated_at", "2014-11-19 21:55:45.307631"], ["user_id", 45]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 45]] [shard 1341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 45]] [shard 1341 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 45]] [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.320358"], ["updated_at", "2014-11-19 21:55:45.320358"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.321870"], ["updated_at", "2014-11-19 21:55:45.321870"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.324050"], ["parent_id", 46], ["updated_at", "2014-11-19 21:55:45.324050"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.326191"], ["parent_id", 47], ["updated_at", "2014-11-19 21:55:45.326191"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 1341 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 48 LIMIT 1 [["parent_id", 46]] [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.331725"], ["id", 48], ["updated_at", "2014-11-19 21:55:45.331725"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 1341 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 13420000000000048 LIMIT 1 [["parent_id", 46]] [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.341858"], ["updated_at", "2014-11-19 21:55:45.341858"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.343456"], ["updated_at", "2014-11-19 21:55:45.343456"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.345071"], ["updated_at", "2014-11-19 21:55:45.345071"], ["user_id", 49]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 53], ["created_at", "2014-11-19 21:55:45.347443"], ["updated_at", "2014-11-19 21:55:45.347443"], ["value", 1]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.349567"], ["updated_at", "2014-11-19 21:55:45.349567"], ["user_id", 13410000000000049]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", "2014-11-19 21:55:45.351801"], ["updated_at", "2014-11-19 21:55:45.351801"], ["value", 2]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 49]] [shard 1341 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 49]] [shard 1341 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 49]] [shard 1341 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 13410000000000049]] [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.364244"], ["updated_at", "2014-11-19 21:55:45.364244"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.365746"], ["updated_at", "2014-11-19 21:55:45.365746"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:45.367397"], ["updated_at", "2014-11-19 21:55:45.367397"], ["user_id", 50], ["value", 1]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.369608"], ["updated_at", "2014-11-19 21:55:45.369608"], ["user_id", 13410000000000050]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 50]] [shard 1341 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 13410000000000050]] [shard 1342 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 50]] [shard 1341 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 50]] [shard 1341 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 13410000000000050]] [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.384282"], ["updated_at", "2014-11-19 21:55:45.384282"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.386095"], ["updated_at", "2014-11-19 21:55:45.386095"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.387796"], ["updated_at", "2014-11-19 21:55:45.387796"], ["user_id", 51]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 55], ["created_at", "2014-11-19 21:55:45.390201"], ["updated_at", "2014-11-19 21:55:45.390201"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", "2014-11-19 21:55:45.392118"], ["updated_at", "2014-11-19 21:55:45.392118"], ["value", 1]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.394337"], ["updated_at", "2014-11-19 21:55:45.394337"], ["user_id", 13410000000000051]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 57], ["created_at", "2014-11-19 21:55:45.396689"], ["updated_at", "2014-11-19 21:55:45.396689"], ["value", 2]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 51]] [shard 1341 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 13410000000000051]] [shard 1342 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 51]] [shard 1341 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 51]] [shard 1341 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 13410000000000051]] [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.410371"], ["updated_at", "2014-11-19 21:55:45.410371"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.411845"], ["updated_at", "2014-11-19 21:55:45.411845"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.413400"], ["updated_at", "2014-11-19 21:55:45.413400"], ["user_id", 52]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 56], ["created_at", "2014-11-19 21:55:45.415547"], ["updated_at", "2014-11-19 21:55:45.415547"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.417445"], ["updated_at", "2014-11-19 21:55:45.417445"], ["user_id", 13410000000000052]] [shard 1342 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 58], ["created_at", "2014-11-19 21:55:45.420620"], ["updated_at", "2014-11-19 21:55:45.420620"], ["value", 2]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 52]] [shard 1341 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 13410000000000052]] [shard 1342 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 52]] [shard 1341 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 52]] [shard 1341 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 13410000000000052]] [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.435507"], ["updated_at", "2014-11-19 21:55:45.435507"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.437091"], ["updated_at", "2014-11-19 21:55:45.437091"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:45.438563"], ["updated_at", "2014-11-19 21:55:45.438563"], ["user_id", 53], ["value", 1]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.440551"], ["updated_at", "2014-11-19 21:55:45.440551"], ["user_id", 13410000000000053]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:45.443162"], ["updated_at", "2014-11-19 21:55:45.443162"], ["user_id", 53], ["value", 2]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 53]] [shard 1341 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 53]] [shard 1341 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 13410000000000053]] [shard 1342 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 53]] [shard 1341 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 53]] [shard 1341 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 13410000000000053]] [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.456717"], ["updated_at", "2014-11-19 21:55:45.456717"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.458235"], ["updated_at", "2014-11-19 21:55:45.458235"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.459686"], ["updated_at", "2014-11-19 21:55:45.459686"], ["user_id", 54]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 59], ["created_at", "2014-11-19 21:55:45.462032"], ["updated_at", "2014-11-19 21:55:45.462032"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.463939"], ["updated_at", "2014-11-19 21:55:45.463939"], ["user_id", 13410000000000054]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 60], ["created_at", "2014-11-19 21:55:45.466176"], ["updated_at", "2014-11-19 21:55:45.466176"], ["value", 2]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 54]] [shard 1341 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 13410000000000054]] [shard 1342 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 54]] [shard 1341 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 54]] [shard 1341 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 13410000000000054]] [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.479524"], ["updated_at", "2014-11-19 21:55:45.479524"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.481002"], ["updated_at", "2014-11-19 21:55:45.481002"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:45.482852"], ["updated_at", "2014-11-19 21:55:45.482852"], ["user_id", 55], ["value", 1]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:45.485167"], ["updated_at", "2014-11-19 21:55:45.485167"], ["user_id", 13410000000000055], ["value", 2]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 55]] [shard 1341 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 55]] [shard 1341 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 55]] [shard 1341 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 13410000000000055]] [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.496393"], ["updated_at", "2014-11-19 21:55:45.496393"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.497946"], ["updated_at", "2014-11-19 21:55:45.497946"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.499426"], ["updated_at", "2014-11-19 21:55:45.499426"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 56]] [shard 1341 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.502020"], ["updated_at", "2014-11-19 21:55:45.502020"], ["user_id", 56]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 61]] [shard 1341 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 56]] [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.509184"], ["updated_at", "2014-11-19 21:55:45.509184"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.510684"], ["updated_at", "2014-11-19 21:55:45.510684"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.512580"], ["updated_at", "2014-11-19 21:55:45.512580"], ["user_id", 13420000000000054]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 62]] [shard 1341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 54]] [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.2ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.520173"], ["updated_at", "2014-11-19 21:55:45.520173"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.521701"], ["updated_at", "2014-11-19 21:55:45.521701"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.523794"], ["updated_at", "2014-11-19 21:55:45.523794"], ["user_id", 13410000000000058]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1128], ["created_at", "2014-11-19 21:55:45.526305"], ["updated_at", "2014-11-19 21:55:45.526305"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.528807"], ["updated_at", "2014-11-19 21:55:45.528807"], ["user_id", 13420000000000055]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 13410000000000063], ["created_at", "2014-11-19 21:55:45.530576"], ["updated_at", "2014-11-19 21:55:45.530576"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 1340 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (1128) [shard 1340 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (63) [shard 1341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 1341 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 1342 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 58 [shard 1341 master]  (0.2ms) ROLLBACK [shard 1342 master]  (0.2ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.548120"], ["updated_at", "2014-11-19 21:55:45.548120"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.549688"], ["updated_at", "2014-11-19 21:55:45.549688"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.552302"], ["updated_at", "2014-11-19 21:55:45.552302"], ["user_id", 59]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.554146"], ["updated_at", "2014-11-19 21:55:45.554146"], ["user_id", 13410000000000059]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.555869"], ["updated_at", "2014-11-19 21:55:45.555869"], ["user_id", 13420000000000056]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 1341 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (59) [shard 1341 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (13410000000000059) [shard 1342 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 1342 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (56) [shard 1342 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 64 [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.571146"], ["updated_at", "2014-11-19 21:55:45.571146"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.573023"], ["updated_at", "2014-11-19 21:55:45.573023"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.575863"], ["updated_at", "2014-11-19 21:55:45.575863"], ["user_id", 60]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.578083"], ["updated_at", "2014-11-19 21:55:45.578083"], ["user_id", 13410000000000060]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.586851"], ["updated_at", "2014-11-19 21:55:45.586851"], ["user_id", 13410000000000060]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 66], ["created_at", "2014-11-19 21:55:45.589814"], ["updated_at", "2014-11-19 21:55:45.589814"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 64], ["created_at", "2014-11-19 21:55:45.592495"], ["updated_at", "2014-11-19 21:55:45.592495"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 13420000000000064], ["created_at", "2014-11-19 21:55:45.594889"], ["updated_at", "2014-11-19 21:55:45.594889"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 13420000000000065], ["created_at", "2014-11-19 21:55:45.596455"], ["updated_at", "2014-11-19 21:55:45.596455"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.598071"], ["updated_at", "2014-11-19 21:55:45.598071"], ["user_id", 13420000000000057]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.601246"], ["updated_at", "2014-11-19 21:55:45.601246"], ["user_id", 57]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.603789"], ["updated_at", "2014-11-19 21:55:45.603789"], ["user_id", 57]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 13410000000000067], ["created_at", "2014-11-19 21:55:45.605889"], ["updated_at", "2014-11-19 21:55:45.605889"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 13420000000000066], ["created_at", "2014-11-19 21:55:45.608130"], ["updated_at", "2014-11-19 21:55:45.608130"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 67], ["created_at", "2014-11-19 21:55:45.609906"], ["updated_at", "2014-11-19 21:55:45.609906"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [shard 1341 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (60) [shard 1341 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (13410000000000060) [shard 1342 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (66) [shard 1341 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (64, 65) [shard 1342 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 1342 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (57) [shard 1342 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (66, 67) [shard 1342 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.634389"], ["updated_at", "2014-11-19 21:55:45.634389"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.636540"], ["updated_at", "2014-11-19 21:55:45.636540"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.638278"], ["updated_at", "2014-11-19 21:55:45.638278"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1129], ["created_at", "2014-11-19 21:55:45.640809"], ["updated_at", "2014-11-19 21:55:45.640809"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 13400000000001129], ["created_at", "2014-11-19 21:55:45.642608"], ["updated_at", "2014-11-19 21:55:45.642608"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1129 ORDER BY "appendages"."id" ASC LIMIT 1 [shard 1340 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1129) [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.651995"], ["updated_at", "2014-11-19 21:55:45.651995"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.653769"], ["updated_at", "2014-11-19 21:55:45.653769"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.656144"], ["updated_at", "2014-11-19 21:55:45.656144"], ["user_id", 13410000000000062]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.658224"], ["updated_at", "2014-11-19 21:55:45.658224"], ["user_id", 13420000000000059]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.659990"], ["updated_at", "2014-11-19 21:55:45.659990"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.662743"], ["updated_at", "2014-11-19 21:55:45.662743"], ["user_id", 2285]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 1340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (62) [shard 1341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 1342 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2285) [shard 1340 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 62 [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.675469"], ["updated_at", "2014-11-19 21:55:45.675469"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.677064"], ["updated_at", "2014-11-19 21:55:45.677064"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-11-19 21:55:45.685711"], ["owner_id", 63], ["owner_type", "User"], ["updated_at", "2014-11-19 21:55:45.685711"], ["value", 1]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-11-19 21:55:45.688799"], ["owner_id", 13410000000000063], ["owner_type", "User"], ["updated_at", "2014-11-19 21:55:45.688799"], ["value", 2]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 63], ["owner_type", "User"]] [shard 1341 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [shard 1341 master] Feature Load (0.1ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 63], ["owner_type", "User"]] [shard 1341 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 13410000000000063], ["owner_type", "User"]] [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.702783"], ["updated_at", "2014-11-19 21:55:45.702783"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.704253"], ["updated_at", "2014-11-19 21:55:45.704253"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.706051"], ["updated_at", "2014-11-19 21:55:45.706051"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:45.707773"], ["owner_id", 1133], ["owner_type", "Appendage"], ["updated_at", "2014-11-19 21:55:45.707773"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 109]] [shard 1340 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 1133]] [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.3ms) UPDATE "features" SET "owner_id" = $1, "owner_type" = $2, "updated_at" = $3 WHERE "features"."id" = 109 [["owner_id", 13410000000000064], ["owner_type", "User"], ["updated_at", "2014-11-19 21:55:45.712643"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master] Feature Load (0.1ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 109]] [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.721266"], ["updated_at", "2014-11-19 21:55:45.721266"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.722983"], ["updated_at", "2014-11-19 21:55:45.722983"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.7ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.731867"], ["updated_at", "2014-11-19 21:55:45.731867"], ["user_id", 13420000000000062]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master] Root Load (0.2ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 53]] [shard 1340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 62]] [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.741168"], ["updated_at", "2014-11-19 21:55:45.741168"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.742878"], ["updated_at", "2014-11-19 21:55:45.742878"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1340 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1340]] [shard 1340 master]  (0.4ms) COMMIT [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1341], ["name", "switchman_test_shard_1341"]] [shard 1340 master]  (0.2ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1342], ["name", "switchman_test_shard_1342"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1341,1342)) AND "switchman_shards"."id" IN (1340, 1341) [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1340]] [shard 1340 master]  (0.2ms) COMMIT [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1341], ["name", "switchman_test_shard_1341"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1342], ["name", "switchman_test_shard_1342"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.785852"], ["updated_at", "2014-11-19 21:55:45.785852"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.787740"], ["updated_at", "2014-11-19 21:55:45.787740"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.789338"], ["updated_at", "2014-11-19 21:55:45.789338"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1341 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.796307"], ["updated_at", "2014-11-19 21:55:45.796307"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1340 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-11-19 21:55:45.798317' [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.803878"], ["updated_at", "2014-11-19 21:55:45.803878"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1340 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-11-19 21:55:45.805742' [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.808268"], ["updated_at", "2014-11-19 21:55:45.808268"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1340 master] SQL (1.0ms) UPDATE "users" SET "updated_at" = '2014-11-19 21:55:45.810151' [shard 1340 master] SQL (0.4ms) DELETE FROM "users" [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.825957"], ["updated_at", "2014-11-19 21:55:45.825957"]] [shard 1340 master]  (0.2ms) COMMIT [shard 1340 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1340 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-11-19 21:55:45.828297' [shard 1340 master] SQL (0.3ms) DELETE FROM "users" [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master] User Load (0.3ms) SELECT "users".* FROM "users" FOR UPDATE [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.865407"], ["updated_at", "2014-11-19 21:55:45.865407"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.871371"], ["updated_at", "2014-11-19 21:55:45.871371"]] [shard 1340 master]  (0.4ms) COMMIT [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.877466"], ["updated_at", "2014-11-19 21:55:45.877466"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.883985"], ["updated_at", "2014-11-19 21:55:45.883985"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.924365"], ["updated_at", "2014-11-19 21:55:45.924365"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1340 master] SQL (0.2ms) DELETE FROM "users" [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.930919"], ["updated_at", "2014-11-19 21:55:45.930919"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1340 master] SQL (0.1ms) DELETE FROM "users" [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.934706"], ["updated_at", "2014-11-19 21:55:45.934706"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:45.936363"], ["name", "a"], ["updated_at", "2014-11-19 21:55:45.936363"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2298]] [shard 1340 master] CACHE (0.0ms) 1340::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2298]] CACHE (0.0ms) 1340::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2298]]  (0.1ms) BEGIN [shard 1340 master] SQL (0.2ms) UPDATE "users" SET "name" = $1, "updated_at" = $2 WHERE "users"."id" = 2298 [["name", "b"], ["updated_at", "2014-11-19 21:55:45.939748"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2298]] [shard 1340 master] CACHE (0.0ms) 1340::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2298]] SQL (0.4ms) DELETE FROM "users" [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.945245"], ["updated_at", "2014-11-19 21:55:45.945245"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1340 master] SQL (0.3ms) DELETE FROM "users" [shard 1340 master] SQL (0.1ms) DELETE FROM "users" [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.949940"], ["updated_at", "2014-11-19 21:55:45.949940"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1340 master] SQL (0.3ms) DELETE FROM "users" [shard 1340 master] SQL (0.1ms) DELETE FROM "users" [shard 1340 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1340 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1340]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1341], ["name", "switchman_test_shard_1341"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1342], ["name", "switchman_test_shard_1342"]] [shard 1340 master]  (0.2ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.964949"], ["updated_at", "2014-11-19 21:55:45.964949"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.3ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-19 21:55:45.966798"], ["owner_id", 2301], ["owner_type", "User"], ["updated_at", "2014-11-19 21:55:45.966798"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master] Feature Load (0.3ms) SELECT "features"."owner_id" FROM "features" WHERE "features"."id" = 110 ORDER BY "features"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.973647"], ["updated_at", "2014-11-19 21:55:45.973647"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1341 LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1342 LIMIT 1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:45.984396"], ["updated_at", "2014-11-19 21:55:45.984396"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master] SQL (6.2ms) DELETE FROM "switchman_shards" [shard 1340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1340 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1340]] [shard 1340 master]  (6.0ms) COMMIT [shard 1340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1341], ["name", "switchman_test_shard_1341"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1342], ["name", "switchman_test_shard_1342"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:46.021189"], ["updated_at", "2014-11-19 21:55:46.021189"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 53]] [shard 1340 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 53]] [shard 1340 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 53 ORDER BY "mirror_users"."id" ASC LIMIT 1 [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1340]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1341], ["name", "switchman_test_shard_1341"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1342], ["name", "switchman_test_shard_1342"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1340 master]  (0.2ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.2ms) BEGIN [shard 1342 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '15' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "15"], ["name", "public"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1360 [shard 1360 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1360 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1360 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1360 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1360 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1360 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1360 deploy]  (0.4ms) COMMIT [shard 1360 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1360 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1360 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1360 deploy]  (0.4ms) COMMIT [shard 1360 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1360 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1360 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1360 deploy]  (0.3ms) COMMIT [shard 1360 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1360 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1360 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1360 deploy]  (0.4ms) COMMIT [shard 1360 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1360 deploy]  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1360 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1360 deploy]  (0.4ms) COMMIT [shard 1360 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1360 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1360 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1360 deploy]  (0.3ms) COMMIT [shard 1360 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1360 deploy]  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1360 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1360 deploy]  (0.4ms) COMMIT [shard 1360 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1360 [["name", "switchman_test_shard_1360"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) BEGIN [shard 1360 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:46.130273"], ["updated_at", "2014-11-19 21:55:46.130273"]] [shard 1360 master]  (0.2ms) COMMIT [shard 1360 master]  (4.6ms) DROP SCHEMA switchman_test_shard_1360 CASCADE [shard 1360 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1360]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '16' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "16"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 1361 deploy]  (0.1ms) select sqlite_version(*) [shard 1361 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1361 deploy] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1361 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) begin transaction [shard 1361 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime, "updated_at" datetime) [shard 1361 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130403132607"]] [shard 1361 deploy]  (0.7ms) commit transaction [shard 1361 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 1361 deploy]  (0.3ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [shard 1361 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202442"]] [shard 1361 deploy]  (0.7ms) commit transaction [shard 1361 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 1361 deploy]  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [shard 1361 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202551"]] [shard 1361 deploy]  (0.7ms) commit transaction [shard 1361 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 1361 deploy]  (0.3ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [shard 1361 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131022202028"]] [shard 1361 deploy]  (0.7ms) commit transaction [shard 1361 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 1361 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime, "updated_at" datetime) [shard 1361 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131206172923"]] [shard 1361 deploy]  (0.6ms) commit transaction [shard 1361 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 1361 deploy]  (0.3ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 1361 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140123154135"]] [shard 1361 deploy]  (0.5ms) commit transaction [shard 1361 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 1361 deploy]  (0.3ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [shard 1361 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219183820"]] [shard 1361 deploy]  (0.8ms) commit transaction [shard 1361 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1361 [["name", "db/shard_1361.sqlite3"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.0ms) begin transaction [shard 1361 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-11-19 21:55:46.180102"], ["updated_at", "2014-11-19 21:55:46.180102"]] [shard 1361 master]  (0.8ms) commit transaction [shard 1361 master] Drop failed: No such file or directory @ unlink_internal - db/shard_1361.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1361]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [shard 1340 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_1362 [shard 1362 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1362 deploy]  (6.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1362 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1362 deploy] Migrating to CreateUsers (20130403132607)  (2.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1362 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1362 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1362 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1362 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1362 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1362 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1362 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1362 deploy] Migrating to CreateFeatures (20131206172923)  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1362 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1362 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.4ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1362 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1362 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1362 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1362 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1362 [["name", "switchman_test_shard_1362"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1362 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:46.246185"], ["updated_at", "2014-11-19 21:55:46.246185"]] [shard 1362 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1362 master]  (2.4ms) DROP SCHEMA switchman_test_shard_1362 CASCADE [shard 1362 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1362]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (2.1ms) ROLLBACK [shard 1340 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1340 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1340]] [shard 1340 master]  (0.4ms) COMMIT [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1341], ["name", "switchman_test_shard_1341"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1342], ["name", "switchman_test_shard_1342"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1340]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1341], ["name", "switchman_test_shard_1341"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1342], ["name", "switchman_test_shard_1342"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:46.308138"], ["name", "user1"], ["updated_at", "2014-11-19 21:55:46.308138"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:46.309936"], ["name", "user2"], ["updated_at", "2014-11-19 21:55:46.309936"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:46.315567"], ["name", "user1"], ["updated_at", "2014-11-19 21:55:46.315567"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:46.317210"], ["name", "user2"], ["updated_at", "2014-11-19 21:55:46.317210"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1341 LIMIT 1 [shard 1340 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (2304) [shard 1340 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (70) [shard 1341 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2304]] [shard 1340 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 70]] [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:46.327953"], ["name", "user1"], ["updated_at", "2014-11-19 21:55:46.327953"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:46.329482"], ["name", "user2"], ["updated_at", "2014-11-19 21:55:46.329482"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master] SQL (0.3ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 71 [shard 1341 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2305]] [shard 1340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 71]] [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:46.338595"], ["name", "user1"], ["updated_at", "2014-11-19 21:55:46.338595"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:46.340270"], ["name", "user2"], ["updated_at", "2014-11-19 21:55:46.340270"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2306) [shard 1340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:46.347902"], ["name", "user1"], ["updated_at", "2014-11-19 21:55:46.347902"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:46.349528"], ["name", "user2"], ["updated_at", "2014-11-19 21:55:46.349528"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 73 ORDER BY "users"."id" ASC LIMIT 1 [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1340]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1341], ["name", "switchman_test_shard_1341"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1342], ["name", "switchman_test_shard_1342"]] [shard 1340 master]  (0.2ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:46.363440"], ["updated_at", "2014-11-19 21:55:46.363440"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1341 LIMIT 1 [shard 1340 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (74) LIMIT 1 [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:46.372001"], ["updated_at", "2014-11-19 21:55:46.372001"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 75 LIMIT 1 [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:46.378651"], ["updated_at", "2014-11-19 21:55:46.378651"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 76]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 13410000000000076 ORDER BY "users"."id" ASC LIMIT 1 [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:46.386531"], ["updated_at", "2014-11-19 21:55:46.386531"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-19 21:55:46.388025"], ["name", "multi-shard exists"], ["updated_at", "2014-11-19 21:55:46.388025"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 1340 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1340 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1341 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:46.405800"], ["updated_at", "2014-11-19 21:55:46.405800"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 78 LIMIT 1 [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:46.412547"], ["updated_at", "2014-11-19 21:55:46.412547"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 79]] [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1340 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1340]] [shard 1340 master]  (0.4ms) COMMIT [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1341], ["name", "switchman_test_shard_1341"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1342], ["name", "switchman_test_shard_1342"]] [shard 1340 master]  (0.3ms) COMMIT [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:46.431550"], ["updated_at", "2014-11-19 21:55:46.431550"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1340 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:46.444874"], ["updated_at", "2014-11-19 21:55:46.444874"]] [shard 1340 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:46.446554"], ["updated_at", "2014-11-19 21:55:46.446554"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:46.451969"], ["updated_at", "2014-11-19 21:55:46.451969"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:46.453703"], ["updated_at", "2014-11-19 21:55:46.453703"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1341 LIMIT 1 [shard 1340 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1342 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:46.458349"], ["updated_at", "2014-11-19 21:55:46.458349"]] [shard 1342 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1341 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-19 21:55:46.464325"], ["updated_at", "2014-11-19 21:55:46.464325"]] [shard 1341 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1341 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1341 master]  (0.1ms) BEGIN [shard 1340 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1341]] [shard 1340 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1342]] [shard 1340 master]  (0.1ms) BEGIN [shard 1342 master]  (0.1ms) ROLLBACK [shard 1342 master]  (0.1ms) ROLLBACK [shard 1340 master] SQL (6.1ms) DELETE FROM "switchman_shards" [shard 1340 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1340 master]  (5.7ms) DROP SCHEMA switchman_test_shard_1341 CASCADE [shard 1341 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1341]]  (0.2ms) COMMIT  (7.6ms) DROP SCHEMA switchman_test_shard_1342 CASCADE [shard 1342 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1342]]  (0.1ms) COMMIT  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (12.6ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (5.9ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (1.2ms) CREATE SCHEMA switchman_test_shard_1364 [shard 1364 deploy]  (19.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1364 deploy]  (6.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1364 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1364 deploy] Migrating to CreateUsers (20130403132607)  (14.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1364 deploy] SQL (6.0ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1364 deploy] Migrating to CreateAppendages (20130411202442)  (7.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1364 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1364 deploy] Migrating to CreateMirrorUsers (20130411202551)  (7.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1364 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1364 deploy] Migrating to CreateDigits (20131022202028)  (7.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1364 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1364 deploy] Migrating to CreateFeatures (20131206172923)  (8.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1364 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1364 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1364 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1364 deploy] Migrating to CreateRoots (20140219183820)  (7.4ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1364 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1364 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1364 [["name", "switchman_test_shard_1364"]] [shard 1363 master]  (7.2ms) COMMIT [shard 1363 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1365 [shard 1365 deploy]  (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1365 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1365 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1365 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1365 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1365 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1365 deploy]  (0.4ms) COMMIT [shard 1365 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 1365 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1365 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1365 deploy]  (0.3ms) COMMIT [shard 1365 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1365 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1365 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1365 deploy]  (0.4ms) COMMIT [shard 1365 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 1365 deploy]  (3.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1365 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1365 deploy]  (0.3ms) COMMIT [shard 1365 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1365 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1365 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1365 deploy]  (0.4ms) COMMIT [shard 1365 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1365 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1365 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1365 deploy]  (0.3ms) COMMIT [shard 1365 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1365 deploy]  (2.3ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1365 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1365 deploy]  (0.6ms) COMMIT [shard 1365 deploy]  (0.1ms) BEGIN [shard 1363 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1365 [["name", "switchman_test_shard_1365"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1363]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1364], ["name", "switchman_test_shard_1364"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1365], ["name", "switchman_test_shard_1365"]] [shard 1363 master]  (0.2ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:52.075236"], ["updated_at", "2014-11-24 17:18:52.075236"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:52.085363"], ["name", "multi-shard exists"], ["updated_at", "2014-11-24 17:18:52.085363"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 1363 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1363 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1364 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:52.098644"], ["updated_at", "2014-11-24 17:18:52.098644"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 2 LIMIT 1 [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:52.108140"], ["updated_at", "2014-11-24 17:18:52.108140"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1364 LIMIT 1 [shard 1363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (3) LIMIT 1 [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:52.117822"], ["updated_at", "2014-11-24 17:18:52.117822"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 4 LIMIT 1 [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:52.125424"], ["updated_at", "2014-11-24 17:18:52.125424"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 5]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 13640000000000005 ORDER BY "users"."id" ASC LIMIT 1 [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:52.133937"], ["updated_at", "2014-11-24 17:18:52.133937"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 6]] [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1363]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1364], ["name", "switchman_test_shard_1364"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1365], ["name", "switchman_test_shard_1365"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "3"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.2ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:52.352179"], ["updated_at", "2014-11-24 17:18:52.352179"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master] SQL (0.7ms) DELETE FROM "switchman_shards" [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1363]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1364], ["name", "switchman_test_shard_1364"]] [shard 1363 master]  (0.2ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1365], ["name", "switchman_test_shard_1365"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:52.472100"], ["updated_at", "2014-11-24 17:18:52.472100"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:52.474056"], ["updated_at", "2014-11-24 17:18:52.474056"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:52.475614"], ["updated_at", "2014-11-24 17:18:52.475614"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1364 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:52.482305"], ["updated_at", "2014-11-24 17:18:52.482305"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1363 master] SQL (0.1ms) DELETE FROM "users" [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:52.488078"], ["updated_at", "2014-11-24 17:18:52.488078"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1363 master] SQL (0.1ms) DELETE FROM "users" [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:52.491523"], ["updated_at", "2014-11-24 17:18:52.491523"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1363 master] SQL (0.8ms) DELETE FROM "users" [shard 1363 master] SQL (0.2ms) DELETE FROM "users" [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:52.506592"], ["updated_at", "2014-11-24 17:18:52.506592"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:52.508667"], ["name", "a"], ["updated_at", "2014-11-24 17:18:52.508667"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2316]] [shard 1363 master] CACHE (0.0ms) 1363::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2316]] CACHE (0.0ms) 1363::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2316]]  (0.1ms) BEGIN [shard 1363 master] SQL (0.2ms) UPDATE "users" SET "name" = $1, "updated_at" = $2 WHERE "users"."id" = 2316 [["name", "b"], ["updated_at", "2014-11-24 17:18:52.512643"]] [shard 1363 master]  (0.4ms) COMMIT [shard 1363 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2316]] [shard 1363 master] CACHE (0.0ms) 1363::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2316]] SQL (0.4ms) DELETE FROM "users" [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:52.519602"], ["updated_at", "2014-11-24 17:18:52.519602"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1363 master] SQL (0.3ms) DELETE FROM "users" [shard 1363 master] SQL (0.1ms) DELETE FROM "users" [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:52.547294"], ["updated_at", "2014-11-24 17:18:52.547294"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1363 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-11-24 17:18:52.548837' [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:52.553327"], ["updated_at", "2014-11-24 17:18:52.553327"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1363 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-11-24 17:18:52.554824' [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:52.556792"], ["updated_at", "2014-11-24 17:18:52.556792"]] [shard 1363 master]  (0.4ms) COMMIT [shard 1363 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1363 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-11-24 17:18:52.558743' [shard 1363 master] SQL (0.3ms) DELETE FROM "users" [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:52.561374"], ["updated_at", "2014-11-24 17:18:52.561374"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1363 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-11-24 17:18:52.563079' [shard 1363 master] SQL (0.3ms) DELETE FROM "users" [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:52.595232"], ["updated_at", "2014-11-24 17:18:52.595232"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:52.601140"], ["updated_at", "2014-11-24 17:18:52.601140"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:52.607334"], ["updated_at", "2014-11-24 17:18:52.607334"]] [shard 1363 master]  (0.4ms) COMMIT [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:52.613363"], ["updated_at", "2014-11-24 17:18:52.613363"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.2ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1363]] [shard 1363 master]  (0.2ms) COMMIT [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1364], ["name", "switchman_test_shard_1364"]] [shard 1363 master]  (0.2ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1365], ["name", "switchman_test_shard_1365"]] [shard 1363 master]  (0.2ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1364 LIMIT 1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1365 LIMIT 1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11365 LIMIT 1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1368]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1368 LIMIT 1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (2.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.7ms) BEGIN [shard 1365 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.7ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1369]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '5' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "5"], ["name", "public"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1370 [shard 1370 deploy]  (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1370 deploy]  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1370 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1370 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1370 deploy]  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1370 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1370 deploy]  (0.4ms) COMMIT [shard 1370 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1370 deploy]  (2.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1370 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1370 deploy]  (0.4ms) COMMIT [shard 1370 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) BEGIN [shard 1370 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1370 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1370 deploy]  (0.3ms) COMMIT [shard 1370 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 1370 deploy]  (2.3ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1370 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1370 deploy]  (0.4ms) COMMIT [shard 1370 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1370 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1370 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1370 deploy]  (0.4ms) COMMIT [shard 1370 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1370 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1370 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1370 deploy]  (0.4ms) COMMIT [shard 1370 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1370 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1370 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1370 deploy]  (0.3ms) COMMIT [shard 1370 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1370 [["name", "switchman_test_shard_1370"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) BEGIN [shard 1370 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:52.935718"], ["updated_at", "2014-11-24 17:18:52.935718"]] [shard 1370 master]  (0.4ms) COMMIT [shard 1370 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1370 master]  (5.1ms) DROP SCHEMA switchman_test_shard_1370 CASCADE [shard 1370 deploy]  (2.9ms) SELECT COUNT(*) FROM "users" [shard 1370 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1363]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1364], ["name", "switchman_test_shard_1364"]] [shard 1363 master]  (0.2ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1365], ["name", "switchman_test_shard_1365"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:19:52.966204"], ["updated_at", "2014-11-24 17:19:52.966204"]] [shard 1364 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.0ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1363]] [shard 1363 master]  (0.4ms) COMMIT [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1364], ["name", "switchman_test_shard_1364"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1365], ["name", "switchman_test_shard_1365"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:52.979823"], ["updated_at", "2014-11-24 17:18:52.979823"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:52.992498"], ["updated_at", "2014-11-24 17:18:52.992498"], ["user_id", 2326]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:52.994816"], ["updated_at", "2014-11-24 17:18:52.994816"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (6.0ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:52.997316"], ["updated_at", "2014-11-24 17:18:52.997316"], ["user_id", 10]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.005429"], ["updated_at", "2014-11-24 17:18:53.005429"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.011302"], ["updated_at", "2014-11-24 17:18:53.011302"], ["user_id", 2]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.017656"], ["updated_at", "2014-11-24 17:18:53.017656"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.019900"], ["updated_at", "2014-11-24 17:18:53.019900"], ["user_id", 2327]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.021469"], ["updated_at", "2014-11-24 17:18:53.021469"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.023877"], ["updated_at", "2014-11-24 17:18:53.023877"], ["user_id", 11]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.025511"], ["updated_at", "2014-11-24 17:18:53.025511"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.028128"], ["updated_at", "2014-11-24 17:18:53.028128"], ["user_id", 3]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.031594"], ["parent_id", 2327], ["updated_at", "2014-11-24 17:18:53.031594"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.033718"], ["parent_id", 2328], ["updated_at", "2014-11-24 17:18:53.033718"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2328]] [shard 1363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2327]] [shard 1363 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 [["parent_id", 2327]] [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.047396"], ["updated_at", "2014-11-24 17:18:53.047396"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.049951"], ["updated_at", "2014-11-24 17:18:53.049951"], ["user_id", 2330]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.052143"], ["updated_at", "2014-11-24 17:18:53.052143"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.054533"], ["updated_at", "2014-11-24 17:18:53.054533"], ["user_id", 12]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.056078"], ["updated_at", "2014-11-24 17:18:53.056078"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.058635"], ["updated_at", "2014-11-24 17:18:53.058635"], ["user_id", 4]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1364 LIMIT 1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.066896"], ["updated_at", "2014-11-24 17:18:53.066896"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.069488"], ["updated_at", "2014-11-24 17:18:53.069488"], ["user_id", 2331]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.071047"], ["updated_at", "2014-11-24 17:18:53.071047"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.073799"], ["updated_at", "2014-11-24 17:18:53.073799"], ["user_id", 13]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.075418"], ["updated_at", "2014-11-24 17:18:53.075418"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.077947"], ["updated_at", "2014-11-24 17:18:53.077947"], ["user_id", 5]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.083638"], ["updated_at", "2014-11-24 17:18:53.083638"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.085759"], ["updated_at", "2014-11-24 17:18:53.085759"], ["user_id", 2332]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.087379"], ["updated_at", "2014-11-24 17:18:53.087379"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.089736"], ["updated_at", "2014-11-24 17:18:53.089736"], ["user_id", 14]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.091212"], ["updated_at", "2014-11-24 17:18:53.091212"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.093675"], ["updated_at", "2014-11-24 17:18:53.093675"], ["user_id", 6]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.100256"], ["updated_at", "2014-11-24 17:18:53.100256"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.103107"], ["updated_at", "2014-11-24 17:18:53.103107"], ["user_id", 2333]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.105155"], ["updated_at", "2014-11-24 17:18:53.105155"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.108167"], ["updated_at", "2014-11-24 17:18:53.108167"], ["user_id", 15]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.109840"], ["updated_at", "2014-11-24 17:18:53.109840"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.113197"], ["updated_at", "2014-11-24 17:18:53.113197"], ["user_id", 7]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.119866"], ["updated_at", "2014-11-24 17:18:53.119866"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.122451"], ["updated_at", "2014-11-24 17:18:53.122451"], ["user_id", 2334]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.124293"], ["updated_at", "2014-11-24 17:18:53.124293"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.127165"], ["updated_at", "2014-11-24 17:18:53.127165"], ["user_id", 16]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.128972"], ["updated_at", "2014-11-24 17:18:53.128972"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.131799"], ["updated_at", "2014-11-24 17:18:53.131799"], ["user_id", 8]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.138714"], ["updated_at", "2014-11-24 17:18:53.138714"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.140898"], ["updated_at", "2014-11-24 17:18:53.140898"], ["user_id", 2335]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.142586"], ["updated_at", "2014-11-24 17:18:53.142586"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.145006"], ["updated_at", "2014-11-24 17:18:53.145006"], ["user_id", 17]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.146474"], ["updated_at", "2014-11-24 17:18:53.146474"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.149512"], ["updated_at", "2014-11-24 17:18:53.149512"], ["user_id", 9]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.156178"], ["updated_at", "2014-11-24 17:18:53.156178"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.158652"], ["updated_at", "2014-11-24 17:18:53.158652"], ["user_id", 2336]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.160453"], ["updated_at", "2014-11-24 17:18:53.160453"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.162874"], ["updated_at", "2014-11-24 17:18:53.162874"], ["user_id", 18]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.164329"], ["updated_at", "2014-11-24 17:18:53.164329"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.166858"], ["updated_at", "2014-11-24 17:18:53.166858"], ["user_id", 10]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.169482"], ["updated_at", "2014-11-24 17:18:53.169482"]] [shard 1364 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.179265"], ["updated_at", "2014-11-24 17:18:53.179265"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.182186"], ["updated_at", "2014-11-24 17:18:53.182186"], ["user_id", 2337]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.184165"], ["updated_at", "2014-11-24 17:18:53.184165"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.187354"], ["updated_at", "2014-11-24 17:18:53.187354"], ["user_id", 19]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.189117"], ["updated_at", "2014-11-24 17:18:53.189117"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.191679"], ["updated_at", "2014-11-24 17:18:53.191679"], ["user_id", 11]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.197924"], ["updated_at", "2014-11-24 17:18:53.197924"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.200111"], ["updated_at", "2014-11-24 17:18:53.200111"], ["user_id", 2338]] [shard 1363 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.202118"], ["updated_at", "2014-11-24 17:18:53.202118"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.205145"], ["updated_at", "2014-11-24 17:18:53.205145"], ["user_id", 20]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.207106"], ["updated_at", "2014-11-24 17:18:53.207106"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.209870"], ["updated_at", "2014-11-24 17:18:53.209870"], ["user_id", 12]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.216840"], ["updated_at", "2014-11-24 17:18:53.216840"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.219192"], ["updated_at", "2014-11-24 17:18:53.219192"], ["user_id", 2339]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.220841"], ["updated_at", "2014-11-24 17:18:53.220841"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.223350"], ["updated_at", "2014-11-24 17:18:53.223350"], ["user_id", 21]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.225011"], ["updated_at", "2014-11-24 17:18:53.225011"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.227887"], ["updated_at", "2014-11-24 17:18:53.227887"], ["user_id", 13]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.233249"], ["updated_at", "2014-11-24 17:18:53.233249"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.235471"], ["updated_at", "2014-11-24 17:18:53.235471"], ["user_id", 2340]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.237101"], ["updated_at", "2014-11-24 17:18:53.237101"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.239481"], ["updated_at", "2014-11-24 17:18:53.239481"], ["user_id", 22]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.240892"], ["updated_at", "2014-11-24 17:18:53.240892"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.243465"], ["updated_at", "2014-11-24 17:18:53.243465"], ["user_id", 14]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.248991"], ["updated_at", "2014-11-24 17:18:53.248991"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.251556"], ["updated_at", "2014-11-24 17:18:53.251556"], ["user_id", 2341]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.253777"], ["updated_at", "2014-11-24 17:18:53.253777"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.257122"], ["updated_at", "2014-11-24 17:18:53.257122"], ["user_id", 23]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.258988"], ["updated_at", "2014-11-24 17:18:53.258988"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.262207"], ["updated_at", "2014-11-24 17:18:53.262207"], ["user_id", 15]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.268521"], ["updated_at", "2014-11-24 17:18:53.268521"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.270761"], ["updated_at", "2014-11-24 17:18:53.270761"], ["user_id", 2342]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.272488"], ["updated_at", "2014-11-24 17:18:53.272488"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.275290"], ["updated_at", "2014-11-24 17:18:53.275290"], ["user_id", 24]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.277312"], ["updated_at", "2014-11-24 17:18:53.277312"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.280454"], ["updated_at", "2014-11-24 17:18:53.280454"], ["user_id", 16]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.286308"], ["updated_at", "2014-11-24 17:18:53.286308"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.288711"], ["updated_at", "2014-11-24 17:18:53.288711"], ["user_id", 2343]] [shard 1363 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.290643"], ["updated_at", "2014-11-24 17:18:53.290643"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.293766"], ["updated_at", "2014-11-24 17:18:53.293766"], ["user_id", 25]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.295350"], ["updated_at", "2014-11-24 17:18:53.295350"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.298210"], ["updated_at", "2014-11-24 17:18:53.298210"], ["user_id", 17]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1363]] [shard 1363 master]  (0.4ms) COMMIT [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1364], ["name", "switchman_test_shard_1364"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1365], ["name", "switchman_test_shard_1365"]] [shard 1363 master]  (0.2ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.313565"], ["updated_at", "2014-11-24 17:18:53.313565"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1363]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.3ms) BEGIN [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1364], ["name", "switchman_test_shard_1364"]] [shard 1363 master]  (0.4ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1365], ["name", "switchman_test_shard_1365"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.331152"], ["updated_at", "2014-11-24 17:18:53.331152"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 54]] [shard 1363 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 54]] [shard 1363 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 54 ORDER BY "mirror_users"."id" ASC LIMIT 1 [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.2ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "6"], ["name", "non_existent_shard"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "6"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 1371 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.6ms) SELECT COUNT(*) FROM "users" [shard 1372 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "7"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "8"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "9"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "10"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "11"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "12"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1363]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1364], ["name", "switchman_test_shard_1364"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1365], ["name", "switchman_test_shard_1365"]] [shard 1363 master]  (0.2ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "13"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "13"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1363]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1364], ["name", "switchman_test_shard_1364"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1365], ["name", "switchman_test_shard_1365"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.496237"], ["updated_at", "2014-11-24 17:18:53.496237"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.508511"], ["updated_at", "2014-11-24 17:18:53.508511"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1364 LIMIT 1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.515873"], ["updated_at", "2014-11-24 17:18:53.515873"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.517393"], ["updated_at", "2014-11-24 17:18:53.517393"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.519761"], ["updated_at", "2014-11-24 17:18:53.519761"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.526042"], ["updated_at", "2014-11-24 17:18:53.526042"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.527833"], ["updated_at", "2014-11-24 17:18:53.527833"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master] SQL (5.0ms) DELETE FROM "switchman_shards" [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1363]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1364], ["name", "switchman_test_shard_1364"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1365], ["name", "switchman_test_shard_1365"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.550611"], ["updated_at", "2014-11-24 17:18:53.550611"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.552128"], ["updated_at", "2014-11-24 17:18:53.552128"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.554746"], ["parent_id", 30], ["updated_at", "2014-11-24 17:18:53.554746"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.557989"], ["parent_id", 31], ["updated_at", "2014-11-24 17:18:53.557989"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 30]] [shard 1364 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 32 LIMIT 1 [["parent_id", 30]] [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.564092"], ["id", 32], ["updated_at", "2014-11-24 17:18:53.564092"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1364 LIMIT 1 [shard 1363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 30]] [shard 1364 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 13650000000000032 LIMIT 1 [["parent_id", 30]] [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.578054"], ["updated_at", "2014-11-24 17:18:53.578054"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.579723"], ["updated_at", "2014-11-24 17:18:53.579723"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.586125"], ["updated_at", "2014-11-24 17:18:53.586125"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.587560"], ["updated_at", "2014-11-24 17:18:53.587560"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.590122"], ["updated_at", "2014-11-24 17:18:53.590122"], ["user_id", 34]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 18], ["created_at", "2014-11-24 17:18:53.599124"], ["updated_at", "2014-11-24 17:18:53.599124"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 34], ["id", 1]] [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.610033"], ["updated_at", "2014-11-24 17:18:53.610033"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.611855"], ["updated_at", "2014-11-24 17:18:53.611855"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.614951"], ["updated_at", "2014-11-24 17:18:53.614951"], ["user_id", 35]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.620814"], ["updated_at", "2014-11-24 17:18:53.620814"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.622285"], ["updated_at", "2014-11-24 17:18:53.622285"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.624982"], ["updated_at", "2014-11-24 17:18:53.624982"], ["user_id", 36]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 36]] [shard 1364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 36]] [shard 1364 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 36]] [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.636017"], ["updated_at", "2014-11-24 17:18:53.636017"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.637558"], ["updated_at", "2014-11-24 17:18:53.637558"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.639124"], ["updated_at", "2014-11-24 17:18:53.639124"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.2ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.648344"], ["updated_at", "2014-11-24 17:18:53.648344"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.649884"], ["updated_at", "2014-11-24 17:18:53.649884"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.652448"], ["updated_at", "2014-11-24 17:18:53.652448"], ["user_id", 38]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.654907"], ["updated_at", "2014-11-24 17:18:53.654907"], ["user_id", 24]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1365 LIMIT 1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.663693"], ["updated_at", "2014-11-24 17:18:53.663693"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.665209"], ["updated_at", "2014-11-24 17:18:53.665209"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.667697"], ["updated_at", "2014-11-24 17:18:53.667697"], ["user_id", 39]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.674115"], ["updated_at", "2014-11-24 17:18:53.674115"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.675598"], ["updated_at", "2014-11-24 17:18:53.675598"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.679073"], ["updated_at", "2014-11-24 17:18:53.679073"], ["user_id", 40]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (5.1ms) INSERT INTO "digits" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.681202"], ["updated_at", "2014-11-24 17:18:53.681202"]] [shard 1365 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 23], ["created_at", "2014-11-24 17:18:53.689326"], ["id", 13650000000000001], ["updated_at", "2014-11-24 17:18:53.689326"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 40], ["id", 13650000000000001]] [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.2ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.701179"], ["updated_at", "2014-11-24 17:18:53.701179"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.703058"], ["updated_at", "2014-11-24 17:18:53.703058"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.706815"], ["updated_at", "2014-11-24 17:18:53.706815"], ["user_id", 41]] [shard 1364 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 24]] [shard 1364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]] [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.716880"], ["updated_at", "2014-11-24 17:18:53.716880"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.718466"], ["updated_at", "2014-11-24 17:18:53.718466"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.721276"], ["updated_at", "2014-11-24 17:18:53.721276"], ["user_id", 42]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 42], ["id", 25]] [shard 1364 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 28], ["id", 13640000000000025]] [shard 1365 master]  (0.2ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.731378"], ["updated_at", "2014-11-24 17:18:53.731378"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.733624"], ["updated_at", "2014-11-24 17:18:53.733624"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.742222"], ["updated_at", "2014-11-24 17:18:53.742222"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.744120"], ["updated_at", "2014-11-24 17:18:53.744120"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.746048"], ["updated_at", "2014-11-24 17:18:53.746048"], ["user_id", 44]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 26], ["created_at", "2014-11-24 17:18:53.748911"], ["updated_at", "2014-11-24 17:18:53.748911"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.750956"], ["updated_at", "2014-11-24 17:18:53.750956"], ["user_id", 13640000000000044]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 19], ["created_at", "2014-11-24 17:18:53.754918"], ["updated_at", "2014-11-24 17:18:53.754918"], ["value", 2]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 44]] [shard 1364 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 13640000000000044]] [shard 1365 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 44]] [shard 1364 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 44]] [shard 1364 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 13640000000000044]] [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.773297"], ["updated_at", "2014-11-24 17:18:53.773297"]] [shard 1364 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.775458"], ["updated_at", "2014-11-24 17:18:53.775458"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.777324"], ["updated_at", "2014-11-24 17:18:53.777324"], ["user_id", 45]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 27], ["created_at", "2014-11-24 17:18:53.779855"], ["updated_at", "2014-11-24 17:18:53.779855"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 27], ["created_at", "2014-11-24 17:18:53.781604"], ["updated_at", "2014-11-24 17:18:53.781604"], ["value", 1]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.783719"], ["updated_at", "2014-11-24 17:18:53.783719"], ["user_id", 13640000000000045]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 20], ["created_at", "2014-11-24 17:18:53.785935"], ["updated_at", "2014-11-24 17:18:53.785935"], ["value", 2]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 45]] [shard 1364 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 13640000000000045]] [shard 1365 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 45]] [shard 1364 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 45]] [shard 1364 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 13640000000000045]] [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.800866"], ["updated_at", "2014-11-24 17:18:53.800866"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.802806"], ["updated_at", "2014-11-24 17:18:53.802806"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.804270"], ["updated_at", "2014-11-24 17:18:53.804270"], ["user_id", 46]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 28], ["created_at", "2014-11-24 17:18:53.806412"], ["updated_at", "2014-11-24 17:18:53.806412"], ["value", 1]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.808680"], ["updated_at", "2014-11-24 17:18:53.808680"], ["user_id", 13640000000000046]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 21], ["created_at", "2014-11-24 17:18:53.811401"], ["updated_at", "2014-11-24 17:18:53.811401"], ["value", 2]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 46]] [shard 1364 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 1364 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 46]] [shard 1364 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 13640000000000046]] [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.2ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.826420"], ["updated_at", "2014-11-24 17:18:53.826420"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.828149"], ["updated_at", "2014-11-24 17:18:53.828149"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:53.829713"], ["updated_at", "2014-11-24 17:18:53.829713"], ["user_id", 47], ["value", 1]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.831859"], ["updated_at", "2014-11-24 17:18:53.831859"], ["user_id", 13640000000000047]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 47]] [shard 1364 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 13640000000000047]] [shard 1365 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 47]] [shard 1364 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 47]] [shard 1364 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 13640000000000047]] [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.842902"], ["updated_at", "2014-11-24 17:18:53.842902"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.844377"], ["updated_at", "2014-11-24 17:18:53.844377"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:53.845802"], ["updated_at", "2014-11-24 17:18:53.845802"], ["user_id", 48], ["value", 1]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.847689"], ["updated_at", "2014-11-24 17:18:53.847689"], ["user_id", 13640000000000048]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:53.850077"], ["updated_at", "2014-11-24 17:18:53.850077"], ["user_id", 48], ["value", 2]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 48]] [shard 1364 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 48]] [shard 1364 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 13640000000000048]] [shard 1365 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 48]] [shard 1364 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 48]] [shard 1364 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 13640000000000048]] [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.862973"], ["updated_at", "2014-11-24 17:18:53.862973"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.864594"], ["updated_at", "2014-11-24 17:18:53.864594"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.866119"], ["updated_at", "2014-11-24 17:18:53.866119"], ["user_id", 49]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 32], ["created_at", "2014-11-24 17:18:53.868403"], ["updated_at", "2014-11-24 17:18:53.868403"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.870358"], ["updated_at", "2014-11-24 17:18:53.870358"], ["user_id", 13640000000000049]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 24], ["created_at", "2014-11-24 17:18:53.872543"], ["updated_at", "2014-11-24 17:18:53.872543"], ["value", 2]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 49]] [shard 1364 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 13640000000000049]] [shard 1365 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 49]] [shard 1364 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 49]] [shard 1364 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 13640000000000049]] [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.885757"], ["updated_at", "2014-11-24 17:18:53.885757"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.887108"], ["updated_at", "2014-11-24 17:18:53.887108"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:53.888434"], ["updated_at", "2014-11-24 17:18:53.888434"], ["user_id", 50], ["value", 1]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:53.890400"], ["updated_at", "2014-11-24 17:18:53.890400"], ["user_id", 13640000000000050], ["value", 2]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 50]] [shard 1364 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 50]] [shard 1364 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 50]] [shard 1364 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 13640000000000050]] [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.900687"], ["updated_at", "2014-11-24 17:18:53.900687"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.902196"], ["updated_at", "2014-11-24 17:18:53.902196"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (6.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-11-24 17:18:53.910465"], ["owner_id", 51], ["owner_type", "User"], ["updated_at", "2014-11-24 17:18:53.910465"], ["value", 1]] [shard 1364 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (5.9ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-11-24 17:18:53.919536"], ["owner_id", 13640000000000051], ["owner_type", "User"], ["updated_at", "2014-11-24 17:18:53.919536"], ["value", 2]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 51], ["owner_type", "User"]] [shard 1364 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 51]] [shard 1364 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 51], ["owner_type", "User"]] [shard 1364 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 13640000000000051], ["owner_type", "User"]] [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.938151"], ["updated_at", "2014-11-24 17:18:53.938151"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.939582"], ["updated_at", "2014-11-24 17:18:53.939582"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.941584"], ["updated_at", "2014-11-24 17:18:53.941584"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:53.943671"], ["owner_id", 1151], ["owner_type", "Appendage"], ["updated_at", "2014-11-24 17:18:53.943671"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 111]] [shard 1363 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 1151]] [shard 1363 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.3ms) UPDATE "features" SET "owner_id" = $1, "owner_type" = $2, "updated_at" = $3 WHERE "features"."id" = 111 [["owner_id", 13640000000000052], ["owner_type", "User"], ["updated_at", "2014-11-24 17:18:53.948573"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 111]] [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.956317"], ["updated_at", "2014-11-24 17:18:53.956317"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.958109"], ["updated_at", "2014-11-24 17:18:53.958109"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.959582"], ["updated_at", "2014-11-24 17:18:53.959582"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 53]] [shard 1364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.962632"], ["updated_at", "2014-11-24 17:18:53.962632"], ["user_id", 53]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 34]] [shard 1364 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 53]] [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.969844"], ["updated_at", "2014-11-24 17:18:53.969844"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.971513"], ["updated_at", "2014-11-24 17:18:53.971513"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.973781"], ["updated_at", "2014-11-24 17:18:53.973781"], ["user_id", 13650000000000040]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 35]] [shard 1364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 40]] [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.982599"], ["updated_at", "2014-11-24 17:18:53.982599"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:53.984101"], ["updated_at", "2014-11-24 17:18:53.984101"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.986261"], ["updated_at", "2014-11-24 17:18:53.986261"], ["user_id", 13640000000000055]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1152], ["created_at", "2014-11-24 17:18:53.988569"], ["updated_at", "2014-11-24 17:18:53.988569"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:53.990849"], ["updated_at", "2014-11-24 17:18:53.990849"], ["user_id", 13650000000000041]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 13640000000000036], ["created_at", "2014-11-24 17:18:53.992771"], ["updated_at", "2014-11-24 17:18:53.992771"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 1363 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (1152) [shard 1363 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (36) [shard 1364 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 1364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [shard 1365 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 55 [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:54.015802"], ["updated_at", "2014-11-24 17:18:54.015802"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:54.017398"], ["updated_at", "2014-11-24 17:18:54.017398"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:54.018889"], ["updated_at", "2014-11-24 17:18:54.018889"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1153], ["created_at", "2014-11-24 17:18:54.021156"], ["updated_at", "2014-11-24 17:18:54.021156"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 13630000000001153], ["created_at", "2014-11-24 17:18:54.022661"], ["updated_at", "2014-11-24 17:18:54.022661"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1153 ORDER BY "appendages"."id" ASC LIMIT 1 [shard 1363 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1153) [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:54.033392"], ["updated_at", "2014-11-24 17:18:54.033392"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:54.034902"], ["updated_at", "2014-11-24 17:18:54.034902"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.037518"], ["updated_at", "2014-11-24 17:18:54.037518"], ["user_id", 57]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.039413"], ["updated_at", "2014-11-24 17:18:54.039413"], ["user_id", 13640000000000057]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.040861"], ["updated_at", "2014-11-24 17:18:54.040861"], ["user_id", 13640000000000057]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 37], ["created_at", "2014-11-24 17:18:54.043467"], ["updated_at", "2014-11-24 17:18:54.043467"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 27], ["created_at", "2014-11-24 17:18:54.046025"], ["updated_at", "2014-11-24 17:18:54.046025"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 13650000000000027], ["created_at", "2014-11-24 17:18:54.048377"], ["updated_at", "2014-11-24 17:18:54.048377"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 13650000000000028], ["created_at", "2014-11-24 17:18:54.049669"], ["updated_at", "2014-11-24 17:18:54.049669"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.050960"], ["updated_at", "2014-11-24 17:18:54.050960"], ["user_id", 13650000000000043]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.053394"], ["updated_at", "2014-11-24 17:18:54.053394"], ["user_id", 43]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.055588"], ["updated_at", "2014-11-24 17:18:54.055588"], ["user_id", 43]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 13640000000000038], ["created_at", "2014-11-24 17:18:54.057202"], ["updated_at", "2014-11-24 17:18:54.057202"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 13650000000000029], ["created_at", "2014-11-24 17:18:54.058723"], ["updated_at", "2014-11-24 17:18:54.058723"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 30], ["created_at", "2014-11-24 17:18:54.060032"], ["updated_at", "2014-11-24 17:18:54.060032"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 1364 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (57) [shard 1364 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (13640000000000057) [shard 1365 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (37) [shard 1364 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (27, 28) [shard 1365 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) [shard 1365 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (43) [shard 1365 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (29, 30) [shard 1365 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 8 [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.2ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:54.090676"], ["updated_at", "2014-11-24 17:18:54.090676"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:54.092882"], ["updated_at", "2014-11-24 17:18:54.092882"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.097122"], ["updated_at", "2014-11-24 17:18:54.097122"], ["user_id", 58]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.099895"], ["updated_at", "2014-11-24 17:18:54.099895"], ["user_id", 13640000000000058]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.102092"], ["updated_at", "2014-11-24 17:18:54.102092"], ["user_id", 13650000000000044]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 1364 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (58) [shard 1364 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (13640000000000058) [shard 1365 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (44) [shard 1365 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (44) [shard 1365 master] SQL (0.3ms) DELETE FROM "appendages" WHERE "appendages"."id" = 39 [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:54.119139"], ["updated_at", "2014-11-24 17:18:54.119139"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:54.121048"], ["updated_at", "2014-11-24 17:18:54.121048"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.123249"], ["updated_at", "2014-11-24 17:18:54.123249"], ["user_id", 13640000000000059]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.125144"], ["updated_at", "2014-11-24 17:18:54.125144"], ["user_id", 13650000000000045]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:54.126845"], ["updated_at", "2014-11-24 17:18:54.126845"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.129252"], ["updated_at", "2014-11-24 17:18:54.129252"], ["user_id", 2346]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 1363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 1364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [shard 1365 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2346) [shard 1363 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 59 [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:54.141816"], ["updated_at", "2014-11-24 17:18:54.141816"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:54.143258"], ["updated_at", "2014-11-24 17:18:54.143258"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.3ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.150872"], ["updated_at", "2014-11-24 17:18:54.150872"], ["user_id", 13650000000000046]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master] Root Load (0.2ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 54]] [shard 1363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:54.158858"], ["updated_at", "2014-11-24 17:18:54.158858"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:54.160389"], ["updated_at", "2014-11-24 17:18:54.160389"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "14"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "14"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1363]] [shard 1363 master]  (9.1ms) COMMIT [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1364], ["name", "switchman_test_shard_1364"]] [shard 1363 master]  (5.0ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1365], ["name", "switchman_test_shard_1365"]] [shard 1363 master]  (0.4ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.199158"], ["name", "user1"], ["updated_at", "2014-11-24 17:18:54.199158"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.201104"], ["name", "user2"], ["updated_at", "2014-11-24 17:18:54.201104"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1364 LIMIT 1 [shard 1363 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (2347) [shard 1363 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (62) [shard 1364 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2347]] [shard 1363 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 62]] [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.212112"], ["name", "user1"], ["updated_at", "2014-11-24 17:18:54.212112"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.214337"], ["name", "user2"], ["updated_at", "2014-11-24 17:18:54.214337"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 63 [shard 1364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2348]] [shard 1363 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.223307"], ["name", "user1"], ["updated_at", "2014-11-24 17:18:54.223307"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.225038"], ["name", "user2"], ["updated_at", "2014-11-24 17:18:54.225038"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.231194"], ["name", "user1"], ["updated_at", "2014-11-24 17:18:54.231194"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.233059"], ["name", "user2"], ["updated_at", "2014-11-24 17:18:54.233059"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2350) [shard 1363 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.240482"], ["name", "user1"], ["updated_at", "2014-11-24 17:18:54.240482"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.242304"], ["name", "user2"], ["updated_at", "2014-11-24 17:18:54.242304"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 66 ORDER BY "users"."id" ASC LIMIT 1 [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.2ms) ROLLBACK [shard 1364 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1363]] [shard 1363 master]  (0.4ms) COMMIT [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1364], ["name", "switchman_test_shard_1364"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1365], ["name", "switchman_test_shard_1365"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1363]] [shard 1363 master]  (0.2ms) COMMIT [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1364], ["name", "switchman_test_shard_1364"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1365], ["name", "switchman_test_shard_1365"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:54.266013"], ["updated_at", "2014-11-24 17:18:54.266013"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SELECT COUNT(*) FROM "users" [shard 1365 master]  (0.1ms) SAVEPOINT active_record_2 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:54.270844"], ["updated_at", "2014-11-24 17:18:54.270844"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1365 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master] SQL (6.2ms) DELETE FROM "switchman_shards" [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1363 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1363]] [shard 1363 master]  (6.2ms) COMMIT [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1364], ["name", "switchman_test_shard_1364"]] [shard 1363 master]  (6.2ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1365], ["name", "switchman_test_shard_1365"]] [shard 1363 master]  (5.9ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.2ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1363]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1364], ["name", "switchman_test_shard_1364"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1365], ["name", "switchman_test_shard_1365"]] [shard 1363 master]  (0.2ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.341647"], ["name", "user1"], ["updated_at", "2014-11-24 17:18:54.341647"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.344113"], ["updated_at", "2014-11-24 17:18:54.344113"], ["user_id", 67], ["value", 1]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.345910"], ["updated_at", "2014-11-24 17:18:54.345910"], ["user_id", 67], ["value", 2]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.347421"], ["name", "user2"], ["updated_at", "2014-11-24 17:18:54.347421"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.349844"], ["updated_at", "2014-11-24 17:18:54.349844"], ["user_id", 50], ["value", 3]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.351684"], ["updated_at", "2014-11-24 17:18:54.351684"], ["user_id", 50], ["value", 4]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.353472"], ["updated_at", "2014-11-24 17:18:54.353472"], ["user_id", 50], ["value", 5]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 67]] [shard 1364 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 1364 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 50]] [shard 1365 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 1365 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1364 LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1365 LIMIT 1 [shard 1363 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (41, 42) [shard 1364 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (32, 33, 34) [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.368349"], ["name", "user1"], ["updated_at", "2014-11-24 17:18:54.368349"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.371283"], ["updated_at", "2014-11-24 17:18:54.371283"], ["user_id", 68], ["value", 1]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.373202"], ["updated_at", "2014-11-24 17:18:54.373202"], ["user_id", 68], ["value", 2]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.374771"], ["name", "user2"], ["updated_at", "2014-11-24 17:18:54.374771"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.377265"], ["updated_at", "2014-11-24 17:18:54.377265"], ["user_id", 51], ["value", 3]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.379190"], ["updated_at", "2014-11-24 17:18:54.379190"], ["user_id", 51], ["value", 4]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.381062"], ["updated_at", "2014-11-24 17:18:54.381062"], ["user_id", 51], ["value", 5]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 68]] [shard 1364 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1364 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 51]] [shard 1365 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1365 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (43, 44) [shard 1364 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (35, 36, 37) [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.393957"], ["name", "user1"], ["updated_at", "2014-11-24 17:18:54.393957"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.396918"], ["updated_at", "2014-11-24 17:18:54.396918"], ["user_id", 69], ["value", 1]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.398798"], ["updated_at", "2014-11-24 17:18:54.398798"], ["user_id", 69], ["value", 2]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.400519"], ["name", "user2"], ["updated_at", "2014-11-24 17:18:54.400519"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.403005"], ["updated_at", "2014-11-24 17:18:54.403005"], ["user_id", 52], ["value", 3]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.405098"], ["updated_at", "2014-11-24 17:18:54.405098"], ["user_id", 52], ["value", 4]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.407304"], ["updated_at", "2014-11-24 17:18:54.407304"], ["user_id", 52], ["value", 5]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 69]] [shard 1364 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1364 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 52]] [shard 1365 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1365 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (45, 46) [shard 1364 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (38, 39, 40) [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.418714"], ["name", "user1"], ["updated_at", "2014-11-24 17:18:54.418714"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.421089"], ["updated_at", "2014-11-24 17:18:54.421089"], ["user_id", 70], ["value", 1]] [shard 1364 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.423133"], ["updated_at", "2014-11-24 17:18:54.423133"], ["user_id", 70], ["value", 2]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.424702"], ["name", "user2"], ["updated_at", "2014-11-24 17:18:54.424702"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.427291"], ["updated_at", "2014-11-24 17:18:54.427291"], ["user_id", 53], ["value", 3]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.429109"], ["updated_at", "2014-11-24 17:18:54.429109"], ["user_id", 53], ["value", 4]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.430904"], ["updated_at", "2014-11-24 17:18:54.430904"], ["user_id", 53], ["value", 5]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 70]] [shard 1364 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1364 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 53]] [shard 1365 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1365 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (47, 48) [shard 1364 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (41, 42, 43) [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.443933"], ["name", "user1"], ["updated_at", "2014-11-24 17:18:54.443933"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.446748"], ["updated_at", "2014-11-24 17:18:54.446748"], ["user_id", 71], ["value", 1]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.448992"], ["updated_at", "2014-11-24 17:18:54.448992"], ["user_id", 71], ["value", 2]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.450838"], ["name", "user2"], ["updated_at", "2014-11-24 17:18:54.450838"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.453441"], ["updated_at", "2014-11-24 17:18:54.453441"], ["user_id", 54], ["value", 3]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.455431"], ["updated_at", "2014-11-24 17:18:54.455431"], ["user_id", 54], ["value", 4]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.457339"], ["updated_at", "2014-11-24 17:18:54.457339"], ["user_id", 54], ["value", 5]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 71]] [shard 1364 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1364 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 54]] [shard 1365 master]  (0.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1365 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (49, 50) [shard 1364 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (44, 45, 46) [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.472621"], ["name", "user1"], ["updated_at", "2014-11-24 17:18:54.472621"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.474531"], ["name", "user2"], ["updated_at", "2014-11-24 17:18:54.474531"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.476328"], ["updated_at", "2014-11-24 17:18:54.476328"], ["user_id", 72], ["value", 1]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.478626"], ["updated_at", "2014-11-24 17:18:54.478626"], ["user_id", 13650000000000055], ["value", 3]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.480636"], ["updated_at", "2014-11-24 17:18:54.480636"], ["user_id", 13640000000000072], ["value", 2]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.482192"], ["updated_at", "2014-11-24 17:18:54.482192"], ["user_id", 55], ["value", 4]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.483495"], ["updated_at", "2014-11-24 17:18:54.483495"], ["user_id", 55], ["value", 5]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1364 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1365 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1364 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1365 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1364 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1365 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [shard 1364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 1365 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1365 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 1365 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.504060"], ["name", "user1"], ["updated_at", "2014-11-24 17:18:54.504060"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.505717"], ["name", "user2"], ["updated_at", "2014-11-24 17:18:54.505717"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.507241"], ["updated_at", "2014-11-24 17:18:54.507241"], ["user_id", 73], ["value", 1]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.509271"], ["updated_at", "2014-11-24 17:18:54.509271"], ["user_id", 13650000000000056], ["value", 3]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.512104"], ["updated_at", "2014-11-24 17:18:54.512104"], ["user_id", 13640000000000073], ["value", 2]] [shard 1365 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.514627"], ["updated_at", "2014-11-24 17:18:54.514627"], ["user_id", 56], ["value", 4]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.516380"], ["updated_at", "2014-11-24 17:18:54.516380"], ["user_id", 56], ["value", 5]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1364 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1365 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1364 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1365 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1364 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1365 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (73) [shard 1364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 1365 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1365 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 1365 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (73) [shard 1364 master]  (0.2ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.533747"], ["name", "user1"], ["updated_at", "2014-11-24 17:18:54.533747"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.535420"], ["name", "user2"], ["updated_at", "2014-11-24 17:18:54.535420"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.536954"], ["updated_at", "2014-11-24 17:18:54.536954"], ["user_id", 74], ["value", 1]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.538849"], ["updated_at", "2014-11-24 17:18:54.538849"], ["user_id", 13650000000000057], ["value", 3]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.540609"], ["updated_at", "2014-11-24 17:18:54.540609"], ["user_id", 13640000000000074], ["value", 2]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.542082"], ["updated_at", "2014-11-24 17:18:54.542082"], ["user_id", 57], ["value", 4]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.543584"], ["updated_at", "2014-11-24 17:18:54.543584"], ["user_id", 57], ["value", 5]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.545951"], ["updated_at", "2014-11-24 17:18:54.545951"], ["user_id", 74]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:54.547683"], ["updated_at", "2014-11-24 17:18:54.547683"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.549908"], ["updated_at", "2014-11-24 17:18:54.549908"], ["user_id", 75]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.556936"], ["name", "user1"], ["updated_at", "2014-11-24 17:18:54.556936"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.558891"], ["name", "user2"], ["updated_at", "2014-11-24 17:18:54.558891"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.560587"], ["updated_at", "2014-11-24 17:18:54.560587"], ["user_id", 76], ["value", 1]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.563081"], ["updated_at", "2014-11-24 17:18:54.563081"], ["user_id", 13650000000000058], ["value", 3]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.565429"], ["updated_at", "2014-11-24 17:18:54.565429"], ["user_id", 13640000000000076], ["value", 2]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.567100"], ["updated_at", "2014-11-24 17:18:54.567100"], ["user_id", 58], ["value", 4]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.568902"], ["updated_at", "2014-11-24 17:18:54.568902"], ["user_id", 58], ["value", 5]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1364 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1365 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1364 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1365 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1364 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1365 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (76) [shard 1364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 1365 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1365 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 1365 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (76) [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.587995"], ["name", "user1"], ["updated_at", "2014-11-24 17:18:54.587995"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.590085"], ["name", "user2"], ["updated_at", "2014-11-24 17:18:54.590085"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.591980"], ["updated_at", "2014-11-24 17:18:54.591980"], ["user_id", 77], ["value", 1]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.594240"], ["updated_at", "2014-11-24 17:18:54.594240"], ["user_id", 13650000000000059], ["value", 3]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.596289"], ["updated_at", "2014-11-24 17:18:54.596289"], ["user_id", 13640000000000077], ["value", 2]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.598004"], ["updated_at", "2014-11-24 17:18:54.598004"], ["user_id", 59], ["value", 4]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.599526"], ["updated_at", "2014-11-24 17:18:54.599526"], ["user_id", 59], ["value", 5]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1364 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1365 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1364 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1365 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1364 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1365 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (77) [shard 1364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 1365 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1365 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 1365 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (77) [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.615900"], ["name", "user1"], ["updated_at", "2014-11-24 17:18:54.615900"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.617479"], ["name", "user2"], ["updated_at", "2014-11-24 17:18:54.617479"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.619091"], ["updated_at", "2014-11-24 17:18:54.619091"], ["user_id", 78], ["value", 1]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.621195"], ["updated_at", "2014-11-24 17:18:54.621195"], ["user_id", 13650000000000060], ["value", 3]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.623049"], ["updated_at", "2014-11-24 17:18:54.623049"], ["user_id", 13640000000000078], ["value", 2]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.624567"], ["updated_at", "2014-11-24 17:18:54.624567"], ["user_id", 60], ["value", 4]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:54.626082"], ["updated_at", "2014-11-24 17:18:54.626082"], ["user_id", 60], ["value", 5]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1364 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1365 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1364 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1365 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1364 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1365 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (78) [shard 1364 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [shard 1365 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1365 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [shard 1365 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (78) [shard 1364 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.2ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.645704"], ["name", "user1"], ["updated_at", "2014-11-24 17:18:54.645704"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.648914"], ["updated_at", "2014-11-24 17:18:54.648914"], ["user_id", 79]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.650930"], ["name", "user2"], ["updated_at", "2014-11-24 17:18:54.650930"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.653893"], ["updated_at", "2014-11-24 17:18:54.653893"], ["user_id", 61]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.656030"], ["name", "user2"], ["updated_at", "2014-11-24 17:18:54.656030"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (2352) [shard 1363 master]  (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (79) [shard 1364 master]  (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (61) [shard 1365 master]  (0.2ms) ROLLBACK [shard 1365 master]  (0.2ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.668106"], ["name", "user1"], ["updated_at", "2014-11-24 17:18:54.668106"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.670986"], ["updated_at", "2014-11-24 17:18:54.670986"], ["user_id", 80]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.673108"], ["name", "user2"], ["updated_at", "2014-11-24 17:18:54.673108"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.675706"], ["updated_at", "2014-11-24 17:18:54.675706"], ["user_id", 62]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 66 [shard 1364 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 66 [shard 1365 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 66 [shard 1364 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 66 [shard 1365 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 66 [shard 1364 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 66 [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.688117"], ["name", "user1"], ["updated_at", "2014-11-24 17:18:54.688117"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.690828"], ["updated_at", "2014-11-24 17:18:54.690828"], ["user_id", 81]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.692533"], ["name", "user2"], ["updated_at", "2014-11-24 17:18:54.692533"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.695501"], ["updated_at", "2014-11-24 17:18:54.695501"], ["user_id", 63]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 67 [shard 1364 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 67 [shard 1365 master]  (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 67 [shard 1364 master]  (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 67 [shard 1365 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 67 [shard 1364 master]  (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 67 [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.706451"], ["name", "user1"], ["updated_at", "2014-11-24 17:18:54.706451"]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1364 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.708972"], ["updated_at", "2014-11-24 17:18:54.708972"], ["user_id", 82]] [shard 1364 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1364 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.710608"], ["name", "user2"], ["updated_at", "2014-11-24 17:18:54.710608"]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1365 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-11-24 17:18:54.712891"], ["updated_at", "2014-11-24 17:18:54.712891"], ["user_id", 64]] [shard 1365 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1365 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (82) [shard 1364 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (64) [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1364 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1363]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1364], ["name", "switchman_test_shard_1364"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1365], ["name", "switchman_test_shard_1365"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1364,1365)) AND "switchman_shards"."id" IN (1363, 1364) [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1363]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1364], ["name", "switchman_test_shard_1364"]] [shard 1363 master]  (0.2ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1365], ["name", "switchman_test_shard_1365"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '15' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "15"], ["name", "public"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1383 [shard 1383 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1383 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1383 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1383 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1383 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1383 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1383 deploy]  (0.4ms) COMMIT [shard 1383 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1383 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1383 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1383 deploy]  (0.4ms) COMMIT [shard 1383 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1383 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1383 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1383 deploy]  (0.4ms) COMMIT [shard 1383 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1383 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1383 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1383 deploy]  (0.3ms) COMMIT [shard 1383 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 1383 deploy]  (3.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1383 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1383 deploy]  (0.4ms) COMMIT [shard 1383 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1383 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1383 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1383 deploy]  (0.3ms) COMMIT [shard 1383 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1383 deploy]  (2.3ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1383 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1383 deploy]  (0.4ms) COMMIT [shard 1383 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1383 [["name", "switchman_test_shard_1383"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) BEGIN [shard 1383 master] SQL (6.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:54.837652"], ["updated_at", "2014-11-24 17:18:54.837652"]] [shard 1383 master]  (6.1ms) COMMIT [shard 1383 master]  (9.4ms) DROP SCHEMA switchman_test_shard_1383 CASCADE [shard 1383 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1383]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '16' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "16"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 1384 deploy]  (0.1ms) select sqlite_version(*) [shard 1384 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1384 deploy] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1384 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 1384 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 1384 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130403132607"]] [shard 1384 deploy]  (0.8ms) commit transaction [shard 1384 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 1384 deploy]  (0.4ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 1384 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202442"]] [shard 1384 deploy]  (0.8ms) commit transaction [shard 1384 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 1384 deploy]  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 1384 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202551"]] [shard 1384 deploy]  (0.7ms) commit transaction [shard 1384 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 1384 deploy]  (0.3ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 1384 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131022202028"]] [shard 1384 deploy]  (0.7ms) commit transaction [shard 1384 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 1384 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 1384 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131206172923"]] [shard 1384 deploy]  (0.7ms) commit transaction [shard 1384 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 1384 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 1384 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140123154135"]] [shard 1384 deploy]  (0.6ms) commit transaction [shard 1384 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 1384 deploy]  (0.3ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 1384 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219183820"]] [shard 1384 deploy]  (0.8ms) commit transaction [shard 1384 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1384 [["name", "db/shard_1384.sqlite3"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.0ms) begin transaction [shard 1384 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-11-24 17:18:54.910305"], ["updated_at", "2014-11-24 17:18:54.910305"]] [shard 1384 master]  (0.7ms) commit transaction [shard 1384 master] Drop failed: No such file or directory @ unlink_internal - db/shard_1384.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1384]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [shard 1363 master]  (0.2ms) CREATE SCHEMA switchman_test_shard_1385 [shard 1385 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1385 deploy]  (7.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1385 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1385 deploy] Migrating to CreateUsers (20130403132607)  (2.6ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1385 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1385 deploy] Migrating to CreateAppendages (20130411202442)  (4.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1385 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1385 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1385 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1385 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1385 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1385 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1385 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1385 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1385 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1385 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1385 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1385 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1385 [["name", "switchman_test_shard_1385"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1385 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:54.984968"], ["updated_at", "2014-11-24 17:18:54.984968"]] [shard 1385 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1385 master]  (3.3ms) DROP SCHEMA switchman_test_shard_1385 CASCADE [shard 1385 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1385]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (2.0ms) ROLLBACK [shard 1363 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1363]] [shard 1363 master]  (6.1ms) COMMIT [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1364], ["name", "switchman_test_shard_1364"]] [shard 1363 master]  (5.0ms) COMMIT [shard 1363 master]  (0.2ms) BEGIN [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1365], ["name", "switchman_test_shard_1365"]] [shard 1363 master]  (0.4ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:55.048248"], ["updated_at", "2014-11-24 17:18:55.048248"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1364 LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1365 LIMIT 1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:55.061417"], ["updated_at", "2014-11-24 17:18:55.061417"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-11-24 17:18:55.067765"], ["owner_id", 2353], ["owner_type", "User"], ["updated_at", "2014-11-24 17:18:55.067765"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master] Feature Load (0.2ms) SELECT "features"."owner_id" FROM "features" WHERE "features"."id" = 112 ORDER BY "features"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1363 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-11-24 17:18:55.076236"], ["updated_at", "2014-11-24 17:18:55.076236"]] [shard 1363 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1363 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master]  (0.1ms) ROLLBACK [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1363]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1364], ["name", "switchman_test_shard_1364"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1365], ["name", "switchman_test_shard_1365"]] [shard 1363 master]  (0.3ms) COMMIT [shard 1363 master]  (0.1ms) BEGIN [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1364]] [shard 1363 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1365]] [shard 1363 master]  (0.1ms) BEGIN [shard 1365 master]  (0.1ms) ROLLBACK [shard 1365 master]  (0.1ms) ROLLBACK [shard 1363 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1363 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1363 master]  (4.4ms) DROP SCHEMA switchman_test_shard_1364 CASCADE [shard 1364 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1364]]  (0.1ms) COMMIT  (5.4ms) DROP SCHEMA switchman_test_shard_1365 CASCADE [shard 1365 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1365]]  (0.1ms) COMMIT  (2.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (29.0ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.6ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.6ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Load (17.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN ('--- - default ')) PG::InvalidTextRepresentation: ERROR: invalid input syntax for integer: "--- - default " LINE 1: ...tchman_shards".* FROM "switchman_shards" WHERE (id IN ('--- ^ : SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN ('--- - default '))  (0.1ms) ROLLBACK  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (16.1ms) DELETE FROM "switchman_shards" Switchman::Shard Load (1.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (30.4ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (2.2ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (15.5ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (17.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (4.2ms) CREATE SCHEMA switchman_test_shard_1387 [shard 1387 deploy]  (47.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1387 deploy]  (4.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1387 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1387 deploy] Migrating to CreateUsers (20130403132607)  (37.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1387 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1387 deploy] Migrating to CreateAppendages (20130411202442)  (32.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1387 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1387 deploy] Migrating to CreateMirrorUsers (20130411202551)  (17.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1387 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1387 deploy] Migrating to CreateDigits (20131022202028)  (17.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1387 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1387 deploy] Migrating to CreateFeatures (20131206172923)  (17.4ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1387 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1387 deploy] Migrating to AddParentIdToUsers (20140123154135)  (30.9ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1387 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1387 deploy] Migrating to CreateRoots (20140219183820)  (17.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1387 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1387 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1387 [["name", "switchman_test_shard_1387"]] [shard 1386 master]  (1.3ms) COMMIT [shard 1386 master] Switchman::Shard Load (1.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1386 master]  (0.1ms) BEGIN [shard 1386 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1386 master]  (0.2ms) COMMIT [shard 1386 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1388 [shard 1388 deploy]  (2.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1388 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1388 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1388 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1388 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1388 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1388 deploy]  (0.3ms) COMMIT [shard 1388 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1388 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1388 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1388 deploy]  (0.3ms) COMMIT [shard 1388 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1388 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1388 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1388 deploy]  (0.3ms) COMMIT [shard 1388 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1388 deploy]  (4.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1388 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1388 deploy]  (0.3ms) COMMIT [shard 1388 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1388 deploy]  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1388 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1388 deploy]  (0.3ms) COMMIT [shard 1388 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1388 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1388 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1388 deploy]  (0.2ms) COMMIT [shard 1388 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1388 deploy]  (2.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1388 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1388 deploy]  (0.7ms) COMMIT [shard 1388 deploy]  (0.1ms) BEGIN [shard 1386 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1388 [["name", "switchman_test_shard_1388"]] [shard 1386 master]  (0.4ms) COMMIT [shard 1386 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1386 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1386 master]  (0.1ms) BEGIN [shard 1386 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1386 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1386]] [shard 1386 master]  (0.3ms) COMMIT [shard 1386 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1386 master]  (0.1ms) BEGIN [shard 1386 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1387], ["name", "switchman_test_shard_1387"]] [shard 1386 master]  (0.3ms) COMMIT [shard 1386 master]  (0.1ms) BEGIN [shard 1386 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1388], ["name", "switchman_test_shard_1388"]] [shard 1386 master]  (0.3ms) COMMIT [shard 1386 master]  (0.1ms) BEGIN [shard 1386 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1386 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1387]] [shard 1386 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1388]] [shard 1386 master]  (0.1ms) BEGIN [shard 1388 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN ('--- - 1386 ')) [shard 1386 master] PG::InvalidTextRepresentation: ERROR: invalid input syntax for integer: "--- - 1386 " LINE 1: ...tchman_shards".* FROM "switchman_shards" WHERE (id IN ('--- ^ : SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN ('--- - 1386 '))  (0.1ms) ROLLBACK [shard 1388 master]  (0.1ms) ROLLBACK [shard 1386 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1386 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1386 master]  (8.2ms) DROP SCHEMA switchman_test_shard_1387 CASCADE [shard 1387 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1387]]  (0.1ms) COMMIT  (5.5ms) DROP SCHEMA switchman_test_shard_1388 CASCADE [shard 1388 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1388]]  (0.1ms) COMMIT  (0.6ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.5ms) COMMIT Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1390 [shard 1390 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1390 deploy]  (16.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1390 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1390 deploy] Migrating to CreateUsers (20130403132607)  (2.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1390 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1390 deploy] Migrating to CreateAppendages (20130411202442)  (3.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1390 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1390 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1390 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1390 deploy] Migrating to CreateDigits (20131022202028)  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1390 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1390 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1390 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1390 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1390 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1390 deploy] Migrating to CreateRoots (20140219183820)  (2.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1390 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1390 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1390 [["name", "switchman_test_shard_1390"]] [shard 1389 master]  (0.7ms) COMMIT [shard 1389 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1389 master]  (0.1ms) BEGIN [shard 1389 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1389 master]  (15.4ms) COMMIT [shard 1389 master]  (0.9ms) CREATE SCHEMA switchman_test_shard_1391 [shard 1391 deploy]  (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1391 deploy]  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1391 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1391 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1391 deploy]  (3.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1391 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1391 deploy]  (0.4ms) COMMIT [shard 1391 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1391 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1391 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1391 deploy]  (0.4ms) COMMIT [shard 1391 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1391 deploy]  (3.3ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1391 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1391 deploy]  (0.3ms) COMMIT [shard 1391 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 1391 deploy]  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1391 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1391 deploy]  (0.4ms) COMMIT [shard 1391 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1391 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1391 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1391 deploy]  (0.3ms) COMMIT [shard 1391 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1391 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1391 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1391 deploy]  (0.3ms) COMMIT [shard 1391 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1391 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1391 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1391 deploy]  (0.4ms) COMMIT [shard 1391 deploy]  (0.1ms) BEGIN [shard 1389 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1391 [["name", "switchman_test_shard_1391"]] [shard 1389 master]  (0.3ms) COMMIT [shard 1389 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1389 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1389 master]  (0.1ms) BEGIN [shard 1389 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1389 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1389]] [shard 1389 master]  (0.3ms) COMMIT [shard 1389 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1389 master]  (0.1ms) BEGIN [shard 1389 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1390], ["name", "switchman_test_shard_1390"]] [shard 1389 master]  (0.3ms) COMMIT [shard 1389 master]  (0.1ms) BEGIN [shard 1389 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1391], ["name", "switchman_test_shard_1391"]] [shard 1389 master]  (0.3ms) COMMIT [shard 1389 master]  (0.1ms) BEGIN [shard 1389 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1389 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1390]] [shard 1389 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1391]] [shard 1389 master]  (0.1ms) BEGIN [shard 1391 master]  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.2ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'development' AND "switchman_shards"."name" IS NULL ORDER BY "switchman_shards"."id" ASC LIMIT 1  (2.1ms) SELECT * FROM unnest(current_schemas(false)) [shard master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'production' AND "switchman_shards"."name" IS NULL ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (6.9ms) DELETE FROM "switchman_shards" [shard 1389 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1389 master]  (0.1ms) BEGIN [shard 1389 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1389 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]] [shard 1389 master]  (0.4ms) COMMIT [shard 1389 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1389 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1392 master]  (0.1ms) BEGIN [shard 1392 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [shard 1392 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_1393 [shard 1393 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1393 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1393 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1393 deploy] Migrating to CreateUsers (20130403132607)  (2.6ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1393 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1393 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1393 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1393 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1393 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1393 deploy] Migrating to CreateDigits (20131022202028)  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1393 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1393 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1393 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1393 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1393 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1393 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1393 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1393 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1393 [["name", "switchman_test_shard_1393"]] [shard 1392 master]  (0.7ms) COMMIT [shard 1392 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1392 master]  (0.1ms) BEGIN [shard 1392 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1392 master]  (0.3ms) COMMIT [shard 1392 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1394 [shard 1394 deploy]  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1394 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1394 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1394 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1394 deploy]  (2.6ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1394 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1394 deploy]  (0.3ms) COMMIT [shard 1394 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1394 deploy]  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1394 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1394 deploy]  (0.3ms) COMMIT [shard 1394 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1394 deploy]  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1394 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1394 deploy]  (0.3ms) COMMIT [shard 1394 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 1394 deploy]  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1394 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1394 deploy]  (0.4ms) COMMIT [shard 1394 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 1394 deploy]  (2.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1394 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1394 deploy]  (0.3ms) COMMIT [shard 1394 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 1394 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1394 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1394 deploy]  (0.3ms) COMMIT [shard 1394 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1394 deploy]  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1394 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1394 deploy]  (0.3ms) COMMIT [shard 1394 deploy]  (0.1ms) BEGIN [shard 1392 master] SQL (0.1ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1394 [["name", "switchman_test_shard_1394"]] [shard 1392 master]  (0.3ms) COMMIT [shard 1392 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1392 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1392 master]  (0.1ms) BEGIN [shard 1392 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1392 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1392]] [shard 1392 master]  (0.4ms) COMMIT [shard 1392 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1392 master]  (0.1ms) BEGIN [shard 1392 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1393], ["name", "switchman_test_shard_1393"]] [shard 1392 master]  (0.3ms) COMMIT [shard 1392 master]  (0.1ms) BEGIN [shard 1392 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1394], ["name", "switchman_test_shard_1394"]] [shard 1392 master]  (0.2ms) COMMIT [shard 1392 master]  (0.1ms) BEGIN [shard 1392 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1392 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1393]] [shard 1392 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1394]] [shard 1392 master]  (0.1ms) BEGIN [shard 1394 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1392)) [shard 1392 master]  (0.1ms) ROLLBACK [shard 1394 master]  (0.1ms) ROLLBACK [shard 1392 master] SQL (16.4ms) DELETE FROM "switchman_shards" [shard 1392 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1392 master]  (19.5ms) DROP SCHEMA switchman_test_shard_1393 CASCADE [shard 1393 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1393]]  (0.1ms) COMMIT  (5.0ms) DROP SCHEMA switchman_test_shard_1394 CASCADE [shard 1394 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1394]]  (0.1ms) COMMIT  (0.6ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.5ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1396 [shard 1396 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1396 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1396 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1396 deploy] Migrating to CreateUsers (20130403132607)  (2.6ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1396 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1396 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1396 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1396 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1396 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1396 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1396 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1396 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1396 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1396 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1396 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1396 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1396 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1396 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1396 [["name", "switchman_test_shard_1396"]] [shard 1395 master]  (0.8ms) COMMIT [shard 1395 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1395 master]  (0.1ms) BEGIN [shard 1395 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1395 master]  (0.4ms) COMMIT [shard 1395 master]  (0.9ms) CREATE SCHEMA switchman_test_shard_1397 [shard 1397 deploy]  (3.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1397 deploy]  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1397 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1397 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1397 deploy]  (2.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1397 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1397 deploy]  (0.3ms) COMMIT [shard 1397 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1397 deploy]  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1397 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1397 deploy]  (0.4ms) COMMIT [shard 1397 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1397 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1397 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1397 deploy]  (0.4ms) COMMIT [shard 1397 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1397 deploy]  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1397 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1397 deploy]  (0.4ms) COMMIT [shard 1397 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1397 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1397 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1397 deploy]  (0.3ms) COMMIT [shard 1397 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1397 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1397 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1397 deploy]  (0.3ms) COMMIT [shard 1397 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1397 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1397 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1397 deploy]  (0.4ms) COMMIT [shard 1397 deploy]  (0.1ms) BEGIN [shard 1395 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1397 [["name", "switchman_test_shard_1397"]] [shard 1395 master]  (0.3ms) COMMIT [shard 1395 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1395 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1395 master]  (0.1ms) BEGIN [shard 1395 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1395 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1395]] [shard 1395 master]  (0.2ms) COMMIT [shard 1395 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1395 master]  (0.1ms) BEGIN [shard 1395 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1396], ["name", "switchman_test_shard_1396"]] [shard 1395 master]  (0.3ms) COMMIT [shard 1395 master]  (0.1ms) BEGIN [shard 1395 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1397], ["name", "switchman_test_shard_1397"]] [shard 1395 master]  (0.2ms) COMMIT [shard 1395 master]  (0.1ms) BEGIN [shard 1395 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1395 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1396]] [shard 1395 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1397]] [shard 1395 master]  (0.1ms) BEGIN [shard 1397 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1395)) [shard 1395 master]  (0.1ms) ROLLBACK [shard 1397 master]  (0.1ms) ROLLBACK [shard 1395 master]  (0.1ms) BEGIN [shard 1395 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1395 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1396]] [shard 1395 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1397]] [shard 1395 master]  (0.1ms) BEGIN [shard 1397 master]  (0.1ms) ROLLBACK [shard 1397 master]  (0.1ms) ROLLBACK [shard 1395 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1395 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1395 master]  (4.4ms) DROP SCHEMA switchman_test_shard_1396 CASCADE [shard 1396 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1396]]  (0.1ms) COMMIT  (5.2ms) DROP SCHEMA switchman_test_shard_1397 CASCADE [shard 1397 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1397]]  (0.1ms) COMMIT  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.4ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.5ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.2ms) CREATE SCHEMA switchman_test_shard_1399 [shard 1399 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1399 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1399 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1399 deploy] Migrating to CreateUsers (20130403132607)  (3.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1399 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1399 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1399 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1399 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1399 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1399 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1399 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1399 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1399 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1399 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1399 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1399 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1399 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1399 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1399 [["name", "switchman_test_shard_1399"]] [shard 1398 master]  (0.7ms) COMMIT [shard 1398 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1398 master]  (0.1ms) BEGIN [shard 1398 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1398 master]  (0.3ms) COMMIT [shard 1398 master]  (0.8ms) CREATE SCHEMA switchman_test_shard_1400 [shard 1400 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1400 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1400 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1400 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1400 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1400 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1400 deploy]  (0.3ms) COMMIT [shard 1400 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1400 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1400 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1400 deploy]  (0.4ms) COMMIT [shard 1400 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1400 deploy]  (2.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1400 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1400 deploy]  (0.4ms) COMMIT [shard 1400 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 1400 deploy]  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1400 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1400 deploy]  (0.4ms) COMMIT [shard 1400 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1400 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1400 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1400 deploy]  (0.3ms) COMMIT [shard 1400 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1400 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1400 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1400 deploy]  (0.2ms) COMMIT [shard 1400 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1400 deploy]  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1400 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1400 deploy]  (0.4ms) COMMIT [shard 1400 deploy]  (0.1ms) BEGIN [shard 1398 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1400 [["name", "switchman_test_shard_1400"]] [shard 1398 master]  (0.3ms) COMMIT [shard 1398 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1398 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1398 master]  (0.1ms) BEGIN [shard 1398 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1398 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1398]] [shard 1398 master]  (0.3ms) COMMIT [shard 1398 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1398 master]  (0.1ms) BEGIN [shard 1398 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1399], ["name", "switchman_test_shard_1399"]] [shard 1398 master]  (0.3ms) COMMIT [shard 1398 master]  (0.1ms) BEGIN [shard 1398 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1400], ["name", "switchman_test_shard_1400"]] [shard 1398 master]  (0.3ms) COMMIT [shard 1398 master]  (0.1ms) BEGIN [shard 1398 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1398 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1399]] [shard 1398 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1400]] [shard 1398 master]  (0.1ms) BEGIN [shard 1400 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1398)) [shard 1398 master]  (0.1ms) ROLLBACK [shard 1400 master]  (0.1ms) ROLLBACK [shard 1398 master]  (0.1ms) BEGIN [shard 1398 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1398 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1399]] [shard 1398 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1400]] [shard 1398 master]  (0.1ms) BEGIN [shard 1400 master]  (0.1ms) ROLLBACK [shard 1400 master]  (0.1ms) ROLLBACK [shard 1398 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1398 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1398 master]  (4.4ms) DROP SCHEMA switchman_test_shard_1399 CASCADE [shard 1399 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1399]]  (0.1ms) COMMIT  (4.9ms) DROP SCHEMA switchman_test_shard_1400 CASCADE [shard 1400 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1400]]  (0.1ms) COMMIT  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.5ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.2ms) CREATE SCHEMA switchman_test_shard_1402 [shard 1402 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1402 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1402 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1402 deploy] Migrating to CreateUsers (20130403132607)  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1402 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1402 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1402 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1402 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1402 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1402 deploy] Migrating to CreateDigits (20131022202028)  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1402 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1402 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1402 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1402 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1402 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1402 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1402 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1402 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1402 [["name", "switchman_test_shard_1402"]] [shard 1401 master]  (1.4ms) COMMIT [shard 1401 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1401 master]  (0.1ms) BEGIN [shard 1401 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1401 master]  (0.4ms) COMMIT [shard 1401 master]  (0.8ms) CREATE SCHEMA switchman_test_shard_1403 [shard 1403 deploy]  (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1403 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1403 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1403 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1403 deploy]  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1403 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1403 deploy]  (0.4ms) COMMIT [shard 1403 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1403 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1403 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1403 deploy]  (0.3ms) COMMIT [shard 1403 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1403 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1403 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1403 deploy]  (0.4ms) COMMIT [shard 1403 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1403 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1403 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1403 deploy]  (0.4ms) COMMIT [shard 1403 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 1403 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1403 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1403 deploy]  (0.4ms) COMMIT [shard 1403 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1403 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1403 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1403 deploy]  (0.3ms) COMMIT [shard 1403 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1403 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1403 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1403 deploy]  (0.4ms) COMMIT [shard 1403 deploy]  (0.1ms) BEGIN [shard 1401 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1403 [["name", "switchman_test_shard_1403"]] [shard 1401 master]  (0.3ms) COMMIT [shard 1401 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1401 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1401 master]  (0.1ms) BEGIN [shard 1401 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1401 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1401]] [shard 1401 master]  (0.3ms) COMMIT [shard 1401 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1401 master]  (0.1ms) BEGIN [shard 1401 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1402], ["name", "switchman_test_shard_1402"]] [shard 1401 master]  (0.4ms) COMMIT [shard 1401 master]  (0.1ms) BEGIN [shard 1401 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1403], ["name", "switchman_test_shard_1403"]] [shard 1401 master]  (0.4ms) COMMIT [shard 1401 master]  (0.1ms) BEGIN [shard 1401 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1401 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1402]] [shard 1401 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1403]] [shard 1401 master]  (0.1ms) BEGIN [shard 1403 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1401)) [shard 1401 master]  (0.1ms) ROLLBACK [shard 1403 master]  (0.1ms) ROLLBACK [shard 1401 master]  (0.1ms) BEGIN [shard 1401 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1401 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1402]] [shard 1401 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1403]] [shard 1401 master]  (0.1ms) BEGIN [shard 1403 master]  (0.1ms) ROLLBACK [shard 1403 master]  (0.1ms) ROLLBACK [shard 1401 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1401 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1401 master]  (4.3ms) DROP SCHEMA switchman_test_shard_1402 CASCADE [shard 1402 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1402]]  (0.1ms) COMMIT  (4.9ms) DROP SCHEMA switchman_test_shard_1403 CASCADE [shard 1403 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1403]]  (0.1ms) COMMIT  (0.6ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.2ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (6.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.2ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.4ms) CREATE SCHEMA switchman_test_shard_1405 [shard 1405 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1405 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1405 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1405 deploy] Migrating to CreateUsers (20130403132607)  (2.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1405 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1405 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1405 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1405 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1405 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1405 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1405 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1405 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1405 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1405 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1405 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1405 deploy] Migrating to CreateRoots (20140219183820)  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1405 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1405 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1405 [["name", "switchman_test_shard_1405"]] [shard 1404 master]  (0.7ms) COMMIT [shard 1404 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1404 master]  (0.1ms) BEGIN [shard 1404 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1404 master]  (0.3ms) COMMIT [shard 1404 master]  (0.9ms) CREATE SCHEMA switchman_test_shard_1406 [shard 1406 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1406 deploy]  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1406 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1406 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1406 deploy]  (2.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1406 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1406 deploy]  (0.4ms) COMMIT [shard 1406 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 1406 deploy]  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1406 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1406 deploy]  (0.3ms) COMMIT [shard 1406 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) BEGIN [shard 1406 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1406 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1406 deploy]  (0.3ms) COMMIT [shard 1406 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1406 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1406 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1406 deploy]  (0.3ms) COMMIT [shard 1406 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1406 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1406 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1406 deploy]  (0.4ms) COMMIT [shard 1406 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1406 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1406 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1406 deploy]  (0.3ms) COMMIT [shard 1406 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1406 deploy]  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1406 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1406 deploy]  (0.4ms) COMMIT [shard 1406 deploy]  (0.1ms) BEGIN [shard 1404 master] SQL (0.1ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1406 [["name", "switchman_test_shard_1406"]] [shard 1404 master]  (0.3ms) COMMIT [shard 1404 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1404 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1404 master]  (0.1ms) BEGIN [shard 1404 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1404 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1404]] [shard 1404 master]  (0.3ms) COMMIT [shard 1404 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1404 master]  (0.1ms) BEGIN [shard 1404 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1405], ["name", "switchman_test_shard_1405"]] [shard 1404 master]  (0.3ms) COMMIT [shard 1404 master]  (0.1ms) BEGIN [shard 1404 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1406], ["name", "switchman_test_shard_1406"]] [shard 1404 master]  (0.2ms) COMMIT [shard 1404 master]  (0.1ms) BEGIN [shard 1404 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1404 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1405]] [shard 1404 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1406]] [shard 1404 master]  (0.1ms) BEGIN [shard 1406 master]  (0.1ms) ROLLBACK [shard 1406 master]  (0.1ms) ROLLBACK [shard 1404 master]  (0.1ms) BEGIN [shard 1404 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1404 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1405]] [shard 1404 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1406]] [shard 1404 master]  (0.1ms) BEGIN [shard 1406 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1404)) ORDER BY "switchman_shards"."id" ASC [shard 1404 master]  (0.1ms) ROLLBACK [shard 1406 master]  (0.1ms) ROLLBACK [shard 1404 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1404 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1404 master]  (4.2ms) DROP SCHEMA switchman_test_shard_1405 CASCADE [shard 1405 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1405]]  (0.1ms) COMMIT  (4.6ms) DROP SCHEMA switchman_test_shard_1406 CASCADE [shard 1406 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1406]]  (0.1ms) COMMIT  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.6ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.4ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.2ms) CREATE SCHEMA switchman_test_shard_1408 [shard 1408 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1408 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1408 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1408 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1408 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1408 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1408 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1408 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1408 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1408 deploy] Migrating to CreateDigits (20131022202028)  (2.3ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1408 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1408 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1408 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1408 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1408 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1408 deploy] Migrating to CreateRoots (20140219183820)  (2.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1408 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1408 deploy] SQL (0.4ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1408 [["name", "switchman_test_shard_1408"]] [shard 1407 master]  (0.7ms) COMMIT [shard 1407 master] Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1407 master]  (0.1ms) BEGIN [shard 1407 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1407 master]  (0.3ms) COMMIT [shard 1407 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1409 [shard 1409 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1409 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1409 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1409 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1409 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1409 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1409 deploy]  (0.3ms) COMMIT [shard 1409 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1409 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1409 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1409 deploy]  (0.4ms) COMMIT [shard 1409 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1409 deploy]  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1409 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1409 deploy]  (0.3ms) COMMIT [shard 1409 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1409 deploy]  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1409 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1409 deploy]  (0.4ms) COMMIT [shard 1409 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1409 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1409 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1409 deploy]  (0.4ms) COMMIT [shard 1409 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1409 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1409 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1409 deploy]  (0.2ms) COMMIT [shard 1409 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1409 deploy]  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1409 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1409 deploy]  (0.4ms) COMMIT [shard 1409 deploy]  (0.1ms) BEGIN [shard 1407 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1409 [["name", "switchman_test_shard_1409"]] [shard 1407 master]  (0.3ms) COMMIT [shard 1407 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1407 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1407 master]  (0.1ms) BEGIN [shard 1407 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1407 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1407]] [shard 1407 master]  (0.3ms) COMMIT [shard 1407 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1407 master]  (0.1ms) BEGIN [shard 1407 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1408], ["name", "switchman_test_shard_1408"]] [shard 1407 master]  (0.3ms) COMMIT [shard 1407 master]  (0.1ms) BEGIN [shard 1407 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1409], ["name", "switchman_test_shard_1409"]] [shard 1407 master]  (0.2ms) COMMIT [shard 1407 master]  (0.1ms) BEGIN [shard 1407 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1407 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1408]] [shard 1407 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1409]] [shard 1407 master]  (0.1ms) BEGIN [shard 1409 master]  (0.1ms) ROLLBACK [shard 1409 master]  (0.1ms) ROLLBACK [shard 1407 master]  (0.1ms) BEGIN [shard 1407 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1407 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1408]] [shard 1407 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1409]] [shard 1407 master]  (0.1ms) BEGIN [shard 1409 master]  (0.1ms) ROLLBACK [shard 1409 master]  (0.1ms) ROLLBACK [shard 1407 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1407 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1407 master]  (4.3ms) DROP SCHEMA switchman_test_shard_1408 CASCADE [shard 1408 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1408]]  (0.1ms) COMMIT  (4.8ms) DROP SCHEMA switchman_test_shard_1409 CASCADE [shard 1409 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1409]]  (0.1ms) COMMIT  (0.6ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (6.5ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1411 [shard 1411 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1411 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1411 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1411 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1411 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1411 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1411 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1411 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1411 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1411 deploy] Migrating to CreateDigits (20131022202028)  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1411 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1411 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1411 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1411 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1411 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1411 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1411 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1411 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1411 [["name", "switchman_test_shard_1411"]] [shard 1410 master]  (0.8ms) COMMIT [shard 1410 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1410 master]  (0.1ms) BEGIN [shard 1410 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1410 master]  (0.3ms) COMMIT [shard 1410 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_1412 [shard 1412 deploy]  (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1412 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1412 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1412 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1412 deploy]  (2.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1412 deploy] SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1412 deploy]  (0.3ms) COMMIT [shard 1412 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 1412 deploy]  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1412 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1412 deploy]  (0.4ms) COMMIT [shard 1412 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1412 deploy]  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1412 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1412 deploy]  (0.4ms) COMMIT [shard 1412 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 1412 deploy]  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1412 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1412 deploy]  (0.3ms) COMMIT [shard 1412 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1412 deploy]  (2.3ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1412 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1412 deploy]  (0.4ms) COMMIT [shard 1412 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 1412 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1412 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1412 deploy]  (0.3ms) COMMIT [shard 1412 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1412 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1412 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1412 deploy]  (0.4ms) COMMIT [shard 1412 deploy]  (0.1ms) BEGIN [shard 1410 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1412 [["name", "switchman_test_shard_1412"]] [shard 1410 master]  (0.3ms) COMMIT [shard 1410 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1410 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1410 master]  (0.1ms) BEGIN [shard 1410 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1410 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1410]] [shard 1410 master]  (0.3ms) COMMIT [shard 1410 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1410 master]  (0.1ms) BEGIN [shard 1410 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1411], ["name", "switchman_test_shard_1411"]] [shard 1410 master]  (0.3ms) COMMIT [shard 1410 master]  (0.1ms) BEGIN [shard 1410 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1412], ["name", "switchman_test_shard_1412"]] [shard 1410 master]  (0.2ms) COMMIT [shard 1410 master]  (0.1ms) BEGIN [shard 1410 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1410 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1411]] [shard 1410 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1412]] [shard 1410 master]  (0.1ms) BEGIN [shard 1412 master]  (0.1ms) ROLLBACK [shard 1412 master]  (0.1ms) ROLLBACK [shard 1410 master]  (0.1ms) BEGIN [shard 1410 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1410 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1411]] [shard 1410 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1412]] [shard 1410 master]  (0.1ms) BEGIN [shard 1412 master]  (0.1ms) ROLLBACK [shard 1412 master]  (0.1ms) ROLLBACK [shard 1410 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1410 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1410 master]  (5.3ms) DROP SCHEMA switchman_test_shard_1411 CASCADE [shard 1411 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1411]]  (0.1ms) COMMIT  (4.9ms) DROP SCHEMA switchman_test_shard_1412 CASCADE [shard 1412 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1412]]  (0.1ms) COMMIT  (0.6ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1414 [shard 1414 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1414 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1414 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1414 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1414 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1414 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1414 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1414 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1414 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1414 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1414 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1414 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1414 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1414 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1414 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1414 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1414 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1414 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1414 [["name", "switchman_test_shard_1414"]] [shard 1413 master]  (15.9ms) COMMIT [shard 1413 master] Switchman::Shard Load (76.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1413 master]  (0.1ms) BEGIN [shard 1413 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1413 master]  (0.4ms) COMMIT [shard 1413 master]  (0.9ms) CREATE SCHEMA switchman_test_shard_1415 [shard 1415 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1415 deploy]  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1415 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1415 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1415 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1415 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1415 deploy]  (0.3ms) COMMIT [shard 1415 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1415 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1415 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1415 deploy]  (0.4ms) COMMIT [shard 1415 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) BEGIN [shard 1415 deploy]  (2.3ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1415 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1415 deploy]  (0.4ms) COMMIT [shard 1415 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 1415 deploy]  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1415 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1415 deploy]  (0.3ms) COMMIT [shard 1415 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1415 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1415 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1415 deploy]  (0.3ms) COMMIT [shard 1415 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 1415 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1415 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1415 deploy]  (0.3ms) COMMIT [shard 1415 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1415 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1415 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1415 deploy]  (0.3ms) COMMIT [shard 1415 deploy]  (0.1ms) BEGIN [shard 1413 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1415 [["name", "switchman_test_shard_1415"]] [shard 1413 master]  (0.4ms) COMMIT [shard 1413 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1413 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1413 master]  (0.1ms) BEGIN [shard 1413 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1413 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1413]] [shard 1413 master]  (0.3ms) COMMIT [shard 1413 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1413 master]  (0.1ms) BEGIN [shard 1413 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1414], ["name", "switchman_test_shard_1414"]] [shard 1413 master]  (0.2ms) COMMIT [shard 1413 master]  (0.1ms) BEGIN [shard 1413 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1415], ["name", "switchman_test_shard_1415"]] [shard 1413 master]  (0.2ms) COMMIT [shard 1413 master]  (0.1ms) BEGIN [shard 1413 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1413 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1414]] [shard 1413 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1415]] [shard 1413 master]  (0.1ms) BEGIN [shard 1415 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1413)) [shard 1413 master]  (0.1ms) ROLLBACK [shard 1415 master]  (0.1ms) ROLLBACK [shard 1413 master]  (0.1ms) BEGIN [shard 1413 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1413 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1414]] [shard 1413 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1415]] [shard 1413 master]  (0.1ms) BEGIN [shard 1415 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 1413 master]  (0.1ms) ROLLBACK [shard 1415 master]  (0.1ms) ROLLBACK [shard 1413 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1413 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1413 master]  (4.8ms) DROP SCHEMA switchman_test_shard_1414 CASCADE [shard 1414 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1414]]  (0.1ms) COMMIT  (5.4ms) DROP SCHEMA switchman_test_shard_1415 CASCADE [shard 1415 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1415]]  (0.1ms) COMMIT  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (15.5ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1417 [shard 1417 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1417 deploy]  (16.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1417 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1417 deploy] Migrating to CreateUsers (20130403132607)  (18.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1417 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1417 deploy] Migrating to CreateAppendages (20130411202442)  (17.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1417 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1417 deploy] Migrating to CreateMirrorUsers (20130411202551)  (17.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1417 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1417 deploy] Migrating to CreateDigits (20131022202028)  (17.3ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1417 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1417 deploy] Migrating to CreateFeatures (20131206172923)  (17.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1417 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1417 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1417 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1417 deploy] Migrating to CreateRoots (20140219183820)  (18.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1417 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1417 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1417 [["name", "switchman_test_shard_1417"]] [shard 1416 master]  (0.7ms) COMMIT [shard 1416 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1416 master]  (0.1ms) BEGIN [shard 1416 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1416 master]  (0.3ms) COMMIT [shard 1416 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1418 [shard 1418 deploy]  (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1418 deploy]  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1418 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1418 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1418 deploy]  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1418 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1418 deploy]  (0.3ms) COMMIT [shard 1418 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1418 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1418 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1418 deploy]  (0.4ms) COMMIT [shard 1418 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1418 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1418 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1418 deploy]  (0.3ms) COMMIT [shard 1418 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1418 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1418 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1418 deploy]  (0.4ms) COMMIT [shard 1418 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1418 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1418 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1418 deploy]  (0.4ms) COMMIT [shard 1418 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1418 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1418 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1418 deploy]  (0.3ms) COMMIT [shard 1418 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1418 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1418 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1418 deploy]  (0.4ms) COMMIT [shard 1418 deploy]  (0.1ms) BEGIN [shard 1416 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1418 [["name", "switchman_test_shard_1418"]] [shard 1416 master]  (0.3ms) COMMIT [shard 1416 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1416 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1416 master]  (0.1ms) BEGIN [shard 1416 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1416 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1416]] [shard 1416 master]  (0.3ms) COMMIT [shard 1416 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1416 master]  (0.1ms) BEGIN [shard 1416 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1417], ["name", "switchman_test_shard_1417"]] [shard 1416 master]  (0.3ms) COMMIT [shard 1416 master]  (0.1ms) BEGIN [shard 1416 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1418], ["name", "switchman_test_shard_1418"]] [shard 1416 master]  (0.2ms) COMMIT [shard 1416 master]  (0.1ms) BEGIN [shard 1416 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1416 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1417]] [shard 1416 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1418]] [shard 1416 master]  (0.1ms) BEGIN [shard 1418 master]  (0.1ms) ROLLBACK [shard 1418 master]  (0.1ms) ROLLBACK [shard 1416 master]  (0.1ms) BEGIN [shard 1416 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1416 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1417]] [shard 1416 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1418]] [shard 1416 master]  (0.1ms) BEGIN [shard 1418 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1416)) [shard 1416 master]  (0.1ms) ROLLBACK [shard 1418 master]  (0.1ms) ROLLBACK [shard 1416 master] SQL (15.8ms) DELETE FROM "switchman_shards" [shard 1416 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1416 master]  (20.6ms) DROP SCHEMA switchman_test_shard_1417 CASCADE [shard 1417 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1417]]  (0.1ms) COMMIT  (35.2ms) DROP SCHEMA switchman_test_shard_1418 CASCADE [shard 1418 deploy]  (0.3ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1418]]  (0.2ms) COMMIT  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (16.2ms) COMMIT Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.4ms) CREATE SCHEMA switchman_test_shard_1420 [shard 1420 deploy]  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1420 deploy]  (16.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1420 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1420 deploy] Migrating to CreateUsers (20130403132607)  (18.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1420 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1420 deploy] Migrating to CreateAppendages (20130411202442)  (17.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1420 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1420 deploy] Migrating to CreateMirrorUsers (20130411202551)  (17.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1420 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1420 deploy] Migrating to CreateDigits (20131022202028)  (17.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1420 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1420 deploy] Migrating to CreateFeatures (20131206172923)  (17.4ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1420 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1420 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1420 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1420 deploy] Migrating to CreateRoots (20140219183820)  (17.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1420 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1420 deploy] SQL (0.4ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1420 [["name", "switchman_test_shard_1420"]] [shard 1419 master]  (1.3ms) COMMIT [shard 1419 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1419 master]  (0.1ms) BEGIN [shard 1419 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1419 master]  (0.3ms) COMMIT [shard 1419 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1421 [shard 1421 deploy]  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1421 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1421 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1421 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1421 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1421 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1421 deploy]  (0.4ms) COMMIT [shard 1421 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1421 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1421 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1421 deploy]  (0.3ms) COMMIT [shard 1421 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1421 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1421 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1421 deploy]  (0.4ms) COMMIT [shard 1421 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1421 deploy]  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1421 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1421 deploy]  (0.3ms) COMMIT [shard 1421 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1421 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1421 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1421 deploy]  (0.4ms) COMMIT [shard 1421 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1421 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1421 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1421 deploy]  (0.3ms) COMMIT [shard 1421 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1421 deploy]  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1421 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1421 deploy]  (0.4ms) COMMIT [shard 1421 deploy]  (0.1ms) BEGIN [shard 1419 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1421 [["name", "switchman_test_shard_1421"]] [shard 1419 master]  (0.2ms) COMMIT [shard 1419 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1419 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1419 master]  (0.1ms) BEGIN [shard 1419 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1419 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1419]] [shard 1419 master]  (0.3ms) COMMIT [shard 1419 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1419 master]  (0.1ms) BEGIN [shard 1419 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1420], ["name", "switchman_test_shard_1420"]] [shard 1419 master]  (0.3ms) COMMIT [shard 1419 master]  (0.1ms) BEGIN [shard 1419 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1421], ["name", "switchman_test_shard_1421"]] [shard 1419 master]  (0.2ms) COMMIT [shard 1419 master]  (0.1ms) BEGIN [shard 1419 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1419 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1420]] [shard 1419 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1421]] [shard 1419 master]  (0.1ms) BEGIN [shard 1421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1419)) [shard 1419 master]  (0.1ms) ROLLBACK [shard 1421 master]  (0.1ms) ROLLBACK [shard 1419 master]  (0.1ms) BEGIN [shard 1419 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1419 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1420]] [shard 1419 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1421]] [shard 1419 master]  (0.1ms) BEGIN [shard 1421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1419)) [shard 1419 master]  (0.1ms) ROLLBACK [shard 1421 master]  (0.1ms) ROLLBACK [shard 1419 master] SQL (15.8ms) DELETE FROM "switchman_shards" [shard 1419 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1419 master]  (6.3ms) DROP SCHEMA switchman_test_shard_1420 CASCADE [shard 1420 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1420]]  (0.1ms) COMMIT  (6.7ms) DROP SCHEMA switchman_test_shard_1421 CASCADE [shard 1421 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1421]]  (0.1ms) COMMIT  (0.7ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (15.5ms) COMMIT Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (1.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1423 [shard 1423 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1423 deploy]  (16.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1423 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1423 deploy] Migrating to CreateUsers (20130403132607)  (17.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1423 deploy] SQL (15.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1423 deploy] Migrating to CreateAppendages (20130411202442)  (17.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1423 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1423 deploy] Migrating to CreateMirrorUsers (20130411202551)  (17.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1423 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1423 deploy] Migrating to CreateDigits (20131022202028)  (17.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1423 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1423 deploy] Migrating to CreateFeatures (20131206172923)  (32.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1423 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1423 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1423 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1423 deploy] Migrating to CreateRoots (20140219183820)  (17.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1423 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1423 deploy] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1423 [["name", "switchman_test_shard_1423"]] [shard 1422 master]  (0.8ms) COMMIT [shard 1422 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1422 master]  (0.1ms) BEGIN [shard 1422 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1422 master]  (0.3ms) COMMIT [shard 1422 master]  (0.9ms) CREATE SCHEMA switchman_test_shard_1424 [shard 1424 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1424 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1424 deploy] ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1424 deploy] Migrating to CreateUsers (20130403132607)  (0.2ms) BEGIN [shard 1424 deploy]  (2.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1424 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1424 deploy]  (0.3ms) COMMIT [shard 1424 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1424 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1424 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1424 deploy]  (0.4ms) COMMIT [shard 1424 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1424 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1424 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1424 deploy]  (0.3ms) COMMIT [shard 1424 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1424 deploy]  (1.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1424 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1424 deploy]  (0.4ms) COMMIT [shard 1424 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 1424 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1424 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1424 deploy]  (0.4ms) COMMIT [shard 1424 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1424 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1424 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1424 deploy]  (0.3ms) COMMIT [shard 1424 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1424 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1424 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1424 deploy]  (0.4ms) COMMIT [shard 1424 deploy]  (0.1ms) BEGIN [shard 1422 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1424 [["name", "switchman_test_shard_1424"]] [shard 1422 master]  (0.3ms) COMMIT [shard 1422 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1422 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1422 master]  (0.1ms) BEGIN [shard 1422 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1422 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1422]] [shard 1422 master]  (0.3ms) COMMIT [shard 1422 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1422 master]  (0.1ms) BEGIN [shard 1422 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1423], ["name", "switchman_test_shard_1423"]] [shard 1422 master]  (0.3ms) COMMIT [shard 1422 master]  (0.1ms) BEGIN [shard 1422 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1424], ["name", "switchman_test_shard_1424"]] [shard 1422 master]  (0.3ms) COMMIT [shard 1422 master]  (0.1ms) BEGIN [shard 1422 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1422 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1423]] [shard 1422 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1424]] [shard 1422 master]  (0.1ms) BEGIN [shard 1424 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1422)) [shard 1422 master]  (0.1ms) ROLLBACK [shard 1424 master]  (0.1ms) ROLLBACK [shard 1422 master]  (0.1ms) BEGIN [shard 1422 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1422 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1423]] [shard 1422 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1424]] [shard 1422 master]  (0.1ms) BEGIN [shard 1424 master]  (0.1ms) ROLLBACK [shard 1424 master]  (0.1ms) ROLLBACK [shard 1422 master]  (0.1ms) BEGIN [shard 1422 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1422 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1423]] [shard 1422 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1424]] [shard 1422 master]  (0.1ms) BEGIN [shard 1424 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1422)) [shard 1422 master]  (0.1ms) ROLLBACK [shard 1424 master]  (0.1ms) ROLLBACK [shard 1422 master] SQL (15.8ms) DELETE FROM "switchman_shards" [shard 1422 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1422 master]  (20.4ms) DROP SCHEMA switchman_test_shard_1423 CASCADE [shard 1423 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1423]]  (0.1ms) COMMIT  (5.1ms) DROP SCHEMA switchman_test_shard_1424 CASCADE [shard 1424 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1424]]  (0.1ms) COMMIT  (2.7ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (16.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (16.1ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.5ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (31.9ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.4ms) COMMIT Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (3.0ms) CREATE SCHEMA switchman_test_shard_1426 [shard 1426 deploy]  (38.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1426 deploy]  (4.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1426 deploy] ActiveRecord::SchemaMigration Load (2.1ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1426 deploy] Migrating to CreateUsers (20130403132607)  (37.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1426 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1426 deploy] Migrating to CreateAppendages (20130411202442)  (34.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1426 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1426 deploy] Migrating to CreateMirrorUsers (20130411202551)  (17.3ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1426 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1426 deploy] Migrating to CreateDigits (20131022202028)  (33.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1426 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1426 deploy] Migrating to CreateFeatures (20131206172923)  (34.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1426 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1426 deploy] Migrating to AddParentIdToUsers (20140123154135)  (32.7ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1426 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1426 deploy] Migrating to CreateRoots (20140219183820)  (32.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1426 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1426 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1426 [["name", "switchman_test_shard_1426"]] [shard 1425 master]  (3.2ms) COMMIT [shard 1425 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1427 [shard 1427 deploy]  (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1427 deploy]  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1427 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1427 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1427 deploy]  (4.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1427 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1427 deploy]  (0.3ms) COMMIT [shard 1427 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 1427 deploy]  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1427 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1427 deploy]  (0.3ms) COMMIT [shard 1427 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1427 deploy]  (2.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1427 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1427 deploy]  (0.4ms) COMMIT [shard 1427 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1427 deploy]  (5.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1427 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1427 deploy]  (0.4ms) COMMIT [shard 1427 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 1427 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1427 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1427 deploy]  (2.1ms) COMMIT [shard 1427 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 1427 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1427 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1427 deploy]  (0.3ms) COMMIT [shard 1427 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1427 deploy]  (49.3ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1427 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1427 deploy]  (16.1ms) COMMIT [shard 1427 deploy]  (0.1ms) BEGIN [shard 1425 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1427 [["name", "switchman_test_shard_1427"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1425]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1426], ["name", "switchman_test_shard_1426"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1427], ["name", "switchman_test_shard_1427"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (4.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.740770"], ["updated_at", "2014-12-16 21:03:10.740770"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (18.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.765267"], ["updated_at", "2014-12-16 21:03:10.765267"], ["user_id", 2355]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.786425"], ["updated_at", "2014-12-16 21:03:10.786425"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.789843"], ["updated_at", "2014-12-16 21:03:10.789843"], ["user_id", 1]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.791769"], ["updated_at", "2014-12-16 21:03:10.791769"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.795801"], ["updated_at", "2014-12-16 21:03:10.795801"], ["user_id", 1]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.2ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.804017"], ["updated_at", "2014-12-16 21:03:10.804017"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.806451"], ["updated_at", "2014-12-16 21:03:10.806451"], ["user_id", 2356]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.808269"], ["updated_at", "2014-12-16 21:03:10.808269"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.811012"], ["updated_at", "2014-12-16 21:03:10.811012"], ["user_id", 2]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.812708"], ["updated_at", "2014-12-16 21:03:10.812708"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.815522"], ["updated_at", "2014-12-16 21:03:10.815522"], ["user_id", 2]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1426 LIMIT 1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.825154"], ["updated_at", "2014-12-16 21:03:10.825154"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.827807"], ["updated_at", "2014-12-16 21:03:10.827807"], ["user_id", 2357]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.829759"], ["updated_at", "2014-12-16 21:03:10.829759"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.832447"], ["updated_at", "2014-12-16 21:03:10.832447"], ["user_id", 3]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.834112"], ["updated_at", "2014-12-16 21:03:10.834112"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.837006"], ["updated_at", "2014-12-16 21:03:10.837006"], ["user_id", 3]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.843447"], ["updated_at", "2014-12-16 21:03:10.843447"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.845915"], ["updated_at", "2014-12-16 21:03:10.845915"], ["user_id", 2358]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.847847"], ["updated_at", "2014-12-16 21:03:10.847847"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.850508"], ["updated_at", "2014-12-16 21:03:10.850508"], ["user_id", 4]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.852189"], ["updated_at", "2014-12-16 21:03:10.852189"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.854897"], ["updated_at", "2014-12-16 21:03:10.854897"], ["user_id", 4]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.2ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.862338"], ["updated_at", "2014-12-16 21:03:10.862338"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.865065"], ["updated_at", "2014-12-16 21:03:10.865065"], ["user_id", 2359]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.866745"], ["updated_at", "2014-12-16 21:03:10.866745"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.869296"], ["updated_at", "2014-12-16 21:03:10.869296"], ["user_id", 5]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.870858"], ["updated_at", "2014-12-16 21:03:10.870858"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.873618"], ["updated_at", "2014-12-16 21:03:10.873618"], ["user_id", 5]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.880342"], ["updated_at", "2014-12-16 21:03:10.880342"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.883181"], ["updated_at", "2014-12-16 21:03:10.883181"], ["user_id", 2360]] [shard 1425 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.885976"], ["updated_at", "2014-12-16 21:03:10.885976"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.889039"], ["updated_at", "2014-12-16 21:03:10.889039"], ["user_id", 6]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.890824"], ["updated_at", "2014-12-16 21:03:10.890824"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.894481"], ["updated_at", "2014-12-16 21:03:10.894481"], ["user_id", 6]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.900282"], ["updated_at", "2014-12-16 21:03:10.900282"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.902695"], ["updated_at", "2014-12-16 21:03:10.902695"], ["user_id", 2361]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.904966"], ["updated_at", "2014-12-16 21:03:10.904966"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.908562"], ["updated_at", "2014-12-16 21:03:10.908562"], ["user_id", 7]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.910558"], ["updated_at", "2014-12-16 21:03:10.910558"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.914004"], ["updated_at", "2014-12-16 21:03:10.914004"], ["user_id", 7]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.921609"], ["updated_at", "2014-12-16 21:03:10.921609"]] [shard 1425 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.925408"], ["updated_at", "2014-12-16 21:03:10.925408"], ["user_id", 2362]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.927480"], ["updated_at", "2014-12-16 21:03:10.927480"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.930247"], ["updated_at", "2014-12-16 21:03:10.930247"], ["user_id", 8]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.931847"], ["updated_at", "2014-12-16 21:03:10.931847"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.934944"], ["updated_at", "2014-12-16 21:03:10.934944"], ["user_id", 8]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.941719"], ["updated_at", "2014-12-16 21:03:10.941719"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.944087"], ["updated_at", "2014-12-16 21:03:10.944087"], ["user_id", 2363]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.946119"], ["updated_at", "2014-12-16 21:03:10.946119"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.948653"], ["updated_at", "2014-12-16 21:03:10.948653"], ["user_id", 9]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.950355"], ["updated_at", "2014-12-16 21:03:10.950355"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.953079"], ["updated_at", "2014-12-16 21:03:10.953079"], ["user_id", 9]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.2ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.960379"], ["updated_at", "2014-12-16 21:03:10.960379"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.963121"], ["updated_at", "2014-12-16 21:03:10.963121"], ["user_id", 2364]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.964954"], ["updated_at", "2014-12-16 21:03:10.964954"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.967645"], ["updated_at", "2014-12-16 21:03:10.967645"], ["user_id", 10]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.969201"], ["updated_at", "2014-12-16 21:03:10.969201"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.971846"], ["updated_at", "2014-12-16 21:03:10.971846"], ["user_id", 10]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.973852"], ["updated_at", "2014-12-16 21:03:10.973852"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.983300"], ["updated_at", "2014-12-16 21:03:10.983300"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.986682"], ["updated_at", "2014-12-16 21:03:10.986682"], ["user_id", 2365]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.988842"], ["updated_at", "2014-12-16 21:03:10.988842"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.991592"], ["updated_at", "2014-12-16 21:03:10.991592"], ["user_id", 11]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:10.993386"], ["updated_at", "2014-12-16 21:03:10.993386"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:10.996155"], ["updated_at", "2014-12-16 21:03:10.996155"], ["user_id", 11]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:11.002368"], ["updated_at", "2014-12-16 21:03:11.002368"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.005244"], ["updated_at", "2014-12-16 21:03:11.005244"], ["user_id", 2366]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:11.007336"], ["updated_at", "2014-12-16 21:03:11.007336"]] [shard 1426 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.010721"], ["updated_at", "2014-12-16 21:03:11.010721"], ["user_id", 12]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:11.013203"], ["updated_at", "2014-12-16 21:03:11.013203"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.016657"], ["updated_at", "2014-12-16 21:03:11.016657"], ["user_id", 12]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.020136"], ["parent_id", 2366], ["updated_at", "2014-12-16 21:03:11.020136"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.022986"], ["parent_id", 2367], ["updated_at", "2014-12-16 21:03:11.022986"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2367]] [shard 1425 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2366]] [shard 1425 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 [["parent_id", 2366]] [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:11.037993"], ["updated_at", "2014-12-16 21:03:11.037993"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.040640"], ["updated_at", "2014-12-16 21:03:11.040640"], ["user_id", 2369]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:11.042421"], ["updated_at", "2014-12-16 21:03:11.042421"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.045242"], ["updated_at", "2014-12-16 21:03:11.045242"], ["user_id", 13]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:11.046842"], ["updated_at", "2014-12-16 21:03:11.046842"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.049533"], ["updated_at", "2014-12-16 21:03:11.049533"], ["user_id", 13]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.2ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:11.055405"], ["updated_at", "2014-12-16 21:03:11.055405"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.057770"], ["updated_at", "2014-12-16 21:03:11.057770"], ["user_id", 2370]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:11.059503"], ["updated_at", "2014-12-16 21:03:11.059503"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.062445"], ["updated_at", "2014-12-16 21:03:11.062445"], ["user_id", 14]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:11.063975"], ["updated_at", "2014-12-16 21:03:11.063975"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.066716"], ["updated_at", "2014-12-16 21:03:11.066716"], ["user_id", 14]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:11.072561"], ["updated_at", "2014-12-16 21:03:11.072561"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.075221"], ["updated_at", "2014-12-16 21:03:11.075221"], ["user_id", 2371]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:11.077090"], ["updated_at", "2014-12-16 21:03:11.077090"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.079945"], ["updated_at", "2014-12-16 21:03:11.079945"], ["user_id", 15]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:11.081607"], ["updated_at", "2014-12-16 21:03:11.081607"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.084653"], ["updated_at", "2014-12-16 21:03:11.084653"], ["user_id", 15]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:11.090819"], ["updated_at", "2014-12-16 21:03:11.090819"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.093210"], ["updated_at", "2014-12-16 21:03:11.093210"], ["user_id", 2372]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:11.095064"], ["updated_at", "2014-12-16 21:03:11.095064"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.097647"], ["updated_at", "2014-12-16 21:03:11.097647"], ["user_id", 16]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:11.099230"], ["updated_at", "2014-12-16 21:03:11.099230"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.101972"], ["updated_at", "2014-12-16 21:03:11.101972"], ["user_id", 16]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.2ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1425]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1426], ["name", "switchman_test_shard_1426"]] [shard 1425 master]  (0.4ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1427], ["name", "switchman_test_shard_1427"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '3' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "3"], ["name", "public"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1428 [shard 1428 deploy]  (2.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1428 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1428 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1428 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1428 deploy]  (2.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1428 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1428 deploy]  (0.4ms) COMMIT [shard 1428 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 1428 deploy]  (2.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1428 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1428 deploy]  (0.3ms) COMMIT [shard 1428 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1428 deploy]  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1428 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1428 deploy]  (0.4ms) COMMIT [shard 1428 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 1428 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1428 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1428 deploy]  (0.3ms) COMMIT [shard 1428 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1428 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1428 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1428 deploy]  (0.4ms) COMMIT [shard 1428 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1428 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1428 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1428 deploy]  (0.2ms) COMMIT [shard 1428 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1428 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1428 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1428 deploy]  (0.3ms) COMMIT [shard 1428 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1428 [["name", "switchman_test_shard_1428"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) BEGIN [shard 1428 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:11.218231"], ["updated_at", "2014-12-16 21:03:11.218231"]] [shard 1428 master]  (0.3ms) COMMIT [shard 1428 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1428 master]  (10.1ms) DROP SCHEMA switchman_test_shard_1428 CASCADE [shard 1428 deploy]  (31.5ms) SELECT COUNT(*) FROM "users" [shard 1428 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.3ms) BEGIN [shard 1427 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.2ms) BEGIN [shard 1427 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1426 LIMIT 1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.3ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1429]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1429 LIMIT 1 [shard 1425 master]  (0.2ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1430]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1427 LIMIT 1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11427 LIMIT 1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "4"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "4"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1425]] [shard 1425 master]  (15.6ms) COMMIT [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1426], ["name", "switchman_test_shard_1426"]] [shard 1425 master]  (0.4ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1427], ["name", "switchman_test_shard_1427"]] [shard 1425 master]  (0.2ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1425)) [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1425)) [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1425]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1426], ["name", "switchman_test_shard_1426"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1427], ["name", "switchman_test_shard_1427"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1426,1427)) AND "switchman_shards"."id" IN (1425, 1426) [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1425]] [shard 1425 master]  (15.4ms) COMMIT [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1426], ["name", "switchman_test_shard_1426"]] [shard 1425 master]  (14.4ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1427], ["name", "switchman_test_shard_1427"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:11.605868"], ["updated_at", "2014-12-16 21:03:11.605868"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1426 LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1427 LIMIT 1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:11.616443"], ["updated_at", "2014-12-16 21:03:11.616443"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (33.1ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.622702"], ["owner_id", 2373], ["owner_type", "User"], ["updated_at", "2014-12-16 21:03:11.622702"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master] Feature Load (0.3ms) SELECT "features"."owner_id" FROM "features" WHERE "features"."id" = 113 ORDER BY "features"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:11.666611"], ["updated_at", "2014-12-16 21:03:11.666611"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1425]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1426], ["name", "switchman_test_shard_1426"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1427], ["name", "switchman_test_shard_1427"]] [shard 1425 master]  (0.2ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.679694"], ["name", "user1"], ["updated_at", "2014-12-16 21:03:11.679694"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.682806"], ["updated_at", "2014-12-16 21:03:11.682806"], ["user_id", 17], ["value", 1]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.685274"], ["updated_at", "2014-12-16 21:03:11.685274"], ["user_id", 17], ["value", 2]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.687029"], ["name", "user2"], ["updated_at", "2014-12-16 21:03:11.687029"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.692018"], ["updated_at", "2014-12-16 21:03:11.692018"], ["user_id", 17], ["value", 3]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.694701"], ["updated_at", "2014-12-16 21:03:11.694701"], ["user_id", 17], ["value", 4]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.696649"], ["updated_at", "2014-12-16 21:03:11.696649"], ["user_id", 17], ["value", 5]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.6ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 17]] [shard 1426 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1426 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 17]] [shard 1427 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1427 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1426 LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1427 LIMIT 1 [shard 1425 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (17, 18) [shard 1426 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (17, 18, 19) [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.713646"], ["name", "user1"], ["updated_at", "2014-12-16 21:03:11.713646"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.716477"], ["updated_at", "2014-12-16 21:03:11.716477"], ["user_id", 18], ["value", 1]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.718528"], ["updated_at", "2014-12-16 21:03:11.718528"], ["user_id", 18], ["value", 2]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.720218"], ["name", "user2"], ["updated_at", "2014-12-16 21:03:11.720218"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.722553"], ["updated_at", "2014-12-16 21:03:11.722553"], ["user_id", 18], ["value", 3]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.724398"], ["updated_at", "2014-12-16 21:03:11.724398"], ["user_id", 18], ["value", 4]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.726223"], ["updated_at", "2014-12-16 21:03:11.726223"], ["user_id", 18], ["value", 5]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 18]] [shard 1426 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 1426 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 18]] [shard 1427 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 1427 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (19, 20) [shard 1426 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (20, 21, 22) [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.738204"], ["name", "user1"], ["updated_at", "2014-12-16 21:03:11.738204"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.740672"], ["updated_at", "2014-12-16 21:03:11.740672"], ["user_id", 19], ["value", 1]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.742463"], ["updated_at", "2014-12-16 21:03:11.742463"], ["user_id", 19], ["value", 2]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.744064"], ["name", "user2"], ["updated_at", "2014-12-16 21:03:11.744064"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.746335"], ["updated_at", "2014-12-16 21:03:11.746335"], ["user_id", 19], ["value", 3]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.748226"], ["updated_at", "2014-12-16 21:03:11.748226"], ["user_id", 19], ["value", 4]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.750146"], ["updated_at", "2014-12-16 21:03:11.750146"], ["user_id", 19], ["value", 5]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 19]] [shard 1426 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1426 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 19]] [shard 1427 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1427 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (21, 22) [shard 1426 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (23, 24, 25) [shard 1427 master]  (0.2ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.762504"], ["name", "user1"], ["updated_at", "2014-12-16 21:03:11.762504"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.764911"], ["updated_at", "2014-12-16 21:03:11.764911"], ["user_id", 20], ["value", 1]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.766684"], ["updated_at", "2014-12-16 21:03:11.766684"], ["user_id", 20], ["value", 2]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.768323"], ["name", "user2"], ["updated_at", "2014-12-16 21:03:11.768323"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.770811"], ["updated_at", "2014-12-16 21:03:11.770811"], ["user_id", 20], ["value", 3]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.772752"], ["updated_at", "2014-12-16 21:03:11.772752"], ["user_id", 20], ["value", 4]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.774488"], ["updated_at", "2014-12-16 21:03:11.774488"], ["user_id", 20], ["value", 5]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.6ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 20]] [shard 1426 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1426 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 20]] [shard 1427 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1427 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (23, 24) [shard 1426 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (26, 27, 28) [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.786626"], ["name", "user1"], ["updated_at", "2014-12-16 21:03:11.786626"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.789148"], ["updated_at", "2014-12-16 21:03:11.789148"], ["user_id", 21], ["value", 1]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.791000"], ["updated_at", "2014-12-16 21:03:11.791000"], ["user_id", 21], ["value", 2]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.792535"], ["name", "user2"], ["updated_at", "2014-12-16 21:03:11.792535"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.795017"], ["updated_at", "2014-12-16 21:03:11.795017"], ["user_id", 21], ["value", 3]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.796868"], ["updated_at", "2014-12-16 21:03:11.796868"], ["user_id", 21], ["value", 4]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.798619"], ["updated_at", "2014-12-16 21:03:11.798619"], ["user_id", 21], ["value", 5]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 21]] [shard 1426 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1426 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 21]] [shard 1427 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1427 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (25, 26) [shard 1426 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (29, 30, 31) [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.2ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.812653"], ["name", "user1"], ["updated_at", "2014-12-16 21:03:11.812653"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.814257"], ["name", "user2"], ["updated_at", "2014-12-16 21:03:11.814257"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.815781"], ["updated_at", "2014-12-16 21:03:11.815781"], ["user_id", 22], ["value", 1]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.817663"], ["updated_at", "2014-12-16 21:03:11.817663"], ["user_id", 14270000000000022], ["value", 3]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.819708"], ["updated_at", "2014-12-16 21:03:11.819708"], ["user_id", 14260000000000022], ["value", 2]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.821278"], ["updated_at", "2014-12-16 21:03:11.821278"], ["user_id", 22], ["value", 4]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.822667"], ["updated_at", "2014-12-16 21:03:11.822667"], ["user_id", 22], ["value", 5]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1426 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1427 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1426 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1427 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1426 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1427 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1426 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 1426 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 1427 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1427 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 1427 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 1426 master]  (0.2ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.839443"], ["name", "user1"], ["updated_at", "2014-12-16 21:03:11.839443"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.841013"], ["name", "user2"], ["updated_at", "2014-12-16 21:03:11.841013"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.842597"], ["updated_at", "2014-12-16 21:03:11.842597"], ["user_id", 23], ["value", 1]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.845833"], ["updated_at", "2014-12-16 21:03:11.845833"], ["user_id", 14270000000000023], ["value", 3]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.847996"], ["updated_at", "2014-12-16 21:03:11.847996"], ["user_id", 14260000000000023], ["value", 2]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.849763"], ["updated_at", "2014-12-16 21:03:11.849763"], ["user_id", 23], ["value", 4]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.851370"], ["updated_at", "2014-12-16 21:03:11.851370"], ["user_id", 23], ["value", 5]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1426 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1427 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1426 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1427 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1426 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1427 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1426 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 1426 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 1427 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1427 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 1427 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.868814"], ["name", "user1"], ["updated_at", "2014-12-16 21:03:11.868814"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.870404"], ["name", "user2"], ["updated_at", "2014-12-16 21:03:11.870404"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.871945"], ["updated_at", "2014-12-16 21:03:11.871945"], ["user_id", 24], ["value", 1]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.873826"], ["updated_at", "2014-12-16 21:03:11.873826"], ["user_id", 14270000000000024], ["value", 3]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.875553"], ["updated_at", "2014-12-16 21:03:11.875553"], ["user_id", 14260000000000024], ["value", 2]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.877032"], ["updated_at", "2014-12-16 21:03:11.877032"], ["user_id", 24], ["value", 4]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.878570"], ["updated_at", "2014-12-16 21:03:11.878570"], ["user_id", 24], ["value", 5]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1426 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1427 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1426 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1427 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1426 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1427 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1426 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 1426 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 1427 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1427 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 1427 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.894167"], ["name", "user1"], ["updated_at", "2014-12-16 21:03:11.894167"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.895806"], ["name", "user2"], ["updated_at", "2014-12-16 21:03:11.895806"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.897394"], ["updated_at", "2014-12-16 21:03:11.897394"], ["user_id", 25], ["value", 1]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.899356"], ["updated_at", "2014-12-16 21:03:11.899356"], ["user_id", 14270000000000025], ["value", 3]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.901364"], ["updated_at", "2014-12-16 21:03:11.901364"], ["user_id", 14260000000000025], ["value", 2]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.902970"], ["updated_at", "2014-12-16 21:03:11.902970"], ["user_id", 25], ["value", 4]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.904620"], ["updated_at", "2014-12-16 21:03:11.904620"], ["user_id", 25], ["value", 5]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.907620"], ["updated_at", "2014-12-16 21:03:11.907620"], ["user_id", 25]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:11.909724"], ["updated_at", "2014-12-16 21:03:11.909724"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.912794"], ["updated_at", "2014-12-16 21:03:11.912794"], ["user_id", 26]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.4ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.2ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.924244"], ["name", "user1"], ["updated_at", "2014-12-16 21:03:11.924244"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.925887"], ["name", "user2"], ["updated_at", "2014-12-16 21:03:11.925887"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.927450"], ["updated_at", "2014-12-16 21:03:11.927450"], ["user_id", 27], ["value", 1]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.929775"], ["updated_at", "2014-12-16 21:03:11.929775"], ["user_id", 14270000000000026], ["value", 3]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.932223"], ["updated_at", "2014-12-16 21:03:11.932223"], ["user_id", 14260000000000027], ["value", 2]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.934060"], ["updated_at", "2014-12-16 21:03:11.934060"], ["user_id", 26], ["value", 4]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.935674"], ["updated_at", "2014-12-16 21:03:11.935674"], ["user_id", 26], ["value", 5]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1426 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1427 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1426 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1427 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1426 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1427 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1426 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 1426 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 1427 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1427 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 1427 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.952892"], ["name", "user1"], ["updated_at", "2014-12-16 21:03:11.952892"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.954518"], ["name", "user2"], ["updated_at", "2014-12-16 21:03:11.954518"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.956092"], ["updated_at", "2014-12-16 21:03:11.956092"], ["user_id", 28], ["value", 1]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.958087"], ["updated_at", "2014-12-16 21:03:11.958087"], ["user_id", 14270000000000027], ["value", 3]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.959889"], ["updated_at", "2014-12-16 21:03:11.959889"], ["user_id", 14260000000000028], ["value", 2]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.961441"], ["updated_at", "2014-12-16 21:03:11.961441"], ["user_id", 27], ["value", 4]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:11.963078"], ["updated_at", "2014-12-16 21:03:11.963078"], ["user_id", 27], ["value", 5]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1426 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1427 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1426 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1427 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1426 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1427 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1426 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 1426 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 1427 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1427 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 1427 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.2ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.980305"], ["name", "user1"], ["updated_at", "2014-12-16 21:03:11.980305"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.983236"], ["updated_at", "2014-12-16 21:03:11.983236"], ["user_id", 29]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.984943"], ["name", "user2"], ["updated_at", "2014-12-16 21:03:11.984943"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.987554"], ["updated_at", "2014-12-16 21:03:11.987554"], ["user_id", 28]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 1426 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 1427 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 1426 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 1427 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 1426 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:11.999464"], ["name", "user1"], ["updated_at", "2014-12-16 21:03:11.999464"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.001944"], ["updated_at", "2014-12-16 21:03:12.001944"], ["user_id", 30]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.003898"], ["name", "user2"], ["updated_at", "2014-12-16 21:03:12.003898"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.006728"], ["updated_at", "2014-12-16 21:03:12.006728"], ["user_id", 29]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 1426 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 1427 master]  (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 1426 master]  (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 1427 master]  (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 1426 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.019458"], ["name", "user1"], ["updated_at", "2014-12-16 21:03:12.019458"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.022000"], ["updated_at", "2014-12-16 21:03:12.022000"], ["user_id", 31]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.023721"], ["name", "user2"], ["updated_at", "2014-12-16 21:03:12.023721"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.026202"], ["updated_at", "2014-12-16 21:03:12.026202"], ["user_id", 30]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.028133"], ["name", "user2"], ["updated_at", "2014-12-16 21:03:12.028133"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (2375) [shard 1425 master]  (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (31) [shard 1426 master]  (0.4ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (30) [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.038821"], ["name", "user1"], ["updated_at", "2014-12-16 21:03:12.038821"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.041249"], ["updated_at", "2014-12-16 21:03:12.041249"], ["user_id", 32]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.042865"], ["name", "user2"], ["updated_at", "2014-12-16 21:03:12.042865"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.045154"], ["updated_at", "2014-12-16 21:03:12.045154"], ["user_id", 31]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (32) [shard 1426 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (31) [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1425]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1426], ["name", "switchman_test_shard_1426"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1427], ["name", "switchman_test_shard_1427"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.060742"], ["updated_at", "2014-12-16 21:03:12.060742"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1425]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1426], ["name", "switchman_test_shard_1426"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1427], ["name", "switchman_test_shard_1427"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.076556"], ["updated_at", "2014-12-16 21:03:12.076556"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.078065"], ["updated_at", "2014-12-16 21:03:12.078065"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.079513"], ["updated_at", "2014-12-16 21:03:12.079513"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1426 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.130519"], ["updated_at", "2014-12-16 21:03:12.130519"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1425 master] SQL (0.1ms) DELETE FROM "users" [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.137380"], ["updated_at", "2014-12-16 21:03:12.137380"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1425 master] SQL (0.1ms) DELETE FROM "users" [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.141718"], ["updated_at", "2014-12-16 21:03:12.141718"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1425 master] SQL (0.4ms) DELETE FROM "users" [shard 1425 master] SQL (0.2ms) DELETE FROM "users" [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.147091"], ["updated_at", "2014-12-16 21:03:12.147091"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.149288"], ["name", "a"], ["updated_at", "2014-12-16 21:03:12.149288"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2381]] [shard 1425 master] CACHE (0.1ms) 1425::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2381]] CACHE (0.0ms) 1425::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2381]]  (0.1ms) BEGIN [shard 1425 master] SQL (0.2ms) UPDATE "users" SET "name" = $1, "updated_at" = $2 WHERE "users"."id" = 2381 [["name", "b"], ["updated_at", "2014-12-16 21:03:12.154993"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2381]] [shard 1425 master] CACHE (0.0ms) 1425::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2381]] SQL (0.4ms) DELETE FROM "users" [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.161206"], ["updated_at", "2014-12-16 21:03:12.161206"]] [shard 1425 master]  (0.2ms) COMMIT [shard 1425 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1425 master] SQL (0.3ms) DELETE FROM "users" [shard 1425 master] SQL (0.1ms) DELETE FROM "users" [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.191153"], ["updated_at", "2014-12-16 21:03:12.191153"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.199276"], ["updated_at", "2014-12-16 21:03:12.199276"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.207128"], ["updated_at", "2014-12-16 21:03:12.207128"]] [shard 1425 master]  (0.4ms) COMMIT [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.214833"], ["updated_at", "2014-12-16 21:03:12.214833"]] [shard 1425 master]  (0.7ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.220816"], ["updated_at", "2014-12-16 21:03:12.220816"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1425 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:03:12.222608' [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.227792"], ["updated_at", "2014-12-16 21:03:12.227792"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1425 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:03:12.229545' [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.231880"], ["updated_at", "2014-12-16 21:03:12.231880"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1425 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:03:12.233988' [shard 1425 master] SQL (0.3ms) DELETE FROM "users" [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.237261"], ["updated_at", "2014-12-16 21:03:12.237261"]] [shard 1425 master]  (0.2ms) COMMIT [shard 1425 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1425 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:03:12.239239' [shard 1425 master] SQL (0.3ms) DELETE FROM "users" [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1425]] [shard 1425 master]  (0.2ms) COMMIT [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1426], ["name", "switchman_test_shard_1426"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1427], ["name", "switchman_test_shard_1427"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.274877"], ["updated_at", "2014-12-16 21:03:12.274877"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1426 LIMIT 1 [shard 1425 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (36) LIMIT 1 [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.284589"], ["updated_at", "2014-12-16 21:03:12.284589"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 37 LIMIT 1 [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.291890"], ["updated_at", "2014-12-16 21:03:12.291890"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 38]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 14260000000000038 ORDER BY "users"."id" ASC LIMIT 1 [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.299320"], ["updated_at", "2014-12-16 21:03:12.299320"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.300993"], ["name", "multi-shard exists"], ["updated_at", "2014-12-16 21:03:12.300993"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 1425 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1425 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1426 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.310838"], ["updated_at", "2014-12-16 21:03:12.310838"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 40 LIMIT 1 [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.317563"], ["updated_at", "2014-12-16 21:03:12.317563"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]] [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1425]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1426], ["name", "switchman_test_shard_1426"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1427], ["name", "switchman_test_shard_1427"]] [shard 1425 master]  (0.2ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:04:12.333460"], ["updated_at", "2014-12-16 21:04:12.333460"]] [shard 1426 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.0ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1425]] [shard 1425 master]  (0.2ms) COMMIT [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1426], ["name", "switchman_test_shard_1426"]] [shard 1425 master]  (0.2ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1427], ["name", "switchman_test_shard_1427"]] [shard 1425 master]  (0.2ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.348853"], ["updated_at", "2014-12-16 21:03:12.348853"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.350321"], ["updated_at", "2014-12-16 21:03:12.350321"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.353397"], ["updated_at", "2014-12-16 21:03:12.353397"], ["user_id", 43]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1426 LIMIT 1 [shard 1425 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 43], ["id", 45]] [shard 1426 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 33], ["id", 14260000000000045]] [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.364800"], ["updated_at", "2014-12-16 21:03:12.364800"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.366411"], ["updated_at", "2014-12-16 21:03:12.366411"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.370548"], ["updated_at", "2014-12-16 21:03:12.370548"], ["user_id", 44]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 46]] [shard 1426 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 44]] [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.379716"], ["updated_at", "2014-12-16 21:03:12.379716"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.381353"], ["updated_at", "2014-12-16 21:03:12.381353"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.383789"], ["parent_id", 45], ["updated_at", "2014-12-16 21:03:12.383789"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.386327"], ["parent_id", 46], ["updated_at", "2014-12-16 21:03:12.386327"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 45]] [shard 1426 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 47 LIMIT 1 [["parent_id", 45]] [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.392316"], ["id", 47], ["updated_at", "2014-12-16 21:03:12.392316"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 45]] [shard 1426 master] User Exists (1.1ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 14270000000000047 LIMIT 1 [["parent_id", 45]] [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.403868"], ["updated_at", "2014-12-16 21:03:12.403868"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.405505"], ["updated_at", "2014-12-16 21:03:12.405505"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.408547"], ["updated_at", "2014-12-16 21:03:12.408547"], ["user_id", 48]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.414464"], ["updated_at", "2014-12-16 21:03:12.414464"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.415934"], ["updated_at", "2014-12-16 21:03:12.415934"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.418600"], ["updated_at", "2014-12-16 21:03:12.418600"], ["user_id", 49]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.425833"], ["updated_at", "2014-12-16 21:03:12.425833"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.427520"], ["updated_at", "2014-12-16 21:03:12.427520"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.433914"], ["updated_at", "2014-12-16 21:03:12.433914"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.435533"], ["updated_at", "2014-12-16 21:03:12.435533"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.438373"], ["updated_at", "2014-12-16 21:03:12.438373"], ["user_id", 51]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 49], ["created_at", "2014-12-16 21:03:12.448320"], ["updated_at", "2014-12-16 21:03:12.448320"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 51], ["id", 1]] [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.2ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.461271"], ["updated_at", "2014-12-16 21:03:12.461271"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.463178"], ["updated_at", "2014-12-16 21:03:12.463178"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.466815"], ["updated_at", "2014-12-16 21:03:12.466815"], ["user_id", 52]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (2.5ms) INSERT INTO "digits" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.468665"], ["updated_at", "2014-12-16 21:03:12.468665"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1427 LIMIT 1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 50], ["created_at", "2014-12-16 21:03:12.475509"], ["id", 14270000000000001], ["updated_at", "2014-12-16 21:03:12.475509"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 52], ["id", 14270000000000001]] [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.485971"], ["updated_at", "2014-12-16 21:03:12.485971"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.487799"], ["updated_at", "2014-12-16 21:03:12.487799"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.3ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.492555"], ["updated_at", "2014-12-16 21:03:12.492555"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.501743"], ["updated_at", "2014-12-16 21:03:12.501743"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.503701"], ["updated_at", "2014-12-16 21:03:12.503701"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.506682"], ["updated_at", "2014-12-16 21:03:12.506682"], ["user_id", 54]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.509428"], ["updated_at", "2014-12-16 21:03:12.509428"], ["user_id", 42]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.517154"], ["updated_at", "2014-12-16 21:03:12.517154"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.518798"], ["updated_at", "2014-12-16 21:03:12.518798"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.521496"], ["updated_at", "2014-12-16 21:03:12.521496"], ["user_id", 55]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 55]] [shard 1426 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 55]] [shard 1426 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 55]] [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.532446"], ["updated_at", "2014-12-16 21:03:12.532446"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.534121"], ["updated_at", "2014-12-16 21:03:12.534121"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.541068"], ["updated_at", "2014-12-16 21:03:12.541068"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.542604"], ["updated_at", "2014-12-16 21:03:12.542604"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.544303"], ["updated_at", "2014-12-16 21:03:12.544303"], ["user_id", 57]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 53], ["created_at", "2014-12-16 21:03:12.547066"], ["updated_at", "2014-12-16 21:03:12.547066"], ["value", 1]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.549695"], ["updated_at", "2014-12-16 21:03:12.549695"], ["user_id", 14260000000000057]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", "2014-12-16 21:03:12.553259"], ["updated_at", "2014-12-16 21:03:12.553259"], ["value", 2]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 57]] [shard 1426 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 57]] [shard 1426 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 57]] [shard 1426 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 14260000000000057]] [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.566750"], ["updated_at", "2014-12-16 21:03:12.566750"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.568473"], ["updated_at", "2014-12-16 21:03:12.568473"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.570290"], ["updated_at", "2014-12-16 21:03:12.570290"], ["user_id", 58]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 54], ["created_at", "2014-12-16 21:03:12.573520"], ["updated_at", "2014-12-16 21:03:12.573520"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.575728"], ["updated_at", "2014-12-16 21:03:12.575728"], ["user_id", 14260000000000058]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", "2014-12-16 21:03:12.578155"], ["updated_at", "2014-12-16 21:03:12.578155"], ["value", 2]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 58]] [shard 1426 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 14260000000000058]] [shard 1427 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 58]] [shard 1426 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 58]] [shard 1426 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 14260000000000058]] [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.593113"], ["updated_at", "2014-12-16 21:03:12.593113"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.594702"], ["updated_at", "2014-12-16 21:03:12.594702"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:12.596437"], ["updated_at", "2014-12-16 21:03:12.596437"], ["user_id", 59], ["value", 1]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.598562"], ["updated_at", "2014-12-16 21:03:12.598562"], ["user_id", 14260000000000059]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 59]] [shard 1426 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 14260000000000059]] [shard 1427 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 59]] [shard 1426 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 59]] [shard 1426 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 14260000000000059]] [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.610390"], ["updated_at", "2014-12-16 21:03:12.610390"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.611989"], ["updated_at", "2014-12-16 21:03:12.611989"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.613566"], ["updated_at", "2014-12-16 21:03:12.613566"], ["user_id", 60]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 56], ["created_at", "2014-12-16 21:03:12.615858"], ["updated_at", "2014-12-16 21:03:12.615858"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.617757"], ["updated_at", "2014-12-16 21:03:12.617757"], ["user_id", 14260000000000060]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 58], ["created_at", "2014-12-16 21:03:12.620030"], ["updated_at", "2014-12-16 21:03:12.620030"], ["value", 2]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 60]] [shard 1426 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 14260000000000060]] [shard 1427 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 60]] [shard 1426 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 60]] [shard 1426 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 14260000000000060]] [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.2ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.635135"], ["updated_at", "2014-12-16 21:03:12.635135"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.636748"], ["updated_at", "2014-12-16 21:03:12.636748"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.638510"], ["updated_at", "2014-12-16 21:03:12.638510"], ["user_id", 61]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 57], ["created_at", "2014-12-16 21:03:12.640920"], ["updated_at", "2014-12-16 21:03:12.640920"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 57], ["created_at", "2014-12-16 21:03:12.642721"], ["updated_at", "2014-12-16 21:03:12.642721"], ["value", 1]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.644776"], ["updated_at", "2014-12-16 21:03:12.644776"], ["user_id", 14260000000000061]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 59], ["created_at", "2014-12-16 21:03:12.647183"], ["updated_at", "2014-12-16 21:03:12.647183"], ["value", 2]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 61]] [shard 1426 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 14260000000000061]] [shard 1427 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [shard 1426 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 61]] [shard 1426 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 14260000000000061]] [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.660943"], ["updated_at", "2014-12-16 21:03:12.660943"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.662493"], ["updated_at", "2014-12-16 21:03:12.662493"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:12.663922"], ["updated_at", "2014-12-16 21:03:12.663922"], ["user_id", 62], ["value", 1]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.666015"], ["updated_at", "2014-12-16 21:03:12.666015"], ["user_id", 14260000000000062]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:12.668598"], ["updated_at", "2014-12-16 21:03:12.668598"], ["user_id", 62], ["value", 2]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 62]] [shard 1426 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 62]] [shard 1426 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 14260000000000062]] [shard 1427 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 62]] [shard 1426 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 62]] [shard 1426 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 14260000000000062]] [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.681701"], ["updated_at", "2014-12-16 21:03:12.681701"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.683735"], ["updated_at", "2014-12-16 21:03:12.683735"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:12.685255"], ["updated_at", "2014-12-16 21:03:12.685255"], ["user_id", 63], ["value", 1]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:12.687329"], ["updated_at", "2014-12-16 21:03:12.687329"], ["user_id", 14260000000000063], ["value", 2]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 63]] [shard 1426 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [shard 1426 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 63]] [shard 1426 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 14260000000000063]] [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.699600"], ["updated_at", "2014-12-16 21:03:12.699600"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.701470"], ["updated_at", "2014-12-16 21:03:12.701470"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.703189"], ["updated_at", "2014-12-16 21:03:12.703189"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 64]] [shard 1426 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.706736"], ["updated_at", "2014-12-16 21:03:12.706736"], ["user_id", 64]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 61]] [shard 1426 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 64]] [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.714398"], ["updated_at", "2014-12-16 21:03:12.714398"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.715886"], ["updated_at", "2014-12-16 21:03:12.715886"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.717766"], ["updated_at", "2014-12-16 21:03:12.717766"], ["user_id", 14270000000000053]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 62]] [shard 1426 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 53]] [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.725503"], ["updated_at", "2014-12-16 21:03:12.725503"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.726972"], ["updated_at", "2014-12-16 21:03:12.726972"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.729647"], ["updated_at", "2014-12-16 21:03:12.729647"], ["user_id", 66]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.731519"], ["updated_at", "2014-12-16 21:03:12.731519"], ["user_id", 14260000000000066]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.733185"], ["updated_at", "2014-12-16 21:03:12.733185"], ["user_id", 14270000000000054]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 1426 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (66) [shard 1426 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (14260000000000066) [shard 1427 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 1427 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (54) [shard 1427 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 63 [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.748951"], ["updated_at", "2014-12-16 21:03:12.748951"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.750609"], ["updated_at", "2014-12-16 21:03:12.750609"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.752874"], ["updated_at", "2014-12-16 21:03:12.752874"], ["user_id", 14260000000000067]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (18.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1175], ["created_at", "2014-12-16 21:03:12.755402"], ["updated_at", "2014-12-16 21:03:12.755402"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.777078"], ["updated_at", "2014-12-16 21:03:12.777078"], ["user_id", 14270000000000055]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 14260000000000065], ["created_at", "2014-12-16 21:03:12.779390"], ["updated_at", "2014-12-16 21:03:12.779390"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" [shard 1425 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (1175) [shard 1425 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (65) [shard 1426 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 1426 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 1427 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 67 [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.797471"], ["updated_at", "2014-12-16 21:03:12.797471"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.799086"], ["updated_at", "2014-12-16 21:03:12.799086"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.800726"], ["updated_at", "2014-12-16 21:03:12.800726"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1176], ["created_at", "2014-12-16 21:03:12.803222"], ["updated_at", "2014-12-16 21:03:12.803222"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 14250000000001176], ["created_at", "2014-12-16 21:03:12.805112"], ["updated_at", "2014-12-16 21:03:12.805112"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1176 ORDER BY "appendages"."id" ASC LIMIT 1 [shard 1425 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1176) [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.814145"], ["updated_at", "2014-12-16 21:03:12.814145"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.815679"], ["updated_at", "2014-12-16 21:03:12.815679"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.818420"], ["updated_at", "2014-12-16 21:03:12.818420"], ["user_id", 69]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.820433"], ["updated_at", "2014-12-16 21:03:12.820433"], ["user_id", 14260000000000069]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.821931"], ["updated_at", "2014-12-16 21:03:12.821931"], ["user_id", 14260000000000069]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 66], ["created_at", "2014-12-16 21:03:12.824430"], ["updated_at", "2014-12-16 21:03:12.824430"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 64], ["created_at", "2014-12-16 21:03:12.827113"], ["updated_at", "2014-12-16 21:03:12.827113"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 14270000000000064], ["created_at", "2014-12-16 21:03:12.830146"], ["updated_at", "2014-12-16 21:03:12.830146"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 14270000000000065], ["created_at", "2014-12-16 21:03:12.832036"], ["updated_at", "2014-12-16 21:03:12.832036"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.833621"], ["updated_at", "2014-12-16 21:03:12.833621"], ["user_id", 14270000000000057]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.836444"], ["updated_at", "2014-12-16 21:03:12.836444"], ["user_id", 57]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.838807"], ["updated_at", "2014-12-16 21:03:12.838807"], ["user_id", 57]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 14260000000000067], ["created_at", "2014-12-16 21:03:12.840618"], ["updated_at", "2014-12-16 21:03:12.840618"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 14270000000000066], ["created_at", "2014-12-16 21:03:12.842352"], ["updated_at", "2014-12-16 21:03:12.842352"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 67], ["created_at", "2014-12-16 21:03:12.843828"], ["updated_at", "2014-12-16 21:03:12.843828"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (69) [shard 1426 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (69) [shard 1426 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (14260000000000069) [shard 1427 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (66) [shard 1426 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (64, 65) [shard 1427 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 1427 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (57) [shard 1427 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (66, 67) [shard 1427 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 8 [shard 1426 master]  (0.2ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.867038"], ["updated_at", "2014-12-16 21:03:12.867038"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.868707"], ["updated_at", "2014-12-16 21:03:12.868707"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.870837"], ["updated_at", "2014-12-16 21:03:12.870837"], ["user_id", 14260000000000070]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.872752"], ["updated_at", "2014-12-16 21:03:12.872752"], ["user_id", 14270000000000058]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.874203"], ["updated_at", "2014-12-16 21:03:12.874203"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.876330"], ["updated_at", "2014-12-16 21:03:12.876330"], ["user_id", 2391]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 1425 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [shard 1426 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 1427 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2391) [shard 1425 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 70 [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.887501"], ["updated_at", "2014-12-16 21:03:12.887501"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.889084"], ["updated_at", "2014-12-16 21:03:12.889084"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-16 21:03:12.890956"], ["owner_id", 71], ["owner_type", "User"], ["updated_at", "2014-12-16 21:03:12.890956"], ["value", 1]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-16 21:03:12.893481"], ["owner_id", 14260000000000071], ["owner_type", "User"], ["updated_at", "2014-12-16 21:03:12.893481"], ["value", 2]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 71], ["owner_type", "User"]] [shard 1426 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 71]] [shard 1426 master] Feature Load (0.1ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 71], ["owner_type", "User"]] [shard 1426 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 14260000000000071], ["owner_type", "User"]] [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.906841"], ["updated_at", "2014-12-16 21:03:12.906841"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.908398"], ["updated_at", "2014-12-16 21:03:12.908398"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.910045"], ["updated_at", "2014-12-16 21:03:12.910045"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.3ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:03:12.911691"], ["owner_id", 1180], ["owner_type", "Appendage"], ["updated_at", "2014-12-16 21:03:12.911691"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 114]] [shard 1425 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 1180]] [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) UPDATE "features" SET "owner_id" = $1, "owner_type" = $2, "updated_at" = $3 WHERE "features"."id" = 114 [["owner_id", 14260000000000072], ["owner_type", "User"], ["updated_at", "2014-12-16 21:03:12.917105"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master] Feature Load (0.1ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 114]] [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.925752"], ["updated_at", "2014-12-16 21:03:12.925752"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.927300"], ["updated_at", "2014-12-16 21:03:12.927300"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (1.9ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:12.935395"], ["updated_at", "2014-12-16 21:03:12.935395"], ["user_id", 14270000000000061]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master] Root Load (0.2ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 55]] [shard 1425 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.945755"], ["updated_at", "2014-12-16 21:03:12.945755"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.947428"], ["updated_at", "2014-12-16 21:03:12.947428"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1425]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1426], ["name", "switchman_test_shard_1426"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1427], ["name", "switchman_test_shard_1427"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.2ms) ROLLBACK [shard 1427 master]  (0.2ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (17.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:12.984881"], ["updated_at", "2014-12-16 21:03:12.984881"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 55]] [shard 1425 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 55]] [shard 1425 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 55 ORDER BY "mirror_users"."id" ASC LIMIT 1 [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "5"], ["name", "non_existent_shard"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "5"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 1433 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.6ms) SELECT COUNT(*) FROM "users" [shard 1434 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "6"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "7"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "8"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "9"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "10"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "11"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1425]] [shard 1425 master]  (15.5ms) COMMIT [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1426], ["name", "switchman_test_shard_1426"]] [shard 1425 master]  (15.2ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1427], ["name", "switchman_test_shard_1427"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master] SQL (15.5ms) DELETE FROM "switchman_shards" [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1425]] [shard 1425 master]  (15.4ms) COMMIT [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1426], ["name", "switchman_test_shard_1426"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1427], ["name", "switchman_test_shard_1427"]] [shard 1425 master]  (0.2ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "12"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "13"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:13.326840"], ["updated_at", "2014-12-16 21:03:13.326840"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master] SQL (0.7ms) DELETE FROM "switchman_shards" [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1425]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1426], ["name", "switchman_test_shard_1426"]] [shard 1425 master]  (0.2ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1427], ["name", "switchman_test_shard_1427"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1425]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1426], ["name", "switchman_test_shard_1426"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1427], ["name", "switchman_test_shard_1427"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:13.471047"], ["updated_at", "2014-12-16 21:03:13.471047"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 1427 master]  (0.1ms) SAVEPOINT active_record_2 [shard 1427 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:13.477129"], ["updated_at", "2014-12-16 21:03:13.477129"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1427 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) SELECT COUNT(*) FROM "users" [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master] SQL (15.7ms) DELETE FROM "switchman_shards" [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1425 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1425]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1426], ["name", "switchman_test_shard_1426"]] [shard 1425 master]  (0.4ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1427], ["name", "switchman_test_shard_1427"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "14"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "14"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master] SQL (15.4ms) DELETE FROM "switchman_shards" [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1425]] [shard 1425 master]  (14.6ms) COMMIT [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1426], ["name", "switchman_test_shard_1426"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1427], ["name", "switchman_test_shard_1427"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '15' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "15"], ["name", "public"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1445 [shard 1445 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1445 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1445 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1445 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1445 deploy]  (2.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1445 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1445 deploy]  (0.4ms) COMMIT [shard 1445 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1445 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1445 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1445 deploy]  (0.4ms) COMMIT [shard 1445 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1445 deploy]  (5.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1445 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1445 deploy]  (0.4ms) COMMIT [shard 1445 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1445 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1445 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1445 deploy]  (0.4ms) COMMIT [shard 1445 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1445 deploy]  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1445 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1445 deploy]  (0.3ms) COMMIT [shard 1445 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 1445 deploy]  (0.4ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1445 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1445 deploy]  (0.3ms) COMMIT [shard 1445 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1445 deploy]  (2.4ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1445 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1445 deploy]  (0.4ms) COMMIT [shard 1445 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1445 [["name", "switchman_test_shard_1445"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) BEGIN [shard 1445 master] SQL (16.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:13.654447"], ["updated_at", "2014-12-16 21:03:13.654447"]] [shard 1445 master]  (14.5ms) COMMIT [shard 1445 master]  (6.2ms) DROP SCHEMA switchman_test_shard_1445 CASCADE [shard 1445 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1445]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '16' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "16"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 1446 deploy]  (0.1ms) select sqlite_version(*) [shard 1446 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1446 deploy] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1446 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 1446 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 1446 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130403132607"]] [shard 1446 deploy]  (0.8ms) commit transaction [shard 1446 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 1446 deploy]  (0.3ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 1446 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202442"]] [shard 1446 deploy]  (0.7ms) commit transaction [shard 1446 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 1446 deploy]  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 1446 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202551"]] [shard 1446 deploy]  (0.7ms) commit transaction [shard 1446 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 1446 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 1446 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131022202028"]] [shard 1446 deploy]  (0.6ms) commit transaction [shard 1446 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 1446 deploy]  (0.3ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 1446 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131206172923"]] [shard 1446 deploy]  (0.8ms) commit transaction [shard 1446 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 1446 deploy]  (0.3ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 1446 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140123154135"]] [shard 1446 deploy]  (0.6ms) commit transaction [shard 1446 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 1446 deploy]  (0.3ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 1446 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219183820"]] [shard 1446 deploy]  (0.6ms) commit transaction [shard 1446 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1446 [["name", "db/shard_1446.sqlite3"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.0ms) begin transaction [shard 1446 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-16 21:03:13.742963"], ["updated_at", "2014-12-16 21:03:13.742963"]] [shard 1446 master]  (0.7ms) commit transaction [shard 1446 master] Drop failed: No such file or directory @ unlink_internal - db/shard_1446.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1446]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [shard 1425 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_1447 [shard 1447 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1447 deploy]  (15.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1447 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1447 deploy] Migrating to CreateUsers (20130403132607)  (4.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1447 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1447 deploy] Migrating to CreateAppendages (20130411202442)  (2.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1447 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1447 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1447 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1447 deploy] Migrating to CreateDigits (20131022202028)  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1447 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1447 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1447 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1447 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1447 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1447 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1447 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1447 deploy] SQL (0.1ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1447 [["name", "switchman_test_shard_1447"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1447 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:13.824774"], ["updated_at", "2014-12-16 21:03:13.824774"]] [shard 1447 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1447 master]  (5.2ms) DROP SCHEMA switchman_test_shard_1447 CASCADE [shard 1447 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1447]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (2.3ms) ROLLBACK [shard 1425 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1425]] [shard 1425 master]  (16.3ms) COMMIT [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1426], ["name", "switchman_test_shard_1426"]] [shard 1425 master]  (0.4ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1427], ["name", "switchman_test_shard_1427"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:13.881510"], ["updated_at", "2014-12-16 21:03:13.881510"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:13.894923"], ["updated_at", "2014-12-16 21:03:13.894923"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:13.896709"], ["updated_at", "2014-12-16 21:03:13.896709"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:13.906435"], ["updated_at", "2014-12-16 21:03:13.906435"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1426 LIMIT 1 [shard 1425 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:13.914283"], ["updated_at", "2014-12-16 21:03:13.914283"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:13.915854"], ["updated_at", "2014-12-16 21:03:13.915854"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1427 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:03:13.918552"], ["updated_at", "2014-12-16 21:03:13.918552"]] [shard 1427 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master] SQL (15.5ms) DELETE FROM "switchman_shards" [shard 1425 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1425]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1426], ["name", "switchman_test_shard_1426"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1427], ["name", "switchman_test_shard_1427"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:13.952560"], ["name", "user1"], ["updated_at", "2014-12-16 21:03:13.952560"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:13.954526"], ["name", "user2"], ["updated_at", "2014-12-16 21:03:13.954526"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1426 LIMIT 1 [shard 1425 master] SQL (0.3ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (2395) [shard 1425 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (78) [shard 1426 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2395]] [shard 1425 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 78]] [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:13.966624"], ["name", "user1"], ["updated_at", "2014-12-16 21:03:13.966624"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:13.968668"], ["name", "user2"], ["updated_at", "2014-12-16 21:03:13.968668"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 79 [shard 1426 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2396]] [shard 1425 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 79]] [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:13.977579"], ["name", "user1"], ["updated_at", "2014-12-16 21:03:13.977579"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:13.979393"], ["name", "user2"], ["updated_at", "2014-12-16 21:03:13.979393"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:13.984971"], ["name", "user1"], ["updated_at", "2014-12-16 21:03:13.984971"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:13.986740"], ["name", "user2"], ["updated_at", "2014-12-16 21:03:13.986740"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2398) [shard 1425 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (81) [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1425 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:13.994345"], ["name", "user1"], ["updated_at", "2014-12-16 21:03:13.994345"]] [shard 1425 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1425 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1426 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:03:13.996106"], ["name", "user2"], ["updated_at", "2014-12-16 21:03:13.996106"]] [shard 1426 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1426 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 82 ORDER BY "users"."id" ASC LIMIT 1 [shard 1426 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1426 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master]  (0.1ms) ROLLBACK [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1425 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1425]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1426], ["name", "switchman_test_shard_1426"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1427], ["name", "switchman_test_shard_1427"]] [shard 1425 master]  (0.3ms) COMMIT [shard 1425 master]  (0.1ms) BEGIN [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1426]] [shard 1425 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1427]] [shard 1425 master]  (0.1ms) BEGIN [shard 1427 master]  (0.1ms) ROLLBACK [shard 1427 master]  (0.1ms) ROLLBACK [shard 1425 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1425 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1425 master]  (4.3ms) DROP SCHEMA switchman_test_shard_1426 CASCADE [shard 1426 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1426]]  (0.1ms) COMMIT  (6.4ms) DROP SCHEMA switchman_test_shard_1427 CASCADE [shard 1427 deploy]  (0.3ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1427]]  (0.1ms) COMMIT  (1.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.4ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (15.9ms) COMMIT Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1449 [shard 1449 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1449 deploy]  (16.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1449 deploy] ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1449 deploy] Migrating to CreateUsers (20130403132607)  (19.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1449 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1449 deploy] Migrating to CreateAppendages (20130411202442)  (17.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1449 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1449 deploy] Migrating to CreateMirrorUsers (20130411202551)  (17.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1449 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1449 deploy] Migrating to CreateDigits (20131022202028)  (17.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1449 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1449 deploy] Migrating to CreateFeatures (20131206172923)  (17.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1449 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1449 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1449 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1449 deploy] Migrating to CreateRoots (20140219183820)  (17.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1449 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1449 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1449 [["name", "switchman_test_shard_1449"]] [shard 1448 master]  (0.7ms) COMMIT [shard 1448 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1448 master]  (0.1ms) BEGIN [shard 1448 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1448 master]  (0.4ms) COMMIT [shard 1448 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1450 [shard 1450 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1450 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1450 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1450 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1450 deploy]  (4.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1450 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1450 deploy]  (0.3ms) COMMIT [shard 1450 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1450 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1450 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1450 deploy]  (0.3ms) COMMIT [shard 1450 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1450 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1450 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1450 deploy]  (0.4ms) COMMIT [shard 1450 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1450 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1450 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1450 deploy]  (0.4ms) COMMIT [shard 1450 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 1450 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1450 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1450 deploy]  (0.5ms) COMMIT [shard 1450 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1450 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1450 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1450 deploy]  (0.3ms) COMMIT [shard 1450 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1450 deploy]  (2.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1450 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1450 deploy]  (0.4ms) COMMIT [shard 1450 deploy]  (0.1ms) BEGIN [shard 1448 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1450 [["name", "switchman_test_shard_1450"]] [shard 1448 master]  (0.3ms) COMMIT [shard 1448 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1448 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1448 master]  (0.1ms) BEGIN [shard 1448 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1448 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1448]] [shard 1448 master]  (0.2ms) COMMIT [shard 1448 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1448 master]  (0.1ms) BEGIN [shard 1448 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1449], ["name", "switchman_test_shard_1449"]] [shard 1448 master]  (0.2ms) COMMIT [shard 1448 master]  (0.1ms) BEGIN [shard 1448 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1450], ["name", "switchman_test_shard_1450"]] [shard 1448 master]  (0.3ms) COMMIT [shard 1448 master]  (0.1ms) BEGIN [shard 1448 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1448 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1449]] [shard 1448 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1450]] [shard 1448 master]  (0.1ms) BEGIN [shard 1450 master] Switchman::Shard Load (1.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (NOT ((id>=1449 AND id<1450))) ORDER BY "switchman_shards"."id" ASC [shard 1448 master]  (0.1ms) ROLLBACK [shard 1450 master]  (0.1ms) ROLLBACK [shard 1448 master]  (0.1ms) BEGIN [shard 1448 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1448 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1449]] [shard 1448 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1450]] [shard 1448 master]  (0.1ms) BEGIN [shard 1450 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1448)) [shard 1448 master]  (0.1ms) ROLLBACK [shard 1450 master]  (0.1ms) ROLLBACK [shard 1448 master]  (0.1ms) BEGIN [shard 1448 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1448 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1449]] [shard 1448 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1450]] [shard 1448 master]  (0.1ms) BEGIN [shard 1450 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (NOT ((id>=1449 AND id<1450))) AND (id NOT IN (1449)) [shard 1448 master]  (0.1ms) ROLLBACK [shard 1450 master]  (0.1ms) ROLLBACK [shard 1448 master]  (0.1ms) BEGIN [shard 1448 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1448 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1449]] [shard 1448 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1450]] [shard 1448 master]  (0.1ms) BEGIN [shard 1450 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (NOT ((id>=1449 AND id<=1450))) [shard 1448 master]  (0.1ms) ROLLBACK [shard 1450 master]  (0.1ms) ROLLBACK [shard 1448 master]  (0.1ms) BEGIN [shard 1448 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1448 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1449]] [shard 1448 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1450]] [shard 1448 master]  (0.1ms) BEGIN [shard 1450 master]  (0.1ms) ROLLBACK [shard 1450 master]  (0.1ms) ROLLBACK [shard 1448 master]  (0.1ms) BEGIN [shard 1448 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1448 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1449]] [shard 1448 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1450]] [shard 1448 master]  (0.1ms) BEGIN [shard 1450 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1448)) [shard 1448 master]  (0.1ms) ROLLBACK [shard 1450 master]  (0.1ms) ROLLBACK [shard 1448 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1448 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1448 master]  (4.5ms) DROP SCHEMA switchman_test_shard_1449 CASCADE [shard 1449 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1449]]  (0.1ms) COMMIT  (5.5ms) DROP SCHEMA switchman_test_shard_1450 CASCADE [shard 1450 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1450]]  (0.1ms) COMMIT  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (15.5ms) COMMIT Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1452 [shard 1452 deploy]  (19.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1452 deploy]  (16.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1452 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1452 deploy] Migrating to CreateUsers (20130403132607)  (33.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1452 deploy] SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1452 deploy] Migrating to CreateAppendages (20130411202442)  (17.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1452 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1452 deploy] Migrating to CreateMirrorUsers (20130411202551)  (33.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1452 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1452 deploy] Migrating to CreateDigits (20131022202028)  (17.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1452 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1452 deploy] Migrating to CreateFeatures (20131206172923)  (17.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1452 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1452 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1452 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1452 deploy] Migrating to CreateRoots (20140219183820)  (17.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1452 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1452 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1452 [["name", "switchman_test_shard_1452"]] [shard 1451 master]  (1.2ms) COMMIT [shard 1451 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1451 master]  (0.1ms) BEGIN [shard 1451 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1451 master]  (0.2ms) COMMIT [shard 1451 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1453 [shard 1453 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1453 deploy]  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1453 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1453 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1453 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1453 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1453 deploy]  (0.3ms) COMMIT [shard 1453 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1453 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1453 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1453 deploy]  (0.3ms) COMMIT [shard 1453 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1453 deploy]  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1453 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1453 deploy]  (0.4ms) COMMIT [shard 1453 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 1453 deploy]  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1453 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1453 deploy]  (0.4ms) COMMIT [shard 1453 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1453 deploy]  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1453 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1453 deploy]  (0.4ms) COMMIT [shard 1453 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 1453 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1453 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1453 deploy]  (0.3ms) COMMIT [shard 1453 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1453 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1453 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1453 deploy]  (0.4ms) COMMIT [shard 1453 deploy]  (0.1ms) BEGIN [shard 1451 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1453 [["name", "switchman_test_shard_1453"]] [shard 1451 master]  (0.3ms) COMMIT [shard 1451 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1451 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1451 master]  (0.1ms) BEGIN [shard 1451 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1451 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1451]] [shard 1451 master]  (0.3ms) COMMIT [shard 1451 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1451 master]  (0.1ms) BEGIN [shard 1451 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1452], ["name", "switchman_test_shard_1452"]] [shard 1451 master]  (0.3ms) COMMIT [shard 1451 master]  (0.1ms) BEGIN [shard 1451 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1453], ["name", "switchman_test_shard_1453"]] [shard 1451 master]  (0.3ms) COMMIT [shard 1451 master]  (0.1ms) BEGIN [shard 1451 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1451 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1452]] [shard 1451 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1453]] [shard 1451 master]  (0.1ms) BEGIN [shard 1453 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (NOT ((id>=1451 AND id<1452))) [shard 1451 master]  (0.1ms) ROLLBACK [shard 1453 master]  (0.1ms) ROLLBACK [shard 1451 master]  (0.1ms) BEGIN [shard 1451 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1451 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1452]] [shard 1451 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1453]] [shard 1451 master]  (0.1ms) BEGIN [shard 1453 master]  (0.1ms) ROLLBACK [shard 1453 master]  (0.1ms) ROLLBACK [shard 1451 master]  (0.1ms) BEGIN [shard 1451 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1451 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1452]] [shard 1451 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1453]] [shard 1451 master]  (0.1ms) BEGIN [shard 1453 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (NOT ((id>=1451 AND id<=1452))) ORDER BY "switchman_shards"."id" ASC [shard 1451 master]  (0.1ms) ROLLBACK [shard 1453 master]  (0.1ms) ROLLBACK [shard 1451 master]  (0.1ms) BEGIN [shard 1451 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1451 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1452]] [shard 1451 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1453]] [shard 1451 master]  (0.1ms) BEGIN [shard 1453 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1451)) [shard 1451 master]  (0.1ms) ROLLBACK [shard 1453 master]  (0.1ms) ROLLBACK [shard 1451 master]  (0.1ms) BEGIN [shard 1451 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1451 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1452]] [shard 1451 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1453]] [shard 1451 master]  (0.1ms) BEGIN [shard 1453 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1451)) [shard 1451 master]  (0.1ms) ROLLBACK [shard 1453 master]  (0.1ms) ROLLBACK [shard 1451 master]  (0.1ms) BEGIN [shard 1451 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1451 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1452]] [shard 1451 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1453]] [shard 1451 master]  (0.1ms) BEGIN [shard 1453 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (NOT ((id>=1451 AND id<=1452))) AND (id NOT IN (1451)) [shard 1451 master]  (0.1ms) ROLLBACK [shard 1453 master]  (0.1ms) ROLLBACK [shard 1451 master] SQL (15.5ms) DELETE FROM "switchman_shards" [shard 1451 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1451 master]  (4.5ms) DROP SCHEMA switchman_test_shard_1452 CASCADE [shard 1452 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1452]]  (0.1ms) COMMIT  (4.8ms) DROP SCHEMA switchman_test_shard_1453 CASCADE [shard 1453 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1453]]  (0.1ms) COMMIT  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.4ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (15.7ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1455 [shard 1455 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1455 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1455 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1455 deploy] Migrating to CreateUsers (20130403132607)  (28.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1455 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1455 deploy] Migrating to CreateAppendages (20130411202442)  (31.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1455 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1455 deploy] Migrating to CreateMirrorUsers (20130411202551)  (17.3ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1455 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1455 deploy] Migrating to CreateDigits (20131022202028)  (231.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1455 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1455 deploy] Migrating to CreateFeatures (20131206172923)  (17.4ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1455 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1455 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1455 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1455 deploy] Migrating to CreateRoots (20140219183820)  (17.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1455 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1455 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1455 [["name", "switchman_test_shard_1455"]] [shard 1454 master]  (0.8ms) COMMIT [shard 1454 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1454 master]  (0.1ms) BEGIN [shard 1454 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1454 master]  (0.4ms) COMMIT [shard 1454 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1456 [shard 1456 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1456 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1456 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1456 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1456 deploy]  (3.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1456 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1456 deploy]  (0.4ms) COMMIT [shard 1456 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1456 deploy]  (2.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1456 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1456 deploy]  (0.3ms) COMMIT [shard 1456 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1456 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1456 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1456 deploy]  (0.4ms) COMMIT [shard 1456 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1456 deploy]  (4.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1456 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1456 deploy]  (0.5ms) COMMIT [shard 1456 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1456 deploy]  (2.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1456 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1456 deploy]  (0.4ms) COMMIT [shard 1456 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 1456 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1456 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1456 deploy]  (0.3ms) COMMIT [shard 1456 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1456 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1456 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1456 deploy]  (0.4ms) COMMIT [shard 1456 deploy]  (0.1ms) BEGIN [shard 1454 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1456 [["name", "switchman_test_shard_1456"]] [shard 1454 master]  (0.4ms) COMMIT [shard 1454 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1454 master]  (0.1ms) BEGIN [shard 1454 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1454]] [shard 1454 master]  (0.3ms) COMMIT [shard 1454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1454 master]  (0.1ms) BEGIN [shard 1454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1455], ["name", "switchman_test_shard_1455"]] [shard 1454 master]  (0.2ms) COMMIT [shard 1454 master]  (0.1ms) BEGIN [shard 1454 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1456], ["name", "switchman_test_shard_1456"]] [shard 1454 master]  (0.3ms) COMMIT [shard 1454 master]  (0.1ms) BEGIN [shard 1454 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1455]] [shard 1454 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1456]] [shard 1454 master]  (0.1ms) BEGIN [shard 1456 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 1454 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (NOT ((id>=1454 AND id<1455))) [shard 1454 master]  (0.4ms) ROLLBACK [shard 1456 master]  (0.3ms) ROLLBACK [shard 1454 master] SQL (15.6ms) DELETE FROM "switchman_shards" [shard 1454 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1454 master]  (5.1ms) DROP SCHEMA switchman_test_shard_1455 CASCADE [shard 1455 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1455]]  (0.2ms) COMMIT  (5.1ms) DROP SCHEMA switchman_test_shard_1456 CASCADE [shard 1456 deploy]  (0.4ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1456]]  (0.1ms) COMMIT  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (15.6ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1458 [shard 1458 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1458 deploy]  (16.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1458 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1458 deploy] Migrating to CreateUsers (20130403132607)  (17.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1458 deploy] SQL (15.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1458 deploy] Migrating to CreateAppendages (20130411202442)  (17.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1458 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1458 deploy] Migrating to CreateMirrorUsers (20130411202551)  (17.3ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1458 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1458 deploy] Migrating to CreateDigits (20131022202028)  (17.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1458 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1458 deploy] Migrating to CreateFeatures (20131206172923)  (17.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1458 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1458 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1458 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1458 deploy] Migrating to CreateRoots (20140219183820)  (17.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1458 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1458 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1458 [["name", "switchman_test_shard_1458"]] [shard 1457 master]  (1.0ms) COMMIT [shard 1457 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1457 master]  (0.1ms) BEGIN [shard 1457 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1457 master]  (0.3ms) COMMIT [shard 1457 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1459 [shard 1459 deploy]  (2.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1459 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1459 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1459 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1459 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1459 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1459 deploy]  (0.3ms) COMMIT [shard 1459 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 1459 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1459 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1459 deploy]  (0.4ms) COMMIT [shard 1459 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1459 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1459 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1459 deploy]  (0.3ms) COMMIT [shard 1459 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 1459 deploy]  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1459 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1459 deploy]  (0.3ms) COMMIT [shard 1459 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 1459 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1459 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1459 deploy]  (0.3ms) COMMIT [shard 1459 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1459 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1459 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1459 deploy]  (0.3ms) COMMIT [shard 1459 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1459 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1459 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1459 deploy]  (0.3ms) COMMIT [shard 1459 deploy]  (0.1ms) BEGIN [shard 1457 master] SQL (0.1ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1459 [["name", "switchman_test_shard_1459"]] [shard 1457 master]  (0.2ms) COMMIT [shard 1457 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1457 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1457 master]  (0.1ms) BEGIN [shard 1457 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1457 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1457]] [shard 1457 master]  (0.3ms) COMMIT [shard 1457 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1457 master]  (0.1ms) BEGIN [shard 1457 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1458], ["name", "switchman_test_shard_1458"]] [shard 1457 master]  (0.2ms) COMMIT [shard 1457 master]  (0.1ms) BEGIN [shard 1457 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1459], ["name", "switchman_test_shard_1459"]] [shard 1457 master]  (0.2ms) COMMIT [shard 1457 master]  (0.1ms) BEGIN [shard 1457 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1457 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1458]] [shard 1457 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1459]] [shard 1457 master]  (0.1ms) BEGIN [shard 1459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1457 AND id<1458)) [shard 1457 master]  (0.1ms) ROLLBACK [shard 1459 master]  (0.1ms) ROLLBACK [shard 1457 master]  (0.1ms) BEGIN [shard 1457 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1457 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1458]] [shard 1457 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1459]] [shard 1457 master]  (0.1ms) BEGIN [shard 1459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1457)) [shard 1457 master]  (0.1ms) ROLLBACK [shard 1459 master]  (0.1ms) ROLLBACK [shard 1457 master]  (0.1ms) BEGIN [shard 1457 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1457 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1458]] [shard 1457 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1459]] [shard 1457 master]  (0.1ms) BEGIN [shard 1459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1457)) [shard 1457 master]  (0.1ms) ROLLBACK [shard 1459 master]  (0.1ms) ROLLBACK [shard 1457 master]  (0.1ms) BEGIN [shard 1457 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1457 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1458]] [shard 1457 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1459]] [shard 1457 master]  (0.1ms) BEGIN [shard 1459 master]  (0.1ms) ROLLBACK [shard 1459 master]  (0.1ms) ROLLBACK [shard 1457 master]  (0.1ms) BEGIN [shard 1457 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1457 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1458]] [shard 1457 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1459]] [shard 1457 master]  (0.1ms) BEGIN [shard 1459 master]  (0.1ms) ROLLBACK [shard 1459 master]  (0.1ms) ROLLBACK [shard 1457 master]  (0.1ms) BEGIN [shard 1457 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1457 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1458]] [shard 1457 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1459]] [shard 1457 master]  (0.1ms) BEGIN [shard 1459 master]  (0.1ms) ROLLBACK [shard 1459 master]  (0.1ms) ROLLBACK [shard 1457 master] SQL (15.5ms) DELETE FROM "switchman_shards" [shard 1457 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1457 master]  (20.2ms) DROP SCHEMA switchman_test_shard_1458 CASCADE [shard 1458 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1458]]  (0.1ms) COMMIT  (6.7ms) DROP SCHEMA switchman_test_shard_1459 CASCADE [shard 1459 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1459]]  (0.1ms) COMMIT  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (6.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1461 [shard 1461 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1461 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1461 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1461 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1461 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1461 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1461 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1461 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1461 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1461 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1461 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1461 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1461 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1461 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1461 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1461 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1461 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1461 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1461 [["name", "switchman_test_shard_1461"]] [shard 1460 master]  (0.6ms) COMMIT [shard 1460 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1460 master]  (0.1ms) BEGIN [shard 1460 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1460 master]  (0.3ms) COMMIT [shard 1460 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1462 [shard 1462 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1462 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1462 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1462 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1462 deploy]  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1462 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1462 deploy]  (0.3ms) COMMIT [shard 1462 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1462 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1462 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1462 deploy]  (0.3ms) COMMIT [shard 1462 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1462 deploy]  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1462 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1462 deploy]  (0.3ms) COMMIT [shard 1462 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1462 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1462 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1462 deploy]  (0.4ms) COMMIT [shard 1462 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1462 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1462 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1462 deploy]  (0.3ms) COMMIT [shard 1462 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1462 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1462 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1462 deploy]  (0.3ms) COMMIT [shard 1462 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1462 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1462 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1462 deploy]  (0.3ms) COMMIT [shard 1462 deploy]  (0.1ms) BEGIN [shard 1460 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1462 [["name", "switchman_test_shard_1462"]] [shard 1460 master]  (0.3ms) COMMIT [shard 1460 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1460 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1460 master]  (0.1ms) BEGIN [shard 1460 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1460 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1460]] [shard 1460 master]  (0.3ms) COMMIT [shard 1460 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1460 master]  (0.1ms) BEGIN [shard 1460 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1461], ["name", "switchman_test_shard_1461"]] [shard 1460 master]  (0.2ms) COMMIT [shard 1460 master]  (0.1ms) BEGIN [shard 1460 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1462], ["name", "switchman_test_shard_1462"]] [shard 1460 master]  (0.3ms) COMMIT [shard 1460 master]  (0.1ms) BEGIN [shard 1460 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1460 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1461]] [shard 1460 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1462]] [shard 1460 master]  (0.1ms) BEGIN [shard 1462 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1460 AND id<=1461)) AND (id NOT IN (1460)) [shard 1460 master]  (0.1ms) ROLLBACK [shard 1462 master]  (0.1ms) ROLLBACK [shard 1460 master]  (0.1ms) BEGIN [shard 1460 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1460 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1461]] [shard 1460 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1462]] [shard 1460 master]  (0.1ms) BEGIN [shard 1462 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1460)) [shard 1460 master]  (0.1ms) ROLLBACK [shard 1462 master]  (0.1ms) ROLLBACK [shard 1460 master]  (0.1ms) BEGIN [shard 1460 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1460 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1461]] [shard 1460 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1462]] [shard 1460 master]  (0.1ms) BEGIN [shard 1462 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1460)) [shard 1460 master]  (0.1ms) ROLLBACK [shard 1462 master]  (0.1ms) ROLLBACK [shard 1460 master]  (0.1ms) BEGIN [shard 1460 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1460 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1461]] [shard 1460 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1462]] [shard 1460 master]  (0.1ms) BEGIN [shard 1462 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1460 AND id<=1461)) ORDER BY "switchman_shards"."id" ASC [shard 1460 master]  (0.1ms) ROLLBACK [shard 1462 master]  (0.1ms) ROLLBACK [shard 1460 master]  (0.1ms) BEGIN [shard 1460 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1460 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1461]] [shard 1460 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1462]] [shard 1460 master]  (0.1ms) BEGIN [shard 1462 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1460 AND id<1461)) [shard 1460 master]  (0.1ms) ROLLBACK [shard 1462 master]  (0.1ms) ROLLBACK [shard 1460 master]  (0.1ms) BEGIN [shard 1460 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1460 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1461]] [shard 1460 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1462]] [shard 1460 master]  (0.1ms) BEGIN [shard 1462 master]  (0.1ms) ROLLBACK [shard 1462 master]  (0.1ms) ROLLBACK [shard 1460 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1460 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1460 master]  (4.5ms) DROP SCHEMA switchman_test_shard_1461 CASCADE [shard 1461 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1461]]  (0.1ms) COMMIT  (5.4ms) DROP SCHEMA switchman_test_shard_1462 CASCADE [shard 1462 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1462]]  (0.1ms) COMMIT  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (15.5ms) COMMIT Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1464 [shard 1464 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1464 deploy]  (16.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1464 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1464 deploy] Migrating to CreateUsers (20130403132607)  (17.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1464 deploy] SQL (15.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1464 deploy] Migrating to CreateAppendages (20130411202442)  (17.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1464 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1464 deploy] Migrating to CreateMirrorUsers (20130411202551)  (17.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1464 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1464 deploy] Migrating to CreateDigits (20131022202028)  (17.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1464 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1464 deploy] Migrating to CreateFeatures (20131206172923)  (17.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1464 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1464 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1464 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1464 deploy] Migrating to CreateRoots (20140219183820)  (18.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1464 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1464 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1464 [["name", "switchman_test_shard_1464"]] [shard 1463 master]  (0.8ms) COMMIT [shard 1463 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1463 master]  (0.1ms) BEGIN [shard 1463 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1463 master]  (0.2ms) COMMIT [shard 1463 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1465 [shard 1465 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1465 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1465 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1465 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1465 deploy]  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1465 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1465 deploy]  (0.4ms) COMMIT [shard 1465 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1465 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1465 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1465 deploy]  (0.4ms) COMMIT [shard 1465 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1465 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1465 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1465 deploy]  (0.4ms) COMMIT [shard 1465 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1465 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1465 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1465 deploy]  (0.4ms) COMMIT [shard 1465 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1465 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1465 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1465 deploy]  (0.3ms) COMMIT [shard 1465 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1465 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1465 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1465 deploy]  (0.2ms) COMMIT [shard 1465 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1465 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1465 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1465 deploy]  (0.4ms) COMMIT [shard 1465 deploy]  (0.1ms) BEGIN [shard 1463 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1465 [["name", "switchman_test_shard_1465"]] [shard 1463 master]  (0.3ms) COMMIT [shard 1463 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1463 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1463 master]  (0.1ms) BEGIN [shard 1463 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1463 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1463]] [shard 1463 master]  (0.3ms) COMMIT [shard 1463 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1463 master]  (0.1ms) BEGIN [shard 1463 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1464], ["name", "switchman_test_shard_1464"]] [shard 1463 master]  (0.3ms) COMMIT [shard 1463 master]  (0.1ms) BEGIN [shard 1463 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1465], ["name", "switchman_test_shard_1465"]] [shard 1463 master]  (0.3ms) COMMIT [shard 1463 master]  (0.1ms) BEGIN [shard 1463 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1463 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1464]] [shard 1463 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1465]] [shard 1463 master]  (0.1ms) BEGIN [shard 1465 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1463 AND id<1464)) [shard 1463 master]  (0.1ms) ROLLBACK [shard 1465 master]  (0.1ms) ROLLBACK [shard 1463 master]  (0.1ms) BEGIN [shard 1463 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1463 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1464]] [shard 1463 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1465]] [shard 1463 master]  (0.1ms) BEGIN [shard 1465 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1463)) [shard 1463 master]  (0.1ms) ROLLBACK [shard 1465 master]  (0.1ms) ROLLBACK [shard 1463 master]  (0.1ms) BEGIN [shard 1463 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1463 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1464]] [shard 1463 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1465]] [shard 1463 master]  (0.1ms) BEGIN [shard 1465 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" WHERE (id NOT IN (1463)) [shard 1463 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1463 master]  (0.1ms) ROLLBACK [shard 1465 master]  (0.1ms) ROLLBACK [shard 1463 master]  (0.1ms) BEGIN [shard 1463 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1463 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1464]] [shard 1463 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1465]] [shard 1463 master]  (0.1ms) BEGIN [shard 1465 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1463 AND id<=1464)) AND (id NOT IN (1463)) [shard 1463 master]  (0.1ms) ROLLBACK [shard 1465 master]  (0.1ms) ROLLBACK [shard 1463 master]  (0.1ms) BEGIN [shard 1463 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1463 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1464]] [shard 1463 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1465]] [shard 1463 master]  (0.1ms) BEGIN [shard 1465 master]  (0.1ms) ROLLBACK [shard 1465 master]  (0.1ms) ROLLBACK [shard 1463 master]  (0.1ms) BEGIN [shard 1463 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1463 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1464]] [shard 1463 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1465]] [shard 1463 master]  (0.1ms) BEGIN [shard 1465 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1463 AND id<=1464)) ORDER BY "switchman_shards"."id" ASC [shard 1463 master]  (0.1ms) ROLLBACK [shard 1465 master]  (0.1ms) ROLLBACK [shard 1463 master]  (0.1ms) BEGIN [shard 1463 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1463 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1464]] [shard 1463 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1465]] [shard 1463 master]  (0.1ms) BEGIN [shard 1465 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1463)) [shard 1463 master]  (0.1ms) ROLLBACK [shard 1465 master]  (0.1ms) ROLLBACK [shard 1463 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1463 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1463 master]  (4.6ms) DROP SCHEMA switchman_test_shard_1464 CASCADE [shard 1464 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1464]]  (0.1ms) COMMIT  (5.2ms) DROP SCHEMA switchman_test_shard_1465 CASCADE [shard 1465 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1465]]  (0.1ms) COMMIT  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.4ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (18.2ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1467 [shard 1467 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1467 deploy]  (30.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1467 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1467 deploy] Migrating to CreateUsers (20130403132607)  (30.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1467 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1467 deploy] Migrating to CreateAppendages (20130411202442)  (17.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1467 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1467 deploy] Migrating to CreateMirrorUsers (20130411202551)  (17.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1467 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1467 deploy] Migrating to CreateDigits (20131022202028)  (18.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1467 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1467 deploy] Migrating to CreateFeatures (20131206172923)  (18.4ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1467 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1467 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1467 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1467 deploy] Migrating to CreateRoots (20140219183820)  (17.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1467 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1467 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1467 [["name", "switchman_test_shard_1467"]] [shard 1466 master]  (0.7ms) COMMIT [shard 1466 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1466 master]  (0.1ms) BEGIN [shard 1466 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1466 master]  (0.4ms) COMMIT [shard 1466 master]  (0.8ms) CREATE SCHEMA switchman_test_shard_1468 [shard 1468 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1468 deploy]  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1468 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1468 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1468 deploy]  (2.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1468 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1468 deploy]  (0.3ms) COMMIT [shard 1468 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 1468 deploy]  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1468 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1468 deploy]  (0.4ms) COMMIT [shard 1468 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.3ms) BEGIN [shard 1468 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1468 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1468 deploy]  (0.4ms) COMMIT [shard 1468 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 1468 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1468 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1468 deploy]  (0.4ms) COMMIT [shard 1468 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1468 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1468 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1468 deploy]  (0.3ms) COMMIT [shard 1468 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1468 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1468 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1468 deploy]  (0.3ms) COMMIT [shard 1468 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1468 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1468 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1468 deploy]  (0.4ms) COMMIT [shard 1468 deploy]  (0.1ms) BEGIN [shard 1466 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1468 [["name", "switchman_test_shard_1468"]] [shard 1466 master]  (0.4ms) COMMIT [shard 1466 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1466 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1466 master]  (0.1ms) BEGIN [shard 1466 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1466 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1466]] [shard 1466 master]  (0.3ms) COMMIT [shard 1466 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1466 master]  (0.1ms) BEGIN [shard 1466 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1467], ["name", "switchman_test_shard_1467"]] [shard 1466 master]  (0.3ms) COMMIT [shard 1466 master]  (0.1ms) BEGIN [shard 1466 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1468], ["name", "switchman_test_shard_1468"]] [shard 1466 master]  (0.3ms) COMMIT [shard 1466 master]  (0.1ms) BEGIN [shard 1466 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1466 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1467]] [shard 1466 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1468]] [shard 1466 master]  (0.1ms) BEGIN [shard 1468 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1466 AND id<=1467)) ORDER BY "switchman_shards"."id" ASC [shard 1466 master]  (0.1ms) ROLLBACK [shard 1468 master]  (0.1ms) ROLLBACK [shard 1466 master]  (0.1ms) BEGIN [shard 1466 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1466 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1467]] [shard 1466 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1468]] [shard 1466 master]  (0.1ms) BEGIN [shard 1468 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1466 AND id<1467)) [shard 1466 master]  (0.1ms) ROLLBACK [shard 1468 master]  (0.1ms) ROLLBACK [shard 1466 master]  (0.1ms) BEGIN [shard 1466 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1466 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1467]] [shard 1466 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1468]] [shard 1466 master]  (0.1ms) BEGIN [shard 1468 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1466)) [shard 1466 master]  (0.1ms) ROLLBACK [shard 1468 master]  (0.1ms) ROLLBACK [shard 1466 master]  (0.1ms) BEGIN [shard 1466 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1466 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1467]] [shard 1466 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1468]] [shard 1466 master]  (0.1ms) BEGIN [shard 1468 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1466 AND id<=1467)) AND (id NOT IN (1466)) [shard 1466 master]  (0.1ms) ROLLBACK [shard 1468 master]  (0.1ms) ROLLBACK [shard 1466 master]  (0.2ms) BEGIN [shard 1466 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1466 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1467]] [shard 1466 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1468]] [shard 1466 master]  (0.1ms) BEGIN [shard 1468 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1466)) [shard 1466 master]  (0.1ms) ROLLBACK [shard 1468 master]  (0.1ms) ROLLBACK [shard 1466 master]  (0.1ms) BEGIN [shard 1466 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1466 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1467]] [shard 1466 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1468]] [shard 1466 master]  (0.1ms) BEGIN [shard 1468 master]  (0.1ms) ROLLBACK [shard 1468 master]  (0.1ms) ROLLBACK [shard 1466 master]  (0.1ms) BEGIN [shard 1466 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1466 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1467]] [shard 1466 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1468]] [shard 1466 master]  (0.1ms) BEGIN [shard 1468 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1466)) [shard 1466 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1466 master]  (0.1ms) ROLLBACK [shard 1468 master]  (0.1ms) ROLLBACK [shard 1466 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1466 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1466 master]  (4.4ms) DROP SCHEMA switchman_test_shard_1467 CASCADE [shard 1467 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1467]]  (0.1ms) COMMIT  (5.3ms) DROP SCHEMA switchman_test_shard_1468 CASCADE [shard 1468 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1468]]  (0.1ms) COMMIT  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.4ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (15.9ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1470 [shard 1470 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1470 deploy]  (16.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1470 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1470 deploy] Migrating to CreateUsers (20130403132607)  (18.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1470 deploy] SQL (15.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1470 deploy] Migrating to CreateAppendages (20130411202442)  (18.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1470 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1470 deploy] Migrating to CreateMirrorUsers (20130411202551)  (17.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1470 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1470 deploy] Migrating to CreateDigits (20131022202028)  (18.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1470 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1470 deploy] Migrating to CreateFeatures (20131206172923)  (17.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1470 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1470 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1470 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1470 deploy] Migrating to CreateRoots (20140219183820)  (17.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1470 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1470 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1470 [["name", "switchman_test_shard_1470"]] [shard 1469 master]  (0.7ms) COMMIT [shard 1469 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1469 master]  (0.1ms) BEGIN [shard 1469 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1469 master]  (0.3ms) COMMIT [shard 1469 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1471 [shard 1471 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1471 deploy]  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1471 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1471 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1471 deploy]  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1471 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1471 deploy]  (0.4ms) COMMIT [shard 1471 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1471 deploy]  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1471 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1471 deploy]  (0.3ms) COMMIT [shard 1471 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1471 deploy]  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1471 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1471 deploy]  (0.4ms) COMMIT [shard 1471 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1471 deploy]  (2.3ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1471 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1471 deploy]  (0.4ms) COMMIT [shard 1471 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1471 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1471 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1471 deploy]  (0.3ms) COMMIT [shard 1471 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1471 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1471 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1471 deploy]  (0.3ms) COMMIT [shard 1471 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1471 deploy]  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1471 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1471 deploy]  (0.3ms) COMMIT [shard 1471 deploy]  (0.1ms) BEGIN [shard 1469 master] SQL (0.1ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1471 [["name", "switchman_test_shard_1471"]] [shard 1469 master]  (0.3ms) COMMIT [shard 1469 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1469 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1469 master]  (0.1ms) BEGIN [shard 1469 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1469 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1469]] [shard 1469 master]  (0.3ms) COMMIT [shard 1469 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1469 master]  (0.1ms) BEGIN [shard 1469 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1470], ["name", "switchman_test_shard_1470"]] [shard 1469 master]  (0.3ms) COMMIT [shard 1469 master]  (0.1ms) BEGIN [shard 1469 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1471], ["name", "switchman_test_shard_1471"]] [shard 1469 master]  (0.2ms) COMMIT [shard 1469 master]  (0.1ms) BEGIN [shard 1469 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1469 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1470]] [shard 1469 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1471]] [shard 1469 master]  (0.1ms) BEGIN [shard 1471 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1469 AND id<=1470) OR (id>=1471 AND id<=1472)) ORDER BY "switchman_shards"."id" ASC [shard 1469 master]  (0.1ms) ROLLBACK [shard 1471 master]  (0.1ms) ROLLBACK [shard 1469 master]  (0.1ms) BEGIN [shard 1469 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1469 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1470]] [shard 1469 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1471]] [shard 1469 master]  (0.1ms) BEGIN [shard 1471 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1469 AND id<1470)) [shard 1469 master]  (0.1ms) ROLLBACK [shard 1471 master]  (0.1ms) ROLLBACK [shard 1469 master]  (0.1ms) BEGIN [shard 1469 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1469 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1470]] [shard 1469 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1471]] [shard 1469 master]  (0.1ms) BEGIN [shard 1471 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1469)) [shard 1469 master]  (0.1ms) ROLLBACK [shard 1471 master]  (0.1ms) ROLLBACK [shard 1469 master]  (0.1ms) BEGIN [shard 1469 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1469 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1470]] [shard 1469 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1471]] [shard 1469 master]  (0.1ms) BEGIN [shard 1471 master] Switchman::Shard Load (15.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1469 AND id<=1470)) AND (id NOT IN (1469)) [shard 1469 master]  (0.1ms) ROLLBACK [shard 1471 master]  (0.1ms) ROLLBACK [shard 1469 master]  (0.1ms) BEGIN [shard 1469 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1469 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1470]] [shard 1469 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1471]] [shard 1469 master]  (0.1ms) BEGIN [shard 1471 master]  (0.1ms) ROLLBACK [shard 1471 master]  (0.1ms) ROLLBACK [shard 1469 master]  (0.1ms) BEGIN [shard 1469 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1469 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1470]] [shard 1469 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1471]] [shard 1469 master]  (0.1ms) BEGIN [shard 1471 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1469)) [shard 1469 master]  (0.1ms) ROLLBACK [shard 1471 master]  (0.1ms) ROLLBACK [shard 1469 master]  (0.1ms) BEGIN [shard 1469 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1469 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1470]] [shard 1469 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1471]] [shard 1469 master]  (0.1ms) BEGIN [shard 1471 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1469)) [shard 1469 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1469 master]  (0.1ms) ROLLBACK [shard 1471 master]  (0.1ms) ROLLBACK [shard 1469 master]  (0.1ms) BEGIN [shard 1469 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1469 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1470]] [shard 1469 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1471]] [shard 1469 master]  (0.1ms) BEGIN [shard 1471 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1469 AND id<=1470)) ORDER BY "switchman_shards"."id" ASC [shard 1469 master]  (0.1ms) ROLLBACK [shard 1471 master]  (0.1ms) ROLLBACK [shard 1469 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1469 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1469 master]  (4.4ms) DROP SCHEMA switchman_test_shard_1470 CASCADE [shard 1470 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1470]]  (0.1ms) COMMIT  (4.8ms) DROP SCHEMA switchman_test_shard_1471 CASCADE [shard 1471 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1471]]  (0.1ms) COMMIT  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.2ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (16.2ms) COMMIT Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1473 [shard 1473 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1473 deploy]  (16.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1473 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1473 deploy] Migrating to CreateUsers (20130403132607)  (18.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1473 deploy] SQL (15.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1473 deploy] Migrating to CreateAppendages (20130411202442)  (17.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1473 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1473 deploy] Migrating to CreateMirrorUsers (20130411202551)  (17.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1473 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1473 deploy] Migrating to CreateDigits (20131022202028)  (18.3ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1473 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1473 deploy] Migrating to CreateFeatures (20131206172923)  (17.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1473 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1473 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1473 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1473 deploy] Migrating to CreateRoots (20140219183820)  (17.3ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1473 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1473 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1473 [["name", "switchman_test_shard_1473"]] [shard 1472 master]  (0.8ms) COMMIT [shard 1472 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1472 master]  (0.1ms) BEGIN [shard 1472 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1472 master]  (0.4ms) COMMIT [shard 1472 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1474 [shard 1474 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1474 deploy]  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1474 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1474 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1474 deploy]  (2.6ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1474 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1474 deploy]  (0.3ms) COMMIT [shard 1474 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1474 deploy]  (2.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1474 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1474 deploy]  (0.3ms) COMMIT [shard 1474 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1474 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1474 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1474 deploy]  (0.4ms) COMMIT [shard 1474 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 1474 deploy]  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1474 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1474 deploy]  (0.4ms) COMMIT [shard 1474 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1474 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1474 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1474 deploy]  (0.4ms) COMMIT [shard 1474 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1474 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1474 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1474 deploy]  (0.3ms) COMMIT [shard 1474 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1474 deploy]  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1474 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1474 deploy]  (0.4ms) COMMIT [shard 1474 deploy]  (0.1ms) BEGIN [shard 1472 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1474 [["name", "switchman_test_shard_1474"]] [shard 1472 master]  (0.3ms) COMMIT [shard 1472 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1472 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1472 master]  (0.1ms) BEGIN [shard 1472 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1472 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1472]] [shard 1472 master]  (0.3ms) COMMIT [shard 1472 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1472 master]  (0.1ms) BEGIN [shard 1472 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1473], ["name", "switchman_test_shard_1473"]] [shard 1472 master]  (0.3ms) COMMIT [shard 1472 master]  (0.1ms) BEGIN [shard 1472 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1474], ["name", "switchman_test_shard_1474"]] [shard 1472 master]  (0.3ms) COMMIT [shard 1472 master]  (0.1ms) BEGIN [shard 1472 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1472 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1473]] [shard 1472 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1474]] [shard 1472 master]  (0.1ms) BEGIN [shard 1474 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1472 AND id<=1473)) ORDER BY "switchman_shards"."id" ASC [shard 1472 master]  (0.1ms) ROLLBACK [shard 1474 master]  (0.1ms) ROLLBACK [shard 1472 master]  (0.1ms) BEGIN [shard 1472 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1472 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1473]] [shard 1472 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1474]] [shard 1472 master]  (0.1ms) BEGIN [shard 1474 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1472 AND id<=1473)) AND (id NOT IN (1472)) [shard 1472 master]  (0.1ms) ROLLBACK [shard 1474 master]  (0.1ms) ROLLBACK [shard 1472 master]  (0.1ms) BEGIN [shard 1472 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1472 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1473]] [shard 1472 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1474]] [shard 1472 master]  (0.1ms) BEGIN [shard 1474 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1472 AND id<1473)) [shard 1472 master]  (0.1ms) ROLLBACK [shard 1474 master]  (0.1ms) ROLLBACK [shard 1472 master]  (0.1ms) BEGIN [shard 1472 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1472 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1473]] [shard 1472 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1474]] [shard 1472 master]  (0.1ms) BEGIN [shard 1474 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1472)) [shard 1472 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1472 master]  (0.1ms) ROLLBACK [shard 1474 master]  (0.1ms) ROLLBACK [shard 1472 master]  (0.1ms) BEGIN [shard 1472 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1472 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1473]] [shard 1472 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1474]] [shard 1472 master]  (0.1ms) BEGIN [shard 1474 master]  (0.1ms) ROLLBACK [shard 1474 master]  (0.1ms) ROLLBACK [shard 1472 master]  (0.1ms) BEGIN [shard 1472 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1472 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1473]] [shard 1472 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1474]] [shard 1472 master]  (0.1ms) BEGIN [shard 1474 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1472)) [shard 1472 master]  (0.1ms) ROLLBACK [shard 1474 master]  (0.1ms) ROLLBACK [shard 1472 master]  (0.1ms) BEGIN [shard 1472 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1472 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1473]] [shard 1472 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1474]] [shard 1472 master]  (0.1ms) BEGIN [shard 1474 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1472)) [shard 1472 master]  (0.1ms) ROLLBACK [shard 1474 master]  (0.1ms) ROLLBACK [shard 1472 master]  (0.2ms) BEGIN [shard 1472 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1472 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1473]] [shard 1472 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1474]] [shard 1472 master]  (0.1ms) BEGIN [shard 1474 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1472 AND id<1473) OR (id>=1474 AND id<1475)) ORDER BY "switchman_shards"."id" ASC [shard 1472 master]  (0.1ms) ROLLBACK [shard 1474 master]  (0.1ms) ROLLBACK [shard 1472 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1472 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1472 master]  (4.5ms) DROP SCHEMA switchman_test_shard_1473 CASCADE [shard 1473 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1473]]  (0.1ms) COMMIT  (5.6ms) DROP SCHEMA switchman_test_shard_1474 CASCADE [shard 1474 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1474]]  (0.1ms) COMMIT  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (15.6ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1476 [shard 1476 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1476 deploy]  (16.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1476 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1476 deploy] Migrating to CreateUsers (20130403132607)  (17.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1476 deploy] SQL (14.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1476 deploy] Migrating to CreateAppendages (20130411202442)  (17.3ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1476 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1476 deploy] Migrating to CreateMirrorUsers (20130411202551)  (17.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1476 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1476 deploy] Migrating to CreateDigits (20131022202028)  (17.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1476 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1476 deploy] Migrating to CreateFeatures (20131206172923)  (17.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1476 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1476 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1476 deploy] SQL (26.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1476 deploy] Migrating to CreateRoots (20140219183820)  (17.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1476 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1476 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1476 [["name", "switchman_test_shard_1476"]] [shard 1475 master]  (1.1ms) COMMIT [shard 1475 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1475 master]  (0.1ms) BEGIN [shard 1475 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1475 master]  (0.3ms) COMMIT [shard 1475 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1477 [shard 1477 deploy]  (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1477 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1477 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1477 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1477 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1477 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1477 deploy]  (0.3ms) COMMIT [shard 1477 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1477 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1477 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1477 deploy]  (0.4ms) COMMIT [shard 1477 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1477 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1477 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1477 deploy]  (0.4ms) COMMIT [shard 1477 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1477 deploy]  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1477 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1477 deploy]  (0.4ms) COMMIT [shard 1477 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1477 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1477 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1477 deploy]  (0.4ms) COMMIT [shard 1477 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1477 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1477 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1477 deploy]  (0.2ms) COMMIT [shard 1477 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1477 deploy]  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1477 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1477 deploy]  (0.3ms) COMMIT [shard 1477 deploy]  (0.1ms) BEGIN [shard 1475 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1477 [["name", "switchman_test_shard_1477"]] [shard 1475 master]  (0.3ms) COMMIT [shard 1475 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1475 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1475 master]  (0.1ms) BEGIN [shard 1475 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1475 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1475]] [shard 1475 master]  (0.4ms) COMMIT [shard 1475 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1475 master]  (0.1ms) BEGIN [shard 1475 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1476], ["name", "switchman_test_shard_1476"]] [shard 1475 master]  (0.2ms) COMMIT [shard 1475 master]  (0.1ms) BEGIN [shard 1475 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1477], ["name", "switchman_test_shard_1477"]] [shard 1475 master]  (0.2ms) COMMIT [shard 1475 master]  (0.1ms) BEGIN [shard 1475 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1475 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1476]] [shard 1475 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1477]] [shard 1475 master]  (0.1ms) BEGIN [shard 1477 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1476)) ORDER BY "switchman_shards"."id" ASC [shard 1475 master]  (0.1ms) ROLLBACK [shard 1477 master]  (0.1ms) ROLLBACK [shard 1475 master]  (0.1ms) BEGIN [shard 1475 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1475 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1476]] [shard 1475 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1477]] [shard 1475 master]  (0.1ms) BEGIN [shard 1477 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1475 AND id<=1476)) AND (id NOT IN (1475)) [shard 1475 master]  (0.1ms) ROLLBACK [shard 1477 master]  (0.1ms) ROLLBACK [shard 1475 master]  (0.1ms) BEGIN [shard 1475 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1475 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1476]] [shard 1475 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1477]] [shard 1475 master]  (0.1ms) BEGIN [shard 1477 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1475)) [shard 1475 master]  (0.1ms) ROLLBACK [shard 1477 master]  (0.1ms) ROLLBACK [shard 1475 master]  (0.1ms) BEGIN [shard 1475 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1475 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1476]] [shard 1475 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1477]] [shard 1475 master]  (0.1ms) BEGIN [shard 1477 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1475)) [shard 1475 master]  (0.1ms) ROLLBACK [shard 1477 master]  (0.1ms) ROLLBACK [shard 1475 master]  (0.1ms) BEGIN [shard 1475 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1475 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1476]] [shard 1475 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1477]] [shard 1475 master]  (0.1ms) BEGIN [shard 1477 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1475 AND id<1476) OR (id>=1477 AND id<1478)) ORDER BY "switchman_shards"."id" ASC [shard 1475 master]  (0.1ms) ROLLBACK [shard 1477 master]  (0.1ms) ROLLBACK [shard 1475 master]  (0.1ms) BEGIN [shard 1475 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1475 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1476]] [shard 1475 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1477]] [shard 1475 master]  (0.1ms) BEGIN [shard 1477 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1475)) [shard 1475 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1475 master]  (0.1ms) ROLLBACK [shard 1477 master]  (0.1ms) ROLLBACK [shard 1475 master]  (0.1ms) BEGIN [shard 1475 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1475 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1476]] [shard 1475 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1477]] [shard 1475 master]  (0.1ms) BEGIN [shard 1477 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1475 AND id<=1476)) ORDER BY "switchman_shards"."id" ASC [shard 1475 master]  (0.1ms) ROLLBACK [shard 1477 master]  (0.1ms) ROLLBACK [shard 1475 master]  (0.1ms) BEGIN [shard 1475 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1475 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1476]] [shard 1475 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1477]] [shard 1475 master]  (0.1ms) BEGIN [shard 1477 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=1476)) ORDER BY "switchman_shards"."id" ASC [shard 1475 master]  (0.1ms) ROLLBACK [shard 1477 master]  (0.1ms) ROLLBACK [shard 1475 master]  (0.1ms) BEGIN [shard 1475 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1475 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1476]] [shard 1475 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1477]] [shard 1475 master]  (0.1ms) BEGIN [shard 1477 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1475 AND id<1476)) [shard 1475 master]  (0.1ms) ROLLBACK [shard 1477 master]  (0.1ms) ROLLBACK [shard 1475 master]  (0.1ms) BEGIN [shard 1475 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1475 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1476]] [shard 1475 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1477]] [shard 1475 master]  (0.1ms) BEGIN [shard 1477 master]  (0.1ms) ROLLBACK [shard 1477 master]  (0.1ms) ROLLBACK [shard 1475 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1475 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1475 master]  (4.3ms) DROP SCHEMA switchman_test_shard_1476 CASCADE [shard 1476 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1476]]  (0.1ms) COMMIT  (4.7ms) DROP SCHEMA switchman_test_shard_1477 CASCADE [shard 1477 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1477]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.6ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Connecting to database specified by database.yml  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (1.1ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.8ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (15.4ms) COMMIT Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.4ms) CREATE SCHEMA switchman_test_shard_1479 [shard 1479 deploy]  (32.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1479 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1479 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1479 deploy] Migrating to CreateUsers (20130403132607)  (17.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1479 deploy]  (15.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1479 deploy] Migrating to CreateAppendages (20130411202442)  (17.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1479 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1479 deploy] Migrating to CreateMirrorUsers (20130411202551)  (18.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1479 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1479 deploy] Migrating to CreateDigits (20131022202028)  (18.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1479 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1479 deploy] Migrating to CreateFeatures (20131206172923)  (32.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1479 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1479 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1479 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1479 deploy] Migrating to CreateRoots (20140219183820)  (33.4ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1479 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1479 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1479' WHERE "switchman_shards"."id" = 1479 [shard 1478 master]  (1.3ms) COMMIT [shard 1478 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 1478 master]  (0.2ms) COMMIT [shard 1478 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1480 [shard 1480 deploy]  (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1480 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1480 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1480 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1480 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1480 deploy]  (15.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1480 deploy]  (15.0ms) COMMIT [shard 1480 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 1480 deploy]  (2.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1480 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1480 deploy]  (0.4ms) COMMIT [shard 1480 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1480 deploy]  (2.3ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1480 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1480 deploy]  (0.3ms) COMMIT [shard 1480 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1480 deploy]  (2.3ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1480 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1480 deploy]  (0.4ms) COMMIT [shard 1480 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1480 deploy]  (2.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1480 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1480 deploy]  (0.4ms) COMMIT [shard 1480 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 1480 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1480 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1480 deploy]  (0.3ms) COMMIT [shard 1480 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1480 deploy]  (3.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1480 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1480 deploy]  (0.6ms) COMMIT [shard 1480 deploy]  (0.1ms) BEGIN [shard 1478 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1480' WHERE "switchman_shards"."id" = 1480 [shard 1478 master]  (0.2ms) COMMIT [shard 1478 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1478], ["name", nil]] [shard 1478 master]  (15.4ms) COMMIT [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1479], ["name", "switchman_test_shard_1479"]] [shard 1478 master]  (14.8ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1480], ["name", "switchman_test_shard_1480"]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master]  (0.0ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master]  (0.0ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master]  (0.0ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master]  (0.0ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master]  (0.0ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master]  (0.0ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master]  (0.0ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master]  (0.0ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master]  (0.0ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1478], ["name", nil]] [shard 1478 master]  (16.1ms) COMMIT [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1479], ["name", "switchman_test_shard_1479"]] [shard 1478 master]  (15.3ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1480], ["name", "switchman_test_shard_1480"]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '7' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.0ms) select sqlite_version(*) [shard 1481 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 1481 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1481 deploy]  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1481 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 1481 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1481 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1481 deploy]  (0.7ms) commit transaction [shard 1481 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 1481 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1481 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1481 deploy]  (0.8ms) commit transaction [shard 1481 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 1481 deploy]  (0.6ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1481 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1481 deploy]  (1.1ms) commit transaction [shard 1481 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) begin transaction [shard 1481 deploy]  (0.5ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1481 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1481 deploy]  (0.6ms) commit transaction [shard 1481 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 1481 deploy]  (0.3ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1481 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1481 deploy]  (0.7ms) commit transaction [shard 1481 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 1481 deploy]  (0.3ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 1481 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1481 deploy]  (0.7ms) commit transaction [shard 1481 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 1481 deploy]  (0.3ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1481 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1481 deploy]  (0.7ms) commit transaction [shard 1481 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_1481.sqlite3' WHERE "switchman_shards"."id" = 1481 [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) begin transaction [shard 1481 master] SQL (1.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1481 master]  (0.7ms) commit transaction [shard 1481 master] Drop failed: No such file or directory @ unlink_internal - db/shard_1481.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1481]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.2ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '8' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", "public"]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (15.6ms) CREATE SCHEMA switchman_test_shard_1482 [shard 1482 deploy]  (2.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1482 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1482 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1482 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1482 deploy]  (3.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1482 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1482 deploy]  (0.4ms) COMMIT [shard 1482 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1482 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1482 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1482 deploy]  (0.3ms) COMMIT [shard 1482 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1482 deploy]  (2.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1482 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1482 deploy]  (0.3ms) COMMIT [shard 1482 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1482 deploy]  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1482 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1482 deploy]  (0.3ms) COMMIT [shard 1482 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1482 deploy]  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1482 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1482 deploy]  (0.3ms) COMMIT [shard 1482 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1482 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1482 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1482 deploy]  (0.3ms) COMMIT [shard 1482 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1482 deploy]  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1482 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1482 deploy]  (0.3ms) COMMIT [shard 1482 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1482' WHERE "switchman_shards"."id" = 1482 [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) BEGIN [shard 1482 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1482 master]  (0.3ms) COMMIT [shard 1482 master]  (35.4ms) DROP SCHEMA switchman_test_shard_1482 CASCADE [shard 1482 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1482]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 1478 master]  (0.1ms) CREATE SCHEMA switchman_test_shard_1483 [shard 1483 deploy]  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1483 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1483 deploy]  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1483 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1483 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1483 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1483 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1483 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1483 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1483 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1483 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1483 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1483 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1483 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1483 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1483 deploy] Migrating to CreateRoots (20140219183820)  (2.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1483 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1483 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1483' WHERE "switchman_shards"."id" = 1483 [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1483 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1483 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1483 master]  (2.6ms) DROP SCHEMA switchman_test_shard_1483 CASCADE [shard 1483 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1483]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (2.1ms) ROLLBACK [shard 1478 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1478], ["name", nil]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1479], ["name", "switchman_test_shard_1479"]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1480], ["name", "switchman_test_shard_1480"]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1479 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1478 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:26:58.632723' [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1478 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:26:58.637889' [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1478 master] SQL (1.1ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:26:58.641861' [shard 1478 master] SQL (0.4ms) DELETE FROM "users" [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1478 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:26:58.647178' [shard 1478 master] SQL (0.3ms) DELETE FROM "users" [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1478 master] SQL (0.1ms) DELETE FROM "users" [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1478 master] SQL (0.1ms) DELETE FROM "users" [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1478 master] SQL (0.4ms) DELETE FROM "users" [shard 1478 master] SQL (0.1ms) DELETE FROM "users" [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1478 master]  (0.4ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2409]] [shard 1478 master] CACHE (0.0ms) 1478::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2409]] CACHE (0.0ms) 1478::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2409]]  (0.1ms) BEGIN [shard 1478 master]  (0.3ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-12-16 21:26:58.671379' WHERE "users"."id" = 2409 [shard 1478 master]  (0.4ms) COMMIT [shard 1478 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2409]] [shard 1478 master] CACHE (0.0ms) 1478::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2409]] SQL (0.3ms) DELETE FROM "users" [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1478 master] SQL (0.3ms) DELETE FROM "users" [shard 1478 master] SQL (0.1ms) DELETE FROM "users" [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.0ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) ROLLBACK [shard 1480 master]  (0.0ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.2ms) BEGIN [shard 1480 master] User Load (0.3ms) SELECT "users".* FROM "users"  [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1478 master]  (0.0ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master] User Load (0.3ms) SELECT "users".* FROM "users" FOR UPDATE [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.2ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", "non_existent_shard"]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (16.3ms) SELECT COUNT(*) FROM "users" [shard 1484 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (1.2ms) SELECT COUNT(*) FROM "users"  [shard 1485 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1478], ["name", nil]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1479], ["name", "switchman_test_shard_1479"]] [shard 1478 master]  (0.2ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1480], ["name", "switchman_test_shard_1480"]] [shard 1478 master]  (0.2ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:58 UTC +00:00]] [shard 1479 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.0ms) ROLLBACK [shard 1480 master]  (0.0ms) ROLLBACK [shard 1479 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1478], ["name", nil]] [shard 1478 master]  (0.2ms) COMMIT [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.2ms) BEGIN [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1479], ["name", "switchman_test_shard_1479"]] [shard 1478 master]  (0.4ms) COMMIT [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1480], ["name", "switchman_test_shard_1480"]] [shard 1478 master]  (0.2ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1478], ["name", nil]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1479], ["name", "switchman_test_shard_1479"]] [shard 1478 master]  (0.2ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1480], ["name", "switchman_test_shard_1480"]] [shard 1478 master]  (0.2ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (16.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1479 LIMIT 1 [shard 1478 master] SQL (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 1 [shard 1479 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1480 LIMIT 1 [shard 1478 master] SQL (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 1 [shard 1480 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 1 [shard 1479 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 1 [shard 1480 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 1 [shard 1479 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 1 [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master] SQL (0.3ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (6) [shard 1479 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (2) [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master] SQL (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (2415) [shard 1478 master] SQL (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (7) [shard 1479 master] SQL (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (3) [shard 1480 master]  (0.3ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master] SQL (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 4 [shard 1479 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 4 [shard 1480 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 4 [shard 1479 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 4 [shard 1480 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 4 [shard 1479 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 4 [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["user_id", 9], ["value", 1]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["user_id", 14800000000000005], ["value", 3]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["user_id", 14790000000000009], ["value", 2]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["user_id", 5], ["value", 4]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["user_id", 5], ["value", 5]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SHOW max_identifier_length [shard 1478 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1479 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1480 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1479 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1480 master]  (0.1ms) SHOW max_identifier_length [shard 1480 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1479 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1480 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1479 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (9) [shard 1479 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [shard 1480 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1480 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [shard 1480 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (9) [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["user_id", 10], ["value", 1]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["user_id", 14800000000000006], ["value", 3]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["user_id", 14790000000000010], ["value", 2]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["user_id", 6], ["value", 4]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["user_id", 6], ["value", 5]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1479 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1480 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1479 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1480 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1479 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1480 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1479 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [shard 1479 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) [shard 1480 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1480 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) [shard 1480 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:58 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 11], ["value", 1]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 14800000000000007], ["value", 3]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 14790000000000011], ["value", 2]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 7], ["value", 4]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 7], ["value", 5]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.4ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1479 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1480 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1479 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1480 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1479 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1480 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1479 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (11) [shard 1479 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (7) [shard 1480 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1480 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (7) [shard 1480 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (11) [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 12], ["value", 1]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 14800000000000008], ["value", 3]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 14790000000000012], ["value", 2]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 8], ["value", 4]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 8], ["value", 5]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 14], ["value", 1]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 14800000000000009], ["value", 3]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 14790000000000014], ["value", 2]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 9], ["value", 4]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 9], ["value", 5]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1479 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1480 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1479 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1480 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1479 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1480 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1479 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (14) [shard 1479 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (9) [shard 1480 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1480 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (9) [shard 1480 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (14) [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 15], ["value", 1]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 14800000000000010], ["value", 3]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 14790000000000015], ["value", 2]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 10], ["value", 4]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 10], ["value", 5]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1479 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1480 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1479 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1480 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1479 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1480 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1479 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (15) [shard 1479 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [shard 1480 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1480 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [shard 1480 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (15) [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 16], ["value", 1]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 16], ["value", 2]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 11], ["value", 3]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 11], ["value", 4]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 11], ["value", 5]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 16 [shard 1479 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 1479 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 11 [shard 1480 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 1480 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (19, 20) [shard 1479 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (23, 24, 25) [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 17], ["value", 1]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 17], ["value", 2]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 12], ["value", 3]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 12], ["value", 4]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 12], ["value", 5]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 17 [shard 1479 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 1479 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 12 [shard 1480 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 1480 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (21, 22) [shard 1479 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (26, 27, 28) [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 18], ["value", 1]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 18], ["value", 2]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 13], ["value", 3]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 13], ["value", 4]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 13], ["value", 5]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 18 [shard 1479 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 1479 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 13 [shard 1480 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 1480 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (23, 24) [shard 1479 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (29, 30, 31) [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 19], ["value", 1]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 19], ["value", 2]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 14], ["value", 3]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 14], ["value", 4]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 14], ["value", 5]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 19 [shard 1479 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 1479 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 14 [shard 1480 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 1480 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (25, 26) [shard 1479 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (32, 33, 34) [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 20], ["value", 1]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 20], ["value", 2]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 15], ["value", 3]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 15], ["value", 4]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", 15], ["value", 5]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 20 [shard 1479 master]  (0.2ms) SELECT COUNT(*) FROM "appendages"  [shard 1479 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 15 [shard 1480 master]  (0.2ms) SELECT COUNT(*) FROM "appendages"  [shard 1480 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (27, 28) [shard 1479 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (35, 36, 37) [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1478], ["name", nil]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1479], ["name", "switchman_test_shard_1479"]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1480], ["name", "switchman_test_shard_1480"]] [shard 1478 master]  (0.2ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 21]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 14790000000000021 LIMIT 1 [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1479 LIMIT 1 [shard 1478 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 22]] [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 23 LIMIT 1 [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 1478 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1478 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1479 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 25 LIMIT 1 [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) LIMIT 1 [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1478], ["name", nil]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1479], ["name", "switchman_test_shard_1479"]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1480], ["name", "switchman_test_shard_1480"]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1479 LIMIT 1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master] SQL (9.5ms) DELETE FROM "switchman_shards" [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1478], ["name", nil]] [shard 1478 master]  (0.2ms) COMMIT [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1479], ["name", "switchman_test_shard_1479"]] [shard 1478 master]  (0.2ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1480], ["name", "switchman_test_shard_1480"]] [shard 1478 master]  (0.2ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) ROLLBACK [shard 1480 master]  (0.0ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "17"], ["default", false], ["name", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master] SQL (0.9ms) DELETE FROM "switchman_shards" [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1478], ["name", nil]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1479], ["name", "switchman_test_shard_1479"]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1480], ["name", "switchman_test_shard_1480"]] [shard 1478 master]  (0.2ms) COMMIT [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.0ms) ROLLBACK [shard 1480 master]  (0.0ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1478], ["name", nil]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1479], ["name", "switchman_test_shard_1479"]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1480], ["name", "switchman_test_shard_1480"]] [shard 1478 master]  (0.2ms) COMMIT [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "18"], ["default", false], ["name", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "18"], ["default", false], ["name", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master] SQL (15.4ms) DELETE FROM "switchman_shards" [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1478], ["name", nil]] [shard 1478 master]  (15.3ms) COMMIT [shard 1478 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1479], ["name", "switchman_test_shard_1479"]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1480], ["name", "switchman_test_shard_1480"]] [shard 1478 master]  (0.2ms) COMMIT [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) ROLLBACK [shard 1480 master]  (0.0ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) ROLLBACK [shard 1480 master]  (0.0ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1479 LIMIT 1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1480 LIMIT 1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11480 LIMIT 1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.2ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '20' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "20"], ["default", false], ["name", "public"]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1496 [shard 1496 deploy]  (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1496 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1496 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1496 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1496 deploy]  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1496 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1496 deploy]  (0.3ms) COMMIT [shard 1496 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1496 deploy]  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1496 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1496 deploy]  (0.3ms) COMMIT [shard 1496 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1496 deploy]  (2.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1496 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1496 deploy]  (0.4ms) COMMIT [shard 1496 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1496 deploy]  (2.3ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1496 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1496 deploy]  (0.4ms) COMMIT [shard 1496 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1496 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1496 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1496 deploy]  (0.3ms) COMMIT [shard 1496 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1496 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1496 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1496 deploy]  (0.2ms) COMMIT [shard 1496 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1496 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1496 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1496 deploy]  (0.4ms) COMMIT [shard 1496 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1496' WHERE "switchman_shards"."id" = 1496 [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) BEGIN [shard 1496 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1496 master]  (0.3ms) COMMIT [shard 1496 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 1496 master]  (4.6ms) DROP SCHEMA switchman_test_shard_1496 CASCADE [shard 1496 deploy]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 1496 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) ROLLBACK [shard 1480 master]  (0.0ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) ROLLBACK [shard 1480 master]  (0.0ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1497]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1498]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1498 LIMIT 1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) ROLLBACK [shard 1480 master]  (0.0ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) ROLLBACK [shard 1480 master]  (0.0ms) ROLLBACK [shard 1478 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 1478 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1478], ["name", nil]] [shard 1478 master]  (16.1ms) COMMIT [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1479], ["name", "switchman_test_shard_1479"]] [shard 1478 master]  (13.4ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1480], ["name", "switchman_test_shard_1480"]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master]  (0.4ms) SELECT COUNT(*) FROM "users"  [shard 1480 master]  (0.1ms) SAVEPOINT active_record_2 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1480 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master] SQL (15.4ms) DELETE FROM "switchman_shards" [shard 1478 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1478], ["name", nil]] [shard 1478 master]  (15.1ms) COMMIT [shard 1478 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1479], ["name", "switchman_test_shard_1479"]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1480], ["name", "switchman_test_shard_1480"]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "21"], ["default", false], ["name", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "21"], ["default", false], ["name", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master]  (0.0ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1478], ["name", nil]] [shard 1478 master]  (15.4ms) COMMIT [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1479], ["name", "switchman_test_shard_1479"]] [shard 1478 master]  (15.0ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1480], ["name", "switchman_test_shard_1480"]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (16.3ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["owner_id", 2420], ["owner_type", "User"], ["updated_at", Tue, 16 Dec 2014 21:26:59 UTC +00:00], ["value", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master] Feature Load (0.3ms) SELECT owner_id FROM "features" WHERE "features"."id" = 115 LIMIT 1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1479 LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1480 LIMIT 1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master] SQL (27.6ms) DELETE FROM "switchman_shards" [shard 1478 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1478], ["name", nil]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1479], ["name", "switchman_test_shard_1479"]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1480], ["name", "switchman_test_shard_1480"]] [shard 1478 master]  (0.2ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 30 LIMIT 1 [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1479 LIMIT 1 [shard 1478 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2422) [shard 1478 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (31) [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 33 [shard 1479 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2424]] [shard 1478 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 33]] [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (2425) [shard 1478 master] SQL (0.1ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (34) [shard 1479 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2425]] [shard 1478 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 34]] [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1478], ["name", nil]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1479], ["name", "switchman_test_shard_1479"]] [shard 1478 master]  (0.2ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1480], ["name", "switchman_test_shard_1480"]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1478 AND id<=1479)) ORDER BY id [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1478 AND id<1479)) [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1479)) ORDER BY id [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1478)) [shard 1478 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1478)) [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=1479)) ORDER BY id [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1478 AND id<=1479)) AND (id NOT IN (1478)) [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.0ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.0ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1478 AND id<1479) OR (id>=1480 AND id<1481)) ORDER BY id [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1478)) [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1478], ["name", nil]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1479], ["name", "switchman_test_shard_1479"]] [shard 1478 master]  (0.2ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1480], ["name", "switchman_test_shard_1480"]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (1478, 1479) AND (id IN (1479,1480)) [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1478], ["name", nil]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1479], ["name", "switchman_test_shard_1479"]] [shard 1478 master]  (0.2ms) COMMIT [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1480], ["name", "switchman_test_shard_1480"]] [shard 1478 master]  (0.2ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 35 [shard 1479 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1479 LIMIT 1 [shard 1478 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 35]] [shard 1479 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 35 [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (15.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", nil], ["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1480 LIMIT 1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (16.0ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["appendage_id", 31], ["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["id", 14800000000000001], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 36 AND "digits"."id" = $1 LIMIT 1 [["id", 14800000000000001]] [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 39 AND "appendages"."id" = $1 LIMIT 1 [["id", 33]] [shard 1479 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 23 AND "appendages"."id" = $1 LIMIT 1 [["id", 14790000000000033]] [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.2ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (1.0ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 25], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 35]] [shard 1479 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 42 LIMIT 1 [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 43], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 44], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 43]] [shard 1479 master]  (0.1ms) SHOW max_identifier_length [shard 1479 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 43 AND "users"."id" = 45 LIMIT 1 [shard 1479 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 43]] [shard 1479 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 43 AND "users"."id" = 14800000000000028 LIMIT 1 [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 36], ["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 47 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 38], ["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 38], ["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["value", 1]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 14790000000000050], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 40], ["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["value", 2]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 50 AND (digits.value IS NOT NULL) [shard 1479 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 14790000000000050 AND (digits.value IS NOT NULL) [shard 1480 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 50]] [shard 1479 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 50 AND (digits.value IS NOT NULL) [shard 1479 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 14790000000000050 AND (digits.value IS NOT NULL) [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 51], ["value", 1]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 14790000000000051], ["value", 2]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 51 [shard 1479 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 51]] [shard 1479 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 51 [shard 1479 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 14790000000000051 [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 52], ["value", 1]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 14790000000000052], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 52], ["value", 2]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 52]] [shard 1479 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 52 AND (appendages.value IS NOT NULL) [shard 1479 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 14790000000000052 AND (appendages.value IS NOT NULL) [shard 1480 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 52]] [shard 1479 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 52 AND (appendages.value IS NOT NULL) [shard 1479 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 14790000000000052 AND (appendages.value IS NOT NULL) [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 42], ["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 14790000000000053], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 43], ["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["value", 2]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 53 AND "digits"."value" IS NULL [shard 1479 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 14790000000000053 AND "digits"."value" IS NULL [shard 1480 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 53]] [shard 1479 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 53 AND "digits"."value" IS NULL [shard 1479 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 14790000000000053 AND "digits"."value" IS NULL [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 54], ["value", 1]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 14790000000000054], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 54 AND "appendages"."value" IS NULL [shard 1479 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 14790000000000054 AND "appendages"."value" IS NULL [shard 1480 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 54]] [shard 1479 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 54 AND "appendages"."value" IS NULL [shard 1479 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 14790000000000054 AND "appendages"."value" IS NULL [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 44], ["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 14790000000000055], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 45], ["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["value", 2]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 55 AND "digits"."value" IS NULL [shard 1479 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 14790000000000055 AND "digits"."value" IS NULL [shard 1480 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 55]] [shard 1479 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 55 AND "digits"."value" IS NULL [shard 1479 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 14790000000000055 AND "digits"."value" IS NULL [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 45], ["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["value", 1]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 14790000000000056], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 46], ["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["value", 2]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 56 [shard 1479 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 56]] [shard 1479 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 56 [shard 1479 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 14790000000000056 [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 14790000000000057], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 14800000000000040], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 1479 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (57) [shard 1479 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (14790000000000057) [shard 1480 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) [shard 1480 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (40) [shard 1480 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 46 [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 14790000000000058], ["value", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 14800000000000041], ["value", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 2426], ["value", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages"  [shard 1478 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 1479 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [shard 1480 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2426) [shard 1478 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 58 [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 14790000000000059], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 14790000000000059], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 48], ["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 48], ["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 14800000000000048], ["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 14800000000000049], ["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 14800000000000042], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 14790000000000049], ["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 14800000000000050], ["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 51], ["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 1479 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (59) [shard 1479 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (14790000000000059) [shard 1480 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (48) [shard 1479 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (48, 49) [shard 1480 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [shard 1480 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (42) [shard 1480 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (50, 51) [shard 1480 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1185], ["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["value", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 14780000000001185], ["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1185 LIMIT 1 [shard 1478 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1185) [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 14790000000000061], ["value", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1186], ["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["value", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 14800000000000044], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 14790000000000050], ["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["value", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 1478 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (1186) [shard 1478 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (50) [shard 1479 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [shard 1479 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (44) [shard 1480 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 61 [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 14800000000000045]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 56]] [shard 1478 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 45 LIMIT 1 [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["owner_id", 1187], ["owner_type", "Appendage"], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["value", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 116]] [shard 1478 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1187 LIMIT 1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master]  (0.2ms) UPDATE "features" SET "owner_id" = 14790000000000063, "owner_type" = 'User', "updated_at" = '2014-12-16 21:27:00.661068' WHERE "features"."id" = 116 [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 116]] [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.8ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["owner_id", 64], ["owner_type", "User"], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["value", 1]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["owner_id", 14790000000000064], ["owner_type", "User"], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["value", 2]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 64 AND "features"."owner_type" = 'User' [shard 1479 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 64]] [shard 1479 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 64 AND "features"."owner_type" = 'User' [shard 1479 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 14790000000000064 AND "features"."owner_type" = 'User' [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 14800000000000048], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 51]] [shard 1479 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 48 LIMIT 1 [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 66 LIMIT 1 [shard 1479 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 66], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 52]] [shard 1479 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 66 LIMIT 1 [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1478], ["name", nil]] [shard 1478 master]  (0.3ms) COMMIT [shard 1478 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1479], ["name", "switchman_test_shard_1479"]] [shard 1478 master]  (0.2ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1480], ["name", "switchman_test_shard_1480"]] [shard 1478 master]  (0.2ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 56]] [shard 1478 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 56]] [shard 1478 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 56 LIMIT 1 [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.2ms) ROLLBACK [shard 1479 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) ROLLBACK [shard 1480 master]  (0.0ms) ROLLBACK [shard 1478 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1478], ["name", nil]] [shard 1478 master]  (0.2ms) COMMIT [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1479], ["name", "switchman_test_shard_1479"]] [shard 1478 master]  (0.2ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1480], ["name", "switchman_test_shard_1480"]] [shard 1478 master]  (0.2ms) COMMIT [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 2427], ["value", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 67], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 2428], ["value", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 68], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1479 LIMIT 1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 2429], ["value", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 2430], ["value", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 70], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1479 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 2431], ["value", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 71], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 2432], ["value", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 72], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 2433], ["value", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 73], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 2434], ["value", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 74], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 2435], ["value", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 75], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 2436], ["value", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 76], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2436], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2437], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2437]] [shard 1478 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2436 LIMIT 1 [shard 1478 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 2436 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 2439], ["value", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 77], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.1ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 2440], ["value", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 78], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 2441], ["value", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 79], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 62], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 2442], ["value", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 80], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 63], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.0ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 2443], ["value", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 81], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1479]] [shard 1478 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1480]] [shard 1478 master]  (0.0ms) BEGIN [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 2444], ["value", nil]] [shard 1478 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1479 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 82], ["value", nil]] [shard 1479 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1479 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1480 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:00 UTC +00:00], ["user_id", 65], ["value", nil]] [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1480 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1478 master]  (0.1ms) ROLLBACK [shard 1480 master]  (0.1ms) ROLLBACK [shard 1478 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1478 master]  (0.1ms) BEGIN [shard 1478 master]  (0.1ms) ROLLBACK [shard 1478 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 1478 master]  (5.3ms) DROP SCHEMA switchman_test_shard_1479 CASCADE [shard 1479 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1479]]  (0.1ms) COMMIT  (36.2ms) DROP SCHEMA switchman_test_shard_1480 CASCADE [shard 1480 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1480]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.3ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1502 [shard 1502 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1502 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1502 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1502 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1502 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1502 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1502 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1502 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1502 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1502 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1502 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1502 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1502 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1502 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1502 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1502 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1502 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1502 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1502' WHERE "switchman_shards"."id" = 1502 [shard 1501 master]  (0.7ms) COMMIT [shard 1501 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1503 [shard 1503 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1503 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1503 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1503 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1503 deploy]  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1503 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1503 deploy]  (0.3ms) COMMIT [shard 1503 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1503 deploy]  (2.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1503 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1503 deploy]  (0.3ms) COMMIT [shard 1503 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1503 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1503 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1503 deploy]  (0.3ms) COMMIT [shard 1503 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1503 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1503 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1503 deploy]  (0.3ms) COMMIT [shard 1503 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1503 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1503 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1503 deploy]  (0.2ms) COMMIT [shard 1503 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1503 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1503 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1503 deploy]  (0.3ms) COMMIT [shard 1503 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) BEGIN [shard 1503 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1503 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1503 deploy]  (0.3ms) COMMIT [shard 1503 deploy]  (0.1ms) BEGIN [shard 1501 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1503' WHERE "switchman_shards"."id" = 1503 [shard 1501 master]  (0.2ms) COMMIT [shard 1501 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1501], ["name", nil]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1502], ["name", "switchman_test_shard_1502"]] [shard 1501 master]  (0.2ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1503], ["name", "switchman_test_shard_1503"]] [shard 1501 master]  (0.2ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master] SQL (0.8ms) DELETE FROM "switchman_shards" [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1501], ["name", nil]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1502], ["name", "switchman_test_shard_1502"]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1503], ["name", "switchman_test_shard_1503"]] [shard 1501 master]  (0.2ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master] MirrorUser Load (0.4ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 57]] [shard 1501 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 57]] [shard 1501 master] MirrorUser Load (0.4ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 57 LIMIT 1 [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1501], ["name", nil]] [shard 1501 master]  (0.2ms) COMMIT [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1502], ["name", "switchman_test_shard_1502"]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1503], ["name", "switchman_test_shard_1503"]] [shard 1501 master]  (0.2ms) COMMIT [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1503 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master]  (0.5ms) SELECT COUNT(*) FROM "users" [shard 1503 master]  (0.1ms) SAVEPOINT active_record_2 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1503 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 1501 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1501], ["name", nil]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1502], ["name", "switchman_test_shard_1502"]] [shard 1501 master]  (0.2ms) COMMIT [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1503], ["name", "switchman_test_shard_1503"]] [shard 1501 master]  (0.2ms) COMMIT [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1501], ["name", nil]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1502], ["name", "switchman_test_shard_1502"]] [shard 1501 master]  (0.2ms) COMMIT [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1503], ["name", "switchman_test_shard_1503"]] [shard 1501 master]  (0.2ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1501], ["name", nil]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1502], ["name", "switchman_test_shard_1502"]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1503], ["name", "switchman_test_shard_1503"]] [shard 1501 master]  (0.2ms) COMMIT [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.9ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1502 LIMIT 1 [shard 1501 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 3 AND "appendages"."id" = $1 LIMIT 1 [["id", 1]] [shard 1502 master] Appendage Load (0.6ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 5 AND "appendages"."id" = $1 LIMIT 1 [["id", 15020000000000001]] [shard 1503 master]  (0.2ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (15.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1503 LIMIT 1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 3]] [shard 1502 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 5 LIMIT 1 [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 6 [shard 1502 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 6]] [shard 1502 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 6 [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 7], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 8], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 7]] [shard 1502 master]  (0.1ms) SHOW max_identifier_length [shard 1502 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 7 AND "users"."id" = 9 LIMIT 1 [shard 1502 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 7]] [shard 1502 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 7 AND "users"."id" = 15030000000000010 LIMIT 1 [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", nil], ["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["appendage_id", 6], ["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["id", 15030000000000001], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 12 AND "digits"."id" = $1 LIMIT 1 [["id", 15030000000000001]] [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 14 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 16], ["value", 1]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 15020000000000016], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 16 AND "appendages"."value" IS NULL [shard 1502 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 15020000000000016 AND "appendages"."value" IS NULL [shard 1503 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 16]] [shard 1502 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 16 AND "appendages"."value" IS NULL [shard 1502 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 15020000000000016 AND "appendages"."value" IS NULL [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10], ["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 15020000000000017], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3], ["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["value", 2]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17 AND "digits"."value" IS NULL [shard 1502 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15020000000000017 AND "digits"."value" IS NULL [shard 1503 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 1502 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17 AND "digits"."value" IS NULL [shard 1502 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15020000000000017 AND "digits"."value" IS NULL [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 18], ["value", 1]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 15020000000000018], ["value", 2]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 18 [shard 1502 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 1502 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 18 [shard 1502 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 15020000000000018 [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12], ["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 15020000000000019], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5], ["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["value", 2]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 19 AND "digits"."value" IS NULL [shard 1502 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15020000000000019 AND "digits"."value" IS NULL [shard 1503 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [shard 1502 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 19 AND "digits"."value" IS NULL [shard 1502 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15020000000000019 AND "digits"."value" IS NULL [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 20], ["value", 1]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 15020000000000020], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 20], ["value", 2]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 1502 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 20 AND (appendages.value IS NOT NULL) [shard 1502 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 15020000000000020 AND (appendages.value IS NOT NULL) [shard 1503 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 1502 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 20 AND (appendages.value IS NOT NULL) [shard 1502 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 15020000000000020 AND (appendages.value IS NOT NULL) [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15], ["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["value", 1]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 15020000000000021], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7], ["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["value", 2]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 21 [shard 1502 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 1502 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 21 [shard 1502 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15020000000000021 [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 16], ["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 16], ["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["value", 1]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 15020000000000022], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["value", 2]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 22 AND (digits.value IS NOT NULL) [shard 1502 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15020000000000022 AND (digits.value IS NOT NULL) [shard 1503 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 22]] [shard 1502 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 22 AND (digits.value IS NOT NULL) [shard 1502 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15020000000000022 AND (digits.value IS NOT NULL) [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.6ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 15030000000000024]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 57]] [shard 1501 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 24 LIMIT 1 [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["owner_id", 1204], ["owner_type", "Appendage"], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["value", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 117]] [shard 1501 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1204 LIMIT 1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master]  (0.2ms) UPDATE "features" SET "owner_id" = 15020000000000024, "owner_type" = 'User', "updated_at" = '2014-12-16 21:27:06.936476' WHERE "features"."id" = 117 [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 117]] [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["owner_id", 25], ["owner_type", "User"], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["value", 1]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["owner_id", 15020000000000025], ["owner_type", "User"], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["value", 2]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 25 AND "features"."owner_type" = 'User' [shard 1502 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 25]] [shard 1502 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 25 AND "features"."owner_type" = 'User' [shard 1502 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 15020000000000025 AND "features"."owner_type" = 'User' [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 26], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 15020000000000026], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 15030000000000027], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 1502 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (26) [shard 1502 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (15020000000000026) [shard 1503 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 1503 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (27) [shard 1503 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 17 [shard 1502 master]  (0.2ms) ROLLBACK [shard 1503 master]  (0.2ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 27], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 15020000000000027], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 15020000000000027], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 19], ["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10], ["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15030000000000010], ["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15030000000000011], ["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 15030000000000028], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:06 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15020000000000020], ["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15030000000000012], ["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 13], ["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 1502 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (27) [shard 1502 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (15020000000000027) [shard 1503 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (19) [shard 1502 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (10, 11) [shard 1503 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 1503 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (28) [shard 1503 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (12, 13) [shard 1503 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 15020000000000028], ["value", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 15030000000000029], ["value", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 2446], ["value", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 1501 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 1502 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [shard 1503 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2446) [shard 1501 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 28 [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1208], ["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["value", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15010000000001208], ["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1208 LIMIT 1 [shard 1501 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1208) [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 15020000000000030], ["value", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1209], ["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["value", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 15030000000000031], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15020000000000021], ["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["value", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 1501 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (1209) [shard 1501 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (21) [shard 1502 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [shard 1502 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (31) [shard 1503 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 30 [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 15030000000000032], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 22]] [shard 1502 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 32 LIMIT 1 [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 32 LIMIT 1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 23]] [shard 1502 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 32 LIMIT 1 [shard 1502 master]  (0.2ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1501], ["name", nil]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1502], ["name", "switchman_test_shard_1502"]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1503], ["name", "switchman_test_shard_1503"]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1502 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1501 master] SQL (0.2ms) DELETE FROM "users" [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1501 master] SQL (0.1ms) DELETE FROM "users" [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1501 master]  (0.4ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1501 master]  (0.2ms) COMMIT [shard 1501 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2451]] [shard 1501 master] CACHE (0.0ms) 1501::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2451]] CACHE (0.0ms) 1501::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2451]]  (0.1ms) BEGIN [shard 1501 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-12-16 21:27:07.167166' WHERE "users"."id" = 2451 [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2451]] [shard 1501 master] CACHE (0.0ms) 1501::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2451]] SQL (0.3ms) DELETE FROM "users" [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1501 master]  (0.2ms) COMMIT [shard 1501 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1501 master] SQL (1.0ms) DELETE FROM "users" [shard 1501 master] SQL (0.1ms) DELETE FROM "users" [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1501 master]  (0.2ms) COMMIT [shard 1501 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1501 master] SQL (0.3ms) DELETE FROM "users" [shard 1501 master] SQL (0.1ms) DELETE FROM "users" [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.0ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1501 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:27:07.207119' [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1501 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:27:07.212623' [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1501 master]  (0.4ms) COMMIT [shard 1501 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1501 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:27:07.216581' [shard 1501 master] SQL (0.3ms) DELETE FROM "users" [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1501 master]  (0.2ms) COMMIT [shard 1501 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1501 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:27:07.220879' [shard 1501 master] SQL (0.3ms) DELETE FROM "users" [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.0ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master]  (0.0ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master]  (0.0ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master]  (0.0ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master]  (0.0ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master]  (0.0ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master]  (0.0ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1501], ["name", nil]] [shard 1501 master]  (0.4ms) COMMIT [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1502], ["name", "switchman_test_shard_1502"]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1503], ["name", "switchman_test_shard_1503"]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '5' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.0ms) select sqlite_version(*) [shard 1508 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 1508 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1508 deploy]  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1508 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 1508 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1508 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1508 deploy]  (0.7ms) commit transaction [shard 1508 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 1508 deploy]  (0.3ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1508 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1508 deploy]  (0.5ms) commit transaction [shard 1508 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 1508 deploy]  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1508 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1508 deploy]  (0.7ms) commit transaction [shard 1508 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 1508 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1508 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1508 deploy]  (0.6ms) commit transaction [shard 1508 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 1508 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1508 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1508 deploy]  (0.6ms) commit transaction [shard 1508 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 1508 deploy]  (0.3ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 1508 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1508 deploy]  (0.5ms) commit transaction [shard 1508 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 1508 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1508 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1508 deploy]  (0.7ms) commit transaction [shard 1508 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_1508.sqlite3' WHERE "switchman_shards"."id" = 1508 [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.0ms) begin transaction [shard 1508 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1508 master]  (0.8ms) commit transaction [shard 1508 master] Drop failed: No such file or directory @ unlink_internal - db/shard_1508.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1508]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '6' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", "public"]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (14.7ms) CREATE SCHEMA switchman_test_shard_1509 [shard 1509 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1509 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1509 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1509 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1509 deploy]  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1509 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1509 deploy]  (0.4ms) COMMIT [shard 1509 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1509 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1509 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1509 deploy]  (0.3ms) COMMIT [shard 1509 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1509 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1509 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1509 deploy]  (0.4ms) COMMIT [shard 1509 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1509 deploy]  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1509 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1509 deploy]  (0.3ms) COMMIT [shard 1509 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1509 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1509 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1509 deploy]  (0.3ms) COMMIT [shard 1509 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1509 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1509 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1509 deploy]  (0.2ms) COMMIT [shard 1509 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1509 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1509 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1509 deploy]  (0.2ms) COMMIT [shard 1509 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1509' WHERE "switchman_shards"."id" = 1509 [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) BEGIN [shard 1509 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1509 master]  (0.2ms) COMMIT [shard 1509 master]  (4.5ms) DROP SCHEMA switchman_test_shard_1509 CASCADE [shard 1509 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1509]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 1501 master]  (0.2ms) CREATE SCHEMA switchman_test_shard_1510 [shard 1510 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1510 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1510 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1510 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1510 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1510 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1510 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1510 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1510 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1510 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1510 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1510 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1510 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1510 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1510 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1510 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1510 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1510 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1510' WHERE "switchman_shards"."id" = 1510 [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1510 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1510 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1510 master]  (2.7ms) DROP SCHEMA switchman_test_shard_1510 CASCADE [shard 1510 deploy]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1510]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (2.2ms) ROLLBACK [shard 1501 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1501], ["name", nil]] [shard 1501 master]  (0.5ms) COMMIT [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1502], ["name", "switchman_test_shard_1502"]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1503], ["name", "switchman_test_shard_1503"]] [shard 1501 master]  (0.2ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 35], ["value", 1]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1503 LIMIT 1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 15030000000000034], ["value", 3]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1502 LIMIT 1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 15020000000000035], ["value", 2]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 34], ["value", 4]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 34], ["value", 5]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1502 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1503 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1502 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1503 master]  (0.1ms) SHOW max_identifier_length [shard 1503 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1502 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1503 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1502 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35) [shard 1502 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (34) [shard 1503 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1503 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (34) [shard 1503 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35) [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 36], ["value", 1]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 15030000000000035], ["value", 3]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 15020000000000036], ["value", 2]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 35], ["value", 4]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 35], ["value", 5]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1502 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1503 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1502 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1503 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1502 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1503 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1502 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (36) [shard 1502 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35) [shard 1503 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1503 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35) [shard 1503 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (36) [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 37], ["value", 1]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 15030000000000036], ["value", 3]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 15020000000000037], ["value", 2]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 36], ["value", 4]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 36], ["value", 5]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1502 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1503 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1502 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1503 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1502 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1503 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1502 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 1502 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (36) [shard 1503 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1503 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (36) [shard 1503 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 38], ["value", 1]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 15030000000000037], ["value", 3]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 15020000000000038], ["value", 2]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 37], ["value", 4]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 37], ["value", 5]] [shard 1503 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1502 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1503 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1502 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1503 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1502 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1503 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1502 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38) [shard 1502 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 1503 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1503 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 1503 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38) [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 39], ["value", 1]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 15030000000000038], ["value", 3]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 15020000000000039], ["value", 2]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 38], ["value", 4]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 38], ["value", 5]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1502 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1503 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1502 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1503 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1502 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1503 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1502 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) [shard 1502 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38) [shard 1503 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1503 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38) [shard 1503 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 40], ["value", 1]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 15030000000000039], ["value", 3]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 15020000000000040], ["value", 2]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 39], ["value", 4]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 39], ["value", 5]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (42) [shard 1502 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (40) [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master] SQL (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (2462) [shard 1501 master] SQL (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (43) [shard 1502 master] SQL (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (41) [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 40 [shard 1502 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 1503 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 40 [shard 1502 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 1503 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 40 [shard 1502 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 1502 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 36 [shard 1503 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 1502 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 36 [shard 1503 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [shard 1502 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 36 [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 46], ["value", 1]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 46], ["value", 2]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 44], ["value", 3]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 44], ["value", 4]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 44], ["value", 5]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 46 [shard 1502 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1502 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 44 [shard 1503 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1503 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (42, 43) [shard 1502 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (37, 38, 39) [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 47], ["value", 1]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 47], ["value", 2]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 45], ["value", 3]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 45], ["value", 4]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 45], ["value", 5]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 47 [shard 1502 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1502 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 45 [shard 1503 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1503 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (44, 45) [shard 1502 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (40, 41, 42) [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 48], ["value", 1]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 48], ["value", 2]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 46], ["value", 3]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 46], ["value", 4]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 46], ["value", 5]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 48 [shard 1502 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1502 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 46 [shard 1503 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1503 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (46, 47) [shard 1502 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (43, 44, 45) [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 49], ["value", 1]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 49], ["value", 2]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 47], ["value", 3]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 47], ["value", 4]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 47], ["value", 5]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 49 [shard 1502 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1502 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 47 [shard 1503 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1503 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (48, 49) [shard 1502 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (46, 47, 48) [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 50], ["value", 1]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 50], ["value", 2]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 48], ["value", 3]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 48], ["value", 4]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 48], ["value", 5]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 50 [shard 1502 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 1502 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 48 [shard 1503 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 1503 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (50, 51) [shard 1502 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (49, 50, 51) [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1501], ["name", nil]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1502], ["name", "switchman_test_shard_1502"]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1503], ["name", "switchman_test_shard_1503"]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["owner_id", 2463], ["owner_type", "User"], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["value", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 118 LIMIT 1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1502 LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1503 LIMIT 1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master] SQL (30.9ms) DELETE FROM "switchman_shards" [shard 1501 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1501], ["name", nil]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1502], ["name", "switchman_test_shard_1502"]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1503], ["name", "switchman_test_shard_1503"]] [shard 1501 master]  (0.2ms) COMMIT [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1502 LIMIT 1 [shard 1501 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 51]] [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 52 LIMIT 1 [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 1501 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1501 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1502 master] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 54]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 15020000000000054 LIMIT 1 [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 55 LIMIT 1 [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) LIMIT 1 [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1501], ["name", nil]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1502], ["name", "switchman_test_shard_1502"]] [shard 1501 master]  (0.4ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1503], ["name", "switchman_test_shard_1503"]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 2465], ["value", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 2466], ["value", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 2467], ["value", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 2468], ["value", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 2469], ["value", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 2470], ["value", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 62], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:07 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2470], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2471], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2471]] [shard 1501 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2470 LIMIT 1 [shard 1501 master] User Load (0.4ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 2470 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 2473], ["value", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 63], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 2474], ["value", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 2475], ["value", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 65], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1502 LIMIT 1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 2476], ["value", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 66], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 2477], ["value", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 67], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 2478], ["value", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 68], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 2479], ["value", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 62], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 2480], ["value", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 70], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 63], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 2481], ["value", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 71], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 2482], ["value", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 72], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", 65], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1501], ["name", nil]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1502], ["name", "switchman_test_shard_1502"]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1503], ["name", "switchman_test_shard_1503"]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1501 AND id<1502)) [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1502)) ORDER BY id [shard 1501 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.0ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1501 AND id<=1502)) AND (id NOT IN (1501)) [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1501)) [shard 1501 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1501)) [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1501)) [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1501 AND id<=1502)) ORDER BY id [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.0ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=1502)) ORDER BY id [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1501 AND id<1502) OR (id>=1503 AND id<1504)) ORDER BY id [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1501], ["name", nil]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1502], ["name", "switchman_test_shard_1502"]] [shard 1501 master]  (0.2ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1503], ["name", "switchman_test_shard_1503"]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.0ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1502 LIMIT 1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1503 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1503 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master] SQL (15.5ms) DELETE FROM "switchman_shards" [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1501], ["name", nil]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1502], ["name", "switchman_test_shard_1502"]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1503], ["name", "switchman_test_shard_1503"]] [shard 1501 master]  (0.2ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master] SQL (24.6ms) DELETE FROM "switchman_shards" [shard 1501 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1501], ["name", nil]] [shard 1501 master]  (0.4ms) COMMIT [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1502], ["name", "switchman_test_shard_1502"]] [shard 1501 master]  (0.2ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1503], ["name", "switchman_test_shard_1503"]] [shard 1501 master]  (0.2ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.0ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (1501, 1502) AND (id IN (1502,1503)) [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1501], ["name", nil]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1502], ["name", "switchman_test_shard_1502"]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1503], ["name", "switchman_test_shard_1503"]] [shard 1501 master]  (0.2ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1501], ["name", nil]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1502], ["name", "switchman_test_shard_1502"]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1503], ["name", "switchman_test_shard_1503"]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.0ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1501], ["name", nil]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1502], ["name", "switchman_test_shard_1502"]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1503], ["name", "switchman_test_shard_1503"]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:08 UTC +00:00]] [shard 1502 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.0ms) ROLLBACK [shard 1502 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1501], ["name", nil]] [shard 1501 master]  (0.4ms) COMMIT [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1502], ["name", "switchman_test_shard_1502"]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1503], ["name", "switchman_test_shard_1503"]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 79 LIMIT 1 [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1502 LIMIT 1 [shard 1501 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2487) [shard 1501 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (80) [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 81 [shard 1502 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2488]] [shard 1501 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 81]] [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1502 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1502 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (2489) [shard 1501 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (82) [shard 1502 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2489]] [shard 1501 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 82]] [shard 1502 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1502 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", "non_existent_shard"]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 1513 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (1.0ms) SELECT COUNT(*) FROM "users"  [shard 1514 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "17"], ["default", false], ["name", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "18"], ["default", false], ["name", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "19"], ["default", false], ["name", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "20"], ["default", false], ["name", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "21"], ["default", false], ["name", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "22"], ["default", false], ["name", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1501], ["name", nil]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1502], ["name", "switchman_test_shard_1502"]] [shard 1501 master]  (0.3ms) COMMIT [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1503], ["name", "switchman_test_shard_1503"]] [shard 1501 master]  (0.2ms) COMMIT [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '23' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "23"], ["default", false], ["name", "public"]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1521 [shard 1521 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1521 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1521 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1521 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1521 deploy]  (2.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1521 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1521 deploy]  (0.3ms) COMMIT [shard 1521 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1521 deploy]  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1521 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1521 deploy]  (0.4ms) COMMIT [shard 1521 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1521 deploy]  (2.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1521 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1521 deploy]  (0.3ms) COMMIT [shard 1521 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1521 deploy]  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1521 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1521 deploy]  (0.3ms) COMMIT [shard 1521 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1521 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1521 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1521 deploy]  (0.3ms) COMMIT [shard 1521 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1521 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1521 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1521 deploy]  (0.2ms) COMMIT [shard 1521 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1521 deploy]  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1521 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1521 deploy]  (0.3ms) COMMIT [shard 1521 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1521' WHERE "switchman_shards"."id" = 1521 [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) BEGIN [shard 1521 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:27:08 UTC +00:00]] [shard 1521 master]  (0.2ms) COMMIT [shard 1521 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 1521 master]  (4.9ms) DROP SCHEMA switchman_test_shard_1521 CASCADE [shard 1521 deploy]  (0.4ms) SELECT COUNT(*) FROM "users"  [shard 1521 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1502 LIMIT 1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1501 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1522]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.0ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1501 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1501 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1523]] [shard 1501 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1523 LIMIT 1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.0ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.0ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.0ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.0ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.0ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11503 LIMIT 1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1503 LIMIT 1 [shard 1501 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.1ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.1ms) BEGIN [shard 1503 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.0ms) ROLLBACK [shard 1503 master]  (0.0ms) ROLLBACK [shard 1501 master]  (0.0ms) BEGIN [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1502]] [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1503]] [shard 1501 master]  (0.0ms) BEGIN [shard 1503 master]  (0.1ms) ROLLBACK [shard 1503 master]  (0.1ms) ROLLBACK [shard 1501 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1501 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1501 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 1501 master]  (5.4ms) DROP SCHEMA switchman_test_shard_1502 CASCADE [shard 1502 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1502]]  (0.1ms) COMMIT  (6.3ms) DROP SCHEMA switchman_test_shard_1503 CASCADE [shard 1503 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1503]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1525 [shard 1525 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1525 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1525 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1525 deploy] Migrating to CreateUsers (20130403132607)  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1525 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1525 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1525 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1525 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1525 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1525 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1525 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1525 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1525 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1525 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1525 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1525 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1525 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1525 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1525' WHERE "switchman_shards"."id" = 1525 [shard 1524 master]  (0.7ms) COMMIT [shard 1524 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1526 [shard 1526 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1526 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1526 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1526 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1526 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1526 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1526 deploy]  (0.3ms) COMMIT [shard 1526 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1526 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1526 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1526 deploy]  (0.4ms) COMMIT [shard 1526 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1526 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1526 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1526 deploy]  (0.3ms) COMMIT [shard 1526 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1526 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1526 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1526 deploy]  (0.3ms) COMMIT [shard 1526 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1526 deploy]  (2.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1526 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1526 deploy]  (0.4ms) COMMIT [shard 1526 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1526 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1526 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1526 deploy]  (0.2ms) COMMIT [shard 1526 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1526 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1526 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1526 deploy]  (0.3ms) COMMIT [shard 1526 deploy]  (0.1ms) BEGIN [shard 1524 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1526' WHERE "switchman_shards"."id" = 1526 [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1524], ["name", nil]] [shard 1524 master]  (0.2ms) COMMIT [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1525], ["name", "switchman_test_shard_1525"]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1526], ["name", "switchman_test_shard_1526"]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1524], ["name", nil]] [shard 1524 master]  (0.4ms) COMMIT [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1525], ["name", "switchman_test_shard_1525"]] [shard 1524 master]  (0.4ms) COMMIT [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1526], ["name", "switchman_test_shard_1526"]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1526 LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1525 LIMIT 1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3], ["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["value", nil]] [shard 1525 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master] Digit Load (0.6ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", nil], ["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["appendage_id", 4], ["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["id", 15260000000000001], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6 AND "digits"."id" = $1 LIMIT 1 [["id", 15260000000000001]] [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 5]] [shard 1525 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 7 LIMIT 1 [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 9], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 10], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 9]] [shard 1525 master]  (0.1ms) SHOW max_identifier_length [shard 1525 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 9 AND "users"."id" = 11 LIMIT 1 [shard 1525 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 9]] [shard 1525 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 9 AND "users"."id" = 15260000000000010 LIMIT 1 [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 1525 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 12 AND "appendages"."id" = $1 LIMIT 1 [["id", 7]] [shard 1525 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 11 AND "appendages"."id" = $1 LIMIT 1 [["id", 15250000000000007]] [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 13 [shard 1525 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 13]] [shard 1525 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 13 [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.9ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 16], ["value", 1]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 15250000000000016], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 16 AND "appendages"."value" IS NULL [shard 1525 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 15250000000000016 AND "appendages"."value" IS NULL [shard 1526 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 16]] [shard 1525 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 16 AND "appendages"."value" IS NULL [shard 1525 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 15250000000000016 AND "appendages"."value" IS NULL [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.2ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10], ["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["value", 1]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 15250000000000017], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3], ["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["value", 2]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17 [shard 1525 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 1525 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17 [shard 1525 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15250000000000017 [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 18], ["value", 1]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 15250000000000018], ["value", 2]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 18 [shard 1525 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 1525 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 18 [shard 1525 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 15250000000000018 [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12], ["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 15250000000000019], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5], ["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["value", 2]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 19 AND "digits"."value" IS NULL [shard 1525 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15250000000000019 AND "digits"."value" IS NULL [shard 1526 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [shard 1525 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 19 AND "digits"."value" IS NULL [shard 1525 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15250000000000019 AND "digits"."value" IS NULL [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 13], ["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 13], ["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["value", 1]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 15250000000000020], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6], ["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["value", 2]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 20 AND (digits.value IS NOT NULL) [shard 1525 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15250000000000020 AND (digits.value IS NOT NULL) [shard 1526 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 1525 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 20 AND (digits.value IS NOT NULL) [shard 1525 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15250000000000020 AND (digits.value IS NOT NULL) [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 21], ["value", 1]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 15250000000000021], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 21], ["value", 2]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 1525 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 21 AND (appendages.value IS NOT NULL) [shard 1525 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 15250000000000021 AND (appendages.value IS NOT NULL) [shard 1526 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 1525 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 21 AND (appendages.value IS NOT NULL) [shard 1525 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 15250000000000021 AND (appendages.value IS NOT NULL) [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 16], ["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 15250000000000022], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["value", 2]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 22 AND "digits"."value" IS NULL [shard 1525 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15250000000000022 AND "digits"."value" IS NULL [shard 1526 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 22]] [shard 1525 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 22 AND "digits"."value" IS NULL [shard 1525 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15250000000000022 AND "digits"."value" IS NULL [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 15260000000000022], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 17]] [shard 1525 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 22 LIMIT 1 [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 24 LIMIT 1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 18]] [shard 1525 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 24 LIMIT 1 [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 25], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 15250000000000025], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 15260000000000024], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 1525 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (25) [shard 1525 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (15250000000000025) [shard 1526 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 1526 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (24) [shard 1526 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 19 [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 15250000000000026], ["value", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1227], ["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["value", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 15260000000000025], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15250000000000021], ["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["value", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 1524 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (1227) [shard 1524 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (21) [shard 1525 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 1525 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 1526 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 26 [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 27], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 15250000000000027], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 15250000000000027], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 22], ["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11], ["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15260000000000011], ["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15260000000000012], ["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 15260000000000026], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 26], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 26], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15250000000000023], ["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15260000000000013], ["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 14], ["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 1525 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (27) [shard 1525 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (15250000000000027) [shard 1526 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (22) [shard 1525 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (11, 12) [shard 1526 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 1526 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (26) [shard 1526 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (13, 14) [shard 1526 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 15250000000000028], ["value", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 15260000000000027], ["value", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 2490], ["value", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 1524 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 1525 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 1526 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2490) [shard 1524 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 28 [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1231], ["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["value", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15240000000001231], ["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1231 LIMIT 1 [shard 1524 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1231) [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", 15260000000000029]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 58]] [shard 1524 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 29 LIMIT 1 [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["owner_id", 1232], ["owner_type", "Appendage"], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["value", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 119]] [shard 1524 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1232 LIMIT 1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master]  (0.2ms) UPDATE "features" SET "owner_id" = 15250000000000031, "owner_type" = 'User', "updated_at" = '2014-12-16 21:28:23.688345' WHERE "features"."id" = 119 [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 119]] [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["owner_id", 32], ["owner_type", "User"], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["value", 1]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["owner_id", 15250000000000032], ["owner_type", "User"], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["value", 2]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 32 AND "features"."owner_type" = 'User' [shard 1525 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 32]] [shard 1525 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 32 AND "features"."owner_type" = 'User' [shard 1525 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 15250000000000032 AND "features"."owner_type" = 'User' [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1524], ["name", nil]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1525], ["name", "switchman_test_shard_1525"]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1526], ["name", "switchman_test_shard_1526"]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1525 LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1526 LIMIT 1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["owner_id", 2491], ["owner_type", "User"], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["value", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 120 LIMIT 1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master] SQL (15.1ms) DELETE FROM "switchman_shards" [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1524], ["name", nil]] [shard 1524 master]  (0.4ms) COMMIT [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1525], ["name", "switchman_test_shard_1525"]] [shard 1524 master]  (0.2ms) COMMIT [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1526], ["name", "switchman_test_shard_1526"]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1525 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1524 master]  (0.4ms) COMMIT [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1524 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1524 master]  (0.4ms) COMMIT [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1524 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:28:23.805878' [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1524 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:28:23.818570' [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1524 master]  (0.4ms) COMMIT [shard 1524 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1524 master] SQL (0.6ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:28:23.823154' [shard 1524 master] SQL (0.3ms) DELETE FROM "users" [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1524 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:28:23.828038' [shard 1524 master] SQL (0.4ms) DELETE FROM "users" [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1524 master] SQL (0.1ms) DELETE FROM "users" [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1524 master] SQL (0.1ms) DELETE FROM "users" [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1524 master]  (0.4ms) COMMIT [shard 1524 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1524 master] SQL (0.3ms) DELETE FROM "users" [shard 1524 master] SQL (0.1ms) DELETE FROM "users" [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1524 master]  (0.4ms) COMMIT [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2506]] [shard 1524 master] CACHE (0.0ms) 1524::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2506]] CACHE (0.0ms) 1524::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2506]]  (0.1ms) BEGIN [shard 1524 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-12-16 21:28:23.851142' WHERE "users"."id" = 2506 [shard 1524 master]  (0.2ms) COMMIT [shard 1524 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2506]] [shard 1524 master] CACHE (0.0ms) 1524::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2506]] SQL (0.4ms) DELETE FROM "users" [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00]] [shard 1524 master]  (0.2ms) COMMIT [shard 1524 master] User Load (0.3ms) SELECT "users".* FROM "users" [shard 1524 master] SQL (0.4ms) DELETE FROM "users" [shard 1524 master] SQL (0.1ms) DELETE FROM "users" [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1524], ["name", nil]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1525], ["name", "switchman_test_shard_1525"]] [shard 1524 master]  (0.2ms) COMMIT [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1526], ["name", "switchman_test_shard_1526"]] [shard 1524 master]  (0.2ms) COMMIT [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:29:23 UTC +00:00]] [shard 1525 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.0ms) ROLLBACK [shard 1525 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1524], ["name", nil]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1525], ["name", "switchman_test_shard_1525"]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1526], ["name", "switchman_test_shard_1526"]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1524], ["name", nil]] [shard 1524 master]  (0.4ms) COMMIT [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1525], ["name", "switchman_test_shard_1525"]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1526], ["name", "switchman_test_shard_1526"]] [shard 1524 master]  (0.2ms) COMMIT [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:23 UTC +00:00], ["user_id", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 58]] [shard 1524 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 58]] [shard 1524 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 58 LIMIT 1 [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1524], ["name", nil]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1525], ["name", "switchman_test_shard_1525"]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1526], ["name", "switchman_test_shard_1526"]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (1524, 1525) AND (id IN (1525,1526)) [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1524], ["name", nil]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1525], ["name", "switchman_test_shard_1525"]] [shard 1524 master]  (0.2ms) COMMIT [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1526], ["name", "switchman_test_shard_1526"]] [shard 1524 master]  (0.2ms) COMMIT [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1524], ["name", nil]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1525], ["name", "switchman_test_shard_1525"]] [shard 1524 master]  (0.2ms) COMMIT [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1526], ["name", "switchman_test_shard_1526"]] [shard 1524 master]  (0.2ms) COMMIT [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1526 master]  (0.1ms) SAVEPOINT active_record_2 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1526 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 1524 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master]  (0.0ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1524], ["name", nil]] [shard 1524 master]  (0.2ms) COMMIT [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1525], ["name", "switchman_test_shard_1525"]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1526], ["name", "switchman_test_shard_1526"]] [shard 1524 master]  (0.2ms) COMMIT [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '2' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", "public"]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1527 [shard 1527 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1527 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1527 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1527 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1527 deploy]  (2.6ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1527 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1527 deploy]  (0.3ms) COMMIT [shard 1527 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1527 deploy]  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1527 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1527 deploy]  (0.3ms) COMMIT [shard 1527 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1527 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1527 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1527 deploy]  (0.3ms) COMMIT [shard 1527 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1527 deploy]  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1527 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1527 deploy]  (0.3ms) COMMIT [shard 1527 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1527 deploy]  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1527 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1527 deploy]  (0.4ms) COMMIT [shard 1527 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1527 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1527 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1527 deploy]  (0.3ms) COMMIT [shard 1527 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1527 deploy]  (2.4ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1527 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1527 deploy]  (0.3ms) COMMIT [shard 1527 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1527' WHERE "switchman_shards"."id" = 1527 [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) BEGIN [shard 1527 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1527 master]  (0.3ms) COMMIT [shard 1527 master]  (4.6ms) DROP SCHEMA switchman_test_shard_1527 CASCADE [shard 1527 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1527]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '3' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.0ms) select sqlite_version(*) [shard 1528 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 1528 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1528 deploy]  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1528 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 1528 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1528 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1528 deploy]  (0.7ms) commit transaction [shard 1528 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 1528 deploy]  (0.3ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1528 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1528 deploy]  (0.6ms) commit transaction [shard 1528 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 1528 deploy]  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1528 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1528 deploy]  (0.8ms) commit transaction [shard 1528 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 1528 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1528 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1528 deploy]  (0.6ms) commit transaction [shard 1528 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 1528 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1528 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1528 deploy]  (0.7ms) commit transaction [shard 1528 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 1528 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 1528 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1528 deploy]  (0.7ms) commit transaction [shard 1528 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 1528 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1528 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1528 deploy]  (0.7ms) commit transaction [shard 1528 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_1528.sqlite3' WHERE "switchman_shards"."id" = 1528 [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.0ms) begin transaction [shard 1528 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1528 master]  (0.8ms) commit transaction [shard 1528 master] Drop failed: No such file or directory @ unlink_internal - db/shard_1528.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1528]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.2ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 1524 master]  (0.1ms) CREATE SCHEMA switchman_test_shard_1529 [shard 1529 deploy]  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1529 deploy]  (15.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1529 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1529 deploy] Migrating to CreateUsers (20130403132607)  (2.6ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1529 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1529 deploy] Migrating to CreateAppendages (20130411202442)  (2.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1529 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1529 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1529 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1529 deploy] Migrating to CreateDigits (20131022202028)  (2.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1529 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1529 deploy] Migrating to CreateFeatures (20131206172923)  (2.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1529 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1529 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1529 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1529 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1529 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1529 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1529' WHERE "switchman_shards"."id" = 1529 [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1529 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1529 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1529 master]  (2.5ms) DROP SCHEMA switchman_test_shard_1529 CASCADE [shard 1529 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1529]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (3.8ms) ROLLBACK [shard 1524 master] SQL (1.1ms) DELETE FROM "switchman_shards" [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master]  (0.0ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master]  (0.0ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master]  (0.0ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master]  (0.0ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master]  (0.0ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1524], ["name", nil]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1525], ["name", "switchman_test_shard_1525"]] [shard 1524 master]  (0.2ms) COMMIT [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1526], ["name", "switchman_test_shard_1526"]] [shard 1524 master]  (0.2ms) COMMIT [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master] SQL (0.8ms) DELETE FROM "switchman_shards" [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1524], ["name", nil]] [shard 1524 master]  (0.4ms) COMMIT [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1525], ["name", "switchman_test_shard_1525"]] [shard 1524 master]  (0.2ms) COMMIT [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1526], ["name", "switchman_test_shard_1526"]] [shard 1524 master]  (0.4ms) COMMIT [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1525 LIMIT 1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (1.0ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master] SQL (14.6ms) DELETE FROM "switchman_shards" [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1524], ["name", nil]] [shard 1524 master]  (0.4ms) COMMIT [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1525], ["name", "switchman_test_shard_1525"]] [shard 1524 master]  (0.2ms) COMMIT [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1526], ["name", "switchman_test_shard_1526"]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1524], ["name", nil]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1525], ["name", "switchman_test_shard_1525"]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1526], ["name", "switchman_test_shard_1526"]] [shard 1524 master]  (0.2ms) COMMIT [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 39], ["value", 1]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 39], ["value", 2]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 34], ["value", 3]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 34], ["value", 4]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 34], ["value", 5]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 39 [shard 1525 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 1525 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 34 [shard 1526 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 1526 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1525 LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1526 LIMIT 1 [shard 1524 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (25, 26) [shard 1525 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (16, 17, 18) [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 40], ["value", 1]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 40], ["value", 2]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 35], ["value", 3]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 35], ["value", 4]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 35], ["value", 5]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 40 [shard 1525 master]  (0.2ms) SELECT COUNT(*) FROM "appendages"  [shard 1525 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 35 [shard 1526 master]  (0.1ms) SELECT COUNT(*) FROM "appendages"  [shard 1526 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (27, 28) [shard 1525 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (19, 20, 21) [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 41], ["value", 1]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 41], ["value", 2]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 36], ["value", 3]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 36], ["value", 4]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 36], ["value", 5]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 41 [shard 1525 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 1525 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 36 [shard 1526 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 1526 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (29, 30) [shard 1525 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (22, 23, 24) [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 42], ["value", 1]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 42], ["value", 2]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 37], ["value", 3]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 37], ["value", 4]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 37], ["value", 5]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 42 [shard 1525 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 1525 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 37 [shard 1526 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 1526 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (31, 32) [shard 1525 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (25, 26, 27) [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 43], ["value", 1]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 43], ["value", 2]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 38], ["value", 3]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 38], ["value", 4]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 38], ["value", 5]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 43 [shard 1525 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 1525 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 38 [shard 1526 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 1526 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (33, 34) [shard 1525 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (28, 29, 30) [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 44], ["value", 1]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 15260000000000039], ["value", 3]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 15250000000000044], ["value", 2]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 39], ["value", 4]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 39], ["value", 5]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SHOW max_identifier_length [shard 1524 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1525 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1526 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1525 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1526 master]  (0.1ms) SHOW max_identifier_length [shard 1526 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1525 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1526 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1525 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (44) [shard 1525 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) [shard 1526 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1526 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) [shard 1526 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (44) [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 45], ["value", 1]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 15260000000000040], ["value", 3]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 15250000000000045], ["value", 2]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 40], ["value", 4]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 40], ["value", 5]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1525 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1526 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1525 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1526 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1525 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1526 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1525 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [shard 1525 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) [shard 1526 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1526 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) [shard 1526 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 46], ["value", 1]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 15260000000000041], ["value", 3]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 15250000000000046], ["value", 2]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 41], ["value", 4]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 41], ["value", 5]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 48], ["value", 1]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 15260000000000042], ["value", 3]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 15250000000000048], ["value", 2]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 42], ["value", 4]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 42], ["value", 5]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1525 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1526 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1525 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1526 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1525 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1526 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1525 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (48) [shard 1525 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [shard 1526 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1526 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [shard 1526 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (48) [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 49], ["value", 1]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 15260000000000043], ["value", 3]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 15250000000000049], ["value", 2]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 43], ["value", 4]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 43], ["value", 5]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1525 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1526 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1525 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1526 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1525 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1526 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1525 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (49) [shard 1525 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) [shard 1526 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1526 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) [shard 1526 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (49) [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 50], ["value", 1]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 15260000000000044], ["value", 3]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 15250000000000050], ["value", 2]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 44], ["value", 4]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 44], ["value", 5]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1525 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1526 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1525 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1526 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1525 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1526 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1525 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (50) [shard 1525 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (44) [shard 1526 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1526 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (44) [shard 1526 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (50) [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 49 [shard 1525 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 49 [shard 1526 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 49 [shard 1525 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 49 [shard 1526 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 49 [shard 1525 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 49 [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 1525 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 1526 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 1525 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 1526 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 1525 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (53) [shard 1525 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (47) [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:24 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master] SQL (0.5ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (2511) [shard 1524 master] SQL (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (54) [shard 1525 master] SQL (0.4ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (48) [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", "non_existent_shard"]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 1534 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.8ms) SELECT COUNT(*) FROM "users" [shard 1535 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.2ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "17"], ["default", false], ["name", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "18"], ["default", false], ["name", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1524], ["name", nil]] [shard 1524 master]  (0.4ms) COMMIT [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1525], ["name", "switchman_test_shard_1525"]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1526], ["name", "switchman_test_shard_1526"]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1525 LIMIT 1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1542]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1542 LIMIT 1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.2ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1543]] [shard 1524 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.0ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1526 LIMIT 1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11526 LIMIT 1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '20' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "20"], ["default", false], ["name", "public"]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1544 [shard 1544 deploy]  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1544 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1544 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1544 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1544 deploy]  (3.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1544 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1544 deploy]  (0.3ms) COMMIT [shard 1544 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1544 deploy]  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1544 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1544 deploy]  (0.3ms) COMMIT [shard 1544 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1544 deploy]  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1544 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1544 deploy]  (0.4ms) COMMIT [shard 1544 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1544 deploy]  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1544 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1544 deploy]  (0.3ms) COMMIT [shard 1544 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1544 deploy]  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1544 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1544 deploy]  (0.3ms) COMMIT [shard 1544 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 1544 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1544 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1544 deploy]  (0.3ms) COMMIT [shard 1544 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1544 deploy]  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1544 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1544 deploy]  (0.4ms) COMMIT [shard 1544 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1544' WHERE "switchman_shards"."id" = 1544 [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) BEGIN [shard 1544 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1544 master]  (0.3ms) COMMIT [shard 1544 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 1544 master]  (4.8ms) DROP SCHEMA switchman_test_shard_1544 CASCADE [shard 1544 deploy]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 1544 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 1526 master]  (0.2ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1524], ["name", nil]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1525], ["name", "switchman_test_shard_1525"]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1526], ["name", "switchman_test_shard_1526"]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1524], ["name", nil]] [shard 1524 master]  (0.2ms) COMMIT [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1525], ["name", "switchman_test_shard_1525"]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1526], ["name", "switchman_test_shard_1526"]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1525 LIMIT 1 [shard 1524 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 56 LIMIT 1 [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) LIMIT 1 [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.2ms) ROLLBACK [shard 1525 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 58]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 15250000000000058 LIMIT 1 [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 59]] [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 60 LIMIT 1 [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 1524 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1524 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1525 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1526 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "21"], ["default", false], ["name", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "21"], ["default", false], ["name", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master]  (0.0ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1524], ["name", nil]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1525], ["name", "switchman_test_shard_1525"]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1526], ["name", "switchman_test_shard_1526"]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=1525)) ORDER BY id [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ('f') [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1525)) ORDER BY id [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1524)) [shard 1524 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1524 AND id<1525) OR (id>=1526 AND id<1527)) ORDER BY id [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1524 AND id<=1525)) AND (id NOT IN (1524)) [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1524)) [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1524)) [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1524 AND id<1525)) [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1524 AND id<=1525)) ORDER BY id [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1524], ["name", nil]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1525], ["name", "switchman_test_shard_1525"]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1526], ["name", "switchman_test_shard_1526"]] [shard 1524 master]  (0.2ms) COMMIT [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 62 [shard 1525 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2512]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1525 LIMIT 1 [shard 1524 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 62]] [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (2513) [shard 1524 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (63) [shard 1525 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2513]] [shard 1524 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 65 LIMIT 1 [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2516) [shard 1524 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1524], ["name", nil]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1525], ["name", "switchman_test_shard_1525"]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1526], ["name", "switchman_test_shard_1526"]] [shard 1524 master]  (0.3ms) COMMIT [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (1.0ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 2517], ["value", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 67], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 2518], ["value", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 68], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1525 LIMIT 1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 2519], ["value", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 2520], ["value", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 70], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 2521], ["value", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 71], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 2522], ["value", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 72], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 2523], ["value", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 73], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1524 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 2524], ["value", nil]] [shard 1524 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1525 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 74], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 2525], ["value", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 75], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 2526], ["value", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 76], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 2527], ["value", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 77], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1525 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 2528], ["value", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 78], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 2529], ["value", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 79], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 62], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.1ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 2530], ["value", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 80], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 63], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.2ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.1ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 2531], ["value", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 81], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master]  (0.0ms) BEGIN [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1525]] [shard 1524 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1526]] [shard 1524 master]  (0.0ms) BEGIN [shard 1526 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 2532], ["value", nil]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1525 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 82], ["value", nil]] [shard 1525 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1525 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1526 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["user_id", 65], ["value", nil]] [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1526 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2532], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1524 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2533], ["updated_at", Tue, 16 Dec 2014 21:28:25 UTC +00:00]] [shard 1524 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1524 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2533]] [shard 1524 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2532 LIMIT 1 [shard 1524 master]  (0.1ms) SHOW max_identifier_length [shard 1524 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 2532 [shard 1524 master]  (0.1ms) ROLLBACK [shard 1526 master]  (0.1ms) ROLLBACK [shard 1524 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1524 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1524 master]  (5.0ms) DROP SCHEMA switchman_test_shard_1525 CASCADE [shard 1525 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1525]]  (0.1ms) COMMIT  (5.6ms) DROP SCHEMA switchman_test_shard_1526 CASCADE [shard 1526 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1526]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.8ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.2ms) CREATE SCHEMA switchman_test_shard_1548 [shard 1548 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1548 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1548 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1548 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1548 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1548 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1548 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1548 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1548 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1548 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1548 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1548 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1548 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1548 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1548 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1548 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1548 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1548 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1548' WHERE "switchman_shards"."id" = 1548 [shard 1547 master]  (0.7ms) COMMIT [shard 1547 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master]  (1.0ms) CREATE SCHEMA switchman_test_shard_1549 [shard 1549 deploy]  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1549 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1549 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1549 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1549 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1549 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1549 deploy]  (0.4ms) COMMIT [shard 1549 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1549 deploy]  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1549 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1549 deploy]  (0.4ms) COMMIT [shard 1549 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1549 deploy]  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1549 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1549 deploy]  (0.3ms) COMMIT [shard 1549 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1549 deploy]  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1549 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1549 deploy]  (0.3ms) COMMIT [shard 1549 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1549 deploy]  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1549 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1549 deploy]  (0.3ms) COMMIT [shard 1549 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1549 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1549 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1549 deploy]  (0.2ms) COMMIT [shard 1549 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1549 deploy]  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1549 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1549 deploy]  (0.3ms) COMMIT [shard 1549 deploy]  (0.1ms) BEGIN [shard 1547 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1549' WHERE "switchman_shards"."id" = 1549 [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1547], ["name", nil]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1548], ["name", "switchman_test_shard_1548"]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1549], ["name", "switchman_test_shard_1549"]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 2535], ["value", nil]] [shard 1547 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 2536], ["value", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 2537], ["value", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 2538], ["value", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 2539], ["value", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 2540], ["value", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 2541], ["value", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 2542], ["value", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1548 LIMIT 1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 2543], ["value", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 2544], ["value", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 2545], ["value", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 2546], ["value", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2546], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2547], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2547]] [shard 1547 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2546 LIMIT 1 [shard 1547 master]  (0.1ms) SHOW max_identifier_length [shard 1547 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 2546 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 2549], ["value", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.2ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 2550], ["value", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 2551], ["value", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 2552], ["value", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1547], ["name", nil]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1548], ["name", "switchman_test_shard_1548"]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1549], ["name", "switchman_test_shard_1549"]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1547], ["name", nil]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1548], ["name", "switchman_test_shard_1548"]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1549], ["name", "switchman_test_shard_1549"]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1548 LIMIT 1 [shard 1547 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (2553) [shard 1547 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (17) [shard 1548 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2553]] [shard 1547 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 18 [shard 1548 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2554]] [shard 1547 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2555) [shard 1547 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 20 LIMIT 1 [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1547], ["name", nil]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1548], ["name", "switchman_test_shard_1548"]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1549], ["name", "switchman_test_shard_1549"]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) ROLLBACK [shard 1549 master]  (0.0ms) ROLLBACK [shard 1547 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master]  (0.0ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1547 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master]  (0.0ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1547], ["name", nil]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1548], ["name", "switchman_test_shard_1548"]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1549], ["name", "switchman_test_shard_1549"]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:30 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1549 master]  (0.1ms) SAVEPOINT active_record_2 [shard 1549 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1549 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1547], ["name", nil]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1548], ["name", "switchman_test_shard_1548"]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1549], ["name", "switchman_test_shard_1549"]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 22], ["value", 1]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 22], ["value", 2]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 19], ["value", 3]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 19], ["value", 4]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 19], ["value", 5]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.6ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 22 [shard 1548 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1548 master]  (0.5ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 19 [shard 1549 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1549 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1548 LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1549 LIMIT 1 [shard 1547 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (17, 18) [shard 1548 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (17, 18, 19) [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 23], ["value", 1]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 23], ["value", 2]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 20], ["value", 3]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 20], ["value", 4]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 20], ["value", 5]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 23 [shard 1548 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1548 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 20 [shard 1549 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1549 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (19, 20) [shard 1548 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (20, 21, 22) [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 24], ["value", 1]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 24], ["value", 2]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 21], ["value", 3]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 21], ["value", 4]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 21], ["value", 5]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 24 [shard 1548 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 1548 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 21 [shard 1549 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 1549 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (21, 22) [shard 1548 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (23, 24, 25) [shard 1549 master]  (0.2ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 25], ["value", 1]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 25], ["value", 2]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 22], ["value", 3]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 22], ["value", 4]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 22], ["value", 5]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 25 [shard 1548 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1548 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 22 [shard 1549 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1549 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (23, 24) [shard 1548 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (26, 27, 28) [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 26], ["value", 1]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 26], ["value", 2]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 23], ["value", 3]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 23], ["value", 4]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 23], ["value", 5]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 26 [shard 1548 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1548 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 23 [shard 1549 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1549 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (25, 26) [shard 1548 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (29, 30, 31) [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 27], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master] SQL (0.3ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (27) [shard 1548 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (24) [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 25], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 28 [shard 1548 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 1549 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 28 [shard 1548 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 1549 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 28 [shard 1548 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 26], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master] SQL (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (2558) [shard 1547 master] SQL (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (29) [shard 1548 master] SQL (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (26) [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 27], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 30 [shard 1548 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 1549 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 30 [shard 1548 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 1549 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 30 [shard 1548 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 31], ["value", 1]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 15490000000000028], ["value", 3]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 15480000000000031], ["value", 2]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 28], ["value", 4]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 28], ["value", 5]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1548 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1549 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1548 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1549 master]  (0.1ms) SHOW max_identifier_length [shard 1549 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1548 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1549 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1548 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (31) [shard 1548 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 1549 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1549 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 1549 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (31) [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 32], ["value", 1]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 15490000000000029], ["value", 3]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 15480000000000032], ["value", 2]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 29], ["value", 4]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 29], ["value", 5]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1548 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1549 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1548 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1549 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1548 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1549 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1548 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (32) [shard 1548 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [shard 1549 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1549 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [shard 1549 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (32) [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 33], ["value", 1]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 15490000000000030], ["value", 3]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 15480000000000033], ["value", 2]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 30], ["value", 4]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 30], ["value", 5]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1548 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1549 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1548 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1549 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1548 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1549 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1548 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (33) [shard 1548 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [shard 1549 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1549 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [shard 1549 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (33) [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 34], ["value", 1]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 15490000000000031], ["value", 3]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 15480000000000034], ["value", 2]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 31], ["value", 4]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 31], ["value", 5]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1548 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1549 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1548 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1549 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1548 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1549 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1548 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (34) [shard 1548 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (31) [shard 1549 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1549 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (31) [shard 1549 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (34) [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 35], ["value", 1]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 15490000000000032], ["value", 3]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 15480000000000035], ["value", 2]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 32], ["value", 4]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 32], ["value", 5]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 37], ["value", 1]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 15490000000000033], ["value", 3]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 15480000000000037], ["value", 2]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 33], ["value", 4]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", 33], ["value", 5]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1548 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1549 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1548 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1549 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1548 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1549 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1548 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 1548 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (33) [shard 1549 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1549 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (33) [shard 1549 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1547], ["name", nil]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1548], ["name", "switchman_test_shard_1548"]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1549], ["name", "switchman_test_shard_1549"]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1547], ["name", nil]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1548], ["name", "switchman_test_shard_1548"]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1549], ["name", "switchman_test_shard_1549"]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (1547, 1548) AND (id IN (1548,1549)) [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1547], ["name", nil]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1548], ["name", "switchman_test_shard_1548"]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1549], ["name", "switchman_test_shard_1549"]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=1548)) ORDER BY id [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1547 AND id<=1548)) ORDER BY id [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1547 AND id<=1548)) AND (id NOT IN (1547)) [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1548)) ORDER BY id [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.0ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1547)) [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1547)) [shard 1547 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1547 AND id<1548) OR (id>=1549 AND id<1550)) ORDER BY id [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1547)) [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1547 AND id<1548)) [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ('f') [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1547], ["name", nil]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1548], ["name", "switchman_test_shard_1548"]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1549], ["name", "switchman_test_shard_1549"]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) ROLLBACK [shard 1549 master]  (0.0ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 59]] [shard 1547 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 59]] [shard 1547 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 59 LIMIT 1 [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1547 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1547], ["name", nil]] [shard 1547 master]  (0.4ms) COMMIT [shard 1547 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1548], ["name", "switchman_test_shard_1548"]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1549], ["name", "switchman_test_shard_1549"]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1548 LIMIT 1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.0ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) ROLLBACK [shard 1549 master]  (0.0ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1547 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1547], ["name", nil]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1548], ["name", "switchman_test_shard_1548"]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1549], ["name", "switchman_test_shard_1549"]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1548 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1547 master]  (0.4ms) COMMIT [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) ROLLBACK [shard 1549 master]  (0.0ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1547 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:28:31.564258' [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1547 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:28:31.570019' [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1547 master]  (0.4ms) COMMIT [shard 1547 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1547 master] SQL (0.6ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:28:31.574226' [shard 1547 master] SQL (0.3ms) DELETE FROM "users" [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1547 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:28:31.578628' [shard 1547 master] SQL (0.4ms) DELETE FROM "users" [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) ROLLBACK [shard 1549 master]  (0.0ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1547 master] SQL (0.1ms) DELETE FROM "users" [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1547 master] SQL (0.1ms) DELETE FROM "users" [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1547 master] SQL (0.3ms) DELETE FROM "users" [shard 1547 master] SQL (0.1ms) DELETE FROM "users" [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1547 master] SQL (0.2ms) DELETE FROM "users" [shard 1547 master] SQL (0.1ms) DELETE FROM "users" [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2575]] [shard 1547 master] CACHE (0.0ms) 1547::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2575]] CACHE (0.0ms) 1547::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2575]]  (0.1ms) BEGIN [shard 1547 master]  (0.3ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-12-16 21:28:31.618492' WHERE "users"."id" = 2575 [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2575]] [shard 1547 master] CACHE (0.0ms) 1547::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2575]] SQL (0.3ms) DELETE FROM "users" [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master]  (0.0ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1547], ["name", nil]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1548], ["name", "switchman_test_shard_1548"]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1549], ["name", "switchman_test_shard_1549"]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1547], ["name", nil]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1548], ["name", "switchman_test_shard_1548"]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1549], ["name", "switchman_test_shard_1549"]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master] SQL (20.4ms) DELETE FROM "switchman_shards" [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master]  (0.0ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master]  (0.0ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master]  (0.0ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master]  (0.0ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master]  (0.0ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master]  (0.0ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1547], ["name", nil]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1548], ["name", "switchman_test_shard_1548"]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1549], ["name", "switchman_test_shard_1549"]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '4' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", "public"]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1552 [shard 1552 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1552 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1552 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1552 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1552 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1552 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1552 deploy]  (0.4ms) COMMIT [shard 1552 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1552 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1552 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1552 deploy]  (0.4ms) COMMIT [shard 1552 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1552 deploy]  (2.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1552 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1552 deploy]  (0.3ms) COMMIT [shard 1552 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1552 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1552 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1552 deploy]  (0.3ms) COMMIT [shard 1552 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1552 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1552 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1552 deploy]  (0.3ms) COMMIT [shard 1552 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1552 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1552 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1552 deploy]  (0.2ms) COMMIT [shard 1552 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1552 deploy]  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1552 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1552 deploy]  (0.3ms) COMMIT [shard 1552 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1552' WHERE "switchman_shards"."id" = 1552 [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) BEGIN [shard 1552 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1552 master]  (0.2ms) COMMIT [shard 1552 master]  (4.8ms) DROP SCHEMA switchman_test_shard_1552 CASCADE [shard 1552 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1552]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '5' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.0ms) select sqlite_version(*) [shard 1553 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 1553 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1553 deploy]  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1553 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 1553 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1553 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1553 deploy]  (0.8ms) commit transaction [shard 1553 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 1553 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1553 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1553 deploy]  (0.8ms) commit transaction [shard 1553 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 1553 deploy]  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1553 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1553 deploy]  (0.7ms) commit transaction [shard 1553 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 1553 deploy]  (0.3ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1553 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1553 deploy]  (0.7ms) commit transaction [shard 1553 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 1553 deploy]  (0.3ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1553 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1553 deploy]  (0.7ms) commit transaction [shard 1553 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 1553 deploy]  (0.3ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 1553 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1553 deploy]  (0.7ms) commit transaction [shard 1553 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 1553 deploy]  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1553 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1553 deploy]  (0.7ms) commit transaction [shard 1553 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_1553.sqlite3' WHERE "switchman_shards"."id" = 1553 [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.0ms) begin transaction [shard 1553 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1553 master]  (0.8ms) commit transaction [shard 1553 master] Drop failed: No such file or directory @ unlink_internal - db/shard_1553.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1553]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 1547 master]  (0.2ms) CREATE SCHEMA switchman_test_shard_1554 [shard 1554 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1554 deploy]  (15.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1554 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1554 deploy] Migrating to CreateUsers (20130403132607)  (3.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1554 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1554 deploy] Migrating to CreateAppendages (20130411202442)  (2.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1554 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1554 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1554 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1554 deploy] Migrating to CreateDigits (20131022202028)  (3.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1554 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1554 deploy] Migrating to CreateFeatures (20131206172923)  (2.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1554 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1554 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1554 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1554 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1554 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1554 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1554' WHERE "switchman_shards"."id" = 1554 [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1554 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1554 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1554 master]  (3.5ms) DROP SCHEMA switchman_test_shard_1554 CASCADE [shard 1554 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1554]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (2.1ms) ROLLBACK [shard 1547 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1547 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1547], ["name", nil]] [shard 1547 master]  (0.4ms) COMMIT [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1548], ["name", "switchman_test_shard_1548"]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1549], ["name", "switchman_test_shard_1549"]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1548 LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1549 LIMIT 1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["owner_id", 2578], ["owner_type", "User"], ["updated_at", Tue, 16 Dec 2014 21:28:31 UTC +00:00], ["value", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master] Feature Load (0.5ms) SELECT owner_id FROM "features" WHERE "features"."id" = 121 LIMIT 1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1547], ["name", nil]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1548], ["name", "switchman_test_shard_1548"]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1549], ["name", "switchman_test_shard_1549"]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1548 LIMIT 1 [shard 1547 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 44]] [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) LIMIT 1 [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 46 LIMIT 1 [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 1547 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1547 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1548 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 48 LIMIT 1 [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 49]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 15480000000000049 LIMIT 1 [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1547], ["name", nil]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1548], ["name", "switchman_test_shard_1548"]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1549], ["name", "switchman_test_shard_1549"]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1548 LIMIT 1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) ROLLBACK [shard 1549 master]  (0.0ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) ROLLBACK [shard 1549 master]  (0.0ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1549 LIMIT 1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11549 LIMIT 1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) ROLLBACK [shard 1549 master]  (0.0ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1555]] [shard 1547 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.0ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) ROLLBACK [shard 1549 master]  (0.0ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) ROLLBACK [shard 1549 master]  (0.0ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1556]] [shard 1547 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1556 LIMIT 1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) ROLLBACK [shard 1549 master]  (0.0ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) ROLLBACK [shard 1549 master]  (0.0ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) ROLLBACK [shard 1549 master]  (0.0ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.0ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '14' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", "public"]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1557 [shard 1557 deploy]  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1557 deploy]  (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1557 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1557 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1557 deploy]  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1557 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1557 deploy]  (0.3ms) COMMIT [shard 1557 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1557 deploy]  (4.3ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1557 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1557 deploy]  (0.3ms) COMMIT [shard 1557 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1557 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1557 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1557 deploy]  (0.4ms) COMMIT [shard 1557 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1557 deploy]  (3.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1557 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1557 deploy]  (0.3ms) COMMIT [shard 1557 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1557 deploy]  (2.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1557 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1557 deploy]  (0.3ms) COMMIT [shard 1557 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1557 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1557 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1557 deploy]  (0.3ms) COMMIT [shard 1557 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1557 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1557 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1557 deploy]  (0.3ms) COMMIT [shard 1557 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1557' WHERE "switchman_shards"."id" = 1557 [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) BEGIN [shard 1557 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1557 master]  (0.3ms) COMMIT [shard 1557 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1557 master]  (4.5ms) DROP SCHEMA switchman_test_shard_1557 CASCADE [shard 1557 deploy]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 1557 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", "non_existent_shard"]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 1558 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.8ms) SELECT COUNT(*) FROM "users" [shard 1559 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "17"], ["default", false], ["name", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "18"], ["default", false], ["name", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "19"], ["default", false], ["name", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "20"], ["default", false], ["name", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "21"], ["default", false], ["name", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1547], ["name", nil]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1548], ["name", "switchman_test_shard_1548"]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1549], ["name", "switchman_test_shard_1549"]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "22"], ["default", false], ["name", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "22"], ["default", false], ["name", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master] SQL (15.7ms) DELETE FROM "switchman_shards" [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1547], ["name", nil]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1548], ["name", "switchman_test_shard_1548"]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1549], ["name", "switchman_test_shard_1549"]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:29:32 UTC +00:00]] [shard 1548 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.0ms) ROLLBACK [shard 1549 master]  (0.0ms) ROLLBACK [shard 1548 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "23"], ["default", false], ["name", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "23"], ["default", false], ["name", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1547], ["name", nil]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1548], ["name", "switchman_test_shard_1548"]] [shard 1547 master]  (0.3ms) COMMIT [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1549], ["name", "switchman_test_shard_1549"]] [shard 1547 master]  (0.2ms) COMMIT [shard 1547 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 51], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 52], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 51]] [shard 1548 master]  (0.1ms) SHOW max_identifier_length [shard 1548 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 51 AND "users"."id" = 53 LIMIT 1 [shard 1548 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1548 LIMIT 1 [shard 1547 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 51]] [shard 1548 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 51 AND "users"."id" = 15490000000000036 LIMIT 1 [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 46]] [shard 1548 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 54 LIMIT 1 [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", nil], ["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1549 LIMIT 1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (31.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["appendage_id", 47], ["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["id", 15490000000000001], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 55 AND "digits"."id" = $1 LIMIT 1 [["id", 15490000000000001]] [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 56 [shard 1548 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 56]] [shard 1548 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 56 [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 50], ["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 60 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 62], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 62 AND "appendages"."id" = $1 LIMIT 1 [["id", 52]] [shard 1548 master] Appendage Load (0.6ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 45 AND "appendages"."id" = $1 LIMIT 1 [["id", 15480000000000052]] [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.2ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 63], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 65], ["value", 1]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 15480000000000065], ["value", 2]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 65 [shard 1548 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 65]] [shard 1548 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 65 [shard 1548 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 15480000000000065 [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 66], ["value", 1]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 15480000000000066], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 66], ["value", 2]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 66]] [shard 1548 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 66 AND (appendages.value IS NOT NULL) [shard 1548 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 15480000000000066 AND (appendages.value IS NOT NULL) [shard 1549 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 66]] [shard 1548 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 66 AND (appendages.value IS NOT NULL) [shard 1548 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 15480000000000066 AND (appendages.value IS NOT NULL) [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 67], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 57], ["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 57], ["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["value", 1]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 15480000000000067], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 58], ["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["value", 2]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 67 AND (digits.value IS NOT NULL) [shard 1548 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15480000000000067 AND (digits.value IS NOT NULL) [shard 1549 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 67]] [shard 1548 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 67 AND (digits.value IS NOT NULL) [shard 1548 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15480000000000067 AND (digits.value IS NOT NULL) [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 68], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 58], ["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["value", 1]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 15480000000000068], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 59], ["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["value", 2]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 68 [shard 1548 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 68]] [shard 1548 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 68 [shard 1548 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15480000000000068 [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 59], ["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 15480000000000069], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 60], ["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["value", 2]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 69 AND "digits"."value" IS NULL [shard 1548 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15480000000000069 AND "digits"."value" IS NULL [shard 1549 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 69]] [shard 1548 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 69 AND "digits"."value" IS NULL [shard 1548 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15480000000000069 AND "digits"."value" IS NULL [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 70], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 60], ["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 15480000000000070], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 61], ["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["value", 2]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 70 AND "digits"."value" IS NULL [shard 1548 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15480000000000070 AND "digits"."value" IS NULL [shard 1549 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 70]] [shard 1548 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 70 AND "digits"."value" IS NULL [shard 1548 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15480000000000070 AND "digits"."value" IS NULL [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 71], ["value", 1]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 15480000000000071], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 71 AND "appendages"."value" IS NULL [shard 1548 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 15480000000000071 AND "appendages"."value" IS NULL [shard 1549 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 71]] [shard 1548 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 71 AND "appendages"."value" IS NULL [shard 1548 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 15480000000000071 AND "appendages"."value" IS NULL [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.6ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 15490000000000055]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master] Root Load (0.4ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 59]] [shard 1547 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 55 LIMIT 1 [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (8.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 73 LIMIT 1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 73], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 62]] [shard 1548 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 73 LIMIT 1 [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 15490000000000057], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 63]] [shard 1548 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 57 LIMIT 1 [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.9ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["owner_id", 75], ["owner_type", "User"], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["value", 1]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["owner_id", 15480000000000075], ["owner_type", "User"], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["value", 2]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 75 AND "features"."owner_type" = 'User' [shard 1548 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 75]] [shard 1548 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 75 AND "features"."owner_type" = 'User' [shard 1548 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 15480000000000075 AND "features"."owner_type" = 'User' [shard 1549 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.2ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["owner_id", 1267], ["owner_type", "Appendage"], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["value", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 122]] [shard 1547 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1267 LIMIT 1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master]  (0.2ms) UPDATE "features" SET "owner_id" = 15480000000000076, "owner_type" = 'User', "updated_at" = '2014-12-16 21:28:32.837704' WHERE "features"."id" = 122 [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 122]] [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1268], ["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["value", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15470000000001268], ["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1268 LIMIT 1 [shard 1547 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1268) [shard 1547 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1547 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 15480000000000078], ["value", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 15490000000000061], ["value", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 2579], ["value", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 1547 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (78) [shard 1548 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [shard 1549 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2579) [shard 1547 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 78 [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 15480000000000079], ["value", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1272], ["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["value", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 15490000000000062], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15480000000000064], ["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["value", nil]] [shard 1547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 1547 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (1272) [shard 1547 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (64) [shard 1548 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (79) [shard 1548 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (62) [shard 1549 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 79 [shard 1548 master]  (0.2ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.0ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 80], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 15480000000000080], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 15480000000000080], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 65], ["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 64], ["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15490000000000064], ["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15490000000000065], ["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 15490000000000063], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 63], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 63], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1547 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15480000000000066], ["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15490000000000066], ["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 67], ["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (80) [shard 1548 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (80) [shard 1548 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (15480000000000080) [shard 1549 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (65) [shard 1548 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (64, 65) [shard 1549 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (63) [shard 1549 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (63) [shard 1549 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (66, 67) [shard 1549 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 8 [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.0ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1547 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 81], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 15480000000000081], ["value", nil]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["user_id", 15490000000000064], ["value", nil]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (81) [shard 1548 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (81) [shard 1548 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (15480000000000081) [shard 1549 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [shard 1549 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (64) [shard 1549 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 67 [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master]  (0.1ms) BEGIN [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1548]] [shard 1547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1549]] [shard 1547 master]  (0.1ms) BEGIN [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1549 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:32 UTC +00:00]] [shard 1549 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1549 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1548 master]  (0.1ms) ROLLBACK [shard 1549 master]  (0.1ms) ROLLBACK [shard 1548 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1547 master]  (6.0ms) DROP SCHEMA switchman_test_shard_1548 CASCADE [shard 1548 deploy]  (0.1ms) BEGIN SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1548]]  (0.1ms) COMMIT  (5.7ms) DROP SCHEMA switchman_test_shard_1549 CASCADE [shard 1549 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1549]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.8ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1571 [shard 1571 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1571 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1571 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1571 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1571 deploy]  (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1571 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1571 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1571 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1571 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1571 deploy] Migrating to CreateDigits (20131022202028)  (3.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1571 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1571 deploy] Migrating to CreateFeatures (20131206172923)  (2.3ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1571 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1571 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1571 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1571 deploy] Migrating to CreateRoots (20140219183820)  (2.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1571 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1571 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1571' WHERE "switchman_shards"."id" = 1571 [shard 1570 master]  (0.7ms) COMMIT [shard 1570 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 1570 master]  (0.2ms) COMMIT [shard 1570 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1572 [shard 1572 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1572 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1572 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1572 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1572 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1572 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1572 deploy]  (0.3ms) COMMIT [shard 1572 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1572 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1572 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1572 deploy]  (0.3ms) COMMIT [shard 1572 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1572 deploy]  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1572 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1572 deploy]  (0.3ms) COMMIT [shard 1572 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1572 deploy]  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1572 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1572 deploy]  (0.3ms) COMMIT [shard 1572 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 1572 deploy]  (2.4ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1572 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1572 deploy]  (0.3ms) COMMIT [shard 1572 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1572 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1572 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1572 deploy]  (0.2ms) COMMIT [shard 1572 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1572 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1572 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1572 deploy]  (0.4ms) COMMIT [shard 1572 deploy]  (0.1ms) BEGIN [shard 1570 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1572' WHERE "switchman_shards"."id" = 1572 [shard 1570 master]  (0.2ms) COMMIT [shard 1570 master] SQL (0.2ms) DELETE FROM "switchman_shards" [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1570], ["name", nil]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1571], ["name", "switchman_test_shard_1571"]] [shard 1570 master]  (0.2ms) COMMIT [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1572], ["name", "switchman_test_shard_1572"]] [shard 1570 master]  (0.2ms) COMMIT [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1572 LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1571 LIMIT 1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 2 AND "appendages"."id" = $1 LIMIT 1 [["id", 2]] [shard 1571 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 2 AND "appendages"."id" = $1 LIMIT 1 [["id", 15710000000000002]] [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 3]] [shard 1571 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3 LIMIT 1 [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", nil], ["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["appendage_id", 4], ["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["id", 15720000000000001], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 5 AND "digits"."id" = $1 LIMIT 1 [["id", 15720000000000001]] [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 6], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 7], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 6]] [shard 1571 master]  (0.1ms) SHOW max_identifier_length [shard 1571 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 6 AND "users"."id" = 8 LIMIT 1 [shard 1571 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 6]] [shard 1571 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 6 AND "users"."id" = 15720000000000007 LIMIT 1 [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6], ["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 11 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.9ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 14 [shard 1571 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 14]] [shard 1571 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 14 [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9], ["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9], ["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["value", 1]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 15710000000000015], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2], ["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["value", 2]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15 AND (digits.value IS NOT NULL) [shard 1571 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15710000000000015 AND (digits.value IS NOT NULL) [shard 1572 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 15]] [shard 1571 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15 AND (digits.value IS NOT NULL) [shard 1571 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15710000000000015 AND (digits.value IS NOT NULL) [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10], ["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 15710000000000016], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3], ["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["value", 2]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 16 AND "digits"."value" IS NULL [shard 1571 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15710000000000016 AND "digits"."value" IS NULL [shard 1572 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 16]] [shard 1571 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 16 AND "digits"."value" IS NULL [shard 1571 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15710000000000016 AND "digits"."value" IS NULL [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.3ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11], ["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 15710000000000017], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4], ["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["value", 2]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17 AND "digits"."value" IS NULL [shard 1571 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15710000000000017 AND "digits"."value" IS NULL [shard 1572 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 1571 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17 AND "digits"."value" IS NULL [shard 1571 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15710000000000017 AND "digits"."value" IS NULL [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 18], ["value", 1]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 15710000000000018], ["value", 2]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 18 [shard 1571 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 1571 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 18 [shard 1571 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 15710000000000018 [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 19], ["value", 1]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 15710000000000019], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 19 AND "appendages"."value" IS NULL [shard 1571 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 15710000000000019 AND "appendages"."value" IS NULL [shard 1572 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [shard 1571 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 19 AND "appendages"."value" IS NULL [shard 1571 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 15710000000000019 AND "appendages"."value" IS NULL [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 14], ["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["value", 1]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 15710000000000020], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7], ["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["value", 2]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 20 [shard 1571 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 1571 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 20 [shard 1571 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15710000000000020 [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 21], ["value", 1]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 15710000000000021], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 21], ["value", 2]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 1571 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 21 AND (appendages.value IS NOT NULL) [shard 1571 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 15710000000000021 AND (appendages.value IS NOT NULL) [shard 1572 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 1571 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 21 AND (appendages.value IS NOT NULL) [shard 1571 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 15710000000000021 AND (appendages.value IS NOT NULL) [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1273], ["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["value", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15700000000001273], ["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1273 LIMIT 1 [shard 1570 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1273) [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 15710000000000023], ["value", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 15720000000000022], ["value", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 2580], ["value", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages"  [shard 1570 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 1571 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 1572 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2580) [shard 1570 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 23 [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 15710000000000024], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 15720000000000023], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 1571 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (24) [shard 1571 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (15710000000000024) [shard 1572 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 1572 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (23) [shard 1572 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 17 [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 15710000000000025], ["value", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1277], ["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["value", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 15720000000000024], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15710000000000019], ["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["value", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits"  [shard 1570 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (1277) [shard 1570 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (19) [shard 1571 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 1571 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 1572 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 25 [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 26], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 15710000000000026], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 15710000000000026], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 20], ["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10], ["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15720000000000010], ["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15720000000000011], ["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 15720000000000025], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 25], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 25], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15710000000000021], ["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15720000000000012], ["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 13], ["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 1571 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (26) [shard 1571 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (15710000000000026) [shard 1572 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (20) [shard 1571 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (10, 11) [shard 1572 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 1572 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (25) [shard 1572 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (12, 13) [shard 1572 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 8 [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["owner_id", 27], ["owner_type", "User"], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["value", 1]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.8ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["owner_id", 15710000000000027], ["owner_type", "User"], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["value", 2]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 27 AND "features"."owner_type" = 'User' [shard 1571 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 27]] [shard 1571 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 27 AND "features"."owner_type" = 'User' [shard 1571 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 15710000000000027 AND "features"."owner_type" = 'User' [shard 1572 master]  (0.2ms) ROLLBACK [shard 1572 master]  (0.2ms) ROLLBACK [shard 1571 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["owner_id", 1278], ["owner_type", "Appendage"], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["value", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 123]] [shard 1570 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1278 LIMIT 1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master]  (0.2ms) UPDATE "features" SET "owner_id" = 15710000000000028, "owner_type" = 'User', "updated_at" = '2014-12-16 21:28:50.974526' WHERE "features"."id" = 123 [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 123]] [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 29 LIMIT 1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 22]] [shard 1571 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 29 LIMIT 1 [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:50 UTC +00:00], ["user_id", 15720000000000029], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 23]] [shard 1571 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 29 LIMIT 1 [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.7ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 15720000000000030]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 60]] [shard 1570 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 30 LIMIT 1 [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1570], ["name", nil]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1571], ["name", "switchman_test_shard_1571"]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1572], ["name", "switchman_test_shard_1572"]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1571 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.4ms) COMMIT [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.0ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1570 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:28:51.108820' [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1570 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:28:51.114240' [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1570 master] SQL (0.7ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:28:51.118286' [shard 1570 master] SQL (0.4ms) DELETE FROM "users" [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1570 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:28:51.123071' [shard 1570 master] SQL (0.4ms) DELETE FROM "users" [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1570 master] SQL (0.1ms) DELETE FROM "users" [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1570 master] SQL (0.1ms) DELETE FROM "users" [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2593]] [shard 1570 master] CACHE (0.0ms) 1570::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2593]] CACHE (0.0ms) 1570::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2593]]  (0.1ms) BEGIN [shard 1570 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2014-12-16 21:28:51.162296' WHERE "users"."id" = 2593 [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2593]] [shard 1570 master] CACHE (0.0ms) 1570::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2593]] SQL (0.3ms) DELETE FROM "users" [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.4ms) COMMIT [shard 1570 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1570 master] SQL (0.4ms) DELETE FROM "users" [shard 1570 master] SQL (0.1ms) DELETE FROM "users" [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1570 master] SQL (0.3ms) DELETE FROM "users" [shard 1570 master] SQL (0.1ms) DELETE FROM "users" [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1570], ["name", nil]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1571], ["name", "switchman_test_shard_1571"]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1572], ["name", "switchman_test_shard_1572"]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 2596], ["value", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 2597], ["value", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1571 LIMIT 1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 2598], ["value", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.2ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 2599], ["value", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 1572 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 2600], ["value", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 2601], ["value", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2601], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2602], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2602]] [shard 1570 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2601 LIMIT 1 [shard 1570 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 2601 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 2604], ["value", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 2605], ["value", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 2606], ["value", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 2607], ["value", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 2608], ["value", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 2609], ["value", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 2610], ["value", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 2611], ["value", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 2612], ["value", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 2613], ["value", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1570], ["name", nil]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1571], ["name", "switchman_test_shard_1571"]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1572], ["name", "switchman_test_shard_1572"]] [shard 1570 master]  (0.2ms) COMMIT [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 51], ["value", 1]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1572 LIMIT 1 [shard 1570 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 15720000000000048], ["value", 3]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1571 LIMIT 1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 15710000000000051], ["value", 2]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 48], ["value", 4]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 48], ["value", 5]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 1571 master]  (0.2ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 53], ["value", 1]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 15720000000000049], ["value", 3]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 15710000000000053], ["value", 2]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 49], ["value", 4]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 49], ["value", 5]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1571 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1572 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1571 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1572 master]  (0.1ms) SHOW max_identifier_length [shard 1572 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1571 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1572 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1571 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 1571 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (49) [shard 1572 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1572 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (49) [shard 1572 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 54], ["value", 1]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 15720000000000050], ["value", 3]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 15710000000000054], ["value", 2]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 50], ["value", 4]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 50], ["value", 5]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1571 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1572 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1571 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1572 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1571 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1572 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1571 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 1571 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (50) [shard 1572 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1572 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (50) [shard 1572 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 55], ["value", 1]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 15720000000000051], ["value", 3]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 15710000000000055], ["value", 2]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 51], ["value", 4]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 51], ["value", 5]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.4ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1571 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1572 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1571 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1572 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1571 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1572 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1571 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 1571 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (51) [shard 1572 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1572 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (51) [shard 1572 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 56], ["value", 1]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 15720000000000052], ["value", 3]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 15710000000000056], ["value", 2]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 52], ["value", 4]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 52], ["value", 5]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1571 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1572 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1571 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1572 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1571 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1572 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1571 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 1571 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (52) [shard 1572 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1572 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (52) [shard 1572 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 57], ["value", 1]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 15720000000000053], ["value", 3]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 15710000000000057], ["value", 2]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 53], ["value", 4]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 53], ["value", 5]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1571 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1572 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1571 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1572 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1571 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1572 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1571 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 1571 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 1572 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1572 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 1572 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 58], ["value", 1]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 58], ["value", 2]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 54], ["value", 3]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 54], ["value", 4]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 54], ["value", 5]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 58 [shard 1571 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1571 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 54 [shard 1572 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1572 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (54, 55) [shard 1571 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (49, 50, 51) [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 59], ["value", 1]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 59], ["value", 2]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 55], ["value", 3]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 55], ["value", 4]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 55], ["value", 5]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 59 [shard 1571 master]  (0.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1571 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 55 [shard 1572 master]  (0.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1572 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (56, 57) [shard 1571 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (52, 53, 54) [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 60], ["value", 1]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 60], ["value", 2]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 56], ["value", 3]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 56], ["value", 4]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 56], ["value", 5]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 60 [shard 1571 master]  (0.1ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1571 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 56 [shard 1572 master]  (0.1ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1572 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (58, 59) [shard 1571 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (55, 56, 57) [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 61], ["value", 1]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 61], ["value", 2]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 57], ["value", 3]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 57], ["value", 4]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 57], ["value", 5]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 61 [shard 1571 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 1571 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 57 [shard 1572 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 1572 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (60, 61) [shard 1571 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (58, 59, 60) [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 62], ["value", 1]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 62], ["value", 2]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 58], ["value", 3]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 58], ["value", 4]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 58], ["value", 5]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 62 [shard 1571 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1571 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 58 [shard 1572 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1572 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (62, 63) [shard 1571 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (61, 62, 63) [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 63], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 64 [shard 1571 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 64 [shard 1572 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 64 [shard 1571 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 64 [shard 1572 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 64 [shard 1571 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 64 [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master] SQL (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (2614) [shard 1570 master] SQL (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (64) [shard 1571 master] SQL (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (60) [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 65], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 66 [shard 1571 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 66 [shard 1572 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 66 [shard 1571 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 66 [shard 1572 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 66 [shard 1571 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 66 [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 66], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["user_id", 62], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (66) [shard 1571 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (62) [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.2ms) ROLLBACK [shard 1571 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1570], ["name", nil]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1571], ["name", "switchman_test_shard_1571"]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1572], ["name", "switchman_test_shard_1572"]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", "non_existent_shard"]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 1575 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.8ms) SELECT COUNT(*) FROM "users"  [shard 1576 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1570], ["name", nil]] [shard 1570 master]  (0.2ms) COMMIT [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1571], ["name", "switchman_test_shard_1571"]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1572], ["name", "switchman_test_shard_1572"]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) ROLLBACK [shard 1572 master]  (0.0ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1570], ["name", nil]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1571], ["name", "switchman_test_shard_1571"]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1572], ["name", "switchman_test_shard_1572"]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) ROLLBACK [shard 1572 master]  (0.0ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (1570, 1571) AND (id IN (1571,1572)) [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1570], ["name", nil]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1571], ["name", "switchman_test_shard_1571"]] [shard 1570 master]  (0.2ms) COMMIT [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1572], ["name", "switchman_test_shard_1572"]] [shard 1570 master]  (0.2ms) COMMIT [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master] SQL (0.8ms) DELETE FROM "switchman_shards" [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1570], ["name", nil]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1571], ["name", "switchman_test_shard_1571"]] [shard 1570 master]  (0.2ms) COMMIT [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1572], ["name", "switchman_test_shard_1572"]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:51 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1570], ["name", nil]] [shard 1570 master]  (0.2ms) COMMIT [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1571], ["name", "switchman_test_shard_1571"]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1572], ["name", "switchman_test_shard_1572"]] [shard 1570 master]  (0.2ms) COMMIT [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1570], ["name", nil]] [shard 1570 master]  (0.2ms) COMMIT [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1571], ["name", "switchman_test_shard_1571"]] [shard 1570 master]  (0.2ms) COMMIT [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1572], ["name", "switchman_test_shard_1572"]] [shard 1570 master]  (0.2ms) COMMIT [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1571 LIMIT 1 [shard 1570 master] SQL (0.3ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (2617) [shard 1570 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (69) [shard 1571 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2617]] [shard 1570 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 69]] [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 70 [shard 1571 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2618]] [shard 1570 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 70]] [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.2ms) ROLLBACK [shard 1571 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2619) [shard 1570 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 72 LIMIT 1 [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1570], ["name", nil]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1571], ["name", "switchman_test_shard_1571"]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1572], ["name", "switchman_test_shard_1572"]] [shard 1570 master]  (0.2ms) COMMIT [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master]  (0.7ms) SELECT COUNT(*) FROM "users" [shard 1572 master]  (0.1ms) SAVEPOINT active_record_2 [shard 1572 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1572 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1570], ["name", nil]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1571], ["name", "switchman_test_shard_1571"]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1572], ["name", "switchman_test_shard_1572"]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 1570 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1570], ["name", nil]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1571], ["name", "switchman_test_shard_1571"]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1572], ["name", "switchman_test_shard_1572"]] [shard 1570 master]  (0.2ms) COMMIT [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["owner_id", 2621], ["owner_type", "User"], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["value", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master] Feature Load (0.3ms) SELECT owner_id FROM "features" WHERE "features"."id" = 124 LIMIT 1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1570 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1571 LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1572 LIMIT 1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master] SQL (15.6ms) DELETE FROM "switchman_shards" [shard 1570 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1570], ["name", nil]] [shard 1570 master]  (0.2ms) COMMIT [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1571], ["name", "switchman_test_shard_1571"]] [shard 1570 master]  (19.3ms) COMMIT [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1572], ["name", "switchman_test_shard_1572"]] [shard 1570 master]  (0.7ms) COMMIT [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:52 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:29:52 UTC +00:00]] [shard 1571 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.0ms) ROLLBACK [shard 1572 master]  (0.0ms) ROLLBACK [shard 1571 master] SQL (1.2ms) DELETE FROM "switchman_shards" [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1570], ["name", nil]] [shard 1570 master]  (10.4ms) COMMIT [shard 1570 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1571], ["name", "switchman_test_shard_1571"]] [shard 1570 master]  (0.6ms) COMMIT [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1572], ["name", "switchman_test_shard_1572"]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1571)) ORDER BY id [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ('f') [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=1571)) ORDER BY id [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1570 AND id<1571)) [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1570 AND id<=1571)) AND (id NOT IN (1570)) [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1570)) [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1570)) [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1570 AND id<1571) OR (id>=1572 AND id<1573)) ORDER BY id [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1570)) [shard 1570 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1570 master]  (0.0ms) ROLLBACK [shard 1572 master]  (0.0ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1570 AND id<=1571)) ORDER BY id [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master]  (0.0ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master]  (0.0ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master]  (0.0ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master]  (0.0ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master]  (0.0ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master]  (0.0ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master]  (0.0ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master]  (0.0ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1570], ["name", nil]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1571], ["name", "switchman_test_shard_1571"]] [shard 1570 master]  (0.2ms) COMMIT [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1572], ["name", "switchman_test_shard_1572"]] [shard 1570 master]  (0.2ms) COMMIT [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.0ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '29' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "29"], ["default", false], ["name", "public"]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1587 [shard 1587 deploy]  (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1587 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1587 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1587 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1587 deploy]  (2.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1587 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1587 deploy]  (0.3ms) COMMIT [shard 1587 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1587 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1587 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1587 deploy]  (0.3ms) COMMIT [shard 1587 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1587 deploy]  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1587 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1587 deploy]  (0.3ms) COMMIT [shard 1587 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1587 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1587 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1587 deploy]  (0.3ms) COMMIT [shard 1587 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1587 deploy]  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1587 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1587 deploy]  (0.3ms) COMMIT [shard 1587 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1587 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1587 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1587 deploy]  (0.3ms) COMMIT [shard 1587 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1587 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1587 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1587 deploy]  (0.4ms) COMMIT [shard 1587 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1587' WHERE "switchman_shards"."id" = 1587 [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) BEGIN [shard 1587 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1587 master]  (0.2ms) COMMIT [shard 1587 master]  (4.7ms) DROP SCHEMA switchman_test_shard_1587 CASCADE [shard 1587 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1587]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '30' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "30"], ["default", false], ["name", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.0ms) select sqlite_version(*) [shard 1588 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 1588 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1588 deploy]  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1588 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 1588 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1588 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1588 deploy]  (0.7ms) commit transaction [shard 1588 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 1588 deploy]  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1588 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1588 deploy]  (0.7ms) commit transaction [shard 1588 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 1588 deploy]  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1588 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1588 deploy]  (0.6ms) commit transaction [shard 1588 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 1588 deploy]  (0.3ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1588 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1588 deploy]  (0.7ms) commit transaction [shard 1588 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 1588 deploy]  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1588 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1588 deploy]  (0.7ms) commit transaction [shard 1588 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 1588 deploy]  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 1588 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1588 deploy]  (0.5ms) commit transaction [shard 1588 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 1588 deploy]  (0.3ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1588 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1588 deploy]  (0.7ms) commit transaction [shard 1588 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_1588.sqlite3' WHERE "switchman_shards"."id" = 1588 [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) begin transaction [shard 1588 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1588 master]  (0.6ms) commit transaction [shard 1588 master] Drop failed: No such file or directory @ unlink_internal - db/shard_1588.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1588]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 1570 master]  (0.2ms) CREATE SCHEMA switchman_test_shard_1589 [shard 1589 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1589 deploy]  (6.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1589 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1589 deploy] Migrating to CreateUsers (20130403132607)  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1589 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1589 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1589 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1589 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1589 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1589 deploy] Migrating to CreateDigits (20131022202028)  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1589 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1589 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1589 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1589 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1589 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1589 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1589 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1589 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1589' WHERE "switchman_shards"."id" = 1589 [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1589 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1589 master]  (2.6ms) DROP SCHEMA switchman_test_shard_1589 CASCADE [shard 1589 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1589]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (2.2ms) ROLLBACK [shard 1570 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1570], ["name", nil]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1571], ["name", "switchman_test_shard_1571"]] [shard 1570 master]  (0.2ms) COMMIT [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1572], ["name", "switchman_test_shard_1572"]] [shard 1570 master]  (0.2ms) COMMIT [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 74]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 15710000000000074 LIMIT 1 [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 1570 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1570 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1571 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 76 LIMIT 1 [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1571 LIMIT 1 [shard 1570 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (77) LIMIT 1 [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 78 LIMIT 1 [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 79]] [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master] SQL (14.8ms) DELETE FROM "switchman_shards" [shard 1570 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1570], ["name", nil]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.2ms) BEGIN [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1571], ["name", "switchman_test_shard_1571"]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1572], ["name", "switchman_test_shard_1572"]] [shard 1570 master]  (0.2ms) COMMIT [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["user_id", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 60]] [shard 1570 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 60]] [shard 1570 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 60 LIMIT 1 [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1570], ["name", nil]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1571], ["name", "switchman_test_shard_1571"]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1572], ["name", "switchman_test_shard_1572"]] [shard 1570 master]  (0.2ms) COMMIT [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1571 LIMIT 1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '32' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1570 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "32"], ["default", false], ["name", "public"]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1590 [shard 1590 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1590 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1590 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1590 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1590 deploy]  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1590 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1590 deploy]  (0.4ms) COMMIT [shard 1590 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1590 deploy]  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1590 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1590 deploy]  (0.3ms) COMMIT [shard 1590 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1590 deploy]  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1590 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1590 deploy]  (0.4ms) COMMIT [shard 1590 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1590 deploy]  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1590 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1590 deploy]  (0.3ms) COMMIT [shard 1590 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1590 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1590 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1590 deploy]  (0.3ms) COMMIT [shard 1590 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1590 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1590 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1590 deploy]  (0.2ms) COMMIT [shard 1590 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1590 deploy]  (2.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1590 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1590 deploy]  (0.3ms) COMMIT [shard 1590 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1590' WHERE "switchman_shards"."id" = 1590 [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) BEGIN [shard 1590 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1590 master]  (0.2ms) COMMIT [shard 1590 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 1590 master]  (4.7ms) DROP SCHEMA switchman_test_shard_1590 CASCADE [shard 1590 deploy]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 1590 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) ROLLBACK [shard 1572 master]  (0.0ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.0ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.0ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11572 LIMIT 1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1572 LIMIT 1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1591]] [shard 1570 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1592]] [shard 1570 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1592 LIMIT 1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.2ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1570], ["name", nil]] [shard 1570 master]  (0.2ms) COMMIT [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1571], ["name", "switchman_test_shard_1571"]] [shard 1570 master]  (0.2ms) COMMIT [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1572], ["name", "switchman_test_shard_1572"]] [shard 1570 master]  (0.3ms) COMMIT [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.1ms) BEGIN [shard 1572 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1571 LIMIT 1 [shard 1570 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.1ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1570 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1570 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1570 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1570 master]  (0.0ms) BEGIN [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1571]] [shard 1570 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1572]] [shard 1570 master]  (0.0ms) BEGIN [shard 1572 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1571 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1571 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1572 master] SQL (1.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:28:52 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1572 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1572 master]  (0.1ms) ROLLBACK [shard 1572 master]  (0.1ms) ROLLBACK [shard 1571 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1570 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1570 master]  (5.3ms) DROP SCHEMA switchman_test_shard_1571 CASCADE [shard 1571 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1571]]  (0.1ms) COMMIT  (5.6ms) DROP SCHEMA switchman_test_shard_1572 CASCADE [shard 1572 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1572]]  (0.1ms) COMMIT  (1.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.6ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", true]]  (15.4ms) COMMIT Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.4ms) CREATE SCHEMA switchman_test_shard_1594 [shard 1594 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1594 deploy]  (16.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1594 deploy] ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1594 deploy] Migrating to CreateUsers (20130403132607)  (2.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1594 deploy] SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1594 deploy] Migrating to CreateAppendages (20130411202442)  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1594 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1594 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1594 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1594 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1594 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1594 deploy] Migrating to CreateFeatures (20131206172923)  (2.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1594 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1594 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1594 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1594 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1594 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1594 deploy] SQL (0.4ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1594 [["name", "switchman_test_shard_1594"]] [shard 1593 master]  (0.7ms) COMMIT [shard 1593 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1593 master]  (0.4ms) COMMIT [shard 1593 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1595 [shard 1595 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1595 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1595 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1595 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1595 deploy]  (2.6ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1595 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1595 deploy]  (0.3ms) COMMIT [shard 1595 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 1595 deploy]  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1595 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1595 deploy]  (0.4ms) COMMIT [shard 1595 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1595 deploy]  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1595 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1595 deploy]  (0.3ms) COMMIT [shard 1595 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1595 deploy]  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1595 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1595 deploy]  (0.4ms) COMMIT [shard 1595 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1595 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1595 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1595 deploy]  (0.4ms) COMMIT [shard 1595 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1595 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1595 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1595 deploy]  (0.3ms) COMMIT [shard 1595 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1595 deploy]  (2.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1595 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1595 deploy]  (0.3ms) COMMIT [shard 1595 deploy]  (0.1ms) BEGIN [shard 1593 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1595 [["name", "switchman_test_shard_1595"]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1593 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 1593]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1594], ["name", "switchman_test_shard_1594"]] [shard 1593 master]  (0.2ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1595], ["name", "switchman_test_shard_1595"]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (1.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 1593]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1594], ["name", "switchman_test_shard_1594"]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1595], ["name", "switchman_test_shard_1595"]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 1593]] [shard 1593 master]  (15.3ms) COMMIT [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1594], ["name", "switchman_test_shard_1594"]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1595], ["name", "switchman_test_shard_1595"]] [shard 1593 master]  (0.2ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '7' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "7"]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 1596 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1596 deploy] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1596 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 1596 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime, "updated_at" datetime) [shard 1596 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130403132607"]] [shard 1596 deploy]  (0.8ms) commit transaction [shard 1596 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 1596 deploy]  (0.3ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [shard 1596 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202442"]] [shard 1596 deploy]  (0.8ms) commit transaction [shard 1596 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 1596 deploy]  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [shard 1596 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202551"]] [shard 1596 deploy]  (0.8ms) commit transaction [shard 1596 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 1596 deploy]  (0.3ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [shard 1596 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131022202028"]] [shard 1596 deploy]  (0.6ms) commit transaction [shard 1596 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 1596 deploy]  (0.3ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime, "updated_at" datetime) [shard 1596 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131206172923"]] [shard 1596 deploy]  (0.8ms) commit transaction [shard 1596 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) begin transaction [shard 1596 deploy]  (0.5ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 1596 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140123154135"]] [shard 1596 deploy]  (0.8ms) commit transaction [shard 1596 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 1596 deploy]  (0.3ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [shard 1596 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219183820"]] [shard 1596 deploy]  (0.9ms) commit transaction [shard 1596 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1596 [["name", "db/shard_1596.sqlite3"]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) begin transaction [shard 1596 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00]] [shard 1596 master]  (0.7ms) commit transaction [shard 1596 master] Drop failed: No such file or directory @ unlink_internal - db/shard_1596.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1596]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '8' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "8"], ["name", "public"]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (15.8ms) CREATE SCHEMA switchman_test_shard_1597 [shard 1597 deploy]  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1597 deploy]  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1597 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1597 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1597 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1597 deploy] SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1597 deploy]  (0.3ms) COMMIT [shard 1597 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1597 deploy]  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1597 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1597 deploy]  (0.4ms) COMMIT [shard 1597 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1597 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1597 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1597 deploy]  (0.4ms) COMMIT [shard 1597 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1597 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1597 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1597 deploy]  (0.4ms) COMMIT [shard 1597 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1597 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1597 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1597 deploy]  (0.4ms) COMMIT [shard 1597 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1597 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1597 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1597 deploy]  (0.2ms) COMMIT [shard 1597 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1597 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1597 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1597 deploy]  (0.3ms) COMMIT [shard 1597 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1597 [["name", "switchman_test_shard_1597"]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) BEGIN [shard 1597 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00]] [shard 1597 master]  (0.3ms) COMMIT [shard 1597 master]  (4.3ms) DROP SCHEMA switchman_test_shard_1597 CASCADE [shard 1597 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1597]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.2ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [shard 1593 master]  (0.1ms) CREATE SCHEMA switchman_test_shard_1598 [shard 1598 deploy]  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1598 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1598 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1598 deploy] Migrating to CreateUsers (20130403132607)  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1598 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1598 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1598 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1598 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1598 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1598 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1598 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1598 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1598 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1598 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1598 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1598 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1598 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1598 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1598 [["name", "switchman_test_shard_1598"]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1598 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00]] [shard 1598 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1598 master]  (2.3ms) DROP SCHEMA switchman_test_shard_1598 CASCADE [shard 1598 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1598]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (2.0ms) ROLLBACK [shard 1593 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1593 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 1593]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1594], ["name", "switchman_test_shard_1594"]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1595], ["name", "switchman_test_shard_1595"]] [shard 1593 master]  (0.2ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3 ORDER BY "users"."id" ASC LIMIT 1 [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1594 LIMIT 1 [shard 1593 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2627) [shard 1593 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (4) [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 5 [shard 1594 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2628]] [shard 1593 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 5]] [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (2629) [shard 1593 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (6) [shard 1594 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2629]] [shard 1593 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 6]] [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 1593]] [shard 1593 master]  (0.4ms) COMMIT [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1594], ["name", "switchman_test_shard_1594"]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1595], ["name", "switchman_test_shard_1595"]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.2ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 7 LIMIT 1 [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["name", "multi-shard exists"], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 1593 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1593 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1594 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1594 LIMIT 1 [shard 1593 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 9]] [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 10]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 15940000000000010 ORDER BY "users"."id" ASC LIMIT 1 [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 11 LIMIT 1 [shard 1594 master]  (0.2ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (12) LIMIT 1 [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 1593]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1594], ["name", "switchman_test_shard_1594"]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1595], ["name", "switchman_test_shard_1595"]] [shard 1593 master]  (0.2ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["user_id", 2630]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (15.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["user_id", 13]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["user_id", 2]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["user_id", 2631]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00]] [shard 1594 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["user_id", 14]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["user_id", 3]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00], ["parent_id", 2631], ["updated_at", Tue, 16 Dec 2014 21:29:07 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["parent_id", 2632], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master] [36mUser Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2632]] [shard 1593 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2631]] [shard 1593 master] User Load (0.7ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 [["parent_id", 2631]] [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 2634]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 15]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 4]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 2635]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 16]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 5]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 2636]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 17]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 6]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.2ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 2637]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 18]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 7]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 2638]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 19]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 8]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 2639]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 20]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 9]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 2640]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 21]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 10]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1594 LIMIT 1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 2641]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 22]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 11]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 2642]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 23]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 12]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 2643]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 24]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 13]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (7.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 2644]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 25]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 14]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 2645]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 26]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 15]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.2ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 2646]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 27]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 16]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 2647]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 28]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 17]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 1593]] [shard 1593 master]  (0.4ms) COMMIT [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1594], ["name", "switchman_test_shard_1594"]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1595], ["name", "switchman_test_shard_1595"]] [shard 1593 master]  (0.2ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1599]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.3ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1594 LIMIT 1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1600]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1600 LIMIT 1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '9' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "9"], ["name", "public"]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1601 [shard 1601 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1601 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1601 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1601 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1601 deploy]  (2.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1601 deploy] SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1601 deploy]  (0.3ms) COMMIT [shard 1601 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1601 deploy]  (2.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1601 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1601 deploy]  (0.4ms) COMMIT [shard 1601 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1601 deploy]  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1601 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1601 deploy]  (0.4ms) COMMIT [shard 1601 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 1601 deploy]  (2.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1601 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1601 deploy]  (0.3ms) COMMIT [shard 1601 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1601 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1601 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1601 deploy]  (0.3ms) COMMIT [shard 1601 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 1601 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1601 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1601 deploy]  (0.3ms) COMMIT [shard 1601 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1601 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1601 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1601 deploy]  (0.4ms) COMMIT [shard 1601 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1601 [["name", "switchman_test_shard_1601"]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) BEGIN [shard 1601 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1601 master]  (0.2ms) COMMIT [shard 1601 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 1601 master]  (4.4ms) DROP SCHEMA switchman_test_shard_1601 CASCADE [shard 1601 deploy]  (0.5ms) SELECT COUNT(*) FROM "users" [shard 1601 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.2ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11595 LIMIT 1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1595 LIMIT 1 [shard 1593 master]  (0.2ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.3ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1593 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 1593]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1594], ["name", "switchman_test_shard_1594"]] [shard 1593 master]  (0.2ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1595], ["name", "switchman_test_shard_1595"]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 1595 master]  (0.1ms) SAVEPOINT active_record_2 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1595 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1593 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 1593]] [shard 1593 master]  (0.2ms) COMMIT [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1594], ["name", "switchman_test_shard_1594"]] [shard 1593 master]  (0.2ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1595], ["name", "switchman_test_shard_1595"]] [shard 1593 master]  (0.2ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 1593]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1594], ["name", "switchman_test_shard_1594"]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1595], ["name", "switchman_test_shard_1595"]] [shard 1593 master]  (0.2ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1593 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 1593]] [shard 1593 master]  (0.2ms) COMMIT [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1594], ["name", "switchman_test_shard_1594"]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1595], ["name", "switchman_test_shard_1595"]] [shard 1593 master]  (0.2ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["owner_id", 2648], ["owner_type", "User"], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master] Feature Load (0.3ms) SELECT owner_id FROM "features" WHERE "features"."id" = 125 ORDER BY "features"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1594 LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1595 LIMIT 1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master] SQL (16.3ms) DELETE FROM "switchman_shards" [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "11"], ["name", "non_existent_shard"]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "11"]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 1602 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.6ms) SELECT COUNT(*) FROM "users" [shard 1603 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "12"]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "13"]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "14"]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "15"]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "16"]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "17"]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 1593]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1594], ["name", "switchman_test_shard_1594"]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1595], ["name", "switchman_test_shard_1595"]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 29], ["value", 1]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1595 LIMIT 1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 15950000000000020], ["value", 3]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1594 LIMIT 1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 15940000000000029], ["value", 2]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 20], ["value", 4]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 20], ["value", 5]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1594 master]  (0.6ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1595 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1594 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1595 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1594 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1595 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1594 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [shard 1594 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 1595 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1595 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [shard 1595 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 30], ["value", 1]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 15950000000000021], ["value", 3]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 15940000000000030], ["value", 2]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 21], ["value", 4]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 21], ["value", 5]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.5ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1594 master]  (0.5ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1595 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1594 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1595 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1594 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1595 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1594 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [shard 1594 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 1595 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1595 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [shard 1595 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.2ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 31], ["value", 1]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 15950000000000022], ["value", 3]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 15940000000000031], ["value", 2]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 22], ["value", 4]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 22], ["value", 5]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1594 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1595 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1594 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1595 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1594 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1595 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1594 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (31) [shard 1594 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 1595 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1595 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 1595 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (31) [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 32], ["value", 1]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 15950000000000023], ["value", 3]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 15940000000000032], ["value", 2]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 23], ["value", 4]] [shard 1595 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 23], ["value", 5]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 32]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 33]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 1594 master]  (0.4ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 34], ["value", 1]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 15950000000000024], ["value", 3]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 15940000000000034], ["value", 2]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 24], ["value", 4]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 24], ["value", 5]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1594 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1595 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1594 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1595 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1594 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1595 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1594 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (34) [shard 1594 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 1595 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1595 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 1595 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (34) [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 35], ["value", 1]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 15950000000000025], ["value", 3]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 15940000000000035], ["value", 2]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 25], ["value", 4]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 25], ["value", 5]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1594 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1595 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1594 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1595 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1594 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1595 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1594 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35) [shard 1594 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 1595 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1595 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 1595 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35) [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["user_id", 36]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 16 Dec 2014 21:29:08 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 26]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.6ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (2650) [shard 1593 master]  (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (36) [shard 1594 master]  (0.5ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (26) [shard 1595 master]  (0.2ms) ROLLBACK [shard 1595 master]  (0.2ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 37]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 27]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (37) [shard 1594 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (27) [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 38]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 28]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 1594 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 37 [shard 1595 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 1594 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 37 [shard 1595 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 1594 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 37 [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.2ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 39]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 29]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 1594 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 38 [shard 1595 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 1594 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 38 [shard 1595 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 1594 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 38 [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 40], ["value", 1]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 40], ["value", 2]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 30], ["value", 3]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 30], ["value", 4]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 30], ["value", 5]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 40]] [shard 1594 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1594 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 30]] [shard 1595 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1595 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (35, 36) [shard 1594 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (39, 40, 41) [shard 1595 master]  (0.2ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 41], ["value", 1]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 41], ["value", 2]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 31], ["value", 3]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 31], ["value", 4]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 31], ["value", 5]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 41]] [shard 1594 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1594 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 31]] [shard 1595 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1595 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (37, 38) [shard 1594 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (42, 43, 44) [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 42], ["value", 1]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 42], ["value", 2]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 32], ["value", 3]] [shard 1595 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 32], ["value", 4]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 32], ["value", 5]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 42]] [shard 1594 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1594 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 32]] [shard 1595 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1595 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (39, 40) [shard 1594 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (45, 46, 47) [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 43], ["value", 1]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 43], ["value", 2]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 33], ["value", 3]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 33], ["value", 4]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 33], ["value", 5]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 43]] [shard 1594 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1594 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 33]] [shard 1595 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1595 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (41, 42) [shard 1594 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (48, 49, 50) [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["name", "user1"], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 44], ["value", 1]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 44], ["value", 2]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["name", "user2"], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 34], ["value", 3]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 34], ["value", 4]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 34], ["value", 5]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.4ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 44]] [shard 1594 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 1594 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 34]] [shard 1595 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 1595 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (43, 44) [shard 1594 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (51, 52, 53) [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "18"]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "18"]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1593 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 1593]] [shard 1593 master]  (0.2ms) COMMIT [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1594], ["name", "switchman_test_shard_1594"]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1595], ["name", "switchman_test_shard_1595"]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "19"]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "20"]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master] SQL (0.7ms) DELETE FROM "switchman_shards" [shard 1593 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1593 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 1593]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1594], ["name", "switchman_test_shard_1594"]] [shard 1593 master]  (0.2ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1595], ["name", "switchman_test_shard_1595"]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1594,1595)) AND "switchman_shards"."id" IN (1593, 1594) [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1593 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 1593]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1594], ["name", "switchman_test_shard_1594"]] [shard 1593 master]  (0.2ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1595], ["name", "switchman_test_shard_1595"]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master] User Load (0.3ms) SELECT "users".* FROM "users" [shard 1594 master] User Load (0.3ms) SELECT "users".* FROM "users" [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] User Load (0.3ms) SELECT "users".* FROM "users" FOR UPDATE [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1593 master] SQL (0.1ms) DELETE FROM "users" [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1593 master] SQL (0.2ms) DELETE FROM "users" [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1593 master]  (0.4ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["name", "a"], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2656]] [shard 1593 master] CACHE (0.0ms) 1593::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2656]] CACHE (0.0ms) 1593::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2656]]  (0.1ms) BEGIN [shard 1593 master] SQL (0.4ms) UPDATE "users" SET "name" = $1, "updated_at" = $2 WHERE "users"."id" = 2656 [["name", "b"], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1593 master]  (0.4ms) COMMIT [shard 1593 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2656]] [shard 1593 master] CACHE (0.0ms) 1593::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2656]] SQL (0.3ms) DELETE FROM "users" [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1593 master] SQL (0.3ms) DELETE FROM "users" [shard 1593 master] SQL (0.1ms) DELETE FROM "users" [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1593 master] SQL (0.4ms) DELETE FROM "users" [shard 1593 master] SQL (0.1ms) DELETE FROM "users" [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1593 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:29:09.506330' [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1593 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:29:09.512865' [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1593 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:29:09.517279' [shard 1593 master] SQL (0.4ms) DELETE FROM "users" [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1593 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:29:09.522008' [shard 1593 master] SQL (0.3ms) DELETE FROM "users" [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] User Load (0.3ms) SELECT "users".* FROM "users" [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1593 master]  (0.4ms) COMMIT [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1593 master]  (0.4ms) COMMIT [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 1593]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1594], ["name", "switchman_test_shard_1594"]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1595], ["name", "switchman_test_shard_1595"]] [shard 1593 master]  (0.2ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:30:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:30:09 UTC +00:00]] [shard 1594 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.0ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1593 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 1593]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1594], ["name", "switchman_test_shard_1594"]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1595], ["name", "switchman_test_shard_1595"]] [shard 1593 master]  (0.2ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "21"]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "21"]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 1593]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1594], ["name", "switchman_test_shard_1594"]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1595], ["name", "switchman_test_shard_1595"]] [shard 1593 master]  (0.2ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1593 AND id<1594)) [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1593 AND id<=1594)) AND (id NOT IN (1593)) [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1593)) [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1594)) ORDER BY "switchman_shards"."id" ASC [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1593 AND id<=1594)) ORDER BY "switchman_shards"."id" ASC [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=1594)) ORDER BY "switchman_shards"."id" ASC [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1593)) [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1593 AND id<1594) OR (id>=1595 AND id<1596)) ORDER BY "switchman_shards"."id" ASC [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1593)) [shard 1593 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 1593]] [shard 1593 master]  (0.2ms) COMMIT [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1594], ["name", "switchman_test_shard_1594"]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1595], ["name", "switchman_test_shard_1595"]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1594 LIMIT 1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 1593]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1594], ["name", "switchman_test_shard_1594"]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1595], ["name", "switchman_test_shard_1595"]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 51]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.7ms) INSERT INTO "digits" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1595 LIMIT 1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (15.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 46], ["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["id", 15950000000000001], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master] Digit Load (0.7ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 51], ["id", 15950000000000001]] [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 52]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1594 LIMIT 1 [shard 1593 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 52], ["id", 47]] [shard 1594 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 36], ["id", 15940000000000047]] [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["parent_id", 53], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["parent_id", 54], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 53]] [shard 1594 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 55 LIMIT 1 [["parent_id", 53]] [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["id", 55], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 53]] [shard 1594 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 15950000000000055 LIMIT 1 [["parent_id", 53]] [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 56]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 38]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 58]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 49]] [shard 1594 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 58]] [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 59]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 59]] [shard 1594 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 59]] [shard 1594 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 59]] [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 61]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 63]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 52], ["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 63], ["id", 1]] [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 64]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.2ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 66]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 54], ["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 15940000000000066]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["value", 2]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.6ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 66]] [shard 1594 master]  (0.5ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 15940000000000066]] [shard 1595 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 66]] [shard 1594 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 66]] [shard 1594 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 15940000000000066]] [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 67], ["value", 1]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 15940000000000067]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 67], ["value", 2]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 67]] [shard 1594 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 67]] [shard 1594 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 15940000000000067]] [shard 1595 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 67]] [shard 1594 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 67]] [shard 1594 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 15940000000000067]] [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 68], ["value", 1]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 15940000000000068], ["value", 2]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 68]] [shard 1594 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 68]] [shard 1594 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 68]] [shard 1594 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 15940000000000068]] [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 69]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 58], ["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 58], ["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["value", 1]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:09 UTC +00:00], ["user_id", 15940000000000069]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 59], ["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["value", 2]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.5ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 69]] [shard 1594 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 15940000000000069]] [shard 1595 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 69]] [shard 1594 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 69]] [shard 1594 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 15940000000000069]] [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["user_id", 70]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 59], ["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["user_id", 15940000000000070]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 60], ["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["value", 2]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 70]] [shard 1594 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 15940000000000070]] [shard 1595 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 70]] [shard 1594 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 70]] [shard 1594 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 15940000000000070]] [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["user_id", 71], ["value", 1]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["user_id", 15940000000000071]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 71]] [shard 1594 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 15940000000000071]] [shard 1595 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 71]] [shard 1594 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 71]] [shard 1594 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 15940000000000071]] [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["user_id", 72]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 61], ["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["value", 1]] [shard 1594 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["user_id", 15940000000000072]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 62], ["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["value", 2]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master] Digit Load (0.6ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 72]] [shard 1594 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 72]] [shard 1594 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 72]] [shard 1594 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 15940000000000072]] [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["owner_id", 1313], ["owner_type", "Appendage"], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 126]] [shard 1593 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 1313]] [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.4ms) UPDATE "features" SET "owner_id" = $1, "owner_type" = $2, "updated_at" = $3 WHERE "features"."id" = 126 [["owner_id", 15940000000000073], ["owner_type", "User"], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1593 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 126]] [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.2ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["owner_id", 74], ["owner_type", "User"], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["value", 1]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["owner_id", 15940000000000074], ["owner_type", "User"], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["value", 2]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master] Feature Load (0.6ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 74], ["owner_type", "User"]] [shard 1594 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 74]] [shard 1594 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 74], ["owner_type", "User"]] [shard 1594 master] Feature Load (0.8ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 15940000000000074], ["owner_type", "User"]] [shard 1595 master]  (0.2ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.6ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["user_id", 15950000000000057]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 61]] [shard 1593 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 57]] [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["user_id", 15940000000000076]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["user_id", 15950000000000058]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["user_id", 2669]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 1593 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (76) [shard 1594 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 1595 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2669) [shard 1593 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 76 [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["user_id", 77]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["user_id", 15940000000000077]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["user_id", 15940000000000077]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 62], ["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 63], ["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 15950000000000063], ["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 15950000000000064], ["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["user_id", 15950000000000059]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["user_id", 59]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["user_id", 59]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 15940000000000063], ["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 15950000000000065], ["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 66], ["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (77) [shard 1594 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (77) [shard 1594 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (15940000000000077) [shard 1595 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (62) [shard 1594 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (63, 64) [shard 1595 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 1595 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (59) [shard 1595 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (65, 66) [shard 1595 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1317], ["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 15930000000001317], ["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1317 ORDER BY "appendages"."id" ASC LIMIT 1 [shard 1593 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1317) [shard 1593 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["user_id", 79]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["user_id", 15940000000000079]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["user_id", 15950000000000061]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (79) [shard 1594 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (79) [shard 1594 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (15940000000000079) [shard 1595 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [shard 1595 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (61) [shard 1595 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 64 [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["user_id", 15940000000000080]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1318], ["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["user_id", 15950000000000062]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 15940000000000066], ["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 1593 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (1318) [shard 1593 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (66) [shard 1594 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (80) [shard 1594 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (62) [shard 1595 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 80 [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["user_id", 15950000000000063]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 67]] [shard 1594 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1595 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1594 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 82]] [shard 1594 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["user_id", 82]] [shard 1594 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1594 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 68]] [shard 1594 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 82]] [shard 1594 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1594 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1593 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 1593]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1594], ["name", "switchman_test_shard_1594"]] [shard 1593 master]  (0.3ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1595], ["name", "switchman_test_shard_1595"]] [shard 1593 master]  (0.2ms) COMMIT [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1593 master] SQL (0.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00], ["updated_at", Tue, 16 Dec 2014 21:29:10 UTC +00:00]] [shard 1593 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1593 master] MirrorUser Load (0.4ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 61]] [shard 1593 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 61]] [shard 1593 master] MirrorUser Load (0.6ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 61 ORDER BY "mirror_users"."id" ASC LIMIT 1 [shard 1594 master]  (0.2ms) ROLLBACK [shard 1595 master]  (0.2ms) ROLLBACK [shard 1594 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master]  (0.1ms) BEGIN [shard 1593 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1594]] [shard 1593 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1595]] [shard 1593 master]  (0.1ms) BEGIN [shard 1595 master]  (0.1ms) ROLLBACK [shard 1595 master]  (0.1ms) ROLLBACK [shard 1593 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1593 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1593 master]  (5.1ms) DROP SCHEMA switchman_test_shard_1594 CASCADE [shard 1594 deploy]  (0.1ms) BEGIN SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1594]]  (0.1ms) COMMIT  (7.4ms) DROP SCHEMA switchman_test_shard_1595 CASCADE [shard 1595 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1595]]  (0.1ms) COMMIT  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "non_existent_shard"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "1"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "users" does not exist LINE 5: WHERE a.attrelid = '"users"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.3ms) SELECT COUNT(*) FROM "users" [shard 1617 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "3"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "5"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "7"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK SQL (0.2ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.2ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (16.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_1625 [shard 1625 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1625 deploy]  (32.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1625 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1625 deploy] Migrating to CreateUsers (20130403132607)  (2.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1625 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1625 deploy] Migrating to CreateAppendages (20130411202442)  (2.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1625 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1625 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1625 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1625 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1625 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1625 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1625 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1625 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1625 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1625 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1625 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1625 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1625 [["name", "switchman_test_shard_1625"]] [shard 1624 master]  (0.8ms) COMMIT [shard 1624 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '8' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "8"], ["name", "public"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_1626 [shard 1626 deploy]  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1626 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1626 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1626 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1626 deploy]  (2.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1626 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1626 deploy]  (0.3ms) COMMIT [shard 1626 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 1626 deploy]  (2.3ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1626 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1626 deploy]  (0.3ms) COMMIT [shard 1626 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1626 deploy]  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1626 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1626 deploy]  (0.3ms) COMMIT [shard 1626 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 1626 deploy]  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1626 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1626 deploy]  (0.4ms) COMMIT [shard 1626 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1626 deploy]  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1626 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1626 deploy]  (0.3ms) COMMIT [shard 1626 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1626 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1626 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1626 deploy]  (0.3ms) COMMIT [shard 1626 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1626 deploy]  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1626 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1626 deploy]  (0.4ms) COMMIT [shard 1626 deploy]  (0.1ms) BEGIN [shard 1624 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1626 [["name", "switchman_test_shard_1626"]] [shard 1624 master]  (0.4ms) COMMIT [shard 1624 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1624]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1625], ["name", "switchman_test_shard_1625"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 1626], ["name", "switchman_test_shard_1626"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1624]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1625], ["name", "switchman_test_shard_1625"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 1626], ["name", "switchman_test_shard_1626"]] [shard 1624 master]  (0.2ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.3ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:19.121455"], ["updated_at", "2014-12-16 21:29:19.121455"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 62]] [shard 1624 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 62]] [shard 1624 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 62 ORDER BY "mirror_users"."id" ASC LIMIT 1 [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master] SQL (15.5ms) DELETE FROM "switchman_shards" [shard 1624 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1624]] [shard 1624 master]  (0.4ms) COMMIT [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1625], ["name", "switchman_test_shard_1625"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 1626], ["name", "switchman_test_shard_1626"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1625 LIMIT 1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11626 LIMIT 1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1626 LIMIT 1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '10' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "10"], ["name", "public"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (15.7ms) CREATE SCHEMA switchman_test_shard_1627 [shard 1627 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1627 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1627 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1627 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1627 deploy]  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1627 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1627 deploy]  (0.4ms) COMMIT [shard 1627 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1627 deploy]  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1627 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1627 deploy]  (0.4ms) COMMIT [shard 1627 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1627 deploy]  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1627 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1627 deploy]  (0.3ms) COMMIT [shard 1627 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 1627 deploy]  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1627 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1627 deploy]  (0.4ms) COMMIT [shard 1627 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1627 deploy]  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1627 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1627 deploy]  (0.4ms) COMMIT [shard 1627 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1627 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1627 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1627 deploy]  (0.3ms) COMMIT [shard 1627 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1627 deploy]  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1627 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1627 deploy]  (0.4ms) COMMIT [shard 1627 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1627 [["name", "switchman_test_shard_1627"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) BEGIN [shard 1627 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:19.336201"], ["updated_at", "2014-12-16 21:29:19.336201"]] [shard 1627 master]  (0.3ms) COMMIT [shard 1627 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 1627 master]  (4.5ms) DROP SCHEMA switchman_test_shard_1627 CASCADE [shard 1627 deploy]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 1627 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.3ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1628]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1629]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1629 LIMIT 1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master] SQL (15.6ms) DELETE FROM "switchman_shards" [shard 1624 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.2ms) BEGIN [shard 1624 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1624 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1624]] [shard 1624 master]  (0.4ms) COMMIT [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1625], ["name", "switchman_test_shard_1625"]] [shard 1624 master]  (0.4ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 1626], ["name", "switchman_test_shard_1626"]] [shard 1624 master]  (0.4ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:19.556786"], ["updated_at", "2014-12-16 21:29:19.556786"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1624 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1624]] [shard 1624 master]  (16.0ms) COMMIT [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1625], ["name", "switchman_test_shard_1625"]] [shard 1624 master]  (15.0ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 1626], ["name", "switchman_test_shard_1626"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '25' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "25"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 1630 deploy]  (0.1ms) select sqlite_version(*) [shard 1630 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1630 deploy] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1630 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 1630 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime, "updated_at" datetime) [shard 1630 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130403132607"]] [shard 1630 deploy]  (0.7ms) commit transaction [shard 1630 deploy] Migrating to CreateAppendages (20130411202442)  (0.0ms) begin transaction [shard 1630 deploy]  (0.3ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [shard 1630 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202442"]] [shard 1630 deploy]  (0.7ms) commit transaction [shard 1630 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 1630 deploy]  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [shard 1630 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202551"]] [shard 1630 deploy]  (0.6ms) commit transaction [shard 1630 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 1630 deploy]  (0.3ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [shard 1630 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131022202028"]] [shard 1630 deploy]  (0.7ms) commit transaction [shard 1630 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 1630 deploy]  (0.3ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime, "updated_at" datetime) [shard 1630 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131206172923"]] [shard 1630 deploy]  (0.7ms) commit transaction [shard 1630 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 1630 deploy]  (0.3ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 1630 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140123154135"]] [shard 1630 deploy]  (0.5ms) commit transaction [shard 1630 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 1630 deploy]  (0.3ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [shard 1630 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219183820"]] [shard 1630 deploy]  (0.8ms) commit transaction [shard 1630 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1630 [["name", "db/shard_1630.sqlite3"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.0ms) begin transaction [shard 1630 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-12-16 21:29:19.656449"], ["updated_at", "2014-12-16 21:29:19.656449"]] [shard 1630 master]  (0.8ms) commit transaction [shard 1630 master] Drop failed: No such file or directory @ unlink_internal - db/shard_1630.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1630]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '26' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "26"], ["name", "public"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (15.4ms) CREATE SCHEMA switchman_test_shard_1631 [shard 1631 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1631 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1631 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1631 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1631 deploy]  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1631 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1631 deploy]  (0.3ms) COMMIT [shard 1631 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1631 deploy]  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1631 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1631 deploy]  (0.3ms) COMMIT [shard 1631 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1631 deploy]  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1631 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1631 deploy]  (0.4ms) COMMIT [shard 1631 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 1631 deploy]  (2.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1631 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1631 deploy]  (0.3ms) COMMIT [shard 1631 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) BEGIN [shard 1631 deploy]  (2.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1631 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1631 deploy]  (0.4ms) COMMIT [shard 1631 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 1631 deploy]  (0.4ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1631 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1631 deploy]  (0.3ms) COMMIT [shard 1631 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1631 deploy]  (2.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1631 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1631 deploy]  (0.4ms) COMMIT [shard 1631 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1631 [["name", "switchman_test_shard_1631"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) BEGIN [shard 1631 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:19.771012"], ["updated_at", "2014-12-16 21:29:19.771012"]] [shard 1631 master]  (0.2ms) COMMIT [shard 1631 master]  (4.9ms) DROP SCHEMA switchman_test_shard_1631 CASCADE [shard 1631 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1631]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [shard 1624 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_1632 [shard 1632 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1632 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1632 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1632 deploy] Migrating to CreateUsers (20130403132607)  (2.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1632 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1632 deploy] Migrating to CreateAppendages (20130411202442)  (17.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1632 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1632 deploy] Migrating to CreateMirrorUsers (20130411202551)  (16.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1632 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1632 deploy] Migrating to CreateDigits (20131022202028)  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1632 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1632 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1632 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1632 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1632 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1632 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1632 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1632 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1632 [["name", "switchman_test_shard_1632"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1632 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:19.877862"], ["updated_at", "2014-12-16 21:29:19.877862"]] [shard 1632 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1632 master]  (2.4ms) DROP SCHEMA switchman_test_shard_1632 CASCADE [shard 1632 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1632]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (2.1ms) ROLLBACK [shard 1624 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1624 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1624]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1625], ["name", "switchman_test_shard_1625"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 1626], ["name", "switchman_test_shard_1626"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1625,1626)) AND "switchman_shards"."id" IN (1624, 1625) [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1624 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1624]] [shard 1624 master]  (0.4ms) COMMIT [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1625], ["name", "switchman_test_shard_1625"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 1626], ["name", "switchman_test_shard_1626"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:19.937963"], ["updated_at", "2014-12-16 21:29:19.937963"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "27"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "28"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master] SQL (0.7ms) DELETE FROM "switchman_shards" [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1624 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1624]] [shard 1624 master]  (0.2ms) COMMIT [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1625], ["name", "switchman_test_shard_1625"]] [shard 1624 master]  (0.4ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 1626], ["name", "switchman_test_shard_1626"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.107753"], ["updated_at", "2014-12-16 21:29:20.107753"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.109714"], ["updated_at", "2014-12-16 21:29:20.109714"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (14.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.124707"], ["updated_at", "2014-12-16 21:29:20.124707"], ["user_id", 2]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1], ["created_at", "2014-12-16 21:29:20.149126"], ["updated_at", "2014-12-16 21:29:20.149126"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1625 LIMIT 1 [shard 1624 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 2], ["id", 1]] [shard 1625 master]  (0.2ms) ROLLBACK [shard 1626 master]  (0.2ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.166354"], ["updated_at", "2014-12-16 21:29:20.166354"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.168026"], ["updated_at", "2014-12-16 21:29:20.168026"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.171626"], ["parent_id", 3], ["updated_at", "2014-12-16 21:29:20.171626"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.174203"], ["parent_id", 4], ["updated_at", "2014-12-16 21:29:20.174203"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 3]] [shard 1625 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 5 LIMIT 1 [["parent_id", 3]] [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.180897"], ["id", 5], ["updated_at", "2014-12-16 21:29:20.180897"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 3]] [shard 1625 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 16260000000000005 LIMIT 1 [["parent_id", 3]] [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.190004"], ["updated_at", "2014-12-16 21:29:20.190004"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.191641"], ["updated_at", "2014-12-16 21:29:20.191641"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.196175"], ["updated_at", "2014-12-16 21:29:20.196175"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.206126"], ["updated_at", "2014-12-16 21:29:20.206126"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.207973"], ["updated_at", "2014-12-16 21:29:20.207973"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.215274"], ["updated_at", "2014-12-16 21:29:20.215274"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.216847"], ["updated_at", "2014-12-16 21:29:20.216847"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.219763"], ["updated_at", "2014-12-16 21:29:20.219763"], ["user_id", 8]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 8]] [shard 1625 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 8]] [shard 1625 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 8]] [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.231755"], ["updated_at", "2014-12-16 21:29:20.231755"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.233377"], ["updated_at", "2014-12-16 21:29:20.233377"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.239998"], ["updated_at", "2014-12-16 21:29:20.239998"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.241662"], ["updated_at", "2014-12-16 21:29:20.241662"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.244557"], ["updated_at", "2014-12-16 21:29:20.244557"], ["user_id", 10]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.5ms) INSERT INTO "digits" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.246437"], ["updated_at", "2014-12-16 21:29:20.246437"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1626 LIMIT 1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3], ["created_at", "2014-12-16 21:29:20.251302"], ["id", 16260000000000001], ["updated_at", "2014-12-16 21:29:20.251302"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 10], ["id", 16260000000000001]] [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.260747"], ["updated_at", "2014-12-16 21:29:20.260747"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.262378"], ["updated_at", "2014-12-16 21:29:20.262378"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.265081"], ["updated_at", "2014-12-16 21:29:20.265081"], ["user_id", 11]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 11], ["id", 4]] [shard 1625 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 8], ["id", 16250000000000004]] [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.276551"], ["updated_at", "2014-12-16 21:29:20.276551"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.278037"], ["updated_at", "2014-12-16 21:29:20.278037"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.280703"], ["updated_at", "2014-12-16 21:29:20.280703"], ["user_id", 12]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 5]] [shard 1625 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 12]] [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.288648"], ["updated_at", "2014-12-16 21:29:20.288648"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.290192"], ["updated_at", "2014-12-16 21:29:20.290192"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.292941"], ["updated_at", "2014-12-16 21:29:20.292941"], ["user_id", 13]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.298984"], ["updated_at", "2014-12-16 21:29:20.298984"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.300643"], ["updated_at", "2014-12-16 21:29:20.300643"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.303683"], ["updated_at", "2014-12-16 21:29:20.303683"], ["user_id", 14]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.311114"], ["updated_at", "2014-12-16 21:29:20.311114"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.312695"], ["updated_at", "2014-12-16 21:29:20.312695"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.315465"], ["updated_at", "2014-12-16 21:29:20.315465"], ["user_id", 15]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.318314"], ["updated_at", "2014-12-16 21:29:20.318314"], ["user_id", 12]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.326468"], ["updated_at", "2014-12-16 21:29:20.326468"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.328185"], ["updated_at", "2014-12-16 21:29:20.328185"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.329855"], ["updated_at", "2014-12-16 21:29:20.329855"], ["user_id", 16]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 9], ["created_at", "2014-12-16 21:29:20.332519"], ["updated_at", "2014-12-16 21:29:20.332519"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.334858"], ["updated_at", "2014-12-16 21:29:20.334858"], ["user_id", 16250000000000016]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2], ["created_at", "2014-12-16 21:29:20.338448"], ["updated_at", "2014-12-16 21:29:20.338448"], ["value", 2]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 16]] [shard 1625 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 16250000000000016]] [shard 1626 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 16]] [shard 1625 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 16]] [shard 1625 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 16250000000000016]] [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.353863"], ["updated_at", "2014-12-16 21:29:20.353863"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.355498"], ["updated_at", "2014-12-16 21:29:20.355498"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:20.357065"], ["updated_at", "2014-12-16 21:29:20.357065"], ["user_id", 17], ["value", 1]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:20.359416"], ["updated_at", "2014-12-16 21:29:20.359416"], ["user_id", 16250000000000017], ["value", 2]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 17]] [shard 1625 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 1625 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 17]] [shard 1625 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 16250000000000017]] [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.371702"], ["updated_at", "2014-12-16 21:29:20.371702"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.373416"], ["updated_at", "2014-12-16 21:29:20.373416"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.375203"], ["updated_at", "2014-12-16 21:29:20.375203"], ["user_id", 18]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 11], ["created_at", "2014-12-16 21:29:20.377654"], ["updated_at", "2014-12-16 21:29:20.377654"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.379920"], ["updated_at", "2014-12-16 21:29:20.379920"], ["user_id", 16250000000000018]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4], ["created_at", "2014-12-16 21:29:20.382515"], ["updated_at", "2014-12-16 21:29:20.382515"], ["value", 2]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 18]] [shard 1625 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 16250000000000018]] [shard 1626 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 1625 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 18]] [shard 1625 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 16250000000000018]] [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.397339"], ["updated_at", "2014-12-16 21:29:20.397339"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.398859"], ["updated_at", "2014-12-16 21:29:20.398859"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:20.400319"], ["updated_at", "2014-12-16 21:29:20.400319"], ["user_id", 19], ["value", 1]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.402385"], ["updated_at", "2014-12-16 21:29:20.402385"], ["user_id", 16250000000000019]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:20.404968"], ["updated_at", "2014-12-16 21:29:20.404968"], ["user_id", 19], ["value", 2]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [shard 1625 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 19]] [shard 1625 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 16250000000000019]] [shard 1626 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [shard 1625 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 19]] [shard 1625 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 16250000000000019]] [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.419141"], ["updated_at", "2014-12-16 21:29:20.419141"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.420663"], ["updated_at", "2014-12-16 21:29:20.420663"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.422178"], ["updated_at", "2014-12-16 21:29:20.422178"], ["user_id", 20]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 14], ["created_at", "2014-12-16 21:29:20.424652"], ["updated_at", "2014-12-16 21:29:20.424652"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 14], ["created_at", "2014-12-16 21:29:20.426499"], ["updated_at", "2014-12-16 21:29:20.426499"], ["value", 1]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.428935"], ["updated_at", "2014-12-16 21:29:20.428935"], ["user_id", 16250000000000020]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6], ["created_at", "2014-12-16 21:29:20.431543"], ["updated_at", "2014-12-16 21:29:20.431543"], ["value", 2]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 20]] [shard 1625 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 16250000000000020]] [shard 1626 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 1625 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 20]] [shard 1625 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 16250000000000020]] [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.445872"], ["updated_at", "2014-12-16 21:29:20.445872"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.447417"], ["updated_at", "2014-12-16 21:29:20.447417"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.448877"], ["updated_at", "2014-12-16 21:29:20.448877"], ["user_id", 21]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15], ["created_at", "2014-12-16 21:29:20.451164"], ["updated_at", "2014-12-16 21:29:20.451164"], ["value", 1]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.453089"], ["updated_at", "2014-12-16 21:29:20.453089"], ["user_id", 16250000000000021]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7], ["created_at", "2014-12-16 21:29:20.455386"], ["updated_at", "2014-12-16 21:29:20.455386"], ["value", 2]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 21]] [shard 1625 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 1625 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 21]] [shard 1625 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 16250000000000021]] [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.467689"], ["updated_at", "2014-12-16 21:29:20.467689"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.469140"], ["updated_at", "2014-12-16 21:29:20.469140"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:20.470598"], ["updated_at", "2014-12-16 21:29:20.470598"], ["user_id", 22], ["value", 1]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.472733"], ["updated_at", "2014-12-16 21:29:20.472733"], ["user_id", 16250000000000022]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 22]] [shard 1625 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 16250000000000022]] [shard 1626 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 22]] [shard 1625 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 22]] [shard 1625 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 16250000000000022]] [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.484836"], ["updated_at", "2014-12-16 21:29:20.484836"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.486321"], ["updated_at", "2014-12-16 21:29:20.486321"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.3ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.494027"], ["updated_at", "2014-12-16 21:29:20.494027"], ["user_id", 16260000000000020]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master] Root Load (0.2ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 62]] [shard 1624 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.502651"], ["updated_at", "2014-12-16 21:29:20.502651"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.504144"], ["updated_at", "2014-12-16 21:29:20.504144"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (15.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-16 21:29:20.512083"], ["owner_id", 24], ["owner_type", "User"], ["updated_at", "2014-12-16 21:29:20.512083"], ["value", 1]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (14.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2014-12-16 21:29:20.530618"], ["owner_id", 16250000000000024], ["owner_type", "User"], ["updated_at", "2014-12-16 21:29:20.530618"], ["value", 2]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 24], ["owner_type", "User"]] [shard 1625 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 24]] [shard 1625 master] Feature Load (0.1ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 24], ["owner_type", "User"]] [shard 1625 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 16250000000000024], ["owner_type", "User"]] [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.558665"], ["updated_at", "2014-12-16 21:29:20.558665"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.560109"], ["updated_at", "2014-12-16 21:29:20.560109"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.561717"], ["updated_at", "2014-12-16 21:29:20.561717"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:20.563535"], ["owner_id", 1319], ["owner_type", "Appendage"], ["updated_at", "2014-12-16 21:29:20.563535"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 127]] [shard 1624 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 1319]] [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) UPDATE "features" SET "owner_id" = $1, "owner_type" = $2, "updated_at" = $3 WHERE "features"."id" = 127 [["owner_id", 16250000000000025], ["owner_type", "User"], ["updated_at", "2014-12-16 21:29:20.567603"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master] Feature Load (1.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 127]] [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.574926"], ["updated_at", "2014-12-16 21:29:20.574926"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.576442"], ["updated_at", "2014-12-16 21:29:20.576442"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.578412"], ["updated_at", "2014-12-16 21:29:20.578412"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 26]] [shard 1625 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.581393"], ["updated_at", "2014-12-16 21:29:20.581393"], ["user_id", 26]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 17]] [shard 1625 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 26]] [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.2ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.588692"], ["updated_at", "2014-12-16 21:29:20.588692"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.590246"], ["updated_at", "2014-12-16 21:29:20.590246"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.592229"], ["updated_at", "2014-12-16 21:29:20.592229"], ["user_id", 16260000000000024]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 18]] [shard 1625 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 24]] [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.600093"], ["updated_at", "2014-12-16 21:29:20.600093"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.601607"], ["updated_at", "2014-12-16 21:29:20.601607"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.603825"], ["updated_at", "2014-12-16 21:29:20.603825"], ["user_id", 16250000000000028]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.605879"], ["updated_at", "2014-12-16 21:29:20.605879"], ["user_id", 16260000000000025]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.607348"], ["updated_at", "2014-12-16 21:29:20.607348"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.609843"], ["updated_at", "2014-12-16 21:29:20.609843"], ["user_id", 2671]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 1624 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 1625 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 1626 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2671) [shard 1624 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 28 [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.624934"], ["updated_at", "2014-12-16 21:29:20.624934"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.626545"], ["updated_at", "2014-12-16 21:29:20.626545"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.629628"], ["updated_at", "2014-12-16 21:29:20.629628"], ["user_id", 29]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.632030"], ["updated_at", "2014-12-16 21:29:20.632030"], ["user_id", 16250000000000029]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.633511"], ["updated_at", "2014-12-16 21:29:20.633511"], ["user_id", 16250000000000029]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 19], ["created_at", "2014-12-16 21:29:20.636108"], ["updated_at", "2014-12-16 21:29:20.636108"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 10], ["created_at", "2014-12-16 21:29:20.638965"], ["updated_at", "2014-12-16 21:29:20.638965"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 16260000000000010], ["created_at", "2014-12-16 21:29:20.641395"], ["updated_at", "2014-12-16 21:29:20.641395"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 16260000000000011], ["created_at", "2014-12-16 21:29:20.642927"], ["updated_at", "2014-12-16 21:29:20.642927"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.644490"], ["updated_at", "2014-12-16 21:29:20.644490"], ["user_id", 16260000000000026]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.647026"], ["updated_at", "2014-12-16 21:29:20.647026"], ["user_id", 26]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.649199"], ["updated_at", "2014-12-16 21:29:20.649199"], ["user_id", 26]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 16250000000000020], ["created_at", "2014-12-16 21:29:20.650830"], ["updated_at", "2014-12-16 21:29:20.650830"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 16260000000000012], ["created_at", "2014-12-16 21:29:20.652404"], ["updated_at", "2014-12-16 21:29:20.652404"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 13], ["created_at", "2014-12-16 21:29:20.653735"], ["updated_at", "2014-12-16 21:29:20.653735"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [shard 1625 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (29) [shard 1625 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (16250000000000029) [shard 1626 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (19) [shard 1625 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (10, 11) [shard 1626 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 1626 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (26) [shard 1626 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (12, 13) [shard 1626 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.687843"], ["updated_at", "2014-12-16 21:29:20.687843"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.689533"], ["updated_at", "2014-12-16 21:29:20.689533"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.691196"], ["updated_at", "2014-12-16 21:29:20.691196"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1323], ["created_at", "2014-12-16 21:29:20.693457"], ["updated_at", "2014-12-16 21:29:20.693457"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 16240000000001323], ["created_at", "2014-12-16 21:29:20.695472"], ["updated_at", "2014-12-16 21:29:20.695472"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1323 ORDER BY "appendages"."id" ASC LIMIT 1 [shard 1624 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1323) [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.704468"], ["updated_at", "2014-12-16 21:29:20.704468"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.706105"], ["updated_at", "2014-12-16 21:29:20.706105"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.708343"], ["updated_at", "2014-12-16 21:29:20.708343"], ["user_id", 16250000000000031]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1324], ["created_at", "2014-12-16 21:29:20.710644"], ["updated_at", "2014-12-16 21:29:20.710644"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.712963"], ["updated_at", "2014-12-16 21:29:20.712963"], ["user_id", 16260000000000028]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 16250000000000021], ["created_at", "2014-12-16 21:29:20.714791"], ["updated_at", "2014-12-16 21:29:20.714791"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 1624 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (1324) [shard 1624 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (21) [shard 1625 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (31) [shard 1625 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 1626 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 31 [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.731732"], ["updated_at", "2014-12-16 21:29:20.731732"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.733329"], ["updated_at", "2014-12-16 21:29:20.733329"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.736210"], ["updated_at", "2014-12-16 21:29:20.736210"], ["user_id", 32]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.738175"], ["updated_at", "2014-12-16 21:29:20.738175"], ["user_id", 16250000000000032]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.740174"], ["updated_at", "2014-12-16 21:29:20.740174"], ["user_id", 16260000000000029]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (32) [shard 1625 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (32) [shard 1625 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (16250000000000032) [shard 1626 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [shard 1626 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (29) [shard 1626 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 22 [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.754025"], ["updated_at", "2014-12-16 21:29:20.754025"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.755573"], ["updated_at", "2014-12-16 21:29:20.755573"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.2ms) BEGIN [shard 1624 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1624 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1624]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1625], ["name", "switchman_test_shard_1625"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 1626], ["name", "switchman_test_shard_1626"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "29"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "29"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1624 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1624]] [shard 1624 master]  (0.4ms) COMMIT [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1625], ["name", "switchman_test_shard_1625"]] [shard 1624 master]  (0.2ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 1626], ["name", "switchman_test_shard_1626"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.800092"], ["updated_at", "2014-12-16 21:29:20.800092"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.801920"], ["updated_at", "2014-12-16 21:29:20.801920"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1625 LIMIT 1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.806582"], ["updated_at", "2014-12-16 21:29:20.806582"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.812893"], ["updated_at", "2014-12-16 21:29:20.812893"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.822429"], ["updated_at", "2014-12-16 21:29:20.822429"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.824462"], ["updated_at", "2014-12-16 21:29:20.824462"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.830922"], ["updated_at", "2014-12-16 21:29:20.830922"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master] SQL (2.6ms) DELETE FROM "switchman_shards" [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1624]] [shard 1624 master]  (0.8ms) COMMIT [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1625], ["name", "switchman_test_shard_1625"]] [shard 1624 master]  (2.8ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 1626], ["name", "switchman_test_shard_1626"]] [shard 1624 master]  (15.3ms) COMMIT [shard 1624 master]  (0.2ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.877644"], ["updated_at", "2014-12-16 21:29:20.877644"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1625 LIMIT 1 [shard 1624 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 37]] [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.889075"], ["updated_at", "2014-12-16 21:29:20.889075"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.890885"], ["name", "multi-shard exists"], ["updated_at", "2014-12-16 21:29:20.890885"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 1624 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1624 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1625 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.900004"], ["updated_at", "2014-12-16 21:29:20.900004"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 39 LIMIT 1 [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.906473"], ["updated_at", "2014-12-16 21:29:20.906473"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) LIMIT 1 [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.913199"], ["updated_at", "2014-12-16 21:29:20.913199"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 41 LIMIT 1 [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.919699"], ["updated_at", "2014-12-16 21:29:20.919699"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 42]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 16250000000000042 ORDER BY "users"."id" ASC LIMIT 1 [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1624]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1625], ["name", "switchman_test_shard_1625"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 1626], ["name", "switchman_test_shard_1626"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.935798"], ["updated_at", "2014-12-16 21:29:20.935798"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.938351"], ["updated_at", "2014-12-16 21:29:20.938351"], ["user_id", 2674]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.940109"], ["updated_at", "2014-12-16 21:29:20.940109"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.942767"], ["updated_at", "2014-12-16 21:29:20.942767"], ["user_id", 43]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.944321"], ["updated_at", "2014-12-16 21:29:20.944321"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.947139"], ["updated_at", "2014-12-16 21:29:20.947139"], ["user_id", 32]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.952798"], ["updated_at", "2014-12-16 21:29:20.952798"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.955047"], ["updated_at", "2014-12-16 21:29:20.955047"], ["user_id", 2675]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.956859"], ["updated_at", "2014-12-16 21:29:20.956859"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.959757"], ["updated_at", "2014-12-16 21:29:20.959757"], ["user_id", 44]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.961463"], ["updated_at", "2014-12-16 21:29:20.961463"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.964328"], ["updated_at", "2014-12-16 21:29:20.964328"], ["user_id", 33]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.969918"], ["updated_at", "2014-12-16 21:29:20.969918"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.972244"], ["updated_at", "2014-12-16 21:29:20.972244"], ["user_id", 2676]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.974153"], ["updated_at", "2014-12-16 21:29:20.974153"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.976761"], ["updated_at", "2014-12-16 21:29:20.976761"], ["user_id", 45]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.978346"], ["updated_at", "2014-12-16 21:29:20.978346"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.980929"], ["updated_at", "2014-12-16 21:29:20.980929"], ["user_id", 34]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.986662"], ["updated_at", "2014-12-16 21:29:20.986662"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.988925"], ["updated_at", "2014-12-16 21:29:20.988925"], ["user_id", 2677]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.990540"], ["updated_at", "2014-12-16 21:29:20.990540"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.993154"], ["updated_at", "2014-12-16 21:29:20.993154"], ["user_id", 46]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:20.994764"], ["updated_at", "2014-12-16 21:29:20.994764"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:20.997516"], ["updated_at", "2014-12-16 21:29:20.997516"], ["user_id", 35]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.003167"], ["updated_at", "2014-12-16 21:29:21.003167"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.006182"], ["updated_at", "2014-12-16 21:29:21.006182"], ["user_id", 2678]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.008655"], ["updated_at", "2014-12-16 21:29:21.008655"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.011909"], ["updated_at", "2014-12-16 21:29:21.011909"], ["user_id", 47]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.013864"], ["updated_at", "2014-12-16 21:29:21.013864"]] [shard 1626 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.016942"], ["updated_at", "2014-12-16 21:29:21.016942"], ["user_id", 36]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.023066"], ["updated_at", "2014-12-16 21:29:21.023066"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.025576"], ["updated_at", "2014-12-16 21:29:21.025576"], ["user_id", 2679]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.027583"], ["updated_at", "2014-12-16 21:29:21.027583"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.030432"], ["updated_at", "2014-12-16 21:29:21.030432"], ["user_id", 48]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.032123"], ["updated_at", "2014-12-16 21:29:21.032123"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.035457"], ["updated_at", "2014-12-16 21:29:21.035457"], ["user_id", 37]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.038201"], ["parent_id", 2679], ["updated_at", "2014-12-16 21:29:21.038201"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.040606"], ["parent_id", 2680], ["updated_at", "2014-12-16 21:29:21.040606"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2680]] [shard 1624 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2679]] [shard 1624 master] User Load (0.2ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 [["parent_id", 2679]] [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.049896"], ["updated_at", "2014-12-16 21:29:21.049896"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.052303"], ["updated_at", "2014-12-16 21:29:21.052303"], ["user_id", 2682]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.054060"], ["updated_at", "2014-12-16 21:29:21.054060"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.057039"], ["updated_at", "2014-12-16 21:29:21.057039"], ["user_id", 49]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.058626"], ["updated_at", "2014-12-16 21:29:21.058626"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.061382"], ["updated_at", "2014-12-16 21:29:21.061382"], ["user_id", 38]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.067321"], ["updated_at", "2014-12-16 21:29:21.067321"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.069559"], ["updated_at", "2014-12-16 21:29:21.069559"], ["user_id", 2683]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.071235"], ["updated_at", "2014-12-16 21:29:21.071235"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.073781"], ["updated_at", "2014-12-16 21:29:21.073781"], ["user_id", 50]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.075332"], ["updated_at", "2014-12-16 21:29:21.075332"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.077969"], ["updated_at", "2014-12-16 21:29:21.077969"], ["user_id", 39]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1625 LIMIT 1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.085958"], ["updated_at", "2014-12-16 21:29:21.085958"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.088355"], ["updated_at", "2014-12-16 21:29:21.088355"], ["user_id", 2684]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.090147"], ["updated_at", "2014-12-16 21:29:21.090147"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.092969"], ["updated_at", "2014-12-16 21:29:21.092969"], ["user_id", 51]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.094652"], ["updated_at", "2014-12-16 21:29:21.094652"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.097398"], ["updated_at", "2014-12-16 21:29:21.097398"], ["user_id", 40]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.2ms) ROLLBACK [shard 1626 master]  (0.2ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.105174"], ["updated_at", "2014-12-16 21:29:21.105174"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.108162"], ["updated_at", "2014-12-16 21:29:21.108162"], ["user_id", 2685]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.109957"], ["updated_at", "2014-12-16 21:29:21.109957"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.112596"], ["updated_at", "2014-12-16 21:29:21.112596"], ["user_id", 52]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.114106"], ["updated_at", "2014-12-16 21:29:21.114106"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.117239"], ["updated_at", "2014-12-16 21:29:21.117239"], ["user_id", 41]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.124193"], ["updated_at", "2014-12-16 21:29:21.124193"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.126772"], ["updated_at", "2014-12-16 21:29:21.126772"], ["user_id", 2686]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.128504"], ["updated_at", "2014-12-16 21:29:21.128504"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.131416"], ["updated_at", "2014-12-16 21:29:21.131416"], ["user_id", 53]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.133096"], ["updated_at", "2014-12-16 21:29:21.133096"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.135889"], ["updated_at", "2014-12-16 21:29:21.135889"], ["user_id", 42]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.142202"], ["updated_at", "2014-12-16 21:29:21.142202"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.144778"], ["updated_at", "2014-12-16 21:29:21.144778"], ["user_id", 2687]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.146613"], ["updated_at", "2014-12-16 21:29:21.146613"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.149423"], ["updated_at", "2014-12-16 21:29:21.149423"], ["user_id", 54]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.151101"], ["updated_at", "2014-12-16 21:29:21.151101"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.153880"], ["updated_at", "2014-12-16 21:29:21.153880"], ["user_id", 43]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.160743"], ["updated_at", "2014-12-16 21:29:21.160743"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.163285"], ["updated_at", "2014-12-16 21:29:21.163285"], ["user_id", 2688]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.165043"], ["updated_at", "2014-12-16 21:29:21.165043"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.167451"], ["updated_at", "2014-12-16 21:29:21.167451"], ["user_id", 55]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.168948"], ["updated_at", "2014-12-16 21:29:21.168948"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.171585"], ["updated_at", "2014-12-16 21:29:21.171585"], ["user_id", 44]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.177383"], ["updated_at", "2014-12-16 21:29:21.177383"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.179712"], ["updated_at", "2014-12-16 21:29:21.179712"], ["user_id", 2689]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.181497"], ["updated_at", "2014-12-16 21:29:21.181497"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.183997"], ["updated_at", "2014-12-16 21:29:21.183997"], ["user_id", 56]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.185470"], ["updated_at", "2014-12-16 21:29:21.185470"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.188057"], ["updated_at", "2014-12-16 21:29:21.188057"], ["user_id", 45]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.189957"], ["updated_at", "2014-12-16 21:29:21.189957"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.195886"], ["updated_at", "2014-12-16 21:29:21.195886"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.198380"], ["updated_at", "2014-12-16 21:29:21.198380"], ["user_id", 2690]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.200148"], ["updated_at", "2014-12-16 21:29:21.200148"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.202845"], ["updated_at", "2014-12-16 21:29:21.202845"], ["user_id", 57]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.204422"], ["updated_at", "2014-12-16 21:29:21.204422"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.207119"], ["updated_at", "2014-12-16 21:29:21.207119"], ["user_id", 46]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.213741"], ["updated_at", "2014-12-16 21:29:21.213741"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.216111"], ["updated_at", "2014-12-16 21:29:21.216111"], ["user_id", 2691]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.217950"], ["updated_at", "2014-12-16 21:29:21.217950"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.220545"], ["updated_at", "2014-12-16 21:29:21.220545"], ["user_id", 58]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.222197"], ["updated_at", "2014-12-16 21:29:21.222197"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.224887"], ["updated_at", "2014-12-16 21:29:21.224887"], ["user_id", 47]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1624]] [shard 1624 master]  (0.4ms) COMMIT [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1625], ["name", "switchman_test_shard_1625"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 1626], ["name", "switchman_test_shard_1626"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1624 AND id<=1625)) ORDER BY "switchman_shards"."id" ASC [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1625)) ORDER BY "switchman_shards"."id" ASC [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=1625)) ORDER BY "switchman_shards"."id" ASC [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1624)) [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1624 AND id<1625) OR (id>=1626 AND id<1627)) ORDER BY "switchman_shards"."id" ASC [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1624 AND id<1625)) [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1624 AND id<=1625)) AND (id NOT IN (1624)) [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1624)) [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1624)) [shard 1624 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1624 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1624]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1625], ["name", "switchman_test_shard_1625"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 1626], ["name", "switchman_test_shard_1626"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1624]] [shard 1624 master]  (0.4ms) COMMIT [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1625], ["name", "switchman_test_shard_1625"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 1626], ["name", "switchman_test_shard_1626"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.302386"], ["updated_at", "2014-12-16 21:29:21.302386"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1626 master]  (0.1ms) SAVEPOINT active_record_2 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.307275"], ["updated_at", "2014-12-16 21:29:21.307275"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1626 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1624]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1625], ["name", "switchman_test_shard_1625"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 1626], ["name", "switchman_test_shard_1626"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1624]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1625], ["name", "switchman_test_shard_1625"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 1626], ["name", "switchman_test_shard_1626"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.334993"], ["name", "user1"], ["updated_at", "2014-12-16 21:29:21.334993"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.336803"], ["name", "user2"], ["updated_at", "2014-12-16 21:29:21.336803"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1625 LIMIT 1 [shard 1624 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2692) [shard 1624 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.345826"], ["name", "user1"], ["updated_at", "2014-12-16 21:29:21.345826"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.347607"], ["name", "user2"], ["updated_at", "2014-12-16 21:29:21.347607"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 60 ORDER BY "users"."id" ASC LIMIT 1 [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.354058"], ["name", "user1"], ["updated_at", "2014-12-16 21:29:21.354058"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.355693"], ["name", "user2"], ["updated_at", "2014-12-16 21:29:21.355693"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (2694) [shard 1624 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (61) [shard 1625 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2694]] [shard 1624 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.365068"], ["name", "user1"], ["updated_at", "2014-12-16 21:29:21.365068"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.366797"], ["name", "user2"], ["updated_at", "2014-12-16 21:29:21.366797"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 62 [shard 1625 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2695]] [shard 1624 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 62]] [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.374786"], ["name", "user1"], ["updated_at", "2014-12-16 21:29:21.374786"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.376432"], ["name", "user2"], ["updated_at", "2014-12-16 21:29:21.376432"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1624 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1624]] [shard 1624 master]  (0.4ms) COMMIT [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1625], ["name", "switchman_test_shard_1625"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 1626], ["name", "switchman_test_shard_1626"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.390714"], ["updated_at", "2014-12-16 21:29:21.390714"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.395912"], ["updated_at", "2014-12-16 21:29:21.395912"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1625 LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1626 LIMIT 1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.405466"], ["updated_at", "2014-12-16 21:29:21.405466"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.407213"], ["owner_id", 2698], ["owner_type", "User"], ["updated_at", "2014-12-16 21:29:21.407213"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master] Feature Load (0.3ms) SELECT "features"."owner_id" FROM "features" WHERE "features"."id" = 128 ORDER BY "features"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master] SQL (15.5ms) DELETE FROM "switchman_shards" [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "30"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "30"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1624 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1624]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1625], ["name", "switchman_test_shard_1625"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 1626], ["name", "switchman_test_shard_1626"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.447787"], ["name", "user1"], ["updated_at", "2014-12-16 21:29:21.447787"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.450524"], ["updated_at", "2014-12-16 21:29:21.450524"], ["user_id", 64]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.452341"], ["name", "user2"], ["updated_at", "2014-12-16 21:29:21.452341"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.454667"], ["updated_at", "2014-12-16 21:29:21.454667"], ["user_id", 50]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1625 LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1626 LIMIT 1 [shard 1624 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (64) [shard 1625 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (50) [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.466165"], ["name", "user1"], ["updated_at", "2014-12-16 21:29:21.466165"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.468782"], ["updated_at", "2014-12-16 21:29:21.468782"], ["user_id", 65]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.470610"], ["name", "user2"], ["updated_at", "2014-12-16 21:29:21.470610"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.473014"], ["updated_at", "2014-12-16 21:29:21.473014"], ["user_id", 51]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.474791"], ["name", "user2"], ["updated_at", "2014-12-16 21:29:21.474791"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (2699) [shard 1624 master]  (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (65) [shard 1625 master]  (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (51) [shard 1626 master]  (0.2ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.484031"], ["name", "user1"], ["updated_at", "2014-12-16 21:29:21.484031"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.486260"], ["updated_at", "2014-12-16 21:29:21.486260"], ["user_id", 66]] [shard 1625 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.488111"], ["name", "user2"], ["updated_at", "2014-12-16 21:29:21.488111"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.490967"], ["updated_at", "2014-12-16 21:29:21.490967"], ["user_id", 52]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 1625 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 1626 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 1625 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 1626 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 1625 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.502903"], ["name", "user1"], ["updated_at", "2014-12-16 21:29:21.502903"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.505288"], ["updated_at", "2014-12-16 21:29:21.505288"], ["user_id", 67]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.507031"], ["name", "user2"], ["updated_at", "2014-12-16 21:29:21.507031"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.509463"], ["updated_at", "2014-12-16 21:29:21.509463"], ["user_id", 53]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 44 [shard 1625 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 1626 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 44 [shard 1625 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 1626 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 44 [shard 1625 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.519715"], ["name", "user1"], ["updated_at", "2014-12-16 21:29:21.519715"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.522151"], ["updated_at", "2014-12-16 21:29:21.522151"], ["user_id", 68], ["value", 1]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.524078"], ["updated_at", "2014-12-16 21:29:21.524078"], ["user_id", 68], ["value", 2]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.525713"], ["name", "user2"], ["updated_at", "2014-12-16 21:29:21.525713"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.527952"], ["updated_at", "2014-12-16 21:29:21.527952"], ["user_id", 54], ["value", 3]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.530306"], ["updated_at", "2014-12-16 21:29:21.530306"], ["user_id", 54], ["value", 4]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.532782"], ["updated_at", "2014-12-16 21:29:21.532782"], ["user_id", 54], ["value", 5]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 68]] [shard 1625 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1625 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 54]] [shard 1626 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1626 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (45, 46) [shard 1625 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (36, 37, 38) [shard 1626 master]  (0.2ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.552637"], ["name", "user1"], ["updated_at", "2014-12-16 21:29:21.552637"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.555228"], ["updated_at", "2014-12-16 21:29:21.555228"], ["user_id", 69], ["value", 1]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.557328"], ["updated_at", "2014-12-16 21:29:21.557328"], ["user_id", 69], ["value", 2]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.558982"], ["name", "user2"], ["updated_at", "2014-12-16 21:29:21.558982"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.561379"], ["updated_at", "2014-12-16 21:29:21.561379"], ["user_id", 55], ["value", 3]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.563321"], ["updated_at", "2014-12-16 21:29:21.563321"], ["user_id", 55], ["value", 4]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.565102"], ["updated_at", "2014-12-16 21:29:21.565102"], ["user_id", 55], ["value", 5]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 69]] [shard 1625 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1625 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 55]] [shard 1626 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1626 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (47, 48) [shard 1625 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (39, 40, 41) [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.577072"], ["name", "user1"], ["updated_at", "2014-12-16 21:29:21.577072"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.580053"], ["updated_at", "2014-12-16 21:29:21.580053"], ["user_id", 70], ["value", 1]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.581969"], ["updated_at", "2014-12-16 21:29:21.581969"], ["user_id", 70], ["value", 2]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.583639"], ["name", "user2"], ["updated_at", "2014-12-16 21:29:21.583639"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.586354"], ["updated_at", "2014-12-16 21:29:21.586354"], ["user_id", 56], ["value", 3]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.588317"], ["updated_at", "2014-12-16 21:29:21.588317"], ["user_id", 56], ["value", 4]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.590573"], ["updated_at", "2014-12-16 21:29:21.590573"], ["user_id", 56], ["value", 5]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 70]] [shard 1625 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1625 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 56]] [shard 1626 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1626 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (49, 50) [shard 1625 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (42, 43, 44) [shard 1626 master]  (0.2ms) ROLLBACK [shard 1626 master]  (0.2ms) ROLLBACK [shard 1625 master]  (0.2ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.605272"], ["name", "user1"], ["updated_at", "2014-12-16 21:29:21.605272"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.608321"], ["updated_at", "2014-12-16 21:29:21.608321"], ["user_id", 71], ["value", 1]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.610578"], ["updated_at", "2014-12-16 21:29:21.610578"], ["user_id", 71], ["value", 2]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.612609"], ["name", "user2"], ["updated_at", "2014-12-16 21:29:21.612609"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.615133"], ["updated_at", "2014-12-16 21:29:21.615133"], ["user_id", 57], ["value", 3]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.617038"], ["updated_at", "2014-12-16 21:29:21.617038"], ["user_id", 57], ["value", 4]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.619585"], ["updated_at", "2014-12-16 21:29:21.619585"], ["user_id", 57], ["value", 5]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 71]] [shard 1625 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 1625 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 57]] [shard 1626 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 1626 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (51, 52) [shard 1625 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (45, 46, 47) [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.632721"], ["name", "user1"], ["updated_at", "2014-12-16 21:29:21.632721"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.635479"], ["updated_at", "2014-12-16 21:29:21.635479"], ["user_id", 72], ["value", 1]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.637477"], ["updated_at", "2014-12-16 21:29:21.637477"], ["user_id", 72], ["value", 2]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.639123"], ["name", "user2"], ["updated_at", "2014-12-16 21:29:21.639123"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.641955"], ["updated_at", "2014-12-16 21:29:21.641955"], ["user_id", 58], ["value", 3]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.644047"], ["updated_at", "2014-12-16 21:29:21.644047"], ["user_id", 58], ["value", 4]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.646016"], ["updated_at", "2014-12-16 21:29:21.646016"], ["user_id", 58], ["value", 5]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 72]] [shard 1625 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1625 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 58]] [shard 1626 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1626 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (53, 54) [shard 1625 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (48, 49, 50) [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.658843"], ["name", "user1"], ["updated_at", "2014-12-16 21:29:21.658843"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.660438"], ["name", "user2"], ["updated_at", "2014-12-16 21:29:21.660438"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.662122"], ["updated_at", "2014-12-16 21:29:21.662122"], ["user_id", 73], ["value", 1]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.664179"], ["updated_at", "2014-12-16 21:29:21.664179"], ["user_id", 16260000000000059], ["value", 3]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.666092"], ["updated_at", "2014-12-16 21:29:21.666092"], ["user_id", 16250000000000073], ["value", 2]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.667683"], ["updated_at", "2014-12-16 21:29:21.667683"], ["user_id", 59], ["value", 4]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.669179"], ["updated_at", "2014-12-16 21:29:21.669179"], ["user_id", 59], ["value", 5]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1625 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1626 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1625 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1626 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1625 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1626 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1625 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (73) [shard 1625 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 1626 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1626 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 1626 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (73) [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.688670"], ["name", "user1"], ["updated_at", "2014-12-16 21:29:21.688670"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.690299"], ["name", "user2"], ["updated_at", "2014-12-16 21:29:21.690299"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.691879"], ["updated_at", "2014-12-16 21:29:21.691879"], ["user_id", 74], ["value", 1]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.693685"], ["updated_at", "2014-12-16 21:29:21.693685"], ["user_id", 16260000000000060], ["value", 3]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.695642"], ["updated_at", "2014-12-16 21:29:21.695642"], ["user_id", 16250000000000074], ["value", 2]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.697339"], ["updated_at", "2014-12-16 21:29:21.697339"], ["user_id", 60], ["value", 4]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.698895"], ["updated_at", "2014-12-16 21:29:21.698895"], ["user_id", 60], ["value", 5]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.701136"], ["updated_at", "2014-12-16 21:29:21.701136"], ["user_id", 74]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.702655"], ["updated_at", "2014-12-16 21:29:21.702655"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.704927"], ["updated_at", "2014-12-16 21:29:21.704927"], ["user_id", 75]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.712013"], ["name", "user1"], ["updated_at", "2014-12-16 21:29:21.712013"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.713703"], ["name", "user2"], ["updated_at", "2014-12-16 21:29:21.713703"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.715341"], ["updated_at", "2014-12-16 21:29:21.715341"], ["user_id", 76], ["value", 1]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.717253"], ["updated_at", "2014-12-16 21:29:21.717253"], ["user_id", 16260000000000061], ["value", 3]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.719066"], ["updated_at", "2014-12-16 21:29:21.719066"], ["user_id", 16250000000000076], ["value", 2]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.720621"], ["updated_at", "2014-12-16 21:29:21.720621"], ["user_id", 61], ["value", 4]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.722320"], ["updated_at", "2014-12-16 21:29:21.722320"], ["user_id", 61], ["value", 5]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1625 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1626 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1625 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1626 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1625 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1626 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1625 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (76) [shard 1625 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [shard 1626 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1626 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [shard 1626 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (76) [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.739019"], ["name", "user1"], ["updated_at", "2014-12-16 21:29:21.739019"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.740639"], ["name", "user2"], ["updated_at", "2014-12-16 21:29:21.740639"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.742345"], ["updated_at", "2014-12-16 21:29:21.742345"], ["user_id", 77], ["value", 1]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.744457"], ["updated_at", "2014-12-16 21:29:21.744457"], ["user_id", 16260000000000062], ["value", 3]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.746588"], ["updated_at", "2014-12-16 21:29:21.746588"], ["user_id", 16250000000000077], ["value", 2]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.748270"], ["updated_at", "2014-12-16 21:29:21.748270"], ["user_id", 62], ["value", 4]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.749796"], ["updated_at", "2014-12-16 21:29:21.749796"], ["user_id", 62], ["value", 5]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1625 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1626 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1625 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1626 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1625 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1626 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1625 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (77) [shard 1625 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (62) [shard 1626 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1626 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (62) [shard 1626 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (77) [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.767423"], ["name", "user1"], ["updated_at", "2014-12-16 21:29:21.767423"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.769100"], ["name", "user2"], ["updated_at", "2014-12-16 21:29:21.769100"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.770768"], ["updated_at", "2014-12-16 21:29:21.770768"], ["user_id", 78], ["value", 1]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.772961"], ["updated_at", "2014-12-16 21:29:21.772961"], ["user_id", 16260000000000063], ["value", 3]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.775046"], ["updated_at", "2014-12-16 21:29:21.775046"], ["user_id", 16250000000000078], ["value", 2]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.776640"], ["updated_at", "2014-12-16 21:29:21.776640"], ["user_id", 63], ["value", 4]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.778241"], ["updated_at", "2014-12-16 21:29:21.778241"], ["user_id", 63], ["value", 5]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1625 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1626 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1625 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1626 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1625 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1626 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1625 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (78) [shard 1625 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (63) [shard 1626 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1626 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (63) [shard 1626 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (78) [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.797067"], ["name", "user1"], ["updated_at", "2014-12-16 21:29:21.797067"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.798752"], ["name", "user2"], ["updated_at", "2014-12-16 21:29:21.798752"]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.800449"], ["updated_at", "2014-12-16 21:29:21.800449"], ["user_id", 79], ["value", 1]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.802406"], ["updated_at", "2014-12-16 21:29:21.802406"], ["user_id", 16260000000000064], ["value", 3]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.804358"], ["updated_at", "2014-12-16 21:29:21.804358"], ["user_id", 16250000000000079], ["value", 2]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.805851"], ["updated_at", "2014-12-16 21:29:21.805851"], ["user_id", 64], ["value", 4]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1626 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2014-12-16 21:29:21.807439"], ["updated_at", "2014-12-16 21:29:21.807439"], ["user_id", 64], ["value", 5]] [shard 1626 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1626 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1625 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1626 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1625 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1626 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1625 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1626 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1625 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (79) [shard 1625 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [shard 1626 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1626 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [shard 1626 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (79) [shard 1625 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1624]] [shard 1624 master]  (0.2ms) COMMIT [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1625], ["name", "switchman_test_shard_1625"]] [shard 1624 master]  (0.2ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 1626], ["name", "switchman_test_shard_1626"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:30:21.832779"], ["updated_at", "2014-12-16 21:30:21.832779"]] [shard 1625 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.0ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1625 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1624]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1625], ["name", "switchman_test_shard_1625"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 1626], ["name", "switchman_test_shard_1626"]] [shard 1624 master]  (0.2ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.848108"], ["updated_at", "2014-12-16 21:29:21.848108"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1625 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.849607"], ["updated_at", "2014-12-16 21:29:21.849607"]] [shard 1625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1625 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.851210"], ["updated_at", "2014-12-16 21:29:21.851210"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1625 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.886438"], ["updated_at", "2014-12-16 21:29:21.886438"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1624 master] SQL (0.1ms) DELETE FROM "users" [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.893705"], ["updated_at", "2014-12-16 21:29:21.893705"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1624 master] SQL (0.2ms) DELETE FROM "users" [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.897727"], ["updated_at", "2014-12-16 21:29:21.897727"]] [shard 1624 master]  (0.4ms) COMMIT [shard 1624 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1624 master] SQL (0.3ms) DELETE FROM "users" [shard 1624 master] SQL (0.1ms) DELETE FROM "users" [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.902192"], ["updated_at", "2014-12-16 21:29:21.902192"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1624 master] SQL (0.3ms) DELETE FROM "users" [shard 1624 master] SQL (0.2ms) DELETE FROM "users" [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.906630"], ["updated_at", "2014-12-16 21:29:21.906630"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2014-12-16 21:29:21.908377"], ["name", "a"], ["updated_at", "2014-12-16 21:29:21.908377"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2706]] [shard 1624 master] CACHE (0.0ms) 1624::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2706]] CACHE (0.0ms) 1624::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2706]]  (0.1ms) BEGIN [shard 1624 master] SQL (0.3ms) UPDATE "users" SET "name" = $1, "updated_at" = $2 WHERE "users"."id" = 2706 [["name", "b"], ["updated_at", "2014-12-16 21:29:21.912060"]] [shard 1624 master]  (0.2ms) COMMIT [shard 1624 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2706]] [shard 1624 master] CACHE (0.0ms) 1624::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2706]] SQL (0.4ms) DELETE FROM "users" [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.920880"], ["updated_at", "2014-12-16 21:29:21.920880"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1624 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:29:21.922536' [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.927753"], ["updated_at", "2014-12-16 21:29:21.927753"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1624 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:29:21.929332' [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.931536"], ["updated_at", "2014-12-16 21:29:21.931536"]] [shard 1624 master]  (0.4ms) COMMIT [shard 1624 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1624 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:29:21.933429' [shard 1624 master] SQL (0.4ms) DELETE FROM "users" [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.936253"], ["updated_at", "2014-12-16 21:29:21.936253"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1624 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2014-12-16 21:29:21.938010' [shard 1624 master] SQL (0.3ms) DELETE FROM "users" [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.958968"], ["updated_at", "2014-12-16 21:29:21.958968"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.965227"], ["updated_at", "2014-12-16 21:29:21.965227"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1624 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1624 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.971425"], ["updated_at", "2014-12-16 21:29:21.971425"]] [shard 1624 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2014-12-16 21:29:21.977833"], ["updated_at", "2014-12-16 21:29:21.977833"]] [shard 1624 master]  (0.3ms) COMMIT [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] User Load (0.3ms) SELECT "users".* FROM "users" FOR UPDATE [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1624 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master]  (0.1ms) BEGIN [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1625]] [shard 1624 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1626]] [shard 1624 master]  (0.1ms) BEGIN [shard 1626 master]  (0.1ms) ROLLBACK [shard 1626 master]  (0.1ms) ROLLBACK [shard 1624 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1624 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1624 master]  (5.0ms) DROP SCHEMA switchman_test_shard_1625 CASCADE [shard 1625 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1625]]  (0.1ms) COMMIT  (5.0ms) DROP SCHEMA switchman_test_shard_1626 CASCADE [shard 1626 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1626]]  (0.1ms) COMMIT  (1.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (16.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (16.0ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.4ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (46.5ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.5ms) COMMIT Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (1.2ms) CREATE SCHEMA switchman_test_shard_1640 [shard 1640 deploy]  (44.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1640 deploy]  (3.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1640 deploy] ActiveRecord::SchemaMigration Load (1.9ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1640 deploy] Migrating to CreateUsers (20130403132607)  (4.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1640 deploy] SQL (1.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1640 deploy] Migrating to CreateAppendages (20130411202442)  (3.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1640 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1640 deploy] Migrating to CreateMirrorUsers (20130411202551)  (3.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1640 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1640 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1640 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1640 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1640 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1640 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.9ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1640 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1640 deploy] Migrating to CreateRoots (20140219183820)  (3.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1640 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1640 deploy] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1640 [["name", "switchman_test_shard_1640"]] [shard 1639 master]  (1.2ms) COMMIT [shard 1639 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1639 master]  (0.1ms) BEGIN [shard 1639 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1639 master]  (0.3ms) COMMIT [shard 1639 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_1641 [shard 1641 deploy]  (2.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1641 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1641 deploy] ActiveRecord::SchemaMigration Load (2.0ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1641 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1641 deploy]  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1641 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1641 deploy]  (0.3ms) COMMIT [shard 1641 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1641 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1641 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1641 deploy]  (0.3ms) COMMIT [shard 1641 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1641 deploy]  (3.3ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1641 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1641 deploy]  (0.3ms) COMMIT [shard 1641 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1641 deploy]  (3.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1641 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1641 deploy]  (0.4ms) COMMIT [shard 1641 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1641 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1641 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1641 deploy]  (0.4ms) COMMIT [shard 1641 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1641 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1641 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1641 deploy]  (0.3ms) COMMIT [shard 1641 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1641 deploy]  (4.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1641 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1641 deploy]  (0.7ms) COMMIT [shard 1641 deploy]  (0.1ms) BEGIN [shard 1639 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1641 [["name", "switchman_test_shard_1641"]] [shard 1639 master]  (0.3ms) COMMIT [shard 1639 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1639 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1639 master]  (0.1ms) BEGIN [shard 1639 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1639 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1639]] [shard 1639 master]  (0.3ms) COMMIT [shard 1639 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1639 master]  (0.1ms) BEGIN [shard 1639 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1640], ["name", "switchman_test_shard_1640"]] [shard 1639 master]  (0.2ms) COMMIT [shard 1639 master]  (0.1ms) BEGIN [shard 1639 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1641], ["name", "switchman_test_shard_1641"]] [shard 1639 master]  (0.3ms) COMMIT [shard 1639 master]  (0.1ms) BEGIN [shard 1639 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1639 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1640]] [shard 1639 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1641]] [shard 1639 master]  (0.1ms) BEGIN [shard 1641 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=1640)) ORDER BY "switchman_shards"."id" ASC [shard 1639 master]  (0.1ms) ROLLBACK [shard 1641 master]  (0.1ms) ROLLBACK [shard 1639 master]  (0.1ms) BEGIN [shard 1639 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1639 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1640]] [shard 1639 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1641]] [shard 1639 master]  (0.1ms) BEGIN [shard 1641 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1639)) [shard 1639 master]  (0.1ms) ROLLBACK [shard 1641 master]  (0.1ms) ROLLBACK [shard 1639 master]  (0.1ms) BEGIN [shard 1639 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1639 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1640]] [shard 1639 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1641]] [shard 1639 master]  (0.1ms) BEGIN [shard 1641 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1639 AND id<=1640)) ORDER BY "switchman_shards"."id" ASC [shard 1639 master]  (0.1ms) ROLLBACK [shard 1641 master]  (0.1ms) ROLLBACK [shard 1639 master]  (0.1ms) BEGIN [shard 1639 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1639 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1640]] [shard 1639 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1641]] [shard 1639 master]  (0.1ms) BEGIN [shard 1641 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1640)) ORDER BY "switchman_shards"."id" ASC [shard 1639 master]  (0.1ms) ROLLBACK [shard 1641 master]  (0.1ms) ROLLBACK [shard 1639 master]  (0.1ms) BEGIN [shard 1639 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1639 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1640]] [shard 1639 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1641]] [shard 1639 master]  (0.1ms) BEGIN [shard 1641 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1639)) [shard 1639 master]  (0.1ms) ROLLBACK [shard 1641 master]  (0.1ms) ROLLBACK [shard 1639 master]  (0.1ms) BEGIN [shard 1639 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1639 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1640]] [shard 1639 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1641]] [shard 1639 master]  (0.1ms) BEGIN [shard 1641 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1639 AND id<1640)) [shard 1639 master]  (0.1ms) ROLLBACK [shard 1641 master]  (0.1ms) ROLLBACK [shard 1639 master]  (0.1ms) BEGIN [shard 1639 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1639 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1640]] [shard 1639 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1641]] [shard 1639 master]  (0.1ms) BEGIN [shard 1641 master]  (0.1ms) ROLLBACK [shard 1641 master]  (0.1ms) ROLLBACK [shard 1639 master]  (0.1ms) BEGIN [shard 1639 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1639 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1640]] [shard 1639 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1641]] [shard 1639 master]  (0.1ms) BEGIN [shard 1641 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1639)) [shard 1639 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1639 master]  (0.1ms) ROLLBACK [shard 1641 master]  (0.1ms) ROLLBACK [shard 1639 master]  (0.1ms) BEGIN [shard 1639 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1639 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1640]] [shard 1639 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1641]] [shard 1639 master]  (0.1ms) BEGIN [shard 1641 master]  (0.1ms) ROLLBACK [shard 1641 master]  (0.1ms) ROLLBACK [shard 1639 master]  (0.1ms) BEGIN [shard 1639 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1639 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1640]] [shard 1639 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1641]] [shard 1639 master]  (0.1ms) BEGIN [shard 1641 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1639 AND id<1640) OR (id>=1641 AND id<1642)) ORDER BY "switchman_shards"."id" ASC [shard 1639 master]  (0.1ms) ROLLBACK [shard 1641 master]  (0.1ms) ROLLBACK [shard 1639 master]  (0.1ms) BEGIN [shard 1639 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1639 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1640]] [shard 1639 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1641]] [shard 1639 master]  (0.1ms) BEGIN [shard 1641 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1639 AND id<=1640)) AND (id NOT IN (1639)) [shard 1639 master]  (0.1ms) ROLLBACK [shard 1641 master]  (0.1ms) ROLLBACK [shard 1639 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1639 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1639 master]  (5.6ms) DROP SCHEMA switchman_test_shard_1640 CASCADE [shard 1640 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1640]]  (0.1ms) COMMIT  (6.3ms) DROP SCHEMA switchman_test_shard_1641 CASCADE [shard 1641 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1641]]  (0.1ms) COMMIT  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (15.9ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.2ms) CREATE SCHEMA switchman_test_shard_1643 [shard 1643 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1643 deploy]  (16.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1643 deploy] ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1643 deploy] Migrating to CreateUsers (20130403132607)  (2.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1643 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1643 deploy] Migrating to CreateAppendages (20130411202442)  (2.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1643 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1643 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1643 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1643 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1643 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1643 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1643 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1643 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1643 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1643 deploy] Migrating to CreateRoots (20140219183820)  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1643 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1643 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1643 [["name", "switchman_test_shard_1643"]] [shard 1642 master]  (0.9ms) COMMIT [shard 1642 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1642 master]  (0.1ms) BEGIN [shard 1642 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1642 master]  (0.2ms) COMMIT [shard 1642 master]  (0.9ms) CREATE SCHEMA switchman_test_shard_1644 [shard 1644 deploy]  (3.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1644 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1644 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1644 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1644 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1644 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1644 deploy]  (0.3ms) COMMIT [shard 1644 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1644 deploy]  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1644 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1644 deploy]  (0.4ms) COMMIT [shard 1644 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1644 deploy]  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1644 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1644 deploy]  (0.6ms) COMMIT [shard 1644 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 1644 deploy]  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1644 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1644 deploy]  (0.4ms) COMMIT [shard 1644 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1644 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1644 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1644 deploy]  (0.4ms) COMMIT [shard 1644 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1644 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1644 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1644 deploy]  (0.2ms) COMMIT [shard 1644 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1644 deploy]  (3.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1644 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1644 deploy]  (0.4ms) COMMIT [shard 1644 deploy]  (0.1ms) BEGIN [shard 1642 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1644 [["name", "switchman_test_shard_1644"]] [shard 1642 master]  (0.3ms) COMMIT [shard 1642 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1642 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1642 master]  (0.1ms) BEGIN [shard 1642 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1642 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1642]] [shard 1642 master]  (0.2ms) COMMIT [shard 1642 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1642 master]  (0.1ms) BEGIN [shard 1642 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1643], ["name", "switchman_test_shard_1643"]] [shard 1642 master]  (0.3ms) COMMIT [shard 1642 master]  (0.1ms) BEGIN [shard 1642 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1644], ["name", "switchman_test_shard_1644"]] [shard 1642 master]  (0.3ms) COMMIT [shard 1642 master]  (0.1ms) BEGIN [shard 1642 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1642 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1643]] [shard 1642 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1644]] [shard 1642 master]  (0.1ms) BEGIN [shard 1644 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1642 AND id<1643) OR (id>=1644 AND id<1645)) ORDER BY "switchman_shards"."id" ASC [shard 1642 master]  (0.1ms) ROLLBACK [shard 1644 master]  (0.1ms) ROLLBACK [shard 1642 master]  (0.1ms) BEGIN [shard 1642 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1642 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1643]] [shard 1642 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1644]] [shard 1642 master]  (0.1ms) BEGIN [shard 1644 master]  (0.1ms) ROLLBACK [shard 1644 master]  (0.1ms) ROLLBACK [shard 1642 master]  (0.1ms) BEGIN [shard 1642 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1642 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1643]] [shard 1642 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1644]] [shard 1642 master]  (0.1ms) BEGIN [shard 1644 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1642)) [shard 1642 master]  (0.1ms) ROLLBACK [shard 1644 master]  (0.1ms) ROLLBACK [shard 1642 master]  (0.2ms) BEGIN [shard 1642 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1642 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1643]] [shard 1642 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1644]] [shard 1642 master]  (0.1ms) BEGIN [shard 1644 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1642 AND id<=1643)) AND (id NOT IN (1642)) [shard 1642 master]  (0.1ms) ROLLBACK [shard 1644 master]  (0.1ms) ROLLBACK [shard 1642 master]  (0.1ms) BEGIN [shard 1642 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1642 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1643]] [shard 1642 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1644]] [shard 1642 master]  (0.1ms) BEGIN [shard 1644 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1642)) [shard 1642 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1642 master]  (0.1ms) ROLLBACK [shard 1644 master]  (0.1ms) ROLLBACK [shard 1642 master]  (0.1ms) BEGIN [shard 1642 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1642 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1643]] [shard 1642 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1644]] [shard 1642 master]  (0.1ms) BEGIN [shard 1644 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1643)) ORDER BY "switchman_shards"."id" ASC [shard 1642 master]  (0.1ms) ROLLBACK [shard 1644 master]  (0.1ms) ROLLBACK [shard 1642 master]  (0.1ms) BEGIN [shard 1642 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1642 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1643]] [shard 1642 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1644]] [shard 1642 master]  (0.1ms) BEGIN [shard 1644 master]  (0.1ms) ROLLBACK [shard 1644 master]  (0.1ms) ROLLBACK [shard 1642 master]  (0.1ms) BEGIN [shard 1642 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1642 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1643]] [shard 1642 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1644]] [shard 1642 master]  (0.1ms) BEGIN [shard 1644 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1642 AND id<=1643)) ORDER BY "switchman_shards"."id" ASC [shard 1642 master]  (0.1ms) ROLLBACK [shard 1644 master]  (0.1ms) ROLLBACK [shard 1642 master]  (0.1ms) BEGIN [shard 1642 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1642 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1643]] [shard 1642 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1644]] [shard 1642 master]  (0.1ms) BEGIN [shard 1644 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=1643)) ORDER BY "switchman_shards"."id" ASC [shard 1642 master]  (0.1ms) ROLLBACK [shard 1644 master]  (0.1ms) ROLLBACK [shard 1642 master]  (0.1ms) BEGIN [shard 1642 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1642 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1643]] [shard 1642 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1644]] [shard 1642 master]  (0.1ms) BEGIN [shard 1644 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1642)) [shard 1642 master]  (0.1ms) ROLLBACK [shard 1644 master]  (0.1ms) ROLLBACK [shard 1642 master]  (0.1ms) BEGIN [shard 1642 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1642 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1643]] [shard 1642 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1644]] [shard 1642 master]  (0.1ms) BEGIN [shard 1644 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1642 AND id<1643)) [shard 1642 master]  (0.1ms) ROLLBACK [shard 1644 master]  (0.1ms) ROLLBACK [shard 1642 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1642 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1642 master]  (4.5ms) DROP SCHEMA switchman_test_shard_1643 CASCADE [shard 1643 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1643]]  (0.1ms) COMMIT  (5.1ms) DROP SCHEMA switchman_test_shard_1644 CASCADE [shard 1644 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1644]]  (0.1ms) COMMIT  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (15.9ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.2ms) CREATE SCHEMA switchman_test_shard_1646 [shard 1646 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1646 deploy]  (15.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1646 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1646 deploy] Migrating to CreateUsers (20130403132607)  (17.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1646 deploy] SQL (15.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1646 deploy] Migrating to CreateAppendages (20130411202442)  (18.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1646 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1646 deploy] Migrating to CreateMirrorUsers (20130411202551)  (18.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1646 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1646 deploy] Migrating to CreateDigits (20131022202028)  (17.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1646 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1646 deploy] Migrating to CreateFeatures (20131206172923)  (18.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1646 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1646 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1646 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1646 deploy] Migrating to CreateRoots (20140219183820)  (17.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1646 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1646 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1646 [["name", "switchman_test_shard_1646"]] [shard 1645 master]  (0.6ms) COMMIT [shard 1645 master] Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1645 master]  (0.1ms) BEGIN [shard 1645 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1645 master]  (0.3ms) COMMIT [shard 1645 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1647 [shard 1647 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1647 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1647 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1647 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1647 deploy]  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1647 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1647 deploy]  (0.3ms) COMMIT [shard 1647 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) BEGIN [shard 1647 deploy]  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1647 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1647 deploy]  (0.4ms) COMMIT [shard 1647 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) BEGIN [shard 1647 deploy]  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1647 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1647 deploy]  (0.3ms) COMMIT [shard 1647 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 1647 deploy]  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1647 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1647 deploy]  (0.4ms) COMMIT [shard 1647 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1647 deploy]  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1647 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1647 deploy]  (0.4ms) COMMIT [shard 1647 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) BEGIN [shard 1647 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1647 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1647 deploy]  (0.3ms) COMMIT [shard 1647 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1647 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1647 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1647 deploy]  (0.3ms) COMMIT [shard 1647 deploy]  (0.1ms) BEGIN [shard 1645 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1647 [["name", "switchman_test_shard_1647"]] [shard 1645 master]  (0.3ms) COMMIT [shard 1645 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1645 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1645 master]  (0.1ms) BEGIN [shard 1645 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1645 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1645]] [shard 1645 master]  (0.3ms) COMMIT [shard 1645 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1645 master]  (0.1ms) BEGIN [shard 1645 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1646], ["name", "switchman_test_shard_1646"]] [shard 1645 master]  (0.3ms) COMMIT [shard 1645 master]  (0.1ms) BEGIN [shard 1645 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1647], ["name", "switchman_test_shard_1647"]] [shard 1645 master]  (0.3ms) COMMIT [shard 1645 master]  (0.1ms) BEGIN [shard 1645 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1645 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1646]] [shard 1645 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1647]] [shard 1645 master]  (0.1ms) BEGIN [shard 1647 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1645)) [shard 1645 master]  (0.1ms) ROLLBACK [shard 1647 master]  (0.1ms) ROLLBACK [shard 1645 master]  (0.1ms) BEGIN [shard 1645 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1645 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1646]] [shard 1645 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1647]] [shard 1645 master]  (0.1ms) BEGIN [shard 1647 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1646)) ORDER BY "switchman_shards"."id" ASC [shard 1645 master]  (0.1ms) ROLLBACK [shard 1647 master]  (0.1ms) ROLLBACK [shard 1645 master]  (0.1ms) BEGIN [shard 1645 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1645 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1646]] [shard 1645 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1647]] [shard 1645 master]  (0.1ms) BEGIN [shard 1647 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1645)) [shard 1645 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1645 master]  (0.1ms) ROLLBACK [shard 1647 master]  (0.1ms) ROLLBACK [shard 1645 master]  (0.2ms) BEGIN [shard 1645 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1645 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1646]] [shard 1645 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1647]] [shard 1645 master]  (0.1ms) BEGIN [shard 1647 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=1646)) ORDER BY "switchman_shards"."id" ASC [shard 1645 master]  (0.1ms) ROLLBACK [shard 1647 master]  (0.1ms) ROLLBACK [shard 1645 master]  (0.1ms) BEGIN [shard 1645 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1645 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1646]] [shard 1645 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1647]] [shard 1645 master]  (0.1ms) BEGIN [shard 1647 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1645 AND id<1646)) [shard 1645 master]  (0.1ms) ROLLBACK [shard 1647 master]  (0.1ms) ROLLBACK [shard 1645 master]  (0.1ms) BEGIN [shard 1645 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1645 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1646]] [shard 1645 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1647]] [shard 1645 master]  (0.1ms) BEGIN [shard 1647 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1645 AND id<=1646)) ORDER BY "switchman_shards"."id" ASC [shard 1645 master]  (0.1ms) ROLLBACK [shard 1647 master]  (0.1ms) ROLLBACK [shard 1645 master]  (0.1ms) BEGIN [shard 1645 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1645 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1646]] [shard 1645 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1647]] [shard 1645 master]  (0.1ms) BEGIN [shard 1647 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1645 AND id<=1646)) AND (id NOT IN (1645)) [shard 1645 master]  (0.1ms) ROLLBACK [shard 1647 master]  (0.1ms) ROLLBACK [shard 1645 master]  (0.1ms) BEGIN [shard 1645 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1645 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1646]] [shard 1645 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1647]] [shard 1645 master]  (0.1ms) BEGIN [shard 1647 master]  (0.1ms) ROLLBACK [shard 1647 master]  (0.1ms) ROLLBACK [shard 1645 master]  (0.1ms) BEGIN [shard 1645 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1645 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1646]] [shard 1645 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1647]] [shard 1645 master]  (0.1ms) BEGIN [shard 1647 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1646 AND id<=1646)) AND (id NOT IN (1645)) [shard 1645 master]  (0.1ms) ROLLBACK [shard 1647 master]  (0.1ms) ROLLBACK [shard 1645 master]  (0.1ms) BEGIN [shard 1645 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1645 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1646]] [shard 1645 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1647]] [shard 1645 master]  (0.1ms) BEGIN [shard 1647 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1645)) [shard 1645 master]  (0.1ms) ROLLBACK [shard 1647 master]  (0.1ms) ROLLBACK [shard 1645 master]  (0.1ms) BEGIN [shard 1645 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1645 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1646]] [shard 1645 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1647]] [shard 1645 master]  (0.1ms) BEGIN [shard 1647 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1645 AND id<1646) OR (id>=1647 AND id<1648)) ORDER BY "switchman_shards"."id" ASC [shard 1645 master]  (0.1ms) ROLLBACK [shard 1647 master]  (0.1ms) ROLLBACK [shard 1645 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1645 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1645 master]  (4.3ms) DROP SCHEMA switchman_test_shard_1646 CASCADE [shard 1646 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1646]]  (0.1ms) COMMIT  (5.6ms) DROP SCHEMA switchman_test_shard_1647 CASCADE [shard 1647 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1647]]  (0.1ms) COMMIT  (3.0ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (25.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (6.1ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (6.0ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (23.9ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.3ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (1.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (3.3ms) CREATE SCHEMA switchman_test_shard_1649 [shard 1649 deploy]  (47.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1649 deploy]  (3.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1649 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1649 deploy] Migrating to CreateUsers (20130403132607)  (35.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1649 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1649 deploy] Migrating to CreateAppendages (20130411202442)  (12.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1649 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1649 deploy] Migrating to CreateMirrorUsers (20130411202551)  (14.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1649 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1649 deploy] Migrating to CreateDigits (20131022202028)  (8.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1649 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1649 deploy] Migrating to CreateFeatures (20131206172923)  (19.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1649 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1649 deploy] Migrating to AddParentIdToUsers (20140123154135)  (7.0ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1649 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1649 deploy] Migrating to CreateRoots (20140219183820)  (8.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1649 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1649 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1649 [["name", "switchman_test_shard_1649"]] [shard 1648 master]  (6.6ms) COMMIT [shard 1648 master] Switchman::Shard Load (1.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1650 [shard 1650 deploy]  (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1650 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1650 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1650 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1650 deploy]  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1650 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1650 deploy]  (0.3ms) COMMIT [shard 1650 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1650 deploy]  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1650 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1650 deploy]  (0.4ms) COMMIT [shard 1650 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1650 deploy]  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1650 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1650 deploy]  (0.4ms) COMMIT [shard 1650 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1650 deploy]  (5.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1650 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1650 deploy]  (0.4ms) COMMIT [shard 1650 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1650 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1650 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1650 deploy]  (0.4ms) COMMIT [shard 1650 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 1650 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1650 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1650 deploy]  (0.3ms) COMMIT [shard 1650 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1650 deploy]  (2.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1650 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1650 deploy]  (0.5ms) COMMIT [shard 1650 deploy]  (0.1ms) BEGIN [shard 1648 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1650 [["name", "switchman_test_shard_1650"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1648]] [shard 1648 master]  (0.4ms) COMMIT [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1649], ["name", "switchman_test_shard_1649"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1650], ["name", "switchman_test_shard_1650"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.232797"], ["updated_at", "2015-01-19 17:31:17.232797"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.243021"], ["updated_at", "2015-01-19 17:31:17.243021"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (2.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.244671"], ["updated_at", "2015-01-19 17:31:17.244671"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1649 master] User Load (0.5ms) SELECT "users".* FROM "users" [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.2ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.256528"], ["updated_at", "2015-01-19 17:31:17.256528"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1648 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-01-19 17:31:17.258198' [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.263369"], ["updated_at", "2015-01-19 17:31:17.263369"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1648 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-01-19 17:31:17.265073' [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.267241"], ["updated_at", "2015-01-19 17:31:17.267241"]] [shard 1648 master]  (7.4ms) COMMIT [shard 1648 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1648 master] SQL (0.8ms) UPDATE "users" SET "updated_at" = '2015-01-19 17:31:17.276574' [shard 1648 master] SQL (0.4ms) DELETE FROM "users" [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.290212"], ["updated_at", "2015-01-19 17:31:17.290212"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1648 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-01-19 17:31:17.292322' [shard 1648 master] SQL (0.4ms) DELETE FROM "users" [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.334002"], ["updated_at", "2015-01-19 17:31:17.334002"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.340327"], ["updated_at", "2015-01-19 17:31:17.340327"]] [shard 1648 master]  (0.4ms) COMMIT [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.345908"], ["updated_at", "2015-01-19 17:31:17.345908"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.351164"], ["updated_at", "2015-01-19 17:31:17.351164"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.376796"], ["updated_at", "2015-01-19 17:31:17.376796"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1648 master] SQL (0.1ms) DELETE FROM "users" [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.382960"], ["updated_at", "2015-01-19 17:31:17.382960"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1648 master] SQL (0.1ms) DELETE FROM "users" [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.386873"], ["updated_at", "2015-01-19 17:31:17.386873"]] [shard 1648 master]  (0.4ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:17.388566"], ["name", "a"], ["updated_at", "2015-01-19 17:31:17.388566"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2727]] [shard 1648 master] CACHE (0.0ms) 1648::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2727]] CACHE (0.0ms) 1648::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2727]]  (0.1ms) BEGIN [shard 1648 master] SQL (0.2ms) UPDATE "users" SET "name" = $1, "updated_at" = $2 WHERE "users"."id" = 2727 [["name", "b"], ["updated_at", "2015-01-19 17:31:17.392104"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2727]] [shard 1648 master] CACHE (0.0ms) 1648::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2727]] SQL (2.3ms) DELETE FROM "users" [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.399909"], ["updated_at", "2015-01-19 17:31:17.399909"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1648 master] SQL (0.3ms) DELETE FROM "users" [shard 1648 master] SQL (0.1ms) DELETE FROM "users" [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.404612"], ["updated_at", "2015-01-19 17:31:17.404612"]] [shard 1648 master]  (0.4ms) COMMIT [shard 1648 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1648 master] SQL (0.4ms) DELETE FROM "users" [shard 1648 master] SQL (0.1ms) DELETE FROM "users" [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1648]] [shard 1648 master]  (0.2ms) COMMIT [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1649], ["name", "switchman_test_shard_1649"]] [shard 1648 master]  (0.2ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1650], ["name", "switchman_test_shard_1650"]] [shard 1648 master]  (0.2ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1649,1650)) AND "switchman_shards"."id" IN (1648, 1649) [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1648]] [shard 1648 master]  (6.2ms) COMMIT [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1649], ["name", "switchman_test_shard_1649"]] [shard 1648 master]  (6.2ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1650], ["name", "switchman_test_shard_1650"]] [shard 1648 master]  (5.1ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '7' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "7"], ["name", "public"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (4.9ms) CREATE SCHEMA switchman_test_shard_1651 [shard 1651 deploy]  (2.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1651 deploy]  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1651 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1651 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1651 deploy]  (4.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1651 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1651 deploy]  (0.4ms) COMMIT [shard 1651 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1651 deploy]  (3.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1651 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1651 deploy]  (0.3ms) COMMIT [shard 1651 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) BEGIN [shard 1651 deploy]  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1651 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1651 deploy]  (0.4ms) COMMIT [shard 1651 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) BEGIN [shard 1651 deploy]  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1651 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1651 deploy]  (0.4ms) COMMIT [shard 1651 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1651 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1651 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1651 deploy]  (0.4ms) COMMIT [shard 1651 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 1651 deploy]  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1651 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1651 deploy]  (0.3ms) COMMIT [shard 1651 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1651 deploy]  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1651 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1651 deploy]  (0.3ms) COMMIT [shard 1651 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1651 [["name", "switchman_test_shard_1651"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) BEGIN [shard 1651 master] SQL (6.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.596208"], ["updated_at", "2015-01-19 17:31:17.596208"]] [shard 1651 master]  (5.5ms) COMMIT [shard 1651 master]  (15.8ms) DROP SCHEMA switchman_test_shard_1651 CASCADE [shard 1651 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1651]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '8' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "8"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 1652 deploy]  (0.1ms) select sqlite_version(*) [shard 1652 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1652 deploy] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1652 deploy] Migrating to CreateUsers (20130403132607)  (0.0ms) begin transaction [shard 1652 deploy]  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 1652 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130403132607"]] [shard 1652 deploy]  (0.7ms) commit transaction [shard 1652 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) begin transaction [shard 1652 deploy]  (0.3ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 1652 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202442"]] [shard 1652 deploy]  (0.9ms) commit transaction [shard 1652 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.0ms) begin transaction [shard 1652 deploy]  (0.3ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 1652 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202551"]] [shard 1652 deploy]  (0.6ms) commit transaction [shard 1652 deploy] Migrating to CreateDigits (20131022202028)  (0.0ms) begin transaction [shard 1652 deploy]  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 1652 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131022202028"]] [shard 1652 deploy]  (0.7ms) commit transaction [shard 1652 deploy] Migrating to CreateFeatures (20131206172923)  (0.0ms) begin transaction [shard 1652 deploy]  (0.4ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime, "updated_at" datetime)  [shard 1652 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131206172923"]] [shard 1652 deploy]  (0.7ms) commit transaction [shard 1652 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.0ms) begin transaction [shard 1652 deploy]  (0.4ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 1652 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140123154135"]] [shard 1652 deploy]  (0.6ms) commit transaction [shard 1652 deploy] Migrating to CreateRoots (20140219183820)  (0.0ms) begin transaction [shard 1652 deploy]  (0.3ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [shard 1652 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219183820"]] [shard 1652 deploy]  (0.7ms) commit transaction [shard 1652 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1652 [["name", "db/shard_1652.sqlite3"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.0ms) begin transaction [shard 1652 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-01-19 17:31:17.690822"], ["updated_at", "2015-01-19 17:31:17.690822"]] [shard 1652 master]  (0.8ms) commit transaction [shard 1652 master] Drop failed: No such file or directory @ unlink_internal - db/shard_1652.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1652]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.2ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [shard 1648 master]  (0.1ms) CREATE SCHEMA switchman_test_shard_1653 [shard 1653 deploy]  (13.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1653 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1653 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1653 deploy] Migrating to CreateUsers (20130403132607)  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1653 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1653 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1653 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1653 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1653 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1653 deploy] Migrating to CreateDigits (20131022202028)  (2.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1653 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1653 deploy] Migrating to CreateFeatures (20131206172923)  (8.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1653 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1653 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1653 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1653 deploy] Migrating to CreateRoots (20140219183820)  (7.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1653 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1653 deploy] SQL (0.1ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1653 [["name", "switchman_test_shard_1653"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1653 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.778676"], ["updated_at", "2015-01-19 17:31:17.778676"]] [shard 1653 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1653 master]  (4.4ms) DROP SCHEMA switchman_test_shard_1653 CASCADE [shard 1653 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1653]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (3.5ms) ROLLBACK [shard 1648 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1648 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master]  (0.2ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1648]] [shard 1648 master]  (0.7ms) COMMIT [shard 1648 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1649], ["name", "switchman_test_shard_1649"]] [shard 1648 master]  (0.2ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1650], ["name", "switchman_test_shard_1650"]] [shard 1648 master]  (0.2ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.816237"], ["updated_at", "2015-01-19 17:31:17.816237"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 3]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 16490000000000003 ORDER BY "users"."id" ASC LIMIT 1 [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.825646"], ["updated_at", "2015-01-19 17:31:17.825646"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:17.827320"], ["name", "multi-shard exists"], ["updated_at", "2015-01-19 17:31:17.827320"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 1648 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1648 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1649 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.838488"], ["updated_at", "2015-01-19 17:31:17.838488"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 5 LIMIT 1 [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.846207"], ["updated_at", "2015-01-19 17:31:17.846207"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1649 LIMIT 1 [shard 1648 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) LIMIT 1 [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.856336"], ["updated_at", "2015-01-19 17:31:17.856336"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 7 LIMIT 1 [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.865346"], ["updated_at", "2015-01-19 17:31:17.865346"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 8]] [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master] SQL (5.0ms) DELETE FROM "switchman_shards" [shard 1648 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1648]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1649], ["name", "switchman_test_shard_1649"]] [shard 1648 master]  (0.4ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1650], ["name", "switchman_test_shard_1650"]] [shard 1648 master]  (0.2ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.899335"], ["updated_at", "2015-01-19 17:31:17.899335"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.900977"], ["updated_at", "2015-01-19 17:31:17.900977"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:17.908620"], ["parent_id", 9], ["updated_at", "2015-01-19 17:31:17.908620"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:17.911380"], ["parent_id", 10], ["updated_at", "2015-01-19 17:31:17.911380"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 9]] [shard 1649 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 11 LIMIT 1 [["parent_id", 9]] [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:17.921185"], ["id", 11], ["updated_at", "2015-01-19 17:31:17.921185"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1649 LIMIT 1 [shard 1648 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 9]] [shard 1649 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 16500000000000011 LIMIT 1 [["parent_id", 9]] [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.933810"], ["updated_at", "2015-01-19 17:31:17.933810"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.935569"], ["updated_at", "2015-01-19 17:31:17.935569"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (4.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:17.945208"], ["updated_at", "2015-01-19 17:31:17.945208"], ["user_id", 12]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.5ms) INSERT INTO "digits" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.954971"], ["updated_at", "2015-01-19 17:31:17.954971"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1650 LIMIT 1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (6.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1], ["created_at", "2015-01-19 17:31:17.964470"], ["id", 16500000000000001], ["updated_at", "2015-01-19 17:31:17.964470"]] [shard 1649 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 12], ["id", 16500000000000001]] [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.981162"], ["updated_at", "2015-01-19 17:31:17.981162"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.982824"], ["updated_at", "2015-01-19 17:31:17.982824"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:17.985713"], ["updated_at", "2015-01-19 17:31:17.985713"], ["user_id", 13]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 13], ["id", 2]] [shard 1649 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 4], ["id", 16490000000000002]] [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.996773"], ["updated_at", "2015-01-19 17:31:17.996773"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:17.998260"], ["updated_at", "2015-01-19 17:31:17.998260"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.000702"], ["updated_at", "2015-01-19 17:31:18.000702"], ["user_id", 14]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 3]] [shard 1649 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 14]] [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.008438"], ["updated_at", "2015-01-19 17:31:18.008438"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.009892"], ["updated_at", "2015-01-19 17:31:18.009892"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.012442"], ["updated_at", "2015-01-19 17:31:18.012442"], ["user_id", 15]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.017349"], ["updated_at", "2015-01-19 17:31:18.017349"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.018772"], ["updated_at", "2015-01-19 17:31:18.018772"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.021240"], ["updated_at", "2015-01-19 17:31:18.021240"], ["user_id", 16]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 5], ["created_at", "2015-01-19 17:31:18.024212"], ["updated_at", "2015-01-19 17:31:18.024212"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 16], ["id", 1]] [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.032545"], ["updated_at", "2015-01-19 17:31:18.032545"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.033900"], ["updated_at", "2015-01-19 17:31:18.033900"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.036294"], ["updated_at", "2015-01-19 17:31:18.036294"], ["user_id", 17]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.038750"], ["updated_at", "2015-01-19 17:31:18.038750"], ["user_id", 8]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.045619"], ["updated_at", "2015-01-19 17:31:18.045619"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.047054"], ["updated_at", "2015-01-19 17:31:18.047054"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.053413"], ["updated_at", "2015-01-19 17:31:18.053413"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.055570"], ["updated_at", "2015-01-19 17:31:18.055570"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.059123"], ["updated_at", "2015-01-19 17:31:18.059123"], ["user_id", 19]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 19]] [shard 1649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [shard 1649 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 19]] [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.072569"], ["updated_at", "2015-01-19 17:31:18.072569"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.074133"], ["updated_at", "2015-01-19 17:31:18.074133"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (6.0ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.076529"], ["updated_at", "2015-01-19 17:31:18.076529"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.094256"], ["updated_at", "2015-01-19 17:31:18.094256"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.095927"], ["updated_at", "2015-01-19 17:31:18.095927"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.098885"], ["updated_at", "2015-01-19 17:31:18.098885"], ["user_id", 21]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.105681"], ["updated_at", "2015-01-19 17:31:18.105681"]] [shard 1649 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.107893"], ["updated_at", "2015-01-19 17:31:18.107893"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.115394"], ["updated_at", "2015-01-19 17:31:18.115394"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.118233"], ["updated_at", "2015-01-19 17:31:18.118233"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.120413"], ["updated_at", "2015-01-19 17:31:18.120413"], ["user_id", 23]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 9], ["created_at", "2015-01-19 17:31:18.123046"], ["updated_at", "2015-01-19 17:31:18.123046"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9], ["created_at", "2015-01-19 17:31:18.125192"], ["updated_at", "2015-01-19 17:31:18.125192"], ["value", 1]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.127290"], ["updated_at", "2015-01-19 17:31:18.127290"], ["user_id", 16490000000000023]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2], ["created_at", "2015-01-19 17:31:18.130115"], ["updated_at", "2015-01-19 17:31:18.130115"], ["value", 2]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.6ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 23]] [shard 1649 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 16490000000000023]] [shard 1650 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 23]] [shard 1649 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 23]] [shard 1649 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 16490000000000023]] [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.2ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.145806"], ["updated_at", "2015-01-19 17:31:18.145806"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.147383"], ["updated_at", "2015-01-19 17:31:18.147383"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.148940"], ["updated_at", "2015-01-19 17:31:18.148940"], ["user_id", 24]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 10], ["created_at", "2015-01-19 17:31:18.151351"], ["updated_at", "2015-01-19 17:31:18.151351"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.153879"], ["updated_at", "2015-01-19 17:31:18.153879"], ["user_id", 16490000000000024]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3], ["created_at", "2015-01-19 17:31:18.156541"], ["updated_at", "2015-01-19 17:31:18.156541"], ["value", 2]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 24]] [shard 1649 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 16490000000000024]] [shard 1650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 24]] [shard 1649 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 24]] [shard 1649 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 16490000000000024]] [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.171020"], ["updated_at", "2015-01-19 17:31:18.171020"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.172519"], ["updated_at", "2015-01-19 17:31:18.172519"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.174304"], ["updated_at", "2015-01-19 17:31:18.174304"], ["user_id", 25], ["value", 1]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.176683"], ["updated_at", "2015-01-19 17:31:18.176683"], ["user_id", 16490000000000025]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 25]] [shard 1649 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 16490000000000025]] [shard 1650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 25]] [shard 1649 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 25]] [shard 1649 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 16490000000000025]] [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.188448"], ["updated_at", "2015-01-19 17:31:18.188448"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.190010"], ["updated_at", "2015-01-19 17:31:18.190010"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.191511"], ["updated_at", "2015-01-19 17:31:18.191511"], ["user_id", 26], ["value", 1]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.193706"], ["updated_at", "2015-01-19 17:31:18.193706"], ["user_id", 16490000000000026]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.196287"], ["updated_at", "2015-01-19 17:31:18.196287"], ["user_id", 26], ["value", 2]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 26]] [shard 1649 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 26]] [shard 1649 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 16490000000000026]] [shard 1650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 26]] [shard 1649 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 26]] [shard 1649 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 16490000000000026]] [shard 1650 master]  (0.2ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.209755"], ["updated_at", "2015-01-19 17:31:18.209755"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.211261"], ["updated_at", "2015-01-19 17:31:18.211261"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.212810"], ["updated_at", "2015-01-19 17:31:18.212810"], ["user_id", 27]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 14], ["created_at", "2015-01-19 17:31:18.215162"], ["updated_at", "2015-01-19 17:31:18.215162"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.217222"], ["updated_at", "2015-01-19 17:31:18.217222"], ["user_id", 16490000000000027]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6], ["created_at", "2015-01-19 17:31:18.219706"], ["updated_at", "2015-01-19 17:31:18.219706"], ["value", 2]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 27]] [shard 1649 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 16490000000000027]] [shard 1650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 27]] [shard 1649 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 27]] [shard 1649 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 16490000000000027]] [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.232971"], ["updated_at", "2015-01-19 17:31:18.232971"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.234516"], ["updated_at", "2015-01-19 17:31:18.234516"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.236060"], ["updated_at", "2015-01-19 17:31:18.236060"], ["user_id", 28]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15], ["created_at", "2015-01-19 17:31:18.238465"], ["updated_at", "2015-01-19 17:31:18.238465"], ["value", 1]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.240660"], ["updated_at", "2015-01-19 17:31:18.240660"], ["user_id", 16490000000000028]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7], ["created_at", "2015-01-19 17:31:18.243101"], ["updated_at", "2015-01-19 17:31:18.243101"], ["value", 2]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 28]] [shard 1649 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 28]] [shard 1649 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 28]] [shard 1649 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 16490000000000028]] [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.255255"], ["updated_at", "2015-01-19 17:31:18.255255"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.256819"], ["updated_at", "2015-01-19 17:31:18.256819"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.258394"], ["updated_at", "2015-01-19 17:31:18.258394"], ["user_id", 29], ["value", 1]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.260495"], ["updated_at", "2015-01-19 17:31:18.260495"], ["user_id", 16490000000000029], ["value", 2]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 29]] [shard 1649 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 29]] [shard 1649 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 29]] [shard 1649 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 16490000000000029]] [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.275320"], ["updated_at", "2015-01-19 17:31:18.275320"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.276844"], ["updated_at", "2015-01-19 17:31:18.276844"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (2.7ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.278341"], ["updated_at", "2015-01-19 17:31:18.278341"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (2.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1342], ["created_at", "2015-01-19 17:31:18.283327"], ["updated_at", "2015-01-19 17:31:18.283327"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 16480000000001342], ["created_at", "2015-01-19 17:31:18.288182"], ["updated_at", "2015-01-19 17:31:18.288182"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1342 ORDER BY "appendages"."id" ASC LIMIT 1 [shard 1648 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1342) [shard 1648 master]  (0.2ms) ROLLBACK [shard 1650 master]  (0.2ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.300724"], ["updated_at", "2015-01-19 17:31:18.300724"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.302382"], ["updated_at", "2015-01-19 17:31:18.302382"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.305099"], ["updated_at", "2015-01-19 17:31:18.305099"], ["user_id", 31]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.307092"], ["updated_at", "2015-01-19 17:31:18.307092"], ["user_id", 16490000000000031]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.308867"], ["updated_at", "2015-01-19 17:31:18.308867"], ["user_id", 16500000000000022]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (31) [shard 1649 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (31) [shard 1649 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (16490000000000031) [shard 1650 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 1650 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (22) [shard 1650 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 17 [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.322202"], ["updated_at", "2015-01-19 17:31:18.322202"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.323762"], ["updated_at", "2015-01-19 17:31:18.323762"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.326341"], ["updated_at", "2015-01-19 17:31:18.326341"], ["user_id", 32]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.328348"], ["updated_at", "2015-01-19 17:31:18.328348"], ["user_id", 16490000000000032]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.329802"], ["updated_at", "2015-01-19 17:31:18.329802"], ["user_id", 16490000000000032]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 19], ["created_at", "2015-01-19 17:31:18.332469"], ["updated_at", "2015-01-19 17:31:18.332469"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 10], ["created_at", "2015-01-19 17:31:18.334989"], ["updated_at", "2015-01-19 17:31:18.334989"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 16500000000000010], ["created_at", "2015-01-19 17:31:18.337201"], ["updated_at", "2015-01-19 17:31:18.337201"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 16500000000000011], ["created_at", "2015-01-19 17:31:18.338635"], ["updated_at", "2015-01-19 17:31:18.338635"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.340166"], ["updated_at", "2015-01-19 17:31:18.340166"], ["user_id", 16500000000000023]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.342956"], ["updated_at", "2015-01-19 17:31:18.342956"], ["user_id", 23]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.345979"], ["updated_at", "2015-01-19 17:31:18.345979"], ["user_id", 23]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 16490000000000020], ["created_at", "2015-01-19 17:31:18.348113"], ["updated_at", "2015-01-19 17:31:18.348113"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 16500000000000012], ["created_at", "2015-01-19 17:31:18.349782"], ["updated_at", "2015-01-19 17:31:18.349782"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 13], ["created_at", "2015-01-19 17:31:18.351197"], ["updated_at", "2015-01-19 17:31:18.351197"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (32) [shard 1649 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (32) [shard 1649 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (16490000000000032) [shard 1650 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (19) [shard 1649 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (10, 11) [shard 1650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 1650 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (23) [shard 1650 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (12, 13) [shard 1650 master] SQL (0.3ms) DELETE FROM "digits" WHERE "digits"."id" = 8 [shard 1649 master]  (0.2ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.375380"], ["updated_at", "2015-01-19 17:31:18.375380"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.376984"], ["updated_at", "2015-01-19 17:31:18.376984"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.379170"], ["updated_at", "2015-01-19 17:31:18.379170"], ["user_id", 16490000000000033]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1343], ["created_at", "2015-01-19 17:31:18.381751"], ["updated_at", "2015-01-19 17:31:18.381751"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.384084"], ["updated_at", "2015-01-19 17:31:18.384084"], ["user_id", 16500000000000024]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 16490000000000021], ["created_at", "2015-01-19 17:31:18.385870"], ["updated_at", "2015-01-19 17:31:18.385870"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 1648 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (1343) [shard 1648 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (21) [shard 1649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (33) [shard 1649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 1650 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 33 [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.404291"], ["updated_at", "2015-01-19 17:31:18.404291"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.405768"], ["updated_at", "2015-01-19 17:31:18.405768"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.407975"], ["updated_at", "2015-01-19 17:31:18.407975"], ["user_id", 16490000000000034]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.410015"], ["updated_at", "2015-01-19 17:31:18.410015"], ["user_id", 16500000000000025]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.411568"], ["updated_at", "2015-01-19 17:31:18.411568"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.414613"], ["updated_at", "2015-01-19 17:31:18.414613"], ["user_id", 2730]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 1648 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (34) [shard 1649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 1650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2730) [shard 1648 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 34 [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.426532"], ["updated_at", "2015-01-19 17:31:18.426532"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.428364"], ["updated_at", "2015-01-19 17:31:18.428364"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (6.1ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-01-19 17:31:18.436758"], ["owner_id", 35], ["owner_type", "User"], ["updated_at", "2015-01-19 17:31:18.436758"], ["value", 1]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (6.1ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-01-19 17:31:18.445538"], ["owner_id", 16490000000000035], ["owner_type", "User"], ["updated_at", "2015-01-19 17:31:18.445538"], ["value", 2]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 35], ["owner_type", "User"]] [shard 1649 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 35]] [shard 1649 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 35], ["owner_type", "User"]] [shard 1649 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 16490000000000035], ["owner_type", "User"]] [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.464530"], ["updated_at", "2015-01-19 17:31:18.464530"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.466052"], ["updated_at", "2015-01-19 17:31:18.466052"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.467757"], ["updated_at", "2015-01-19 17:31:18.467757"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (2.8ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.469478"], ["owner_id", 1347], ["owner_type", "Appendage"], ["updated_at", "2015-01-19 17:31:18.469478"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 129]] [shard 1648 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 1347]] [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) UPDATE "features" SET "owner_id" = $1, "owner_type" = $2, "updated_at" = $3 WHERE "features"."id" = 129 [["owner_id", 16490000000000036], ["owner_type", "User"], ["updated_at", "2015-01-19 17:31:18.476814"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master] Feature Load (0.1ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 129]] [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.484687"], ["updated_at", "2015-01-19 17:31:18.484687"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.486161"], ["updated_at", "2015-01-19 17:31:18.486161"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.487542"], ["updated_at", "2015-01-19 17:31:18.487542"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 37]] [shard 1649 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.490072"], ["updated_at", "2015-01-19 17:31:18.490072"], ["user_id", 37]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 22]] [shard 1649 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 37]] [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.497540"], ["updated_at", "2015-01-19 17:31:18.497540"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.499167"], ["updated_at", "2015-01-19 17:31:18.499167"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.501058"], ["updated_at", "2015-01-19 17:31:18.501058"], ["user_id", 16500000000000029]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 23]] [shard 1649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 29]] [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.509076"], ["updated_at", "2015-01-19 17:31:18.509076"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.511114"], ["updated_at", "2015-01-19 17:31:18.511114"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (1.8ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.519653"], ["updated_at", "2015-01-19 17:31:18.519653"], ["user_id", 16500000000000030]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master] Root Load (0.2ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 63]] [shard 1648 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 30]] [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.529151"], ["updated_at", "2015-01-19 17:31:18.529151"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.530676"], ["updated_at", "2015-01-19 17:31:18.530676"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1648]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1649], ["name", "switchman_test_shard_1649"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1650], ["name", "switchman_test_shard_1650"]] [shard 1648 master]  (0.2ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.545477"], ["updated_at", "2015-01-19 17:31:18.545477"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.547192"], ["owner_id", 2731], ["owner_type", "User"], ["updated_at", "2015-01-19 17:31:18.547192"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master] Feature Load (0.2ms) SELECT "features"."owner_id" FROM "features" WHERE "features"."id" = 130 ORDER BY "features"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.554030"], ["updated_at", "2015-01-19 17:31:18.554030"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1649 LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1650 LIMIT 1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.563517"], ["updated_at", "2015-01-19 17:31:18.563517"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master] SQL (6.0ms) DELETE FROM "switchman_shards" [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1648]] [shard 1648 master]  (6.3ms) COMMIT [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1649], ["name", "switchman_test_shard_1649"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1650], ["name", "switchman_test_shard_1650"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.589957"], ["name", "user1"], ["updated_at", "2015-01-19 17:31:18.589957"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.591652"], ["name", "user2"], ["updated_at", "2015-01-19 17:31:18.591652"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.597110"], ["name", "user1"], ["updated_at", "2015-01-19 17:31:18.597110"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.598910"], ["name", "user2"], ["updated_at", "2015-01-19 17:31:18.598910"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1649 LIMIT 1 [shard 1648 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (2734) [shard 1648 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (42) [shard 1649 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2734]] [shard 1648 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 42]] [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.609799"], ["name", "user1"], ["updated_at", "2015-01-19 17:31:18.609799"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.611666"], ["name", "user2"], ["updated_at", "2015-01-19 17:31:18.611666"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 43 [shard 1649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2735]] [shard 1648 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 43]] [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.620707"], ["name", "user1"], ["updated_at", "2015-01-19 17:31:18.620707"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.622412"], ["name", "user2"], ["updated_at", "2015-01-19 17:31:18.622412"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2736) [shard 1648 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (44) [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.629734"], ["name", "user1"], ["updated_at", "2015-01-19 17:31:18.629734"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.631375"], ["name", "user2"], ["updated_at", "2015-01-19 17:31:18.631375"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 45 ORDER BY "users"."id" ASC LIMIT 1 [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1648]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1649], ["name", "switchman_test_shard_1649"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1650], ["name", "switchman_test_shard_1650"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:32:18.645657"], ["updated_at", "2015-01-19 17:32:18.645657"]] [shard 1649 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.0ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1648]] [shard 1648 master]  (0.4ms) COMMIT [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1649], ["name", "switchman_test_shard_1649"]] [shard 1648 master]  (0.2ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1650], ["name", "switchman_test_shard_1650"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.2ms) ROLLBACK [shard 1650 master]  (0.2ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "9"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "9"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1648]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1649], ["name", "switchman_test_shard_1649"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1650], ["name", "switchman_test_shard_1650"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.691871"], ["updated_at", "2015-01-19 17:31:18.691871"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SELECT COUNT(*) FROM "users" [shard 1650 master]  (0.1ms) SAVEPOINT active_record_2 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.696673"], ["updated_at", "2015-01-19 17:31:18.696673"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1650 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) SELECT COUNT(*) FROM "users" [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master] SQL (11.6ms) DELETE FROM "switchman_shards" [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1648]] [shard 1648 master]  (6.0ms) COMMIT [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1649], ["name", "switchman_test_shard_1649"]] [shard 1648 master]  (0.4ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1650], ["name", "switchman_test_shard_1650"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1648 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1648]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1649], ["name", "switchman_test_shard_1649"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1650], ["name", "switchman_test_shard_1650"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.743169"], ["name", "user1"], ["updated_at", "2015-01-19 17:31:18.743169"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.744696"], ["name", "user2"], ["updated_at", "2015-01-19 17:31:18.744696"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.746325"], ["updated_at", "2015-01-19 17:31:18.746325"], ["user_id", 47], ["value", 1]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1650 LIMIT 1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.750192"], ["updated_at", "2015-01-19 17:31:18.750192"], ["user_id", 16500000000000034], ["value", 3]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1649 LIMIT 1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.754037"], ["updated_at", "2015-01-19 17:31:18.754037"], ["user_id", 16490000000000047], ["value", 2]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.756123"], ["updated_at", "2015-01-19 17:31:18.756123"], ["user_id", 34], ["value", 4]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.757654"], ["updated_at", "2015-01-19 17:31:18.757654"], ["user_id", 34], ["value", 5]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1649 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1650 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1649 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1650 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1649 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1650 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (47) [shard 1649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (34) [shard 1650 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (34) [shard 1650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (47) [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.774291"], ["name", "user1"], ["updated_at", "2015-01-19 17:31:18.774291"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.775838"], ["name", "user2"], ["updated_at", "2015-01-19 17:31:18.775838"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.777749"], ["updated_at", "2015-01-19 17:31:18.777749"], ["user_id", 48], ["value", 1]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.780054"], ["updated_at", "2015-01-19 17:31:18.780054"], ["user_id", 16500000000000035], ["value", 3]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.781960"], ["updated_at", "2015-01-19 17:31:18.781960"], ["user_id", 16490000000000048], ["value", 2]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.783612"], ["updated_at", "2015-01-19 17:31:18.783612"], ["user_id", 35], ["value", 4]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.785132"], ["updated_at", "2015-01-19 17:31:18.785132"], ["user_id", 35], ["value", 5]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.9ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1649 master]  (0.4ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1650 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1649 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1650 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1649 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1650 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (48) [shard 1649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35) [shard 1650 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35) [shard 1650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (48) [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.2ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.804620"], ["name", "user1"], ["updated_at", "2015-01-19 17:31:18.804620"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.806362"], ["name", "user2"], ["updated_at", "2015-01-19 17:31:18.806362"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.807959"], ["updated_at", "2015-01-19 17:31:18.807959"], ["user_id", 49], ["value", 1]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.809918"], ["updated_at", "2015-01-19 17:31:18.809918"], ["user_id", 16500000000000036], ["value", 3]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.811711"], ["updated_at", "2015-01-19 17:31:18.811711"], ["user_id", 16490000000000049], ["value", 2]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.813220"], ["updated_at", "2015-01-19 17:31:18.813220"], ["user_id", 36], ["value", 4]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.815056"], ["updated_at", "2015-01-19 17:31:18.815056"], ["user_id", 36], ["value", 5]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1649 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1650 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1649 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1650 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1649 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1650 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (49) [shard 1649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (36) [shard 1650 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (36) [shard 1650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (49) [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.834758"], ["name", "user1"], ["updated_at", "2015-01-19 17:31:18.834758"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.836755"], ["name", "user2"], ["updated_at", "2015-01-19 17:31:18.836755"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.838831"], ["updated_at", "2015-01-19 17:31:18.838831"], ["user_id", 50], ["value", 1]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.841063"], ["updated_at", "2015-01-19 17:31:18.841063"], ["user_id", 16500000000000037], ["value", 3]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.843051"], ["updated_at", "2015-01-19 17:31:18.843051"], ["user_id", 16490000000000050], ["value", 2]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.844696"], ["updated_at", "2015-01-19 17:31:18.844696"], ["user_id", 37], ["value", 4]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.846290"], ["updated_at", "2015-01-19 17:31:18.846290"], ["user_id", 37], ["value", 5]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.848697"], ["updated_at", "2015-01-19 17:31:18.848697"], ["user_id", 50]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:18.850376"], ["updated_at", "2015-01-19 17:31:18.850376"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.852598"], ["updated_at", "2015-01-19 17:31:18.852598"], ["user_id", 51]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.859605"], ["name", "user1"], ["updated_at", "2015-01-19 17:31:18.859605"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.861516"], ["name", "user2"], ["updated_at", "2015-01-19 17:31:18.861516"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.863335"], ["updated_at", "2015-01-19 17:31:18.863335"], ["user_id", 52], ["value", 1]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.866084"], ["updated_at", "2015-01-19 17:31:18.866084"], ["user_id", 16500000000000038], ["value", 3]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.868441"], ["updated_at", "2015-01-19 17:31:18.868441"], ["user_id", 16490000000000052], ["value", 2]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.870435"], ["updated_at", "2015-01-19 17:31:18.870435"], ["user_id", 38], ["value", 4]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.872137"], ["updated_at", "2015-01-19 17:31:18.872137"], ["user_id", 38], ["value", 5]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1649 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1650 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1649 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1650 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1649 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1650 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1649 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (52) [shard 1649 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38) [shard 1650 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38) [shard 1650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (52) [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.891134"], ["name", "user1"], ["updated_at", "2015-01-19 17:31:18.891134"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.892725"], ["name", "user2"], ["updated_at", "2015-01-19 17:31:18.892725"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.894301"], ["updated_at", "2015-01-19 17:31:18.894301"], ["user_id", 53], ["value", 1]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.896147"], ["updated_at", "2015-01-19 17:31:18.896147"], ["user_id", 16500000000000039], ["value", 3]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.898017"], ["updated_at", "2015-01-19 17:31:18.898017"], ["user_id", 16490000000000053], ["value", 2]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.899539"], ["updated_at", "2015-01-19 17:31:18.899539"], ["user_id", 39], ["value", 4]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.900906"], ["updated_at", "2015-01-19 17:31:18.900906"], ["user_id", 39], ["value", 5]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1649 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1650 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1649 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1650 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1649 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1650 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 1649 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) [shard 1650 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) [shard 1650 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.918709"], ["name", "user1"], ["updated_at", "2015-01-19 17:31:18.918709"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.921125"], ["updated_at", "2015-01-19 17:31:18.921125"], ["user_id", 54], ["value", 1]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.923092"], ["updated_at", "2015-01-19 17:31:18.923092"], ["user_id", 54], ["value", 2]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.924697"], ["name", "user2"], ["updated_at", "2015-01-19 17:31:18.924697"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.926941"], ["updated_at", "2015-01-19 17:31:18.926941"], ["user_id", 40], ["value", 3]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.928787"], ["updated_at", "2015-01-19 17:31:18.928787"], ["user_id", 40], ["value", 4]] [shard 1650 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.930879"], ["updated_at", "2015-01-19 17:31:18.930879"], ["user_id", 40], ["value", 5]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 54]] [shard 1649 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1649 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 40]] [shard 1650 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1650 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (38, 39) [shard 1649 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (33, 34, 35) [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.942768"], ["name", "user1"], ["updated_at", "2015-01-19 17:31:18.942768"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.945276"], ["updated_at", "2015-01-19 17:31:18.945276"], ["user_id", 55], ["value", 1]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.947111"], ["updated_at", "2015-01-19 17:31:18.947111"], ["user_id", 55], ["value", 2]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.948672"], ["name", "user2"], ["updated_at", "2015-01-19 17:31:18.948672"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.951006"], ["updated_at", "2015-01-19 17:31:18.951006"], ["user_id", 41], ["value", 3]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.952973"], ["updated_at", "2015-01-19 17:31:18.952973"], ["user_id", 41], ["value", 4]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.954824"], ["updated_at", "2015-01-19 17:31:18.954824"], ["user_id", 41], ["value", 5]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 55]] [shard 1649 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1649 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 41]] [shard 1650 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1650 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (40, 41) [shard 1649 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (36, 37, 38) [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.967163"], ["name", "user1"], ["updated_at", "2015-01-19 17:31:18.967163"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.969653"], ["updated_at", "2015-01-19 17:31:18.969653"], ["user_id", 56], ["value", 1]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.971513"], ["updated_at", "2015-01-19 17:31:18.971513"], ["user_id", 56], ["value", 2]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.973196"], ["name", "user2"], ["updated_at", "2015-01-19 17:31:18.973196"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.975584"], ["updated_at", "2015-01-19 17:31:18.975584"], ["user_id", 42], ["value", 3]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.977492"], ["updated_at", "2015-01-19 17:31:18.977492"], ["user_id", 42], ["value", 4]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.979378"], ["updated_at", "2015-01-19 17:31:18.979378"], ["user_id", 42], ["value", 5]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 56]] [shard 1649 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1649 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 42]] [shard 1650 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1650 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (42, 43) [shard 1649 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (39, 40, 41) [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.991966"], ["name", "user1"], ["updated_at", "2015-01-19 17:31:18.991966"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.994759"], ["updated_at", "2015-01-19 17:31:18.994759"], ["user_id", 57], ["value", 1]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:18.997215"], ["updated_at", "2015-01-19 17:31:18.997215"], ["user_id", 57], ["value", 2]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:18.999000"], ["name", "user2"], ["updated_at", "2015-01-19 17:31:18.999000"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:19.001329"], ["updated_at", "2015-01-19 17:31:19.001329"], ["user_id", 43], ["value", 3]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:19.003364"], ["updated_at", "2015-01-19 17:31:19.003364"], ["user_id", 43], ["value", 4]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:19.005226"], ["updated_at", "2015-01-19 17:31:19.005226"], ["user_id", 43], ["value", 5]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 57]] [shard 1649 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 1649 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 43]] [shard 1650 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 1650 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (44, 45) [shard 1649 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (42, 43, 44) [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.017912"], ["name", "user1"], ["updated_at", "2015-01-19 17:31:19.017912"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:19.020507"], ["updated_at", "2015-01-19 17:31:19.020507"], ["user_id", 58], ["value", 1]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:19.022424"], ["updated_at", "2015-01-19 17:31:19.022424"], ["user_id", 58], ["value", 2]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.024222"], ["name", "user2"], ["updated_at", "2015-01-19 17:31:19.024222"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:19.026551"], ["updated_at", "2015-01-19 17:31:19.026551"], ["user_id", 44], ["value", 3]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:19.028980"], ["updated_at", "2015-01-19 17:31:19.028980"], ["user_id", 44], ["value", 4]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 17:31:19.031570"], ["updated_at", "2015-01-19 17:31:19.031570"], ["user_id", 44], ["value", 5]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 58]] [shard 1649 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1649 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 44]] [shard 1650 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1650 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (46, 47) [shard 1649 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (45, 46, 47) [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.2ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.048915"], ["name", "user1"], ["updated_at", "2015-01-19 17:31:19.048915"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.051376"], ["updated_at", "2015-01-19 17:31:19.051376"], ["user_id", 59]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.053253"], ["name", "user2"], ["updated_at", "2015-01-19 17:31:19.053253"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.056067"], ["updated_at", "2015-01-19 17:31:19.056067"], ["user_id", 45]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 48 [shard 1649 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 48 [shard 1650 master]  (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 48 [shard 1649 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 48 [shard 1650 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 48 [shard 1649 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 48 [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.068360"], ["name", "user1"], ["updated_at", "2015-01-19 17:31:19.068360"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.070860"], ["updated_at", "2015-01-19 17:31:19.070860"], ["user_id", 60]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.072407"], ["name", "user2"], ["updated_at", "2015-01-19 17:31:19.072407"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.074537"], ["updated_at", "2015-01-19 17:31:19.074537"], ["user_id", 46]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.076180"], ["name", "user2"], ["updated_at", "2015-01-19 17:31:19.076180"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (2738) [shard 1648 master]  (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (60) [shard 1649 master]  (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (46) [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.085160"], ["name", "user1"], ["updated_at", "2015-01-19 17:31:19.085160"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.087624"], ["updated_at", "2015-01-19 17:31:19.087624"], ["user_id", 61]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.089186"], ["name", "user2"], ["updated_at", "2015-01-19 17:31:19.089186"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.091376"], ["updated_at", "2015-01-19 17:31:19.091376"], ["user_id", 47]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 1649 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 1650 master]  (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 1649 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 1650 master]  (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 1649 master]  (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.101417"], ["name", "user1"], ["updated_at", "2015-01-19 17:31:19.101417"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.103790"], ["updated_at", "2015-01-19 17:31:19.103790"], ["user_id", 62]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.105381"], ["name", "user2"], ["updated_at", "2015-01-19 17:31:19.105381"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.107590"], ["updated_at", "2015-01-19 17:31:19.107590"], ["user_id", 48]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (62) [shard 1649 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (48) [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1648]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1649], ["name", "switchman_test_shard_1649"]] [shard 1648 master]  (0.2ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1650], ["name", "switchman_test_shard_1650"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1648 AND id<1649)) [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=1649)) ORDER BY "switchman_shards"."id" ASC [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1648)) [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1648 AND id<1649) OR (id>=1650 AND id<1651)) ORDER BY "switchman_shards"."id" ASC [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1648 AND id<=1649)) AND (id NOT IN (1648)) [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1649)) ORDER BY "switchman_shards"."id" ASC [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1648 AND id<=1649)) ORDER BY "switchman_shards"."id" ASC [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1649 AND id<=1649)) AND (id NOT IN (1648)) [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1648)) [shard 1648 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1648)) [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1648]] [shard 1648 master]  (0.2ms) COMMIT [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1649], ["name", "switchman_test_shard_1649"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1650], ["name", "switchman_test_shard_1650"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "10"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.2ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "11"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.2ms) ROLLBACK [shard 1650 master]  (0.2ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.2ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.372208"], ["updated_at", "2015-01-19 17:31:19.372208"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.2ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master] SQL (1.0ms) DELETE FROM "switchman_shards" [shard 1648 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "12"], ["name", "non_existent_shard"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "12"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 1658 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.5ms) SELECT COUNT(*) FROM "users" [shard 1659 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "13"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "14"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "15"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "16"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "17"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "18"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "19"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "19"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1648]] [shard 1648 master]  (0.4ms) COMMIT [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1649], ["name", "switchman_test_shard_1649"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1650], ["name", "switchman_test_shard_1650"]] [shard 1648 master]  (0.2ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.2ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.573392"], ["updated_at", "2015-01-19 17:31:19.573392"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.576667"], ["updated_at", "2015-01-19 17:31:19.576667"], ["user_id", 2740]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.578899"], ["updated_at", "2015-01-19 17:31:19.578899"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.581799"], ["updated_at", "2015-01-19 17:31:19.581799"], ["user_id", 63]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.583895"], ["updated_at", "2015-01-19 17:31:19.583895"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.587757"], ["updated_at", "2015-01-19 17:31:19.587757"], ["user_id", 49]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.595394"], ["updated_at", "2015-01-19 17:31:19.595394"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.598022"], ["updated_at", "2015-01-19 17:31:19.598022"], ["user_id", 2741]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.599934"], ["updated_at", "2015-01-19 17:31:19.599934"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.602844"], ["updated_at", "2015-01-19 17:31:19.602844"], ["user_id", 64]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.604532"], ["updated_at", "2015-01-19 17:31:19.604532"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.607182"], ["updated_at", "2015-01-19 17:31:19.607182"], ["user_id", 50]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1649 LIMIT 1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.615460"], ["updated_at", "2015-01-19 17:31:19.615460"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.617912"], ["updated_at", "2015-01-19 17:31:19.617912"], ["user_id", 2742]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.619626"], ["updated_at", "2015-01-19 17:31:19.619626"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.622694"], ["updated_at", "2015-01-19 17:31:19.622694"], ["user_id", 65]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.624393"], ["updated_at", "2015-01-19 17:31:19.624393"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.627056"], ["updated_at", "2015-01-19 17:31:19.627056"], ["user_id", 51]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.3ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.629381"], ["updated_at", "2015-01-19 17:31:19.629381"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.2ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.636147"], ["updated_at", "2015-01-19 17:31:19.636147"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.638429"], ["updated_at", "2015-01-19 17:31:19.638429"], ["user_id", 2743]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.640249"], ["updated_at", "2015-01-19 17:31:19.640249"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.643906"], ["updated_at", "2015-01-19 17:31:19.643906"], ["user_id", 66]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.645903"], ["updated_at", "2015-01-19 17:31:19.645903"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.649061"], ["updated_at", "2015-01-19 17:31:19.649061"], ["user_id", 52]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.656216"], ["updated_at", "2015-01-19 17:31:19.656216"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.659001"], ["updated_at", "2015-01-19 17:31:19.659001"], ["user_id", 2744]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.660950"], ["updated_at", "2015-01-19 17:31:19.660950"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.663597"], ["updated_at", "2015-01-19 17:31:19.663597"], ["user_id", 67]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.665262"], ["updated_at", "2015-01-19 17:31:19.665262"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.668254"], ["updated_at", "2015-01-19 17:31:19.668254"], ["user_id", 53]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.673797"], ["updated_at", "2015-01-19 17:31:19.673797"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.676132"], ["updated_at", "2015-01-19 17:31:19.676132"], ["user_id", 2745]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.677842"], ["updated_at", "2015-01-19 17:31:19.677842"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.680398"], ["updated_at", "2015-01-19 17:31:19.680398"], ["user_id", 68]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.681924"], ["updated_at", "2015-01-19 17:31:19.681924"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.684760"], ["updated_at", "2015-01-19 17:31:19.684760"], ["user_id", 54]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.687284"], ["parent_id", 2745], ["updated_at", "2015-01-19 17:31:19.687284"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.689553"], ["parent_id", 2746], ["updated_at", "2015-01-19 17:31:19.689553"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2746]] [shard 1648 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2745]] [shard 1648 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 [["parent_id", 2745]] [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.699425"], ["updated_at", "2015-01-19 17:31:19.699425"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.701893"], ["updated_at", "2015-01-19 17:31:19.701893"], ["user_id", 2748]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.703640"], ["updated_at", "2015-01-19 17:31:19.703640"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.706134"], ["updated_at", "2015-01-19 17:31:19.706134"], ["user_id", 69]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.707672"], ["updated_at", "2015-01-19 17:31:19.707672"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.710375"], ["updated_at", "2015-01-19 17:31:19.710375"], ["user_id", 55]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.715822"], ["updated_at", "2015-01-19 17:31:19.715822"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.718215"], ["updated_at", "2015-01-19 17:31:19.718215"], ["user_id", 2749]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.719953"], ["updated_at", "2015-01-19 17:31:19.719953"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.722479"], ["updated_at", "2015-01-19 17:31:19.722479"], ["user_id", 70]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.724413"], ["updated_at", "2015-01-19 17:31:19.724413"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.727389"], ["updated_at", "2015-01-19 17:31:19.727389"], ["user_id", 56]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.733682"], ["updated_at", "2015-01-19 17:31:19.733682"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.736103"], ["updated_at", "2015-01-19 17:31:19.736103"], ["user_id", 2750]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.737780"], ["updated_at", "2015-01-19 17:31:19.737780"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.740343"], ["updated_at", "2015-01-19 17:31:19.740343"], ["user_id", 71]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.741862"], ["updated_at", "2015-01-19 17:31:19.741862"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.744562"], ["updated_at", "2015-01-19 17:31:19.744562"], ["user_id", 57]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.751955"], ["updated_at", "2015-01-19 17:31:19.751955"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.757961"], ["updated_at", "2015-01-19 17:31:19.757961"], ["user_id", 2751]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.759849"], ["updated_at", "2015-01-19 17:31:19.759849"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.762279"], ["updated_at", "2015-01-19 17:31:19.762279"], ["user_id", 72]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.763799"], ["updated_at", "2015-01-19 17:31:19.763799"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.766458"], ["updated_at", "2015-01-19 17:31:19.766458"], ["user_id", 58]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.772793"], ["updated_at", "2015-01-19 17:31:19.772793"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.775048"], ["updated_at", "2015-01-19 17:31:19.775048"], ["user_id", 2752]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.776713"], ["updated_at", "2015-01-19 17:31:19.776713"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.779232"], ["updated_at", "2015-01-19 17:31:19.779232"], ["user_id", 73]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.780711"], ["updated_at", "2015-01-19 17:31:19.780711"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.783282"], ["updated_at", "2015-01-19 17:31:19.783282"], ["user_id", 59]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.789361"], ["updated_at", "2015-01-19 17:31:19.789361"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.791646"], ["updated_at", "2015-01-19 17:31:19.791646"], ["user_id", 2753]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.793400"], ["updated_at", "2015-01-19 17:31:19.793400"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.796207"], ["updated_at", "2015-01-19 17:31:19.796207"], ["user_id", 74]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.797822"], ["updated_at", "2015-01-19 17:31:19.797822"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.800461"], ["updated_at", "2015-01-19 17:31:19.800461"], ["user_id", 60]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.806747"], ["updated_at", "2015-01-19 17:31:19.806747"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.809122"], ["updated_at", "2015-01-19 17:31:19.809122"], ["user_id", 2754]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.810874"], ["updated_at", "2015-01-19 17:31:19.810874"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.813307"], ["updated_at", "2015-01-19 17:31:19.813307"], ["user_id", 75]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.814757"], ["updated_at", "2015-01-19 17:31:19.814757"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.817663"], ["updated_at", "2015-01-19 17:31:19.817663"], ["user_id", 61]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.823816"], ["updated_at", "2015-01-19 17:31:19.823816"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.826033"], ["updated_at", "2015-01-19 17:31:19.826033"], ["user_id", 2755]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.827666"], ["updated_at", "2015-01-19 17:31:19.827666"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.830164"], ["updated_at", "2015-01-19 17:31:19.830164"], ["user_id", 76]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.831646"], ["updated_at", "2015-01-19 17:31:19.831646"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.834436"], ["updated_at", "2015-01-19 17:31:19.834436"], ["user_id", 62]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.840339"], ["updated_at", "2015-01-19 17:31:19.840339"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.842551"], ["updated_at", "2015-01-19 17:31:19.842551"], ["user_id", 2756]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.844383"], ["updated_at", "2015-01-19 17:31:19.844383"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.846810"], ["updated_at", "2015-01-19 17:31:19.846810"], ["user_id", 77]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.848261"], ["updated_at", "2015-01-19 17:31:19.848261"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.851093"], ["updated_at", "2015-01-19 17:31:19.851093"], ["user_id", 63]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.857870"], ["updated_at", "2015-01-19 17:31:19.857870"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.860645"], ["updated_at", "2015-01-19 17:31:19.860645"], ["user_id", 2757]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.862512"], ["updated_at", "2015-01-19 17:31:19.862512"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.865149"], ["updated_at", "2015-01-19 17:31:19.865149"], ["user_id", 78]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.866774"], ["updated_at", "2015-01-19 17:31:19.866774"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 17:31:19.869693"], ["updated_at", "2015-01-19 17:31:19.869693"], ["user_id", 64]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1648]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1649], ["name", "switchman_test_shard_1649"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1650], ["name", "switchman_test_shard_1650"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (1.9ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.887751"], ["updated_at", "2015-01-19 17:31:19.887751"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 63]] [shard 1648 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 63]] [shard 1648 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 63 ORDER BY "mirror_users"."id" ASC LIMIT 1 [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1648]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1649], ["name", "switchman_test_shard_1649"]] [shard 1648 master]  (0.2ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1650], ["name", "switchman_test_shard_1650"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master] SQL (0.6ms) DELETE FROM "switchman_shards" [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1648]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1649], ["name", "switchman_test_shard_1649"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1650], ["name", "switchman_test_shard_1650"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.944108"], ["updated_at", "2015-01-19 17:31:19.944108"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.949468"], ["updated_at", "2015-01-19 17:31:19.949468"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1649 LIMIT 1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.957279"], ["updated_at", "2015-01-19 17:31:19.957279"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.959013"], ["updated_at", "2015-01-19 17:31:19.959013"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.2ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.964679"], ["updated_at", "2015-01-19 17:31:19.964679"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.966253"], ["updated_at", "2015-01-19 17:31:19.966253"]] [shard 1649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1650 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:19.969011"], ["updated_at", "2015-01-19 17:31:19.969011"]] [shard 1650 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1648]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1649], ["name", "switchman_test_shard_1649"]] [shard 1648 master]  (0.2ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1650], ["name", "switchman_test_shard_1650"]] [shard 1648 master]  (0.2ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '20' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "20"], ["name", "public"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1668 [shard 1668 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1668 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1668 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1668 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN [shard 1668 deploy]  (3.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1668 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1668 deploy]  (0.3ms) COMMIT [shard 1668 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) BEGIN [shard 1668 deploy]  (2.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1668 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1668 deploy]  (0.3ms) COMMIT [shard 1668 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) BEGIN [shard 1668 deploy]  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1668 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1668 deploy]  (0.5ms) COMMIT [shard 1668 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) BEGIN [shard 1668 deploy]  (2.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1668 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1668 deploy]  (0.4ms) COMMIT [shard 1668 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) BEGIN [shard 1668 deploy]  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1668 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1668 deploy]  (0.3ms) COMMIT [shard 1668 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) BEGIN [shard 1668 deploy]  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1668 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1668 deploy]  (0.2ms) COMMIT [shard 1668 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN [shard 1668 deploy]  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1668 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1668 deploy]  (0.3ms) COMMIT [shard 1668 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1668 [["name", "switchman_test_shard_1668"]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) BEGIN [shard 1668 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:20.079961"], ["updated_at", "2015-01-19 17:31:20.079961"]] [shard 1668 master]  (0.3ms) COMMIT [shard 1668 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 1668 master]  (4.8ms) DROP SCHEMA switchman_test_shard_1668 CASCADE [shard 1668 deploy]  (0.5ms) SELECT COUNT(*) FROM "users" [shard 1668 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.2ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1649 LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1650 LIMIT 1 [shard 1648 master]  (0.2ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11650 LIMIT 1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.3ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1669]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1669 LIMIT 1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1648 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1670]] [shard 1648 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1648 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1648]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1649], ["name", "switchman_test_shard_1649"]] [shard 1648 master]  (0.4ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1650], ["name", "switchman_test_shard_1650"]] [shard 1648 master]  (0.4ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 17:31:20.319049"], ["updated_at", "2015-01-19 17:31:20.319049"]] [shard 1649 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1649 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1649 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master]  (0.1ms) ROLLBACK [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1648 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1648]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1649], ["name", "switchman_test_shard_1649"]] [shard 1648 master]  (0.3ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1650], ["name", "switchman_test_shard_1650"]] [shard 1648 master]  (0.2ms) COMMIT [shard 1648 master]  (0.1ms) BEGIN [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1649]] [shard 1648 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1650]] [shard 1648 master]  (0.1ms) BEGIN [shard 1650 master]  (0.1ms) ROLLBACK [shard 1650 master]  (0.1ms) ROLLBACK [shard 1648 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1648 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1648 master]  (5.1ms) DROP SCHEMA switchman_test_shard_1649 CASCADE [shard 1649 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1649]]  (0.1ms) COMMIT  (6.1ms) DROP SCHEMA switchman_test_shard_1650 CASCADE [shard 1650 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1650]]  (0.1ms) COMMIT  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (7.0ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.4ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (6.1ms) COMMIT Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.5ms) CREATE SCHEMA switchman_test_shard_1672 [shard 1672 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 deploy]  (14.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1672 deploy]  (6.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1672 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1672 deploy] Migrating to CreateUsers (20130403132607)  (7.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1672 deploy] SQL (6.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1672 deploy] Migrating to CreateAppendages (20130411202442)  (7.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1672 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1672 deploy] Migrating to CreateMirrorUsers (20130411202551)  (8.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1672 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1672 deploy] Migrating to CreateDigits (20131022202028)  (7.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1672 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1672 deploy] Migrating to CreateFeatures (20131206172923)  (7.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1672 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1672 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1672 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1672 deploy] Migrating to CreateRoots (20140219183820)  (7.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1672 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1672 deploy]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1672 deploy] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1672 [["name", "switchman_test_shard_1672"]] [shard 1671 master]  (6.8ms) COMMIT [shard 1671 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1673 [shard 1673 deploy]  (0.1ms) BEGIN [shard 1673 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1673 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1673 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1673 deploy] Migrating to CreateUsers (20130403132607)  (2.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1673 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1673 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1673 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1673 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1673 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1673 deploy] Migrating to CreateDigits (20131022202028)  (2.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1673 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1673 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1673 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1673 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1673 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1673 deploy] Migrating to CreateRoots (20140219183820)  (2.3ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1673 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1673 deploy]  (1.0ms) COMMIT [shard 1673 deploy]  (0.1ms) BEGIN [shard 1671 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1673 [["name", "switchman_test_shard_1673"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1671]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1672], ["name", "switchman_test_shard_1672"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1673], ["name", "switchman_test_shard_1673"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.562886"], ["updated_at", "2015-01-19 20:20:02.562886"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1671]] [shard 1671 master]  (0.4ms) COMMIT [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1672], ["name", "switchman_test_shard_1672"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1673], ["name", "switchman_test_shard_1673"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.585973"], ["updated_at", "2015-01-19 20:20:02.585973"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.590567"], ["updated_at", "2015-01-19 20:20:02.590567"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.596614"], ["updated_at", "2015-01-19 20:20:02.596614"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (6.4ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.600319"], ["updated_at", "2015-01-19 20:20:02.600319"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1672 LIMIT 1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (6.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.616777"], ["updated_at", "2015-01-19 20:20:02.616777"]] [shard 1673 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.2ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.639150"], ["updated_at", "2015-01-19 20:20:02.639150"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.648419"], ["updated_at", "2015-01-19 20:20:02.648419"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1671]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1672], ["name", "switchman_test_shard_1672"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1673], ["name", "switchman_test_shard_1673"]] [shard 1671 master]  (0.2ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.662217"], ["updated_at", "2015-01-19 20:20:02.662217"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.663792"], ["updated_at", "2015-01-19 20:20:02.663792"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.665358"], ["updated_at", "2015-01-19 20:20:02.665358"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master] User Load (0.3ms) SELECT "users".* FROM "users" [shard 1672 master] User Load (0.3ms) SELECT "users".* FROM "users" [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.672995"], ["updated_at", "2015-01-19 20:20:02.672995"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.689200"], ["updated_at", "2015-01-19 20:20:02.689200"]] [shard 1671 master]  (0.4ms) COMMIT [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.699811"], ["updated_at", "2015-01-19 20:20:02.699811"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.706555"], ["updated_at", "2015-01-19 20:20:02.706555"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.736211"], ["updated_at", "2015-01-19 20:20:02.736211"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1671 master] SQL (0.1ms) DELETE FROM "users" [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.742608"], ["updated_at", "2015-01-19 20:20:02.742608"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1671 master] SQL (0.1ms) DELETE FROM "users" [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.750029"], ["updated_at", "2015-01-19 20:20:02.750029"]] [shard 1671 master]  (0.4ms) COMMIT [shard 1671 master] User Load (0.4ms) SELECT "users".* FROM "users" [shard 1671 master] SQL (0.5ms) DELETE FROM "users" [shard 1671 master] SQL (0.3ms) DELETE FROM "users" [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.759708"], ["updated_at", "2015-01-19 20:20:02.759708"]] [shard 1671 master]  (0.4ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:02.763308"], ["name", "a"], ["updated_at", "2015-01-19 20:20:02.763308"]] [shard 1671 master]  (0.4ms) COMMIT [shard 1671 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2771]] [shard 1671 master] CACHE (0.0ms) 1671::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2771]] CACHE (0.0ms) 1671::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2771]]  (0.2ms) BEGIN [shard 1671 master] SQL (0.2ms) UPDATE "users" SET "name" = $1, "updated_at" = $2 WHERE "users"."id" = 2771 [["name", "b"], ["updated_at", "2015-01-19 20:20:02.770349"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2771]] [shard 1671 master] CACHE (0.0ms) 1671::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2771]] SQL (0.5ms) DELETE FROM "users" [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.777125"], ["updated_at", "2015-01-19 20:20:02.777125"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1671 master] SQL (0.3ms) DELETE FROM "users" [shard 1671 master] SQL (0.2ms) DELETE FROM "users" [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.834209"], ["updated_at", "2015-01-19 20:20:02.834209"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1671 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-01-19 20:20:02.835857' [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.841198"], ["updated_at", "2015-01-19 20:20:02.841198"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1671 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-01-19 20:20:02.843085' [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.2ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.845828"], ["updated_at", "2015-01-19 20:20:02.845828"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1671 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-01-19 20:20:02.847948' [shard 1671 master] SQL (0.3ms) DELETE FROM "users" [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.850909"], ["updated_at", "2015-01-19 20:20:02.850909"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1671 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-01-19 20:20:02.852960' [shard 1671 master] SQL (0.3ms) DELETE FROM "users" [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1671]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1672], ["name", "switchman_test_shard_1672"]] [shard 1671 master]  (0.2ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1673], ["name", "switchman_test_shard_1673"]] [shard 1671 master]  (0.2ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master] SQL (6.1ms) DELETE FROM "switchman_shards" [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1671]] [shard 1671 master]  (11.8ms) COMMIT [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1672], ["name", "switchman_test_shard_1672"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1673], ["name", "switchman_test_shard_1673"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.943333"], ["updated_at", "2015-01-19 20:20:02.943333"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.945178"], ["updated_at", "2015-01-19 20:20:02.945178"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:02.955780"], ["updated_at", "2015-01-19 20:20:02.955780"], ["user_id", 7]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 7]] [shard 1672 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1672 LIMIT 1 [shard 1671 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 7]] [shard 1672 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 7]] [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.2ms) ROLLBACK [shard 1672 master]  (0.2ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.971274"], ["updated_at", "2015-01-19 20:20:02.971274"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.973667"], ["updated_at", "2015-01-19 20:20:02.973667"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.982601"], ["updated_at", "2015-01-19 20:20:02.982601"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.984942"], ["updated_at", "2015-01-19 20:20:02.984942"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.993473"], ["updated_at", "2015-01-19 20:20:02.993473"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:02.995159"], ["updated_at", "2015-01-19 20:20:02.995159"]] [shard 1673 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:02.998765"], ["updated_at", "2015-01-19 20:20:02.998765"], ["user_id", 10]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.002145"], ["updated_at", "2015-01-19 20:20:03.002145"], ["user_id", 4]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1673 LIMIT 1 [shard 1671 master]  (0.2ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.012030"], ["updated_at", "2015-01-19 20:20:03.012030"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.013763"], ["updated_at", "2015-01-19 20:20:03.013763"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.016529"], ["updated_at", "2015-01-19 20:20:03.016529"], ["user_id", 11]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (5.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 4], ["created_at", "2015-01-19 20:20:03.025591"], ["updated_at", "2015-01-19 20:20:03.025591"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 11], ["id", 1]] [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.046631"], ["updated_at", "2015-01-19 20:20:03.046631"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.048624"], ["updated_at", "2015-01-19 20:20:03.048624"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.051751"], ["updated_at", "2015-01-19 20:20:03.051751"], ["user_id", 12]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.058851"], ["updated_at", "2015-01-19 20:20:03.058851"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.060703"], ["updated_at", "2015-01-19 20:20:03.060703"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.063866"], ["updated_at", "2015-01-19 20:20:03.063866"], ["user_id", 13]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 13], ["id", 6]] [shard 1672 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 7], ["id", 16720000000000006]] [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.076224"], ["updated_at", "2015-01-19 20:20:03.076224"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.078428"], ["updated_at", "2015-01-19 20:20:03.078428"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.081522"], ["updated_at", "2015-01-19 20:20:03.081522"], ["user_id", 14]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 7]] [shard 1672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 14]] [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.090347"], ["updated_at", "2015-01-19 20:20:03.090347"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.092162"], ["updated_at", "2015-01-19 20:20:03.092162"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.095372"], ["parent_id", 15], ["updated_at", "2015-01-19 20:20:03.095372"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.098340"], ["parent_id", 16], ["updated_at", "2015-01-19 20:20:03.098340"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 15]] [shard 1672 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 17 LIMIT 1 [["parent_id", 15]] [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.105489"], ["id", 17], ["updated_at", "2015-01-19 20:20:03.105489"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 15]] [shard 1672 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 16730000000000017 LIMIT 1 [["parent_id", 15]] [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.117242"], ["updated_at", "2015-01-19 20:20:03.117242"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.119123"], ["updated_at", "2015-01-19 20:20:03.119123"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.122465"], ["updated_at", "2015-01-19 20:20:03.122465"], ["user_id", 18]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.4ms) INSERT INTO "digits" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.124167"], ["updated_at", "2015-01-19 20:20:03.124167"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", "2015-01-19 20:20:03.126916"], ["id", 16730000000000001], ["updated_at", "2015-01-19 20:20:03.126916"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 18], ["id", 16730000000000001]] [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.137330"], ["updated_at", "2015-01-19 20:20:03.137330"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.139165"], ["updated_at", "2015-01-19 20:20:03.139165"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.142068"], ["updated_at", "2015-01-19 20:20:03.142068"], ["user_id", 19]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.149072"], ["updated_at", "2015-01-19 20:20:03.149072"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.150915"], ["updated_at", "2015-01-19 20:20:03.150915"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.152806"], ["updated_at", "2015-01-19 20:20:03.152806"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.177025"], ["updated_at", "2015-01-19 20:20:03.177025"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.178831"], ["updated_at", "2015-01-19 20:20:03.178831"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.186022"], ["updated_at", "2015-01-19 20:20:03.186022"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.187447"], ["updated_at", "2015-01-19 20:20:03.187447"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:03.188930"], ["updated_at", "2015-01-19 20:20:03.188930"], ["user_id", 22], ["value", 1]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.191211"], ["updated_at", "2015-01-19 20:20:03.191211"], ["user_id", 16720000000000022]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 22]] [shard 1672 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 16720000000000022]] [shard 1673 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 22]] [shard 1672 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 22]] [shard 1672 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 16720000000000022]] [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.202895"], ["updated_at", "2015-01-19 20:20:03.202895"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.204367"], ["updated_at", "2015-01-19 20:20:03.204367"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:03.205799"], ["updated_at", "2015-01-19 20:20:03.205799"], ["user_id", 23], ["value", 1]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.207911"], ["updated_at", "2015-01-19 20:20:03.207911"], ["user_id", 16720000000000023]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:03.210629"], ["updated_at", "2015-01-19 20:20:03.210629"], ["user_id", 23], ["value", 2]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 23]] [shard 1672 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 23]] [shard 1672 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 16720000000000023]] [shard 1673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 23]] [shard 1672 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 23]] [shard 1672 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 16720000000000023]] [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.2ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.224707"], ["updated_at", "2015-01-19 20:20:03.224707"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.226361"], ["updated_at", "2015-01-19 20:20:03.226361"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.227890"], ["updated_at", "2015-01-19 20:20:03.227890"], ["user_id", 24]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 13], ["created_at", "2015-01-19 20:20:03.230180"], ["updated_at", "2015-01-19 20:20:03.230180"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.232332"], ["updated_at", "2015-01-19 20:20:03.232332"], ["user_id", 16720000000000024]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5], ["created_at", "2015-01-19 20:20:03.234544"], ["updated_at", "2015-01-19 20:20:03.234544"], ["value", 2]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 24]] [shard 1672 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 16720000000000024]] [shard 1673 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 24]] [shard 1672 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 24]] [shard 1672 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 16720000000000024]] [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.249252"], ["updated_at", "2015-01-19 20:20:03.249252"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.250762"], ["updated_at", "2015-01-19 20:20:03.250762"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.252394"], ["updated_at", "2015-01-19 20:20:03.252394"], ["user_id", 25]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 14], ["created_at", "2015-01-19 20:20:03.254806"], ["updated_at", "2015-01-19 20:20:03.254806"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 14], ["created_at", "2015-01-19 20:20:03.257100"], ["updated_at", "2015-01-19 20:20:03.257100"], ["value", 1]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.259611"], ["updated_at", "2015-01-19 20:20:03.259611"], ["user_id", 16720000000000025]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6], ["created_at", "2015-01-19 20:20:03.262351"], ["updated_at", "2015-01-19 20:20:03.262351"], ["value", 2]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 25]] [shard 1672 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 16720000000000025]] [shard 1673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 25]] [shard 1672 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 25]] [shard 1672 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 16720000000000025]] [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.276712"], ["updated_at", "2015-01-19 20:20:03.276712"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.278272"], ["updated_at", "2015-01-19 20:20:03.278272"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:03.279828"], ["updated_at", "2015-01-19 20:20:03.279828"], ["user_id", 26], ["value", 1]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:03.281991"], ["updated_at", "2015-01-19 20:20:03.281991"], ["user_id", 16720000000000026], ["value", 2]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 26]] [shard 1672 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 26]] [shard 1672 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 26]] [shard 1672 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 16720000000000026]] [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.293384"], ["updated_at", "2015-01-19 20:20:03.293384"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.294991"], ["updated_at", "2015-01-19 20:20:03.294991"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.296532"], ["updated_at", "2015-01-19 20:20:03.296532"], ["user_id", 27]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 16], ["created_at", "2015-01-19 20:20:03.298877"], ["updated_at", "2015-01-19 20:20:03.298877"], ["value", 1]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.300854"], ["updated_at", "2015-01-19 20:20:03.300854"], ["user_id", 16720000000000027]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", "2015-01-19 20:20:03.303042"], ["updated_at", "2015-01-19 20:20:03.303042"], ["value", 2]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 27]] [shard 1672 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 27]] [shard 1672 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 27]] [shard 1672 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 16720000000000027]] [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.315239"], ["updated_at", "2015-01-19 20:20:03.315239"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.316794"], ["updated_at", "2015-01-19 20:20:03.316794"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.318307"], ["updated_at", "2015-01-19 20:20:03.318307"], ["user_id", 28]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 17], ["created_at", "2015-01-19 20:20:03.320620"], ["updated_at", "2015-01-19 20:20:03.320620"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.322563"], ["updated_at", "2015-01-19 20:20:03.322563"], ["user_id", 16720000000000028]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9], ["created_at", "2015-01-19 20:20:03.324731"], ["updated_at", "2015-01-19 20:20:03.324731"], ["value", 2]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 28]] [shard 1672 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 16720000000000028]] [shard 1673 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 28]] [shard 1672 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 28]] [shard 1672 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 16720000000000028]] [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.338189"], ["updated_at", "2015-01-19 20:20:03.338189"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.339747"], ["updated_at", "2015-01-19 20:20:03.339747"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.9ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.347562"], ["updated_at", "2015-01-19 20:20:03.347562"], ["user_id", 16730000000000021]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 64]] [shard 1671 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.356677"], ["updated_at", "2015-01-19 20:20:03.356677"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.358243"], ["updated_at", "2015-01-19 20:20:03.358243"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.361245"], ["updated_at", "2015-01-19 20:20:03.361245"], ["user_id", 30]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.363331"], ["updated_at", "2015-01-19 20:20:03.363331"], ["user_id", 16720000000000030]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.365301"], ["updated_at", "2015-01-19 20:20:03.365301"], ["user_id", 16730000000000022]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [shard 1672 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (30) [shard 1672 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (16720000000000030) [shard 1673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [shard 1673 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (22) [shard 1673 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 18 [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.381303"], ["updated_at", "2015-01-19 20:20:03.381303"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.383418"], ["updated_at", "2015-01-19 20:20:03.383418"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.386157"], ["updated_at", "2015-01-19 20:20:03.386157"], ["user_id", 31]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.388339"], ["updated_at", "2015-01-19 20:20:03.388339"], ["user_id", 16720000000000031]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.389794"], ["updated_at", "2015-01-19 20:20:03.389794"], ["user_id", 16720000000000031]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 20], ["created_at", "2015-01-19 20:20:03.392468"], ["updated_at", "2015-01-19 20:20:03.392468"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 11], ["created_at", "2015-01-19 20:20:03.395183"], ["updated_at", "2015-01-19 20:20:03.395183"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 16730000000000011], ["created_at", "2015-01-19 20:20:03.397459"], ["updated_at", "2015-01-19 20:20:03.397459"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 16730000000000012], ["created_at", "2015-01-19 20:20:03.398931"], ["updated_at", "2015-01-19 20:20:03.398931"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.400612"], ["updated_at", "2015-01-19 20:20:03.400612"], ["user_id", 16730000000000023]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.403169"], ["updated_at", "2015-01-19 20:20:03.403169"], ["user_id", 23]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.405339"], ["updated_at", "2015-01-19 20:20:03.405339"], ["user_id", 23]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 16720000000000021], ["created_at", "2015-01-19 20:20:03.406886"], ["updated_at", "2015-01-19 20:20:03.406886"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 16730000000000013], ["created_at", "2015-01-19 20:20:03.408517"], ["updated_at", "2015-01-19 20:20:03.408517"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 14], ["created_at", "2015-01-19 20:20:03.410080"], ["updated_at", "2015-01-19 20:20:03.410080"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (31) [shard 1672 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (31) [shard 1672 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (16720000000000031) [shard 1673 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (20) [shard 1672 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (11, 12) [shard 1673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [shard 1673 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (23) [shard 1673 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (13, 14) [shard 1673 master] SQL (0.3ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.434288"], ["updated_at", "2015-01-19 20:20:03.434288"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.435788"], ["updated_at", "2015-01-19 20:20:03.435788"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.437826"], ["updated_at", "2015-01-19 20:20:03.437826"], ["user_id", 16720000000000032]] [shard 1671 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.440353"], ["updated_at", "2015-01-19 20:20:03.440353"], ["user_id", 16730000000000024]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.441887"], ["updated_at", "2015-01-19 20:20:03.441887"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.444232"], ["updated_at", "2015-01-19 20:20:03.444232"], ["user_id", 2777]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" [shard 1671 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (32) [shard 1672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 1673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2777) [shard 1671 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 32 [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.459207"], ["updated_at", "2015-01-19 20:20:03.459207"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.461192"], ["updated_at", "2015-01-19 20:20:03.461192"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.463439"], ["updated_at", "2015-01-19 20:20:03.463439"], ["user_id", 16720000000000033]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1368], ["created_at", "2015-01-19 20:20:03.466158"], ["updated_at", "2015-01-19 20:20:03.466158"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.468936"], ["updated_at", "2015-01-19 20:20:03.468936"], ["user_id", 16730000000000025]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 16720000000000022], ["created_at", "2015-01-19 20:20:03.470733"], ["updated_at", "2015-01-19 20:20:03.470733"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" [shard 1671 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (1368) [shard 1671 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (22) [shard 1672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (33) [shard 1672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 1673 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 33 [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.489476"], ["updated_at", "2015-01-19 20:20:03.489476"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.491495"], ["updated_at", "2015-01-19 20:20:03.491495"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.493388"], ["updated_at", "2015-01-19 20:20:03.493388"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1369], ["created_at", "2015-01-19 20:20:03.496261"], ["updated_at", "2015-01-19 20:20:03.496261"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 16710000000001369], ["created_at", "2015-01-19 20:20:03.498154"], ["updated_at", "2015-01-19 20:20:03.498154"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1369 ORDER BY "appendages"."id" ASC LIMIT 1 [shard 1671 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1369) [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.506727"], ["updated_at", "2015-01-19 20:20:03.506727"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.508758"], ["updated_at", "2015-01-19 20:20:03.508758"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.510927"], ["updated_at", "2015-01-19 20:20:03.510927"], ["user_id", 16730000000000027]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 23]] [shard 1672 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 27]] [shard 1673 master]  (0.2ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.520288"], ["updated_at", "2015-01-19 20:20:03.520288"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.522251"], ["updated_at", "2015-01-19 20:20:03.522251"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.524036"], ["updated_at", "2015-01-19 20:20:03.524036"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 36]] [shard 1672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.527064"], ["updated_at", "2015-01-19 20:20:03.527064"], ["user_id", 36]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 24]] [shard 1672 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 36]] [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.540049"], ["updated_at", "2015-01-19 20:20:03.540049"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.542081"], ["updated_at", "2015-01-19 20:20:03.542081"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.543981"], ["updated_at", "2015-01-19 20:20:03.543981"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:03.549001"], ["owner_id", 1370], ["owner_type", "Appendage"], ["updated_at", "2015-01-19 20:20:03.549001"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 131]] [shard 1671 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 1370]] [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.3ms) UPDATE "features" SET "owner_id" = $1, "owner_type" = $2, "updated_at" = $3 WHERE "features"."id" = 131 [["owner_id", 16720000000000037], ["owner_type", "User"], ["updated_at", "2015-01-19 20:20:03.559385"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 131]] [shard 1671 master]  (0.2ms) ROLLBACK [shard 1673 master]  (0.2ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.569537"], ["updated_at", "2015-01-19 20:20:03.569537"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.571259"], ["updated_at", "2015-01-19 20:20:03.571259"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-01-19 20:20:03.573004"], ["owner_id", 38], ["owner_type", "User"], ["updated_at", "2015-01-19 20:20:03.573004"], ["value", 1]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-01-19 20:20:03.575818"], ["owner_id", 16720000000000038], ["owner_type", "User"], ["updated_at", "2015-01-19 20:20:03.575818"], ["value", 2]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 38], ["owner_type", "User"]] [shard 1672 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 38]] [shard 1672 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 38], ["owner_type", "User"]] [shard 1672 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 16720000000000038], ["owner_type", "User"]] [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1671]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1672], ["name", "switchman_test_shard_1672"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1673], ["name", "switchman_test_shard_1673"]] [shard 1671 master]  (0.2ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1671 AND id<=1672)) ORDER BY "switchman_shards"."id" ASC [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1671)) [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1672 AND id<=1672)) AND (id NOT IN (1671)) [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1671 AND id<1672) OR (id>=1673 AND id<1674)) ORDER BY "switchman_shards"."id" ASC [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1671)) [shard 1671 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1671 AND id<1672)) [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1671 AND id<=1672)) AND (id NOT IN (1671)) [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1672)) ORDER BY "switchman_shards"."id" ASC [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=1672)) ORDER BY "switchman_shards"."id" ASC [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1671)) [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1671]] [shard 1671 master]  (0.4ms) COMMIT [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1672], ["name", "switchman_test_shard_1672"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1673], ["name", "switchman_test_shard_1673"]] [shard 1671 master]  (0.2ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.651725"], ["updated_at", "2015-01-19 20:20:03.651725"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.654071"], ["updated_at", "2015-01-19 20:20:03.654071"], ["user_id", 2778]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.655800"], ["updated_at", "2015-01-19 20:20:03.655800"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.658262"], ["updated_at", "2015-01-19 20:20:03.658262"], ["user_id", 39]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.659884"], ["updated_at", "2015-01-19 20:20:03.659884"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.662529"], ["updated_at", "2015-01-19 20:20:03.662529"], ["user_id", 31]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.669219"], ["updated_at", "2015-01-19 20:20:03.669219"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.671918"], ["updated_at", "2015-01-19 20:20:03.671918"], ["user_id", 2779]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.673758"], ["updated_at", "2015-01-19 20:20:03.673758"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.676515"], ["updated_at", "2015-01-19 20:20:03.676515"], ["user_id", 40]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.678353"], ["updated_at", "2015-01-19 20:20:03.678353"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master]  (0.3ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.689062"], ["updated_at", "2015-01-19 20:20:03.689062"], ["user_id", 32]] [shard 1673 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.697096"], ["updated_at", "2015-01-19 20:20:03.697096"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.699474"], ["updated_at", "2015-01-19 20:20:03.699474"], ["user_id", 2780]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.701207"], ["updated_at", "2015-01-19 20:20:03.701207"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.703672"], ["updated_at", "2015-01-19 20:20:03.703672"], ["user_id", 41]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.705166"], ["updated_at", "2015-01-19 20:20:03.705166"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.707947"], ["updated_at", "2015-01-19 20:20:03.707947"], ["user_id", 33]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.714550"], ["updated_at", "2015-01-19 20:20:03.714550"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.716931"], ["updated_at", "2015-01-19 20:20:03.716931"], ["user_id", 2781]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.718623"], ["updated_at", "2015-01-19 20:20:03.718623"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.721013"], ["updated_at", "2015-01-19 20:20:03.721013"], ["user_id", 42]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.722487"], ["updated_at", "2015-01-19 20:20:03.722487"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.725164"], ["updated_at", "2015-01-19 20:20:03.725164"], ["user_id", 34]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.2ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.731809"], ["updated_at", "2015-01-19 20:20:03.731809"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.734102"], ["updated_at", "2015-01-19 20:20:03.734102"], ["user_id", 2782]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.735772"], ["updated_at", "2015-01-19 20:20:03.735772"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.738535"], ["updated_at", "2015-01-19 20:20:03.738535"], ["user_id", 43]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.740098"], ["updated_at", "2015-01-19 20:20:03.740098"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.743134"], ["updated_at", "2015-01-19 20:20:03.743134"], ["user_id", 35]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.749233"], ["updated_at", "2015-01-19 20:20:03.749233"]] [shard 1671 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.751999"], ["updated_at", "2015-01-19 20:20:03.751999"], ["user_id", 2783]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.753721"], ["updated_at", "2015-01-19 20:20:03.753721"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.756207"], ["updated_at", "2015-01-19 20:20:03.756207"], ["user_id", 44]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.757682"], ["updated_at", "2015-01-19 20:20:03.757682"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.760369"], ["updated_at", "2015-01-19 20:20:03.760369"], ["user_id", 36]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.766225"], ["updated_at", "2015-01-19 20:20:03.766225"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.768984"], ["updated_at", "2015-01-19 20:20:03.768984"], ["user_id", 2784]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.770747"], ["updated_at", "2015-01-19 20:20:03.770747"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.773292"], ["updated_at", "2015-01-19 20:20:03.773292"], ["user_id", 45]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.774815"], ["updated_at", "2015-01-19 20:20:03.774815"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.777636"], ["updated_at", "2015-01-19 20:20:03.777636"], ["user_id", 37]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1672 LIMIT 1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.785376"], ["updated_at", "2015-01-19 20:20:03.785376"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.788095"], ["updated_at", "2015-01-19 20:20:03.788095"], ["user_id", 2785]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.790011"], ["updated_at", "2015-01-19 20:20:03.790011"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.793579"], ["updated_at", "2015-01-19 20:20:03.793579"], ["user_id", 46]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.795313"], ["updated_at", "2015-01-19 20:20:03.795313"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.798066"], ["updated_at", "2015-01-19 20:20:03.798066"], ["user_id", 38]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.2ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.804620"], ["updated_at", "2015-01-19 20:20:03.804620"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.807631"], ["updated_at", "2015-01-19 20:20:03.807631"], ["user_id", 2786]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.809969"], ["updated_at", "2015-01-19 20:20:03.809969"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.813304"], ["updated_at", "2015-01-19 20:20:03.813304"], ["user_id", 47]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.815324"], ["updated_at", "2015-01-19 20:20:03.815324"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.818637"], ["updated_at", "2015-01-19 20:20:03.818637"], ["user_id", 39]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.820992"], ["updated_at", "2015-01-19 20:20:03.820992"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.828095"], ["updated_at", "2015-01-19 20:20:03.828095"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.830740"], ["updated_at", "2015-01-19 20:20:03.830740"], ["user_id", 2787]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.832611"], ["updated_at", "2015-01-19 20:20:03.832611"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.835220"], ["updated_at", "2015-01-19 20:20:03.835220"], ["user_id", 48]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.836719"], ["updated_at", "2015-01-19 20:20:03.836719"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.839379"], ["updated_at", "2015-01-19 20:20:03.839379"], ["user_id", 40]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.845940"], ["updated_at", "2015-01-19 20:20:03.845940"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.848261"], ["updated_at", "2015-01-19 20:20:03.848261"], ["user_id", 2788]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.850018"], ["updated_at", "2015-01-19 20:20:03.850018"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.852591"], ["updated_at", "2015-01-19 20:20:03.852591"], ["user_id", 49]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.854157"], ["updated_at", "2015-01-19 20:20:03.854157"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.856804"], ["updated_at", "2015-01-19 20:20:03.856804"], ["user_id", 41]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.862690"], ["updated_at", "2015-01-19 20:20:03.862690"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.865105"], ["updated_at", "2015-01-19 20:20:03.865105"], ["user_id", 2789]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.866822"], ["updated_at", "2015-01-19 20:20:03.866822"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.869380"], ["updated_at", "2015-01-19 20:20:03.869380"], ["user_id", 50]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.870956"], ["updated_at", "2015-01-19 20:20:03.870956"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.873600"], ["updated_at", "2015-01-19 20:20:03.873600"], ["user_id", 42]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.879558"], ["updated_at", "2015-01-19 20:20:03.879558"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.881967"], ["updated_at", "2015-01-19 20:20:03.881967"], ["user_id", 2790]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.883625"], ["updated_at", "2015-01-19 20:20:03.883625"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.886172"], ["updated_at", "2015-01-19 20:20:03.886172"], ["user_id", 51]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.887659"], ["updated_at", "2015-01-19 20:20:03.887659"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.890231"], ["updated_at", "2015-01-19 20:20:03.890231"], ["user_id", 43]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.896653"], ["updated_at", "2015-01-19 20:20:03.896653"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.899015"], ["updated_at", "2015-01-19 20:20:03.899015"], ["user_id", 2791]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.900747"], ["updated_at", "2015-01-19 20:20:03.900747"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.903337"], ["updated_at", "2015-01-19 20:20:03.903337"], ["user_id", 52]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.904836"], ["updated_at", "2015-01-19 20:20:03.904836"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.911662"], ["updated_at", "2015-01-19 20:20:03.911662"], ["user_id", 44]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.918073"], ["updated_at", "2015-01-19 20:20:03.918073"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.920396"], ["updated_at", "2015-01-19 20:20:03.920396"], ["user_id", 2792]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.922111"], ["updated_at", "2015-01-19 20:20:03.922111"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.925031"], ["updated_at", "2015-01-19 20:20:03.925031"], ["user_id", 53]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.926610"], ["updated_at", "2015-01-19 20:20:03.926610"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.929563"], ["updated_at", "2015-01-19 20:20:03.929563"], ["user_id", 45]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.937447"], ["updated_at", "2015-01-19 20:20:03.937447"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.939880"], ["updated_at", "2015-01-19 20:20:03.939880"], ["user_id", 2793]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.941799"], ["updated_at", "2015-01-19 20:20:03.941799"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.944746"], ["updated_at", "2015-01-19 20:20:03.944746"], ["user_id", 54]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.946470"], ["updated_at", "2015-01-19 20:20:03.946470"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.949869"], ["updated_at", "2015-01-19 20:20:03.949869"], ["user_id", 46]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.952766"], ["parent_id", 2793], ["updated_at", "2015-01-19 20:20:03.952766"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:03.955658"], ["parent_id", 2794], ["updated_at", "2015-01-19 20:20:03.955658"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2794]] [shard 1671 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2793]] [shard 1671 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 [["parent_id", 2793]] [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1671]] [shard 1671 master]  (0.4ms) COMMIT [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1672], ["name", "switchman_test_shard_1672"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1673], ["name", "switchman_test_shard_1673"]] [shard 1671 master]  (0.2ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:03.985454"], ["updated_at", "2015-01-19 20:20:03.985454"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 64]] [shard 1671 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 64]] [shard 1671 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 64 ORDER BY "mirror_users"."id" ASC LIMIT 1 [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1671]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1672], ["name", "switchman_test_shard_1672"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1673], ["name", "switchman_test_shard_1673"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1672 LIMIT 1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1676]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1677]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1677 LIMIT 1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1673 LIMIT 1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11673 LIMIT 1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '3' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "3"], ["name", "public"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1678 [shard 1678 deploy]  (0.1ms) BEGIN [shard 1678 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1678 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1678 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1678 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1678 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1678 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1678 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1678 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1678 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1678 deploy] Migrating to CreateDigits (20131022202028)  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1678 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1678 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [shard 1678 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1678 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1678 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1678 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [shard 1678 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1678 deploy]  (0.9ms) COMMIT [shard 1678 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1678 [["name", "switchman_test_shard_1678"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) BEGIN [shard 1678 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:04.194049"], ["updated_at", "2015-01-19 20:20:04.194049"]] [shard 1678 master]  (0.3ms) COMMIT [shard 1678 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1678 master]  (4.6ms) DROP SCHEMA switchman_test_shard_1678 CASCADE [shard 1678 deploy]  (0.9ms) SELECT COUNT(*) FROM "users" [shard 1678 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.2ms) ROLLBACK [shard 1673 master]  (0.2ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1671]] [shard 1671 master]  (6.1ms) COMMIT [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1672], ["name", "switchman_test_shard_1672"]] [shard 1671 master]  (6.2ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1673], ["name", "switchman_test_shard_1673"]] [shard 1671 master]  (3.6ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '13' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "13"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) begin transaction [shard 1679 deploy]  (0.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 1679 deploy]  (0.1ms) select sqlite_version(*) [shard 1679 deploy]  (0.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1679 deploy] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1679 deploy] Migrating to CreateUsers (20130403132607)  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime, "updated_at" datetime) [shard 1679 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130403132607"]] [shard 1679 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [shard 1679 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202442"]] [shard 1679 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [shard 1679 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202551"]] [shard 1679 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [shard 1679 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131022202028"]] [shard 1679 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime, "updated_at" datetime) [shard 1679 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131206172923"]] [shard 1679 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 1679 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140123154135"]] [shard 1679 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [shard 1679 deploy] SQL (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219183820"]] [shard 1679 deploy]  (1.2ms) commit transaction [shard 1679 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1679 [["name", "db/shard_1679.sqlite3"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.0ms) begin transaction [shard 1679 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-01-19 20:20:04.384101"], ["updated_at", "2015-01-19 20:20:04.384101"]] [shard 1679 master]  (0.9ms) commit transaction [shard 1679 master] Drop failed: No such file or directory @ unlink_internal - db/shard_1679.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1679]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '14' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "14"], ["name", "public"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1680 [shard 1680 deploy]  (0.1ms) BEGIN [shard 1680 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1680 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1680 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1680 deploy] Migrating to CreateUsers (20130403132607)  (2.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1680 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1680 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1680 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1680 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1680 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1680 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1680 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1680 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1680 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1680 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1680 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1680 deploy] Migrating to CreateRoots (20140219183820)  (4.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1680 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1680 deploy]  (3.1ms) COMMIT [shard 1680 deploy]  (0.2ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1680 [["name", "switchman_test_shard_1680"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) BEGIN [shard 1680 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:04.482451"], ["updated_at", "2015-01-19 20:20:04.482451"]] [shard 1680 master]  (0.3ms) COMMIT [shard 1680 master]  (4.2ms) DROP SCHEMA switchman_test_shard_1680 CASCADE [shard 1680 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1680]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [shard 1671 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_1681 [shard 1681 deploy]  (0.1ms) SAVEPOINT active_record_2 [shard 1681 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1681 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1681 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [shard 1681 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1681 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [shard 1681 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1681 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [shard 1681 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1681 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [shard 1681 deploy] Migrating to CreateDigits (20131022202028)  (2.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1681 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [shard 1681 deploy] Migrating to CreateFeatures (20131206172923)  (2.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [shard 1681 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [shard 1681 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1681 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [shard 1681 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [shard 1681 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [shard 1681 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1681 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 1681 [["name", "switchman_test_shard_1681"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1681 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:04.546858"], ["updated_at", "2015-01-19 20:20:04.546858"]] [shard 1681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1681 master]  (2.5ms) DROP SCHEMA switchman_test_shard_1681 CASCADE [shard 1681 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1681]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (2.2ms) ROLLBACK [shard 1671 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1671]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1672], ["name", "switchman_test_shard_1672"]] [shard 1671 master]  (0.2ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1673], ["name", "switchman_test_shard_1673"]] [shard 1671 master]  (0.2ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "15"], ["name", "non_existent_shard"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "15"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 1682 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.5ms) SELECT COUNT(*) FROM "users" [shard 1683 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "16"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "17"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "18"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "19"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "20"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "21"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1671]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1672], ["name", "switchman_test_shard_1672"]] [shard 1671 master]  (0.2ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1673], ["name", "switchman_test_shard_1673"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:04.661905"], ["name", "user1"], ["updated_at", "2015-01-19 20:20:04.661905"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:04.663906"], ["name", "user2"], ["updated_at", "2015-01-19 20:20:04.663906"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 55 ORDER BY "users"."id" ASC LIMIT 1 [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:04.670443"], ["name", "user1"], ["updated_at", "2015-01-19 20:20:04.670443"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:04.672526"], ["name", "user2"], ["updated_at", "2015-01-19 20:20:04.672526"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1672 LIMIT 1 [shard 1671 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2797) [shard 1671 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 1672 master]  (0.2ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:04.687298"], ["name", "user1"], ["updated_at", "2015-01-19 20:20:04.687298"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:04.690117"], ["name", "user2"], ["updated_at", "2015-01-19 20:20:04.690117"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:04.696479"], ["name", "user1"], ["updated_at", "2015-01-19 20:20:04.696479"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:04.698812"], ["name", "user2"], ["updated_at", "2015-01-19 20:20:04.698812"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 58 [shard 1672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2799]] [shard 1671 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 58]] [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:04.707532"], ["name", "user1"], ["updated_at", "2015-01-19 20:20:04.707532"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:04.709379"], ["name", "user2"], ["updated_at", "2015-01-19 20:20:04.709379"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (2800) [shard 1671 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (59) [shard 1672 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2800]] [shard 1671 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 59]] [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1671 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1671]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1672], ["name", "switchman_test_shard_1672"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1673], ["name", "switchman_test_shard_1673"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:04.727534"], ["updated_at", "2015-01-19 20:20:04.727534"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 1673 master]  (0.1ms) SAVEPOINT active_record_2 [shard 1673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:04.733125"], ["updated_at", "2015-01-19 20:20:04.733125"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1673 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1673 master]  (0.2ms) ROLLBACK [shard 1671 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master] SQL (6.3ms) DELETE FROM "switchman_shards" [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1671]] [shard 1671 master]  (11.3ms) COMMIT [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1672], ["name", "switchman_test_shard_1672"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1673], ["name", "switchman_test_shard_1673"]] [shard 1671 master]  (0.2ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.2ms) ROLLBACK [shard 1671 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1671]] [shard 1671 master]  (0.4ms) COMMIT [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1672], ["name", "switchman_test_shard_1672"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1673], ["name", "switchman_test_shard_1673"]] [shard 1671 master]  (0.2ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "22"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.2ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:04.863798"], ["updated_at", "2015-01-19 20:20:04.863798"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "23"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master] SQL (0.7ms) DELETE FROM "switchman_shards" [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1671]] [shard 1671 master]  (0.4ms) COMMIT [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1672], ["name", "switchman_test_shard_1672"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1673], ["name", "switchman_test_shard_1673"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1671]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1672], ["name", "switchman_test_shard_1672"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1673], ["name", "switchman_test_shard_1673"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:21:05.017373"], ["updated_at", "2015-01-19 20:21:05.017373"]] [shard 1672 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.0ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1671]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1672], ["name", "switchman_test_shard_1672"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1673], ["name", "switchman_test_shard_1673"]] [shard 1671 master]  (0.4ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:05.031647"], ["updated_at", "2015-01-19 20:20:05.031647"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:05.037022"], ["updated_at", "2015-01-19 20:20:05.037022"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.3ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.042781"], ["owner_id", 2803], ["owner_type", "User"], ["updated_at", "2015-01-19 20:20:05.042781"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master] Feature Load (0.4ms) SELECT "features"."owner_id" FROM "features" WHERE "features"."id" = 132 ORDER BY "features"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:05.053661"], ["updated_at", "2015-01-19 20:20:05.053661"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1672 LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1673 LIMIT 1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master] SQL (6.5ms) DELETE FROM "switchman_shards" [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "24"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "24"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1671]] [shard 1671 master]  (6.2ms) COMMIT [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1672], ["name", "switchman_test_shard_1672"]] [shard 1671 master]  (0.4ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1673], ["name", "switchman_test_shard_1673"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1672,1673)) AND "switchman_shards"."id" IN (1671, 1672) [shard 1671 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1671 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1671]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1672], ["name", "switchman_test_shard_1672"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1673], ["name", "switchman_test_shard_1673"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.117442"], ["name", "user1"], ["updated_at", "2015-01-19 20:20:05.117442"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.120163"], ["updated_at", "2015-01-19 20:20:05.120163"], ["user_id", 61]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.122089"], ["name", "user2"], ["updated_at", "2015-01-19 20:20:05.122089"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.124908"], ["updated_at", "2015-01-19 20:20:05.124908"], ["user_id", 49]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1672 LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1673 LIMIT 1 [shard 1671 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (61) [shard 1672 master]  (0.4ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (49) [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.137457"], ["name", "user1"], ["updated_at", "2015-01-19 20:20:05.137457"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.140058"], ["updated_at", "2015-01-19 20:20:05.140058"], ["user_id", 62]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.141758"], ["name", "user2"], ["updated_at", "2015-01-19 20:20:05.141758"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.144155"], ["updated_at", "2015-01-19 20:20:05.144155"], ["user_id", 50]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 1672 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 1673 master]  (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 1672 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 1673 master]  (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 1672 master]  (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.155746"], ["name", "user1"], ["updated_at", "2015-01-19 20:20:05.155746"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.158204"], ["updated_at", "2015-01-19 20:20:05.158204"], ["user_id", 63]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.159855"], ["name", "user2"], ["updated_at", "2015-01-19 20:20:05.159855"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.162695"], ["updated_at", "2015-01-19 20:20:05.162695"], ["user_id", 51]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 1672 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 1673 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 1672 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 1673 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 1672 master]  (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.173549"], ["name", "user1"], ["updated_at", "2015-01-19 20:20:05.173549"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.176103"], ["updated_at", "2015-01-19 20:20:05.176103"], ["user_id", 64]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.177855"], ["name", "user2"], ["updated_at", "2015-01-19 20:20:05.177855"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.180210"], ["updated_at", "2015-01-19 20:20:05.180210"], ["user_id", 52]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1671 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.181920"], ["name", "user2"], ["updated_at", "2015-01-19 20:20:05.181920"]] [shard 1671 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1671 master]  (0.5ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (2804) [shard 1671 master]  (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (64) [shard 1672 master]  (0.5ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (52) [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.191779"], ["name", "user1"], ["updated_at", "2015-01-19 20:20:05.191779"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.193471"], ["name", "user2"], ["updated_at", "2015-01-19 20:20:05.193471"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.195196"], ["updated_at", "2015-01-19 20:20:05.195196"], ["user_id", 65], ["value", 1]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.197433"], ["updated_at", "2015-01-19 20:20:05.197433"], ["user_id", 16730000000000053], ["value", 3]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.199394"], ["updated_at", "2015-01-19 20:20:05.199394"], ["user_id", 16720000000000065], ["value", 2]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.201155"], ["updated_at", "2015-01-19 20:20:05.201155"], ["user_id", 53], ["value", 4]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.202662"], ["updated_at", "2015-01-19 20:20:05.202662"], ["user_id", 53], ["value", 5]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1672 master]  (0.4ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1673 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1672 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1673 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1672 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1673 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 1672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 1673 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 1673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.221334"], ["name", "user1"], ["updated_at", "2015-01-19 20:20:05.221334"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.222974"], ["name", "user2"], ["updated_at", "2015-01-19 20:20:05.222974"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.225121"], ["updated_at", "2015-01-19 20:20:05.225121"], ["user_id", 66], ["value", 1]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.227458"], ["updated_at", "2015-01-19 20:20:05.227458"], ["user_id", 16730000000000054], ["value", 3]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.230084"], ["updated_at", "2015-01-19 20:20:05.230084"], ["user_id", 16720000000000066], ["value", 2]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.231760"], ["updated_at", "2015-01-19 20:20:05.231760"], ["user_id", 54], ["value", 4]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.233642"], ["updated_at", "2015-01-19 20:20:05.233642"], ["user_id", 54], ["value", 5]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1672 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1673 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1672 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1673 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1672 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1673 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1672 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 1672 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 1673 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1673 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 1673 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.258354"], ["name", "user1"], ["updated_at", "2015-01-19 20:20:05.258354"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.260523"], ["name", "user2"], ["updated_at", "2015-01-19 20:20:05.260523"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.262526"], ["updated_at", "2015-01-19 20:20:05.262526"], ["user_id", 67], ["value", 1]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.264976"], ["updated_at", "2015-01-19 20:20:05.264976"], ["user_id", 16730000000000055], ["value", 3]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.266982"], ["updated_at", "2015-01-19 20:20:05.266982"], ["user_id", 16720000000000067], ["value", 2]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.268663"], ["updated_at", "2015-01-19 20:20:05.268663"], ["user_id", 55], ["value", 4]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.270290"], ["updated_at", "2015-01-19 20:20:05.270290"], ["user_id", 55], ["value", 5]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1672 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1673 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1672 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1673 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1672 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1673 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 1672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 1673 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 1673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.289672"], ["name", "user1"], ["updated_at", "2015-01-19 20:20:05.289672"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.291245"], ["name", "user2"], ["updated_at", "2015-01-19 20:20:05.291245"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.292873"], ["updated_at", "2015-01-19 20:20:05.292873"], ["user_id", 68], ["value", 1]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.294811"], ["updated_at", "2015-01-19 20:20:05.294811"], ["user_id", 16730000000000056], ["value", 3]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.296746"], ["updated_at", "2015-01-19 20:20:05.296746"], ["user_id", 16720000000000068], ["value", 2]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.298773"], ["updated_at", "2015-01-19 20:20:05.298773"], ["user_id", 56], ["value", 4]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.300447"], ["updated_at", "2015-01-19 20:20:05.300447"], ["user_id", 56], ["value", 5]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.302765"], ["updated_at", "2015-01-19 20:20:05.302765"], ["user_id", 68]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:05.304287"], ["updated_at", "2015-01-19 20:20:05.304287"]] [shard 1672 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.306920"], ["updated_at", "2015-01-19 20:20:05.306920"], ["user_id", 69]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.314589"], ["name", "user1"], ["updated_at", "2015-01-19 20:20:05.314589"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.316511"], ["name", "user2"], ["updated_at", "2015-01-19 20:20:05.316511"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.318125"], ["updated_at", "2015-01-19 20:20:05.318125"], ["user_id", 70], ["value", 1]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.320017"], ["updated_at", "2015-01-19 20:20:05.320017"], ["user_id", 16730000000000057], ["value", 3]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.321822"], ["updated_at", "2015-01-19 20:20:05.321822"], ["user_id", 16720000000000070], ["value", 2]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.323301"], ["updated_at", "2015-01-19 20:20:05.323301"], ["user_id", 57], ["value", 4]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.324711"], ["updated_at", "2015-01-19 20:20:05.324711"], ["user_id", 57], ["value", 5]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1672 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1673 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1672 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1673 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1672 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1673 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1672 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [shard 1672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 1673 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 1673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.344569"], ["name", "user1"], ["updated_at", "2015-01-19 20:20:05.344569"]] [shard 1672 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.347317"], ["name", "user2"], ["updated_at", "2015-01-19 20:20:05.347317"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.350022"], ["updated_at", "2015-01-19 20:20:05.350022"], ["user_id", 71], ["value", 1]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.352233"], ["updated_at", "2015-01-19 20:20:05.352233"], ["user_id", 16730000000000058], ["value", 3]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.354335"], ["updated_at", "2015-01-19 20:20:05.354335"], ["user_id", 16720000000000071], ["value", 2]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.355857"], ["updated_at", "2015-01-19 20:20:05.355857"], ["user_id", 58], ["value", 4]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.357393"], ["updated_at", "2015-01-19 20:20:05.357393"], ["user_id", 58], ["value", 5]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1672 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1673 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1672 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1673 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1672 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1673 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [shard 1672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 1673 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 1673 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.374722"], ["name", "user1"], ["updated_at", "2015-01-19 20:20:05.374722"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.377126"], ["updated_at", "2015-01-19 20:20:05.377126"], ["user_id", 72], ["value", 1]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.379139"], ["updated_at", "2015-01-19 20:20:05.379139"], ["user_id", 72], ["value", 2]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.380858"], ["name", "user2"], ["updated_at", "2015-01-19 20:20:05.380858"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.383681"], ["updated_at", "2015-01-19 20:20:05.383681"], ["user_id", 59], ["value", 3]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.385683"], ["updated_at", "2015-01-19 20:20:05.385683"], ["user_id", 59], ["value", 4]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.388174"], ["updated_at", "2015-01-19 20:20:05.388174"], ["user_id", 59], ["value", 5]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 72]] [shard 1672 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1672 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 59]] [shard 1673 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1673 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (59, 60) [shard 1672 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (54, 55, 56) [shard 1673 master]  (0.2ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.403329"], ["name", "user1"], ["updated_at", "2015-01-19 20:20:05.403329"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.406042"], ["updated_at", "2015-01-19 20:20:05.406042"], ["user_id", 73], ["value", 1]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.408083"], ["updated_at", "2015-01-19 20:20:05.408083"], ["user_id", 73], ["value", 2]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.409858"], ["name", "user2"], ["updated_at", "2015-01-19 20:20:05.409858"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.412399"], ["updated_at", "2015-01-19 20:20:05.412399"], ["user_id", 60], ["value", 3]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.414368"], ["updated_at", "2015-01-19 20:20:05.414368"], ["user_id", 60], ["value", 4]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.416300"], ["updated_at", "2015-01-19 20:20:05.416300"], ["user_id", 60], ["value", 5]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 73]] [shard 1672 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1672 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 60]] [shard 1673 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1673 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (61, 62) [shard 1672 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (57, 58, 59) [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.427522"], ["name", "user1"], ["updated_at", "2015-01-19 20:20:05.427522"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.429998"], ["updated_at", "2015-01-19 20:20:05.429998"], ["user_id", 74], ["value", 1]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.431976"], ["updated_at", "2015-01-19 20:20:05.431976"], ["user_id", 74], ["value", 2]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.433509"], ["name", "user2"], ["updated_at", "2015-01-19 20:20:05.433509"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.435764"], ["updated_at", "2015-01-19 20:20:05.435764"], ["user_id", 61], ["value", 3]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.437635"], ["updated_at", "2015-01-19 20:20:05.437635"], ["user_id", 61], ["value", 4]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.439608"], ["updated_at", "2015-01-19 20:20:05.439608"], ["user_id", 61], ["value", 5]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 74]] [shard 1672 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1672 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 61]] [shard 1673 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1673 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (63, 64) [shard 1672 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (60, 61, 62) [shard 1673 master]  (0.2ms) ROLLBACK [shard 1673 master]  (0.2ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.451554"], ["name", "user1"], ["updated_at", "2015-01-19 20:20:05.451554"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.454029"], ["updated_at", "2015-01-19 20:20:05.454029"], ["user_id", 75], ["value", 1]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.455841"], ["updated_at", "2015-01-19 20:20:05.455841"], ["user_id", 75], ["value", 2]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.457395"], ["name", "user2"], ["updated_at", "2015-01-19 20:20:05.457395"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.459864"], ["updated_at", "2015-01-19 20:20:05.459864"], ["user_id", 62], ["value", 3]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.461712"], ["updated_at", "2015-01-19 20:20:05.461712"], ["user_id", 62], ["value", 4]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.463564"], ["updated_at", "2015-01-19 20:20:05.463564"], ["user_id", 62], ["value", 5]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 75]] [shard 1672 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 1672 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 62]] [shard 1673 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 1673 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (65, 66) [shard 1672 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (63, 64, 65) [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.475764"], ["name", "user1"], ["updated_at", "2015-01-19 20:20:05.475764"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.478375"], ["updated_at", "2015-01-19 20:20:05.478375"], ["user_id", 76], ["value", 1]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.480305"], ["updated_at", "2015-01-19 20:20:05.480305"], ["user_id", 76], ["value", 2]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.481982"], ["name", "user2"], ["updated_at", "2015-01-19 20:20:05.481982"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.484369"], ["updated_at", "2015-01-19 20:20:05.484369"], ["user_id", 63], ["value", 3]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.486219"], ["updated_at", "2015-01-19 20:20:05.486219"], ["user_id", 63], ["value", 4]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-01-19 20:20:05.488071"], ["updated_at", "2015-01-19 20:20:05.488071"], ["user_id", 63], ["value", 5]] [shard 1673 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 76]] [shard 1672 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1672 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 63]] [shard 1673 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1673 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (67, 68) [shard 1672 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (66, 67, 68) [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 1671]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 1672], ["name", "switchman_test_shard_1672"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 1673], ["name", "switchman_test_shard_1673"]] [shard 1671 master]  (0.3ms) COMMIT [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:05.507547"], ["updated_at", "2015-01-19 20:20:05.507547"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1672 LIMIT 1 [shard 1671 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 77]] [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:05.516969"], ["updated_at", "2015-01-19 20:20:05.516969"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 78]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 16720000000000078 ORDER BY "users"."id" ASC LIMIT 1 [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:05.525063"], ["updated_at", "2015-01-19 20:20:05.525063"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 79 LIMIT 1 [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:05.532179"], ["updated_at", "2015-01-19 20:20:05.532179"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (80) LIMIT 1 [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:05.538967"], ["updated_at", "2015-01-19 20:20:05.538967"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 81 LIMIT 1 [shard 1672 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master]  (0.1ms) BEGIN [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1672]] [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1673]] [shard 1671 master]  (0.1ms) BEGIN [shard 1673 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1672 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-01-19 20:20:05.546292"], ["updated_at", "2015-01-19 20:20:05.546292"]] [shard 1672 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1672 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1673 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-01-19 20:20:05.547787"], ["name", "multi-shard exists"], ["updated_at", "2015-01-19 20:20:05.547787"]] [shard 1673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1673 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 1671 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1671 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1672 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1673 master]  (0.1ms) ROLLBACK [shard 1673 master]  (0.1ms) ROLLBACK [shard 1672 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1671 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [shard 1671 master]  (0.1ms) BEGIN [shard 1671 master]  (0.1ms) ROLLBACK [shard 1671 master]  (5.5ms) DROP SCHEMA switchman_test_shard_1672 CASCADE [shard 1672 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1672]]  (0.1ms) COMMIT  (5.5ms) DROP SCHEMA switchman_test_shard_1673 CASCADE [shard 1673 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1673]]  (0.1ms) COMMIT  (2.2ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (18.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Connecting to database specified by database.yml  (0.6ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Connecting to database specified by database.yml  (0.6ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (23.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (1.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (3.0ms) CREATE SCHEMA switchman_test_shard_1695 [shard 1695 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 deploy]  (30.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1695 deploy]  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1695 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1695 deploy] Migrating to CreateUsers (20130403132607)  (30.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1695 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1695 deploy] Migrating to CreateAppendages (20130411202442)  (12.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1695 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1695 deploy] Migrating to CreateMirrorUsers (20130411202551)  (13.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1695 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1695 deploy] Migrating to CreateDigits (20131022202028)  (14.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1695 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1695 deploy] Migrating to CreateFeatures (20131206172923)  (13.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1695 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1695 deploy] Migrating to AddParentIdToUsers (20140123154135)  (6.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1695 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1695 deploy] Migrating to CreateRoots (20140219183820)  (8.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1695 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1695 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1695' WHERE "switchman_shards"."id" = 1695 [shard 1694 master]  (12.9ms) COMMIT [shard 1694 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 1694 master]  (0.2ms) COMMIT [shard 1694 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1696 [shard 1696 deploy]  (0.1ms) BEGIN [shard 1696 deploy]  (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1696 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1696 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1696 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1696 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1696 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1696 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1696 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1696 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1696 deploy] Migrating to CreateDigits (20131022202028)  (2.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1696 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1696 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1696 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1696 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1696 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1696 deploy] Migrating to CreateRoots (20140219183820)  (2.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1696 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1696 deploy]  (0.8ms) COMMIT [shard 1696 deploy]  (0.1ms) BEGIN [shard 1694 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1696' WHERE "switchman_shards"."id" = 1696 [shard 1694 master]  (0.2ms) COMMIT [shard 1694 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1694], ["name", nil]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1695], ["name", "switchman_test_shard_1695"]] [shard 1694 master]  (0.2ms) COMMIT [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1696], ["name", "switchman_test_shard_1696"]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1695 LIMIT 1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1696 LIMIT 1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11696 LIMIT 1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.0ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.0ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.0ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.0ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1694 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1697]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1697 LIMIT 1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.0ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1698]] [shard 1694 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.0ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1694 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.0ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '2' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", "public"]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1699 [shard 1699 deploy]  (0.1ms) BEGIN [shard 1699 deploy]  (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1699 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1699 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1699 deploy] Migrating to CreateUsers (20130403132607)  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1699 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1699 deploy] Migrating to CreateAppendages (20130411202442)  (3.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1699 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1699 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1699 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1699 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1699 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1699 deploy] Migrating to CreateFeatures (20131206172923)  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1699 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1699 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1699 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1699 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1699 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1699 deploy]  (0.8ms) COMMIT [shard 1699 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1699' WHERE "switchman_shards"."id" = 1699 [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) BEGIN [shard 1699 master] SQL (6.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00]] [shard 1699 master]  (5.8ms) COMMIT [shard 1699 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 1699 master]  (19.0ms) DROP SCHEMA switchman_test_shard_1699 CASCADE [shard 1699 deploy]  (0.6ms) SELECT COUNT(*) FROM "users" [shard 1699 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.2ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.0ms) ROLLBACK [shard 1694 master] SQL (3.0ms) DELETE FROM "switchman_shards" [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1694], ["name", nil]] [shard 1694 master]  (12.6ms) COMMIT [shard 1694 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1695], ["name", "switchman_test_shard_1695"]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1696], ["name", "switchman_test_shard_1696"]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master] SQL (11.1ms) DELETE FROM "switchman_shards" [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master]  (0.0ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master]  (0.0ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1694], ["name", nil]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1695], ["name", "switchman_test_shard_1695"]] [shard 1694 master]  (0.2ms) COMMIT [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1696], ["name", "switchman_test_shard_1696"]] [shard 1694 master]  (0.2ms) COMMIT [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '5' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", "public"]] [shard 1694 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1702 [shard 1702 deploy]  (0.1ms) BEGIN [shard 1702 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1702 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1702 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1702 deploy] Migrating to CreateUsers (20130403132607)  (2.6ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1702 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1702 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1702 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1702 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1702 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1702 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1702 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1702 deploy] Migrating to CreateFeatures (20131206172923)  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1702 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1702 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1702 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1702 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1702 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1702 deploy]  (0.7ms) COMMIT [shard 1702 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1702' WHERE "switchman_shards"."id" = 1702 [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) BEGIN [shard 1702 master] SQL (6.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00]] [shard 1702 master]  (11.3ms) COMMIT [shard 1702 master]  (4.6ms) DROP SCHEMA switchman_test_shard_1702 CASCADE [shard 1702 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1702]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '6' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.0ms) select sqlite_version(*) [shard 1703 deploy]  (0.0ms) begin transaction [shard 1703 deploy]  (0.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 1703 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1703 deploy]  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1703 deploy] Migrating to CreateUsers (20130403132607)  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1703 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1703 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1703 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1703 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1703 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1703 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1703 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1703 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1703 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1703 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 1703 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1703 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 1703 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1703 deploy]  (1.2ms) commit transaction [shard 1703 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_1703.sqlite3' WHERE "switchman_shards"."id" = 1703 [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.0ms) begin transaction [shard 1703 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00]] [shard 1703 master]  (0.6ms) commit transaction [shard 1703 master] Drop failed: No such file or directory @ unlink_internal - db/shard_1703.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1703]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 1694 master]  (0.2ms) CREATE SCHEMA switchman_test_shard_1704 [shard 1704 deploy]  (0.1ms) SAVEPOINT active_record_2 [shard 1704 deploy]  (2.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1704 deploy]  (6.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1704 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1704 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1704 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1704 deploy] Migrating to CreateAppendages (20130411202442)  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1704 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1704 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1704 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1704 deploy] Migrating to CreateDigits (20131022202028)  (3.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1704 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1704 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1704 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1704 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1704 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1704 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1704 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1704 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1704 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1704' WHERE "switchman_shards"."id" = 1704 [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1704 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00]] [shard 1704 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1704 master]  (2.8ms) DROP SCHEMA switchman_test_shard_1704 CASCADE [shard 1704 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1704]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (2.3ms) ROLLBACK [shard 1694 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master]  (0.0ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1694], ["name", nil]] [shard 1694 master]  (6.0ms) COMMIT [shard 1694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1695], ["name", "switchman_test_shard_1695"]] [shard 1694 master]  (5.9ms) COMMIT [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1696], ["name", "switchman_test_shard_1696"]] [shard 1694 master]  (5.7ms) COMMIT [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (1.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master] User Load (0.3ms) SELECT "users".* FROM "users" [shard 1695 master] User Load (0.6ms) SELECT "users".* FROM "users"  [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00]] [shard 1694 master]  (0.4ms) COMMIT [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.0ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1694 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-03 22:57:58.644377' [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1694 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-02-03 22:57:58.650328' [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00]] [shard 1694 master]  (0.4ms) COMMIT [shard 1694 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1694 master] SQL (0.6ms) UPDATE "users" SET "updated_at" = '2015-02-03 22:57:58.654825' [shard 1694 master] SQL (0.3ms) DELETE FROM "users" [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00]] [shard 1694 master]  (0.2ms) COMMIT [shard 1694 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1694 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-02-03 22:57:58.659681' [shard 1694 master] SQL (0.3ms) DELETE FROM "users" [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.0ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.0ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1694 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.0ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1694 master] SQL (0.1ms) DELETE FROM "users" [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1694 master] SQL (0.1ms) DELETE FROM "users" [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1694 master] SQL (0.4ms) DELETE FROM "users" [shard 1694 master] SQL (0.1ms) DELETE FROM "users" [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2818]] [shard 1694 master] CACHE (0.0ms) 1694::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2818]] CACHE (0.0ms) 1694::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2818]]  (0.1ms) BEGIN [shard 1694 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2015-02-03 22:57:58.719094' WHERE "users"."id" = 2818 [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2818]] [shard 1694 master] CACHE (0.0ms) 1694::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2818]] SQL (0.3ms) DELETE FROM "users" [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1694 master] SQL (0.3ms) DELETE FROM "users" [shard 1694 master] SQL (0.1ms) DELETE FROM "users" [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1694], ["name", nil]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1695], ["name", "switchman_test_shard_1695"]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1696], ["name", "switchman_test_shard_1696"]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master] SQL (1.1ms) DELETE FROM "switchman_shards" [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1694], ["name", nil]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.0ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1695], ["name", "switchman_test_shard_1695"]]  (0.3ms) COMMIT  (0.0ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1696], ["name", "switchman_test_shard_1696"]]  (0.3ms) COMMIT  (0.0ms) BEGIN Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1695 LIMIT 1 [shard 1694 master] SQL (0.3ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (2821) [shard 1694 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (3) [shard 1695 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2821]] [shard 1694 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 3]] [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 4 [shard 1695 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2822]] [shard 1694 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 4]] [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:58 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2824) [shard 1694 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 7 LIMIT 1 [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1694], ["name", nil]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1695], ["name", "switchman_test_shard_1695"]] [shard 1694 master]  (0.2ms) COMMIT [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1696], ["name", "switchman_test_shard_1696"]] [shard 1694 master]  (0.2ms) COMMIT [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (19.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 2826], ["value", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (2.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 2827], ["value", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1695 LIMIT 1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 2828], ["value", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 2829], ["value", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 2830], ["value", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 2831], ["value", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 2832], ["value", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 2833], ["value", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 2834], ["value", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 2835], ["value", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 2836], ["value", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 2837], ["value", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2837], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2838], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2838]] [shard 1694 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2837 LIMIT 1 [shard 1694 master]  (6.1ms) SHOW max_identifier_length [shard 1694 master] User Load (0.5ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 2837 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 2840], ["value", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 2841], ["value", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 2842], ["value", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 2843], ["value", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 1695 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1694], ["name", nil]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1695], ["name", "switchman_test_shard_1695"]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1696], ["name", "switchman_test_shard_1696"]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1694], ["name", nil]] [shard 1694 master]  (0.2ms) COMMIT [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1695], ["name", "switchman_test_shard_1695"]] [shard 1694 master]  (0.2ms) COMMIT [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1696], ["name", "switchman_test_shard_1696"]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:59 UTC +00:00]] [shard 1695 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.0ms) ROLLBACK [shard 1695 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1694], ["name", nil]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1695], ["name", "switchman_test_shard_1695"]] [shard 1694 master]  (0.2ms) COMMIT [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1696], ["name", "switchman_test_shard_1696"]] [shard 1694 master]  (0.2ms) COMMIT [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (1694, 1695) AND (id IN (1695,1696)) [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.0ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.0ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.0ms) ROLLBACK [shard 1694 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1694], ["name", nil]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1695], ["name", "switchman_test_shard_1695"]] [shard 1694 master]  (0.2ms) COMMIT [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1696], ["name", "switchman_test_shard_1696"]] [shard 1694 master]  (0.2ms) COMMIT [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1695 LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1696 LIMIT 1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (24.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["owner_id", 2844], ["owner_type", "User"], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["value", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master] Feature Load (0.3ms) SELECT owner_id FROM "features" WHERE "features"."id" = 133 LIMIT 1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1694], ["name", nil]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1695], ["name", "switchman_test_shard_1695"]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1696], ["name", "switchman_test_shard_1696"]] [shard 1694 master]  (0.2ms) COMMIT [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1695 LIMIT 1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master] SQL (5.0ms) DELETE FROM "switchman_shards" [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1694], ["name", nil]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1695], ["name", "switchman_test_shard_1695"]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1696], ["name", "switchman_test_shard_1696"]] [shard 1694 master]  (0.2ms) COMMIT [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master] Switchman::Shard Load (1.0ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1694 AND id<1695) OR (id>=1696 AND id<1697)) ORDER BY id [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1694)) [shard 1694 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1694 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.0ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1694)) [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1694 AND id<=1695)) AND (id NOT IN (1694)) [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1695)) ORDER BY id [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1695 AND id<=1695)) AND (id NOT IN (1694)) [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1694 AND id<1695)) [shard 1694 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.0ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1694)) [shard 1694 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.0ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=1695)) ORDER BY id [shard 1694 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ('f') [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1694 AND id<=1695)) ORDER BY id [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1694], ["name", nil]] [shard 1694 master]  (0.2ms) COMMIT [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1695], ["name", "switchman_test_shard_1695"]] [shard 1694 master]  (0.2ms) COMMIT [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1696], ["name", "switchman_test_shard_1696"]] [shard 1694 master]  (0.2ms) COMMIT [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 18], ["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1695 LIMIT 1 [shard 1694 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 28 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1696 LIMIT 1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 31], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 21]] [shard 1695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 31 LIMIT 1 [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 32], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 33], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 32]] [shard 1695 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 32 AND "users"."id" = 34 LIMIT 1 [shard 1695 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 32]] [shard 1695 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 32 AND "users"."id" = 16960000000000022 LIMIT 1 [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 36 AND "appendages"."id" = $1 LIMIT 1 [["id", 22]] [shard 1695 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 24 AND "appendages"."id" = $1 LIMIT 1 [["id", 16950000000000022]] [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", nil], ["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["appendage_id", 24], ["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["id", 16960000000000001], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 39 AND "digits"."id" = $1 LIMIT 1 [["id", 16960000000000001]] [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 41 [shard 1695 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]] [shard 1695 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 41 [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 42], ["value", 1]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 16950000000000042], ["value", 2]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 42 [shard 1695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 42]] [shard 1695 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 42 [shard 1695 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 16950000000000042 [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 27], ["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 16950000000000043], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 20], ["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["value", 2]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 43 AND "digits"."value" IS NULL [shard 1695 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 16950000000000043 AND "digits"."value" IS NULL [shard 1696 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 43]] [shard 1695 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 43 AND "digits"."value" IS NULL [shard 1695 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 16950000000000043 AND "digits"."value" IS NULL [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 28], ["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 28], ["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["value", 1]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 16950000000000044], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 21], ["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["value", 2]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (1.6ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 44 AND (digits.value IS NOT NULL) [shard 1695 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 16950000000000044 AND (digits.value IS NOT NULL) [shard 1696 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 44]] [shard 1695 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 44 AND (digits.value IS NOT NULL) [shard 1695 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 16950000000000044 AND (digits.value IS NOT NULL) [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 29], ["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["value", 1]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 16950000000000045], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 22], ["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["value", 2]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 45 [shard 1695 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 45]] [shard 1695 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 45 [shard 1695 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 16950000000000045 [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 46], ["value", 1]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 16950000000000046], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 46 AND "appendages"."value" IS NULL [shard 1695 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 16950000000000046 AND "appendages"."value" IS NULL [shard 1696 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 1695 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 46 AND "appendages"."value" IS NULL [shard 1695 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 16950000000000046 AND "appendages"."value" IS NULL [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 31], ["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 16950000000000047], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 24], ["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["value", 2]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 47 AND "digits"."value" IS NULL [shard 1695 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 16950000000000047 AND "digits"."value" IS NULL [shard 1696 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 47]] [shard 1695 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 47 AND "digits"."value" IS NULL [shard 1695 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 16950000000000047 AND "digits"."value" IS NULL [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 48], ["value", 1]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 16950000000000048], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 48], ["value", 2]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 48]] [shard 1695 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 48 AND (appendages.value IS NOT NULL) [shard 1695 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 16950000000000048 AND (appendages.value IS NOT NULL) [shard 1696 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 48]] [shard 1695 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 48 AND (appendages.value IS NOT NULL) [shard 1695 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 16950000000000048 AND (appendages.value IS NOT NULL) [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 49 LIMIT 1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 34]] [shard 1695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 49 LIMIT 1 [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 16960000000000038], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 35]] [shard 1695 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 38 LIMIT 1 [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (2.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1405], ["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["value", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 16940000000001405], ["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1405 LIMIT 1 [shard 1694 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1405) [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 16950000000000052], ["value", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1406], ["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["value", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 16960000000000040], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 16950000000000036], ["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["value", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits"  [shard 1694 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (1406) [shard 1694 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (36) [shard 1695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (52) [shard 1695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) [shard 1696 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 52 [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 16950000000000053], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 16960000000000041], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 1695 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (53) [shard 1695 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (16950000000000053) [shard 1696 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [shard 1696 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (41) [shard 1696 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 37 [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 16950000000000054], ["value", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 16960000000000042], ["value", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 2848], ["value", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 1694 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 1695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [shard 1696 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2848) [shard 1694 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 54 [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 16950000000000055], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 16950000000000055], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 39], ["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 28], ["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 16960000000000028], ["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 16960000000000029], ["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 16960000000000043], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 16950000000000040], ["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 16960000000000030], ["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 31], ["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 1695 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (55) [shard 1695 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (16950000000000055) [shard 1696 master] Digit Load (0.1ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (39) [shard 1695 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (28, 29) [shard 1696 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) [shard 1696 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (43) [shard 1696 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (30, 31) [shard 1696 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 8 [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.2ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (6.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["owner_id", 56], ["owner_type", "User"], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["value", 1]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (5.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["owner_id", 16950000000000056], ["owner_type", "User"], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["value", 2]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 56 AND "features"."owner_type" = 'User' [shard 1695 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 56]] [shard 1695 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 56 AND "features"."owner_type" = 'User' [shard 1695 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 16950000000000056 AND "features"."owner_type" = 'User' [shard 1696 master]  (0.2ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:57:59 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.3ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["owner_id", 1410], ["owner_type", "Appendage"], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["value", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 134]] [shard 1694 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1410 LIMIT 1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master]  (0.3ms) UPDATE "features" SET "owner_id" = 16950000000000057, "owner_type" = 'User', "updated_at" = '2015-02-03 22:58:00.005977' WHERE "features"."id" = 134 [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 134]] [shard 1694 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (1.9ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 16960000000000046]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master] Root Load (0.2ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 65]] [shard 1694 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 46 LIMIT 1 [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1694], ["name", nil]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1695], ["name", "switchman_test_shard_1695"]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1696], ["name", "switchman_test_shard_1696"]] [shard 1694 master]  (0.2ms) COMMIT [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 60], ["value", 1]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 60], ["value", 2]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 48], ["value", 3]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 48], ["value", 4]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 48], ["value", 5]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 60 [shard 1695 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 1695 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 48 [shard 1696 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 1696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1695 LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1696 LIMIT 1 [shard 1694 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (41, 42) [shard 1695 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (32, 33, 34) [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 61], ["value", 1]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 61], ["value", 2]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 49], ["value", 3]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 49], ["value", 4]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 49], ["value", 5]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 61 [shard 1695 master]  (0.1ms) SELECT COUNT(*) FROM "appendages"  [shard 1695 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 49 [shard 1696 master]  (0.1ms) SELECT COUNT(*) FROM "appendages"  [shard 1696 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (43, 44) [shard 1695 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (35, 36, 37) [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 62], ["value", 1]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 62], ["value", 2]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 50], ["value", 3]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 50], ["value", 4]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 50], ["value", 5]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.8ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 62 [shard 1695 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 1695 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 50 [shard 1696 master]  (0.1ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 1696 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (45, 46) [shard 1695 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (38, 39, 40) [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 63], ["value", 1]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 63], ["value", 2]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 51], ["value", 3]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 51], ["value", 4]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 51], ["value", 5]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.7ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 63 [shard 1695 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 1695 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 51 [shard 1696 master]  (0.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 1696 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (47, 48) [shard 1695 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (41, 42, 43) [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 64], ["value", 1]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 64], ["value", 2]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 52], ["value", 3]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 52], ["value", 4]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 52], ["value", 5]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 64 [shard 1695 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 1695 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 52 [shard 1696 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 1696 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (49, 50) [shard 1695 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (44, 45, 46) [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 65], ["value", 1]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 16960000000000053], ["value", 3]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 16950000000000065], ["value", 2]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 53], ["value", 4]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 53], ["value", 5]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1695 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1696 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1695 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1696 master]  (0.1ms) SHOW max_identifier_length [shard 1696 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1695 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1696 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 1695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 1696 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1696 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 1696 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 66], ["value", 1]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 16960000000000054], ["value", 3]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 16950000000000066], ["value", 2]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 54], ["value", 4]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 54], ["value", 5]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1695 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1696 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1695 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1696 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1695 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1696 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 1695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 1696 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1696 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 1696 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 67], ["value", 1]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 16960000000000055], ["value", 3]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 16950000000000067], ["value", 2]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 55], ["value", 4]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 55], ["value", 5]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1695 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1696 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1695 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1696 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1695 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1696 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 1695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 1696 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1696 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 1696 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 68], ["value", 1]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 16960000000000056], ["value", 3]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 16950000000000068], ["value", 2]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 56], ["value", 4]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 56], ["value", 5]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1695 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1696 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1695 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1696 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1695 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1696 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (68) [shard 1695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 1696 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1696 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 1696 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (68) [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 69], ["value", 1]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 16960000000000057], ["value", 3]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 16950000000000069], ["value", 2]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 57], ["value", 4]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 57], ["value", 5]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 70], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 71], ["value", 1]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 16960000000000058], ["value", 3]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 16950000000000071], ["value", 2]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 58], ["value", 4]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 58], ["value", 5]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1695 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1696 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1695 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1696 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1695 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1696 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [shard 1695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 1696 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1696 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 1696 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 72], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 65 [shard 1695 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 65 [shard 1696 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 65 [shard 1695 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 65 [shard 1696 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 65 [shard 1695 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 65 [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 73], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 66 [shard 1695 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 66 [shard 1696 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 66 [shard 1695 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 66 [shard 1696 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 66 [shard 1695 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 66 [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 74], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master] SQL (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (2849) [shard 1694 master] SQL (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (74) [shard 1695 master] SQL (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (61) [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 75], ["value", nil]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", 62], ["value", nil]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (75) [shard 1695 master] SQL (0.1ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (62) [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1694], ["name", nil]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1695], ["name", "switchman_test_shard_1695"]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1696], ["name", "switchman_test_shard_1696"]] [shard 1694 master]  (0.2ms) COMMIT [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1694], ["name", nil]] [shard 1694 master]  (0.2ms) COMMIT [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1695], ["name", "switchman_test_shard_1695"]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1696], ["name", "switchman_test_shard_1696"]] [shard 1694 master]  (0.2ms) COMMIT [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1695 LIMIT 1 [shard 1694 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (77) LIMIT 1 [shard 1695 master]  (0.2ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 78 LIMIT 1 [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 79]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 16950000000000079 LIMIT 1 [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 1694 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1694 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1695 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 81 LIMIT 1 [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1695 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1695 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1695 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 82]] [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1694], ["name", nil]] [shard 1694 master]  (0.4ms) COMMIT [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1695], ["name", "switchman_test_shard_1695"]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1696], ["name", "switchman_test_shard_1696"]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.0ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.0ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (1.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["user_id", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 65]] [shard 1694 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 65]] [shard 1694 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 65 LIMIT 1 [shard 1695 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1695 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.0ms) ROLLBACK [shard 1694 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1694], ["name", nil]] [shard 1694 master]  (0.2ms) COMMIT [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1695], ["name", "switchman_test_shard_1695"]] [shard 1694 master]  (0.2ms) COMMIT [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1696], ["name", "switchman_test_shard_1696"]] [shard 1694 master]  (0.2ms) COMMIT [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1694], ["name", nil]] [shard 1694 master]  (0.2ms) COMMIT [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1695], ["name", "switchman_test_shard_1695"]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1696], ["name", "switchman_test_shard_1696"]] [shard 1694 master]  (0.2ms) COMMIT [shard 1694 master]  (0.0ms) BEGIN [shard 1696 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1696 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1696 master]  (0.1ms) SAVEPOINT active_record_2 [shard 1696 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 03 Feb 2015 22:58:00 UTC +00:00]] [shard 1696 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1696 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master] SQL (6.1ms) DELETE FROM "switchman_shards" [shard 1694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 1694 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1694], ["name", nil]] [shard 1694 master]  (6.0ms) COMMIT [shard 1694 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1695], ["name", "switchman_test_shard_1695"]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1696], ["name", "switchman_test_shard_1696"]] [shard 1694 master]  (0.3ms) COMMIT [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.1ms) ROLLBACK [shard 1696 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1695]] [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1696]] [shard 1694 master]  (0.1ms) BEGIN [shard 1696 master]  (0.0ms) ROLLBACK [shard 1696 master]  (0.0ms) ROLLBACK [shard 1694 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1694 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "17"], ["default", false], ["name", "non_existent_shard"]] [shard 1694 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "17"], ["default", false], ["name", nil]] [shard 1694 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 1707 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.7ms) SELECT COUNT(*) FROM "users" [shard 1708 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "18"], ["default", false], ["name", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.0ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "19"], ["default", false], ["name", nil]] [shard 1694 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.0ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "20"], ["default", false], ["name", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "21"], ["default", false], ["name", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "22"], ["default", false], ["name", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.0ms) BEGIN [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "23"], ["default", false], ["name", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master]  (0.1ms) ROLLBACK [shard 1694 master]  (0.1ms) BEGIN [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "24"], ["default", false], ["name", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1694 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "24"], ["default", false], ["name", nil]] [shard 1694 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1694 master]  (0.1ms) ROLLBACK [shard 1694 master]  (6.4ms) DROP SCHEMA switchman_test_shard_1695 CASCADE [shard 1695 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1695]]  (0.1ms) COMMIT  (5.4ms) DROP SCHEMA switchman_test_shard_1696 CASCADE [shard 1696 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1696]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.6ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (1.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (6.2ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (12.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.1ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (1.2ms) CREATE SCHEMA switchman_test_shard_1718 [shard 1718 deploy]  (0.6ms) SAVEPOINT active_record_1 [shard 1718 deploy]  (12.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1718 deploy]  (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1718 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1718 deploy] Migrating to CreateUsers (20130403132607)  (20.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1718 deploy]  (4.9ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1718 deploy] Migrating to CreateAppendages (20130411202442)  (7.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1718 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1718 deploy] Migrating to CreateMirrorUsers (20130411202551)  (7.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1718 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1718 deploy] Migrating to CreateDigits (20131022202028)  (7.3ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1718 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1718 deploy] Migrating to CreateFeatures (20131206172923)  (7.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1718 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1718 deploy] Migrating to AddParentIdToUsers (20140123154135)  (22.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1718 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1718 deploy] Migrating to CreateRoots (20140219183820)  (13.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1718 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1718 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1718' WHERE "switchman_shards"."id" = 1718 [shard 1717 master]  (5.1ms) COMMIT [shard 1717 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 1717 master]  (0.2ms) COMMIT [shard 1717 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1719 [shard 1719 deploy]  (0.1ms) BEGIN [shard 1719 deploy]  (3.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1719 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1719 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1719 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1719 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1719 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1719 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1719 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1719 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1719 deploy] Migrating to CreateDigits (20131022202028)  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1719 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1719 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1719 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1719 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1719 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1719 deploy] Migrating to CreateRoots (20140219183820)  (2.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1719 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1719 deploy]  (1.0ms) COMMIT [shard 1719 deploy]  (0.1ms) BEGIN [shard 1717 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1719' WHERE "switchman_shards"."id" = 1719 [shard 1717 master]  (0.4ms) COMMIT [shard 1717 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1717], ["name", nil]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1718], ["name", "switchman_test_shard_1718"]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1719], ["name", "switchman_test_shard_1719"]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:09 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:09 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1718 LIMIT 1 [shard 1717 master] SQL (0.3ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (2850) [shard 1717 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (1) [shard 1718 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2850]] [shard 1717 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:09 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:09 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 2 [shard 1718 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2851]] [shard 1717 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2]] [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:09 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:09 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2852) [shard 1717 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (3) [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:09 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:09 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 4 LIMIT 1 [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:09 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:09 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:09 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master]  (0.0ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1717], ["name", nil]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1718], ["name", "switchman_test_shard_1718"]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1719], ["name", "switchman_test_shard_1719"]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '2' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", "public"]] [shard 1717 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1720 [shard 1720 deploy]  (0.1ms) BEGIN [shard 1720 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1720 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1720 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1720 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1720 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1720 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1720 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1720 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.3ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1720 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1720 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1720 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1720 deploy] Migrating to CreateFeatures (20131206172923)  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1720 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1720 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1720 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1720 deploy] Migrating to CreateRoots (20140219183820)  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1720 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1720 deploy]  (0.9ms) COMMIT [shard 1720 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1720' WHERE "switchman_shards"."id" = 1720 [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) BEGIN [shard 1720 master] SQL (6.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:09 UTC +00:00]] [shard 1720 master]  (5.8ms) COMMIT [shard 1720 master]  (12.7ms) DROP SCHEMA switchman_test_shard_1720 CASCADE [shard 1720 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1720]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.2ms) ROLLBACK [shard 1719 master]  (0.3ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '3' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.0ms) select sqlite_version(*) [shard 1721 deploy]  (0.0ms) begin transaction [shard 1721 deploy]  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 1721 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1721 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1721 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1721 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1721 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1721 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1721 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1721 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1721 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1721 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1721 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1721 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1721 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 1721 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1721 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1721 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1721 deploy]  (1.0ms) commit transaction [shard 1721 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_1721.sqlite3' WHERE "switchman_shards"."id" = 1721 [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.0ms) begin transaction [shard 1721 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 05 Feb 2015 21:09:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:09 UTC +00:00]] [shard 1721 master]  (0.7ms) commit transaction [shard 1721 master] Drop failed: No such file or directory @ unlink_internal - db/shard_1721.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1721]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 1717 master]  (0.1ms) CREATE SCHEMA switchman_test_shard_1722 [shard 1722 deploy]  (0.1ms) SAVEPOINT active_record_2 [shard 1722 deploy]  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1722 deploy]  (6.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1722 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1722 deploy] Migrating to CreateUsers (20130403132607)  (7.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1722 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1722 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1722 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1722 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1722 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1722 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1722 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1722 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1722 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1722 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1722 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1722 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1722 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1722 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1722 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1722' WHERE "switchman_shards"."id" = 1722 [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1722 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:09 UTC +00:00]] [shard 1722 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1722 master]  (2.6ms) DROP SCHEMA switchman_test_shard_1722 CASCADE [shard 1722 deploy]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1722]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (2.0ms) ROLLBACK [shard 1717 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master]  (0.0ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master]  (0.0ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master]  (0.0ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master]  (0.0ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master]  (0.0ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master]  (0.0ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master]  (0.0ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master]  (0.0ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master]  (0.0ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1717], ["name", nil]]  (6.0ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1718], ["name", "switchman_test_shard_1718"]]  (6.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1719], ["name", "switchman_test_shard_1719"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:10:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:10:09 UTC +00:00]] [shard 1718 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.0ms) ROLLBACK [shard 1718 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1717], ["name", nil]] [shard 1717 master]  (5.9ms) COMMIT [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1718], ["name", "switchman_test_shard_1718"]] [shard 1717 master]  (6.0ms) COMMIT [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1719], ["name", "switchman_test_shard_1719"]] [shard 1717 master]  (6.1ms) COMMIT [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1717 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1719 LIMIT 1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11719 LIMIT 1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.0ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.0ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.0ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1718 LIMIT 1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '10' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", "public"]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (6.3ms) CREATE SCHEMA switchman_test_shard_1723 [shard 1723 deploy]  (0.1ms) BEGIN [shard 1723 deploy]  (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 1723 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1723 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1723 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1723 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1723 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1723 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1723 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1723 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1723 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1723 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1723 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1723 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1723 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1723 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1723 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 1723 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1723 deploy]  (0.6ms) COMMIT [shard 1723 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1723' WHERE "switchman_shards"."id" = 1723 [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) BEGIN [shard 1723 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:09 UTC +00:00]] [shard 1723 master]  (0.2ms) COMMIT [shard 1723 master]  (0.3ms) SELECT COUNT(*) FROM "users" [shard 1723 master]  (5.3ms) DROP SCHEMA switchman_test_shard_1723 CASCADE [shard 1723 deploy]  (1.1ms) SELECT COUNT(*) FROM "users" [shard 1723 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.0ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.0ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.0ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1724]] [shard 1717 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1724 LIMIT 1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1725]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.0ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.0ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.0ms) ROLLBACK [shard 1717 master] SQL (1.3ms) DELETE FROM "switchman_shards" [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1717], ["name", nil]] [shard 1717 master]  (0.6ms) COMMIT [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1718], ["name", "switchman_test_shard_1718"]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1719], ["name", "switchman_test_shard_1719"]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ('f') [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.2ms) BEGIN [shard 1719 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1717 AND id<=1718)) AND (id NOT IN (1717)) [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1717)) [shard 1717 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 1717 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.0ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1717)) [shard 1717 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=1718)) ORDER BY id [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1717)) [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1717 AND id<=1718)) ORDER BY id [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1717 AND id<1718)) [shard 1717 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1717 AND id<1718) OR (id>=1719 AND id<1720)) ORDER BY id [shard 1717 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1718)) ORDER BY id [shard 1717 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.0ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1718 AND id<=1718)) AND (id NOT IN (1717)) [shard 1717 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.0ms) ROLLBACK [shard 1717 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1717], ["name", nil]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1718], ["name", "switchman_test_shard_1718"]] [shard 1717 master]  (0.2ms) COMMIT [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1719], ["name", "switchman_test_shard_1719"]] [shard 1717 master]  (0.2ms) COMMIT [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (1.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 2855], ["value", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 2856], ["value", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1718 LIMIT 1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 2857], ["value", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 2858], ["value", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 2859], ["value", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 2860], ["value", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 2861], ["value", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.2ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 2862], ["value", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2862], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2863], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2863]] [shard 1717 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2862 LIMIT 1 [shard 1717 master]  (0.1ms) SHOW max_identifier_length [shard 1717 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 2862 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 2865], ["value", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.3ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 2866], ["value", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 2867], ["value", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 2868], ["value", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.2ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 2869], ["value", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 2870], ["value", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 2871], ["value", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1717 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 2872], ["value", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1717], ["name", nil]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1718], ["name", "switchman_test_shard_1718"]] [shard 1717 master]  (0.4ms) COMMIT [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1719], ["name", "switchman_test_shard_1719"]] [shard 1717 master]  (0.4ms) COMMIT [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1717 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master]  (0.0ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1717], ["name", nil]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1718], ["name", "switchman_test_shard_1718"]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1719], ["name", "switchman_test_shard_1719"]] [shard 1717 master]  (0.2ms) COMMIT [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master]  (0.5ms) SELECT COUNT(*) FROM "users" [shard 1719 master]  (0.1ms) SAVEPOINT active_record_2 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1719 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) SELECT COUNT(*) FROM "users" [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master] SQL (6.0ms) DELETE FROM "switchman_shards" [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1717], ["name", nil]] [shard 1717 master]  (6.0ms) COMMIT [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1718], ["name", "switchman_test_shard_1718"]] [shard 1717 master]  (5.6ms) COMMIT [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1719], ["name", "switchman_test_shard_1719"]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", nil], ["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1719 LIMIT 1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (6.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["appendage_id", 17], ["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["id", 17190000000000001], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master] Digit Load (0.6ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 23 AND "digits"."id" = $1 LIMIT 1 [["id", 17190000000000001]] [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 26], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1718 LIMIT 1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 27], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 19]] [shard 1718 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 27 LIMIT 1 [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 29 AND "appendages"."id" = $1 LIMIT 1 [["id", 20]] [shard 1718 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 25 AND "appendages"."id" = $1 LIMIT 1 [["id", 17180000000000020]] [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 31], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 31 [shard 1718 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 31]] [shard 1718 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 31 [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 23], ["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 32 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 33], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 34], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 33]] [shard 1718 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 33 AND "users"."id" = 35 LIMIT 1 [shard 1718 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 33]] [shard 1718 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 33 AND "users"."id" = 17190000000000030 LIMIT 1 [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 31], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 37], ["value", 1]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 17180000000000037], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 37], ["value", 2]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 37]] [shard 1718 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 37 AND (appendages.value IS NOT NULL) [shard 1718 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 17180000000000037 AND (appendages.value IS NOT NULL) [shard 1719 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 37]] [shard 1718 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 37 AND (appendages.value IS NOT NULL) [shard 1718 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 17180000000000037 AND (appendages.value IS NOT NULL) [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 27], ["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 17180000000000038], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 19], ["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["value", 2]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 38 AND "digits"."value" IS NULL [shard 1718 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17180000000000038 AND "digits"."value" IS NULL [shard 1719 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 38]] [shard 1718 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 38 AND "digits"."value" IS NULL [shard 1718 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17180000000000038 AND "digits"."value" IS NULL [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 28], ["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["value", 1]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 17180000000000039], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 20], ["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["value", 2]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 39 [shard 1718 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 39]] [shard 1718 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 39 [shard 1718 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17180000000000039 [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 29], ["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 29], ["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["value", 1]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 17180000000000040], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 21], ["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["value", 2]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 40 AND (digits.value IS NOT NULL) [shard 1718 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17180000000000040 AND (digits.value IS NOT NULL) [shard 1719 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 40]] [shard 1718 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 40 AND (digits.value IS NOT NULL) [shard 1718 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17180000000000040 AND (digits.value IS NOT NULL) [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 30], ["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 17180000000000041], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 22], ["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["value", 2]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 41 AND "digits"."value" IS NULL [shard 1718 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17180000000000041 AND "digits"."value" IS NULL [shard 1719 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]] [shard 1718 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 41 AND "digits"."value" IS NULL [shard 1718 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17180000000000041 AND "digits"."value" IS NULL [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 42], ["value", 1]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 17180000000000042], ["value", 2]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 42 [shard 1718 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 42]] [shard 1718 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 42 [shard 1718 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 17180000000000042 [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 43], ["value", 1]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 17180000000000043], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 43 AND "appendages"."value" IS NULL [shard 1718 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 17180000000000043 AND "appendages"."value" IS NULL [shard 1719 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 43]] [shard 1718 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 43 AND "appendages"."value" IS NULL [shard 1718 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 17180000000000043 AND "appendages"."value" IS NULL [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 44 LIMIT 1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 33]] [shard 1718 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 44 LIMIT 1 [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 17190000000000040], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 34]] [shard 1718 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 40 LIMIT 1 [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (6.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["owner_id", 46], ["owner_type", "User"], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["value", 1]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (12.1ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["owner_id", 17180000000000046], ["owner_type", "User"], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["value", 2]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 46 AND "features"."owner_type" = 'User' [shard 1718 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 1718 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 46 AND "features"."owner_type" = 'User' [shard 1718 master] Feature Load (0.6ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 17180000000000046 AND "features"."owner_type" = 'User' [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["owner_id", 1427], ["owner_type", "Appendage"], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["value", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 135]] [shard 1717 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1427 LIMIT 1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master]  (0.2ms) UPDATE "features" SET "owner_id" = 17180000000000047, "owner_type" = 'User', "updated_at" = '2015-02-05 21:09:10.852265' WHERE "features"."id" = 135 [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 135]] [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.7ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 17190000000000043]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 66]] [shard 1717 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 43 LIMIT 1 [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.2ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1428], ["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["value", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 17170000000001428], ["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1428 LIMIT 1 [shard 1717 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1428) [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 17180000000000050], ["value", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1429], ["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["value", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 17190000000000045], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 17180000000000035], ["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["value", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 1717 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (1429) [shard 1717 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (35) [shard 1718 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (50) [shard 1718 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [shard 1719 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 50 [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 17180000000000051], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 17180000000000051], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 36], ["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 26], ["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 17190000000000026], ["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 17190000000000027], ["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 17190000000000046], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 17180000000000037], ["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 17190000000000028], ["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 29], ["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (51) [shard 1718 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (51) [shard 1718 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (17180000000000051) [shard 1719 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (36) [shard 1718 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (26, 27) [shard 1719 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (46) [shard 1719 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (46) [shard 1719 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (28, 29) [shard 1719 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 8 [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 17180000000000052], ["value", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 17190000000000047], ["value", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 2873], ["value", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 1717 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (52) [shard 1718 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (47) [shard 1719 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2873) [shard 1717 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 52 [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 17180000000000053], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["user_id", 17190000000000048], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 1718 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (53) [shard 1718 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (17180000000000053) [shard 1719 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (48) [shard 1719 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (48) [shard 1719 master] SQL (0.1ms) DELETE FROM "appendages" WHERE "appendages"."id" = 38 [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:10 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1717], ["name", nil]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1718], ["name", "switchman_test_shard_1718"]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1719], ["name", "switchman_test_shard_1719"]] [shard 1717 master]  (0.2ms) COMMIT [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 55], ["value", 1]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 55], ["value", 2]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 50], ["value", 3]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 50], ["value", 4]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 50], ["value", 5]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 55 [shard 1718 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1718 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 50 [shard 1719 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1719 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1718 LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1719 LIMIT 1 [shard 1717 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (40, 41) [shard 1718 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (31, 32, 33) [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 56], ["value", 1]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 56], ["value", 2]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 51], ["value", 3]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 51], ["value", 4]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 51], ["value", 5]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 56 [shard 1718 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 1718 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 51 [shard 1719 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 1719 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (42, 43) [shard 1718 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (34, 35, 36) [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 57], ["value", 1]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 57], ["value", 2]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 52], ["value", 3]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 52], ["value", 4]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 52], ["value", 5]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 57 [shard 1718 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1718 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 52 [shard 1719 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1719 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (44, 45) [shard 1718 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (37, 38, 39) [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 58], ["value", 1]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 58], ["value", 2]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 53], ["value", 3]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 53], ["value", 4]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 53], ["value", 5]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 58 [shard 1718 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1718 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 53 [shard 1719 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1719 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (46, 47) [shard 1718 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (40, 41, 42) [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 59], ["value", 1]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 59], ["value", 2]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 54], ["value", 3]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 54], ["value", 4]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 54], ["value", 5]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 59 [shard 1718 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1718 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 54 [shard 1719 master]  (0.1ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1719 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (48, 49) [shard 1718 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (43, 44, 45) [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 1718 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 46 [shard 1719 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 1718 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 46 [shard 1719 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 50 [shard 1718 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 46 [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (2874) [shard 1717 master] SQL (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (61) [shard 1718 master] SQL (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (56) [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 62], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (62) [shard 1718 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (57) [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 63], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 53 [shard 1718 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 49 [shard 1719 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 53 [shard 1718 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 49 [shard 1719 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 53 [shard 1718 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 49 [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 64], ["value", 1]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 17190000000000059], ["value", 3]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 17180000000000064], ["value", 2]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 59], ["value", 4]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 59], ["value", 5]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1718 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1719 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1718 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1719 master]  (0.1ms) SHOW max_identifier_length [shard 1719 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1718 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1719 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1718 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [shard 1718 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 1719 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1719 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 1719 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 65], ["value", 1]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 17190000000000060], ["value", 3]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 17180000000000065], ["value", 2]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 60], ["value", 4]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 60], ["value", 5]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1718 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1719 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1718 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1719 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1718 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1719 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1718 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 1718 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [shard 1719 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1719 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [shard 1719 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 66], ["value", 1]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 17190000000000061], ["value", 3]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 17180000000000066], ["value", 2]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 61], ["value", 4]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 61], ["value", 5]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1718 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1719 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1718 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1719 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1718 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1719 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1718 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 1718 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [shard 1719 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1719 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [shard 1719 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 67], ["value", 1]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 17190000000000062], ["value", 3]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 17180000000000067], ["value", 2]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 62], ["value", 4]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 62], ["value", 5]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 67], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 68], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 69], ["value", 1]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 17190000000000063], ["value", 3]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 17180000000000069], ["value", 2]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 63], ["value", 4]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 63], ["value", 5]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1718 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1719 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1718 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1719 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1718 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1719 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1718 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (69) [shard 1718 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (63) [shard 1719 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1719 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (63) [shard 1719 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (69) [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 70], ["value", 1]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 17190000000000064], ["value", 3]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 17180000000000070], ["value", 2]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 64], ["value", 4]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", 64], ["value", 5]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1718 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1719 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1718 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1719 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1718 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1719 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1718 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [shard 1718 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [shard 1719 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1719 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [shard 1719 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1717], ["name", nil]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1718], ["name", "switchman_test_shard_1718"]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1719], ["name", "switchman_test_shard_1719"]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master] MirrorUser Load (0.5ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 66]] [shard 1717 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 66]] [shard 1717 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 66 LIMIT 1 [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1717], ["name", nil]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1718], ["name", "switchman_test_shard_1718"]] [shard 1717 master]  (0.2ms) COMMIT [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1719], ["name", "switchman_test_shard_1719"]] [shard 1717 master]  (0.2ms) COMMIT [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.0ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (1717, 1718) AND (id IN (1718,1719)) [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.0ms) ROLLBACK [shard 1717 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1717], ["name", nil]] [shard 1717 master]  (0.2ms) COMMIT [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1718], ["name", "switchman_test_shard_1718"]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1719], ["name", "switchman_test_shard_1719"]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.2ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master] SQL (5.0ms) DELETE FROM "switchman_shards" [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1717], ["name", nil]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1718], ["name", "switchman_test_shard_1718"]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1719], ["name", "switchman_test_shard_1719"]] [shard 1717 master]  (0.2ms) COMMIT [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1717], ["name", nil]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1718], ["name", "switchman_test_shard_1718"]] [shard 1717 master]  (0.2ms) COMMIT [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1719], ["name", "switchman_test_shard_1719"]] [shard 1717 master]  (0.2ms) COMMIT [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1718 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1717 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.0ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1717 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.0ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.0ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1717 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-05 21:09:11.455807' [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1717 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-02-05 21:09:11.460860' [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1717 master]  (0.4ms) COMMIT [shard 1717 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1717 master] SQL (1.1ms) UPDATE "users" SET "updated_at" = '2015-02-05 21:09:11.464668' [shard 1717 master] SQL (0.3ms) DELETE FROM "users" [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1717 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-02-05 21:09:11.469673' [shard 1717 master] SQL (0.3ms) DELETE FROM "users" [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.0ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1717 master]  (0.4ms) COMMIT [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1717 master] SQL (0.2ms) DELETE FROM "users" [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1717 master] SQL (0.1ms) DELETE FROM "users" [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1717 master] SQL (0.4ms) DELETE FROM "users" [shard 1717 master] SQL (0.1ms) DELETE FROM "users" [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1717 master] SQL (0.3ms) DELETE FROM "users" [shard 1717 master] SQL (0.1ms) DELETE FROM "users" [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2889]] [shard 1717 master] CACHE (0.0ms) 1717::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2889]] CACHE (0.0ms) 1717::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2889]]  (0.1ms) BEGIN [shard 1717 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2015-02-05 21:09:11.544603' WHERE "users"."id" = 2889 [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2889]] [shard 1717 master] CACHE (0.0ms) 1717::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2889]] SQL (0.3ms) DELETE FROM "users" [shard 1717 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1717], ["name", nil]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1718], ["name", "switchman_test_shard_1718"]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1719], ["name", "switchman_test_shard_1719"]] [shard 1717 master]  (0.2ms) COMMIT [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1718 LIMIT 1 [shard 1717 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (73) LIMIT 1 [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 74 LIMIT 1 [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 1717 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1717 master] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1718 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 76 LIMIT 1 [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 77]] [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 78]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 17180000000000078 LIMIT 1 [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", "non_existent_shard"]] [shard 1717 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 1717 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.4ms) SELECT COUNT(*) FROM "users"  [shard 1730 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.8ms) SELECT COUNT(*) FROM "users" [shard 1731 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "17"], ["default", false], ["name", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "18"], ["default", false], ["name", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "19"], ["default", false], ["name", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1717], ["name", nil]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1718], ["name", "switchman_test_shard_1718"]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1719], ["name", "switchman_test_shard_1719"]] [shard 1717 master]  (0.2ms) COMMIT [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.0ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.0ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1717], ["name", nil]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1718], ["name", "switchman_test_shard_1718"]] [shard 1717 master]  (0.2ms) COMMIT [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1719], ["name", "switchman_test_shard_1719"]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1718 LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1719 LIMIT 1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["owner_id", 2891], ["owner_type", "User"], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["value", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 136 LIMIT 1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master] SQL (6.0ms) DELETE FROM "switchman_shards" [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1717], ["name", nil]] [shard 1717 master]  (4.9ms) COMMIT [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1718], ["name", "switchman_test_shard_1718"]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1719], ["name", "switchman_test_shard_1719"]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1717 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1717], ["name", nil]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1718], ["name", "switchman_test_shard_1718"]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1719], ["name", "switchman_test_shard_1719"]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1718 LIMIT 1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1719 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1719 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1718 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1718 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1718 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1718 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.0ms) ROLLBACK [shard 1717 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1717], ["name", nil]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1718], ["name", "switchman_test_shard_1718"]] [shard 1717 master]  (0.3ms) COMMIT [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1719], ["name", "switchman_test_shard_1719"]] [shard 1717 master]  (0.2ms) COMMIT [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Thu, 05 Feb 2015 21:09:11 UTC +00:00]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "20"], ["default", false], ["name", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.1ms) BEGIN [shard 1719 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master]  (0.1ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.0ms) ROLLBACK [shard 1719 master]  (0.0ms) ROLLBACK [shard 1717 master]  (0.0ms) BEGIN [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1718]] [shard 1717 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1719]] [shard 1717 master]  (0.0ms) BEGIN [shard 1719 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1717 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "21"], ["default", false], ["name", nil]] [shard 1717 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1717 master]  (0.1ms) ROLLBACK [shard 1719 master]  (0.1ms) ROLLBACK [shard 1717 master] SQL (6.0ms) DELETE FROM "switchman_shards" [shard 1717 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1717 master]  (5.3ms) DROP SCHEMA switchman_test_shard_1718 CASCADE [shard 1718 deploy]  (0.1ms) BEGIN SQL (0.6ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1718]]  (0.1ms) COMMIT  (6.0ms) DROP SCHEMA switchman_test_shard_1719 CASCADE [shard 1719 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1719]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (18.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Connecting to database specified by database.yml  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Connecting to database specified by database.yml  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.4ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (24.0ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.5ms) COMMIT Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (1.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (1.3ms) CREATE SCHEMA switchman_test_shard_1743 [shard 1743 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 deploy]  (27.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1743 deploy]  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1743 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1743 deploy] Migrating to CreateUsers (20130403132607)  (28.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1743 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1743 deploy] Migrating to CreateAppendages (20130411202442)  (11.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1743 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1743 deploy] Migrating to CreateMirrorUsers (20130411202551)  (14.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1743 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1743 deploy] Migrating to CreateDigits (20131022202028)  (7.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1743 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1743 deploy] Migrating to CreateFeatures (20131206172923)  (14.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1743 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1743 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.5ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1743 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1743 deploy] Migrating to CreateRoots (20140219183820)  (26.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1743 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1743 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1743' WHERE "switchman_shards"."id" = 1743 [shard 1742 master]  (1.2ms) COMMIT [shard 1742 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_1744 [shard 1744 deploy]  (0.1ms) BEGIN [shard 1744 deploy]  (2.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1744 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1744 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1744 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1744 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1744 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1744 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1744 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1744 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1744 deploy] Migrating to CreateDigits (20131022202028)  (3.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1744 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1744 deploy] Migrating to CreateFeatures (20131206172923)  (3.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1744 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1744 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1744 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1744 deploy] Migrating to CreateRoots (20140219183820)  (3.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1744 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1744 deploy]  (1.1ms) COMMIT [shard 1744 deploy]  (0.1ms) BEGIN [shard 1742 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1744' WHERE "switchman_shards"."id" = 1744 [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1742], ["name", nil]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1743], ["name", "switchman_test_shard_1743"]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1744], ["name", "switchman_test_shard_1744"]] [shard 1742 master]  (0.2ms) COMMIT [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (8.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (6.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 1], ["value", 1]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 1], ["value", 2]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (12.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (1.0ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 1], ["value", 3]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 1], ["value", 4]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 1], ["value", 5]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (1.0ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 1 [shard 1743 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1743 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 1 [shard 1744 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 1744 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1743 LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1744 LIMIT 1 [shard 1742 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (1, 2) [shard 1743 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (1, 2, 3) [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.2ms) ROLLBACK [shard 1743 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 2], ["value", 1]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 2], ["value", 2]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 2], ["value", 3]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 2], ["value", 4]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 2], ["value", 5]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 2 [shard 1743 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 1743 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 2 [shard 1744 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [shard 1744 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (3, 4) [shard 1743 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (4, 5, 6) [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 3], ["value", 1]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 3], ["value", 2]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 3], ["value", 3]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 3], ["value", 4]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 3], ["value", 5]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.5ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 3 [shard 1743 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1743 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 3 [shard 1744 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 1744 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (5, 6) [shard 1743 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (7, 8, 9) [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 4], ["value", 1]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 4], ["value", 2]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 4], ["value", 3]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 4], ["value", 4]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 4], ["value", 5]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (1.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 4 [shard 1743 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1743 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 4 [shard 1744 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 1744 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (7, 8) [shard 1743 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (10, 11, 12) [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 5], ["value", 1]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 5], ["value", 2]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 5], ["value", 3]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 5], ["value", 4]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 5], ["value", 5]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 5 [shard 1743 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1743 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 5 [shard 1744 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 1744 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (9, 10) [shard 1743 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (13, 14, 15) [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 6], ["value", 1]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 17440000000000006], ["value", 3]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 17430000000000006], ["value", 2]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 6], ["value", 4]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 6], ["value", 5]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SHOW max_identifier_length [shard 1742 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1743 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1744 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1743 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1744 master]  (0.1ms) SHOW max_identifier_length [shard 1744 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1743 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1744 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1743 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) [shard 1743 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) [shard 1744 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1744 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) [shard 1744 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 7], ["value", 1]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 17440000000000007], ["value", 3]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 17430000000000007], ["value", 2]] [shard 1744 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 7], ["value", 4]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 7], ["value", 5]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1743 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1744 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1743 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1744 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1743 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1744 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1743 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (7) [shard 1743 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (7) [shard 1744 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1744 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (7) [shard 1744 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (7) [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 8], ["value", 1]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 17440000000000008], ["value", 3]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 17430000000000008], ["value", 2]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 8], ["value", 4]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 8], ["value", 5]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1743 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1744 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1743 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1744 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1743 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1744 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1743 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (8) [shard 1743 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (8) [shard 1744 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1744 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (8) [shard 1744 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (8) [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 9], ["value", 1]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 17440000000000009], ["value", 3]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 17430000000000009], ["value", 2]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 9], ["value", 4]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 9], ["value", 5]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 11], ["value", 1]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 17440000000000010], ["value", 3]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 17430000000000011], ["value", 2]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 10], ["value", 4]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 10], ["value", 5]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1743 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1744 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1743 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1744 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1743 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1744 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1743 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (11) [shard 1743 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [shard 1744 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1744 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [shard 1744 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (11) [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 12], ["value", 1]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 17440000000000011], ["value", 3]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 17430000000000012], ["value", 2]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 11], ["value", 4]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 11], ["value", 5]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1743 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1744 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1743 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1744 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1743 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 1744 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1743 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (12) [shard 1743 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (11) [shard 1744 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 1744 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (11) [shard 1744 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (12) [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master] SQL (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 25 [shard 1743 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 1744 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 25 [shard 1743 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 1744 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 25 [shard 1743 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 26 [shard 1743 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 1744 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 26 [shard 1743 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 1744 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 26 [shard 1743 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (1.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master] SQL (0.8ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (2895) [shard 1742 master] SQL (0.4ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (15) [shard 1743 master] SQL (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (14) [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (16) [shard 1743 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (15) [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1742], ["name", nil]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1743], ["name", "switchman_test_shard_1743"]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1744], ["name", "switchman_test_shard_1744"]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (4.0ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 2896], ["value", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 2897], ["value", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1743 LIMIT 1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 2898], ["value", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (6.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 2899], ["value", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 2900], ["value", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 2901], ["value", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 2902], ["value", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 2903], ["value", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 2904], ["value", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 25], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 2905], ["value", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 26], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 25], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 2906], ["value", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 27], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 26], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 2907], ["value", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 27], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2907], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2908], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2908]] [shard 1742 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2907 LIMIT 1 [shard 1742 master] User Load (0.4ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 2907 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.2ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 2910], ["value", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 2911], ["value", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 2912], ["value", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 31], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:06 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.4ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["user_id", 2913], ["value", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["user_id", 31], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1742], ["name", nil]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1743], ["name", "switchman_test_shard_1743"]] [shard 1742 master]  (0.2ms) COMMIT [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1744], ["name", "switchman_test_shard_1744"]] [shard 1742 master]  (0.2ms) COMMIT [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1743 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1742 master] SQL (0.2ms) DELETE FROM "users" [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1742 master] SQL (0.1ms) DELETE FROM "users" [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1742 master]  (0.2ms) COMMIT [shard 1742 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1742 master] SQL (0.9ms) DELETE FROM "users" [shard 1742 master] SQL (0.2ms) DELETE FROM "users" [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1742 master]  (0.2ms) COMMIT [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1742 master]  (0.2ms) COMMIT [shard 1742 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2919]] [shard 1742 master] CACHE (0.0ms) 1742::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2919]] CACHE (0.0ms) 1742::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2919]]  (0.1ms) BEGIN [shard 1742 master]  (0.3ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2015-03-10 19:18:07.064654' WHERE "users"."id" = 2919 [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2919]] [shard 1742 master] CACHE (0.0ms) 1742::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2919]] SQL (0.4ms) DELETE FROM "users" [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1742 master] SQL (0.3ms) DELETE FROM "users" [shard 1742 master] SQL (0.1ms) DELETE FROM "users" [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) ROLLBACK [shard 1744 master]  (0.0ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1742 master]  (0.2ms) COMMIT [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1742 master]  (0.0ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1742 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-03-10 19:18:07.134578' [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 1742 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-03-10 19:18:07.141045' [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1742 master]  (0.4ms) COMMIT [shard 1742 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1742 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2015-03-10 19:18:07.144989' [shard 1742 master] SQL (0.2ms) DELETE FROM "users" [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 1742 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-03-10 19:18:07.149163' [shard 1742 master] SQL (0.2ms) DELETE FROM "users" [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) ROLLBACK [shard 1744 master]  (0.0ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) ROLLBACK [shard 1744 master]  (0.0ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master]  (0.0ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1742], ["name", nil]] [shard 1742 master]  (0.2ms) COMMIT [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1743], ["name", "switchman_test_shard_1743"]] [shard 1742 master]  (0.2ms) COMMIT [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1744], ["name", "switchman_test_shard_1744"]] [shard 1742 master]  (0.2ms) COMMIT [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '2' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", "public"]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_1745 [shard 1745 deploy]  (0.1ms) BEGIN [shard 1745 deploy]  (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1745 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1745 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1745 deploy] Migrating to CreateUsers (20130403132607)  (3.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1745 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1745 deploy] Migrating to CreateAppendages (20130411202442)  (3.3ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1745 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1745 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1745 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1745 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1745 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1745 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1745 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1745 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1745 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1745 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1745 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1745 deploy]  (0.9ms) COMMIT [shard 1745 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1745' WHERE "switchman_shards"."id" = 1745 [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) BEGIN [shard 1745 master] SQL (6.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1745 master]  (11.2ms) COMMIT [shard 1745 master]  (8.3ms) DROP SCHEMA switchman_test_shard_1745 CASCADE [shard 1745 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1745]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '3' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) select sqlite_version(*) [shard 1746 deploy]  (0.0ms) begin transaction [shard 1746 deploy]  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 1746 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1746 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 1746 deploy] Migrating to CreateUsers (20130403132607)  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1746 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1746 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1746 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1746 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1746 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1746 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1746 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1746 deploy] Migrating to CreateFeatures (20131206172923)  (0.3ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1746 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1746 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 1746 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1746 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 1746 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1746 deploy]  (0.9ms) commit transaction [shard 1746 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_1746.sqlite3' WHERE "switchman_shards"."id" = 1746 [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) begin transaction [shard 1746 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1746 master]  (0.6ms) commit transaction [shard 1746 master] Drop failed: No such file or directory @ unlink_internal - db/shard_1746.sqlite3  (0.2ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1746]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.2ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 1742 master]  (0.2ms) CREATE SCHEMA switchman_test_shard_1747 [shard 1747 deploy]  (0.1ms) SAVEPOINT active_record_2 [shard 1747 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1747 deploy]  (7.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1747 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1747 deploy] Migrating to CreateUsers (20130403132607)  (3.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1747 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1747 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1747 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1747 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1747 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1747 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1747 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1747 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1747 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1747 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1747 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1747 deploy] Migrating to CreateRoots (20140219183820)  (3.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1747 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1747 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1747 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1747' WHERE "switchman_shards"."id" = 1747 [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1747 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1747 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1747 master]  (2.9ms) DROP SCHEMA switchman_test_shard_1747 CASCADE [shard 1747 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1747]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (2.2ms) ROLLBACK [shard 1742 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master]  (0.2ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master]  (0.0ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master]  (0.0ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master]  (0.0ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master]  (0.2ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1742], ["name", nil]] [shard 1742 master]  (6.1ms) COMMIT [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1743], ["name", "switchman_test_shard_1743"]] [shard 1742 master]  (10.8ms) COMMIT [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1744], ["name", "switchman_test_shard_1744"]] [shard 1742 master]  (0.4ms) COMMIT [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (2.3ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["user_id", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 67]] [shard 1742 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 67]] [shard 1742 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 67 LIMIT 1 [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) ROLLBACK [shard 1744 master]  (0.0ms) ROLLBACK [shard 1742 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1742], ["name", nil]] [shard 1742 master]  (5.8ms) COMMIT [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1743], ["name", "switchman_test_shard_1743"]] [shard 1742 master]  (6.1ms) COMMIT [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1744], ["name", "switchman_test_shard_1744"]] [shard 1742 master]  (30.8ms) COMMIT [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1742], ["name", nil]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1743], ["name", "switchman_test_shard_1743"]] [shard 1742 master]  (0.2ms) COMMIT [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1744], ["name", "switchman_test_shard_1744"]] [shard 1742 master]  (0.2ms) COMMIT [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 1744 master]  (0.1ms) SAVEPOINT active_record_2 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 1744 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master] SQL (6.1ms) DELETE FROM "switchman_shards" [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master]  (0.0ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1742 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1742], ["name", nil]] [shard 1742 master]  (6.1ms) COMMIT [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1743], ["name", "switchman_test_shard_1743"]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1744], ["name", "switchman_test_shard_1744"]] [shard 1742 master]  (0.2ms) COMMIT [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1743 LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1744 LIMIT 1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.2ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (23.1ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["owner_id", 2929], ["owner_type", "User"], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["value", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 137 LIMIT 1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1742], ["name", nil]] [shard 1742 master]  (0.2ms) COMMIT [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1743], ["name", "switchman_test_shard_1743"]] [shard 1742 master]  (0.2ms) COMMIT [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1744], ["name", "switchman_test_shard_1744"]] [shard 1742 master]  (0.2ms) COMMIT [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1743 LIMIT 1 [shard 1742 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (2931) [shard 1742 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (35) [shard 1743 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2931]] [shard 1742 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 35]] [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 36 [shard 1743 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2932]] [shard 1742 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 36]] [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2934) [shard 1742 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38) [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 39 LIMIT 1 [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", "non_existent_shard"]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", nil]] [shard 1742 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.6ms) SELECT COUNT(*) FROM "users"  [shard 1750 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.9ms) SELECT COUNT(*) FROM "users" [shard 1751 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1742], ["name", nil]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1743], ["name", "switchman_test_shard_1743"]] [shard 1742 master]  (0.4ms) COMMIT [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1744], ["name", "switchman_test_shard_1744"]] [shard 1742 master]  (0.4ms) COMMIT [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1743 LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1744 LIMIT 1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11744 LIMIT 1 [shard 1742 master]  (0.2ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '17' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "17"], ["default", false], ["name", "public"]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (2.0ms) CREATE SCHEMA switchman_test_shard_1758 [shard 1758 deploy]  (0.1ms) BEGIN [shard 1758 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 1758 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 1758 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 1758 deploy] Migrating to CreateUsers (20130403132607)  (4.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1758 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 1758 deploy] Migrating to CreateAppendages (20130411202442)  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1758 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 1758 deploy] Migrating to CreateMirrorUsers (20130411202551)  (4.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1758 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 1758 deploy] Migrating to CreateDigits (20131022202028)  (2.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1758 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 1758 deploy] Migrating to CreateFeatures (20131206172923)  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1758 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 1758 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 1758 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 1758 deploy] Migrating to CreateRoots (20140219183820)  (2.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 1758 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 1758 deploy]  (0.6ms) COMMIT [shard 1758 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_1758' WHERE "switchman_shards"."id" = 1758 [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) BEGIN [shard 1758 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:07 UTC +00:00]] [shard 1758 master]  (0.3ms) COMMIT [shard 1758 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 1758 master]  (4.8ms) DROP SCHEMA switchman_test_shard_1758 CASCADE [shard 1758 deploy]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 1758 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1742 master]  (0.0ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.0ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.0ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1759]] [shard 1742 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1759 LIMIT 1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1760]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.0ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1742], ["name", nil]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1743], ["name", "switchman_test_shard_1743"]] [shard 1742 master]  (0.2ms) COMMIT [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1744], ["name", "switchman_test_shard_1744"]] [shard 1742 master]  (0.2ms) COMMIT [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1743 LIMIT 1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (1.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (1.9ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1742], ["name", nil]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1743], ["name", "switchman_test_shard_1743"]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1744], ["name", "switchman_test_shard_1744"]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1743 LIMIT 1 [shard 1742 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 46]] [shard 1743 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 43 LIMIT 1 [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", nil], ["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1744 LIMIT 1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (6.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["appendage_id", 48], ["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["id", 17440000000000001], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["value", nil]] [shard 1743 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 46 AND "digits"."id" = $1 LIMIT 1 [["id", 17440000000000001]] [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 47 AND "appendages"."id" = $1 LIMIT 1 [["id", 49]] [shard 1743 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 38 AND "appendages"."id" = $1 LIMIT 1 [["id", 17430000000000049]] [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 50], ["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 49 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 53], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 54], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 53]] [shard 1743 master]  (0.1ms) SHOW max_identifier_length [shard 1743 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 53 AND "users"."id" = 55 LIMIT 1 [shard 1743 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 53]] [shard 1743 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 53 AND "users"."id" = 17440000000000045 LIMIT 1 [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 56 [shard 1743 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 56]] [shard 1743 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 56 [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 57], ["value", 1]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 17430000000000057], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 57 AND "appendages"."value" IS NULL [shard 1743 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 17430000000000057 AND "appendages"."value" IS NULL [shard 1744 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 57]] [shard 1743 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 57 AND "appendages"."value" IS NULL [shard 1743 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 17430000000000057 AND "appendages"."value" IS NULL [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 17430000000000058], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 57], ["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["value", 2]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 58 AND "digits"."value" IS NULL [shard 1743 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17430000000000058 AND "digits"."value" IS NULL [shard 1744 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 58]] [shard 1743 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 58 AND "digits"."value" IS NULL [shard 1743 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17430000000000058 AND "digits"."value" IS NULL [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 17430000000000059], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 58], ["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["value", 2]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 59 AND "digits"."value" IS NULL [shard 1743 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17430000000000059 AND "digits"."value" IS NULL [shard 1744 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 59]] [shard 1743 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 59 AND "digits"."value" IS NULL [shard 1743 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17430000000000059 AND "digits"."value" IS NULL [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 57], ["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["value", 1]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 17430000000000060], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 59], ["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["value", 2]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 60 [shard 1743 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 60]] [shard 1743 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 60 [shard 1743 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17430000000000060 [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 61], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 58], ["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 58], ["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["value", 1]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 17430000000000061], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 60], ["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["value", 2]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 61 AND (digits.value IS NOT NULL) [shard 1743 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17430000000000061 AND (digits.value IS NOT NULL) [shard 1744 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [shard 1743 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 61 AND (digits.value IS NOT NULL) [shard 1743 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17430000000000061 AND (digits.value IS NOT NULL) [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 62], ["value", 1]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 17430000000000062], ["value", 2]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 62 [shard 1743 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 62]] [shard 1743 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 62 [shard 1743 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 17430000000000062 [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 63], ["value", 1]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 17430000000000063], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 63], ["value", 2]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [shard 1743 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 63 AND (appendages.value IS NOT NULL) [shard 1743 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 17430000000000063 AND (appendages.value IS NOT NULL) [shard 1744 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [shard 1743 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 63 AND (appendages.value IS NOT NULL) [shard 1743 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 17430000000000063 AND (appendages.value IS NOT NULL) [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.2ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 64 LIMIT 1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 64], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 62]] [shard 1743 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 64 LIMIT 1 [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 17440000000000055], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 63]] [shard 1743 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 55 LIMIT 1 [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 66], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 17430000000000066], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 17440000000000056], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 1743 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (66) [shard 1743 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (17430000000000066) [shard 1744 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 1744 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (56) [shard 1744 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 64 [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 17430000000000067], ["value", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (13.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1451], ["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["value", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 17440000000000057], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 17430000000000066], ["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["value", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [shard 1742 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (1451) [shard 1742 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (66) [shard 1743 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [shard 1743 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 1744 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 67 [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1452], ["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["value", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 17420000000001452], ["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1452 LIMIT 1 [shard 1742 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (1452) [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 17430000000000069], ["value", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 17440000000000059], ["value", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 2938], ["value", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages"  [shard 1742 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (69) [shard 1743 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 1744 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2938) [shard 1742 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 69 [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 70], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 17430000000000070], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 17430000000000070], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 67], ["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 65], ["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 17440000000000065], ["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 17440000000000066], ["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 17440000000000060], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 17430000000000068], ["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 17440000000000067], ["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["value", nil]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 68], ["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["value", nil]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [shard 1743 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (70) [shard 1743 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (17430000000000070) [shard 1744 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (67) [shard 1743 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (65, 66) [shard 1744 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [shard 1744 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (60) [shard 1744 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (67, 68) [shard 1744 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 8 [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (5.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["owner_id", 71], ["owner_type", "User"], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["value", 1]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.9ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["owner_id", 17430000000000071], ["owner_type", "User"], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["value", 2]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 71 AND "features"."owner_type" = 'User' [shard 1743 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 71]] [shard 1743 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 71 AND "features"."owner_type" = 'User' [shard 1743 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 17430000000000071 AND "features"."owner_type" = 'User' [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["owner_id", 1456], ["owner_type", "Appendage"], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["value", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 138]] [shard 1742 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 1456 LIMIT 1 [shard 1742 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master]  (0.2ms) UPDATE "features" SET "owner_id" = 17430000000000072, "owner_type" = 'User', "updated_at" = '2015-03-10 19:18:08.615368' WHERE "features"."id" = 138 [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 138]] [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.3ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["user_id", 17440000000000063]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 68]] [shard 1742 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 63 LIMIT 1 [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1742], ["name", nil]] [shard 1742 master]  (0.2ms) COMMIT [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1743], ["name", "switchman_test_shard_1743"]] [shard 1742 master]  (0.2ms) COMMIT [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1744], ["name", "switchman_test_shard_1744"]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:19:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:19:08 UTC +00:00]] [shard 1743 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.0ms) ROLLBACK [shard 1744 master]  (0.0ms) ROLLBACK [shard 1743 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1742], ["name", nil]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1743], ["name", "switchman_test_shard_1743"]] [shard 1742 master]  (0.2ms) COMMIT [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1744], ["name", "switchman_test_shard_1744"]] [shard 1742 master]  (0.2ms) COMMIT [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (1742, 1743) AND (id IN (1743,1744)) [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1742], ["name", nil]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1743], ["name", "switchman_test_shard_1743"]] [shard 1742 master]  (0.2ms) COMMIT [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1744], ["name", "switchman_test_shard_1744"]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "19"], ["default", false], ["name", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "19"], ["default", false], ["name", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master] SQL (5.7ms) DELETE FROM "switchman_shards" [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1742], ["name", nil]] [shard 1742 master]  (5.1ms) COMMIT [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1743], ["name", "switchman_test_shard_1743"]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1744], ["name", "switchman_test_shard_1744"]] [shard 1742 master]  (0.2ms) COMMIT [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "20"], ["default", false], ["name", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "21"], ["default", false], ["name", nil]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1742 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1742 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master] SQL (0.9ms) DELETE FROM "switchman_shards" [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1742], ["name", nil]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1743], ["name", "switchman_test_shard_1743"]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1744], ["name", "switchman_test_shard_1744"]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1742], ["name", nil]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1743], ["name", "switchman_test_shard_1743"]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1744], ["name", "switchman_test_shard_1744"]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1742], ["name", nil]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1743], ["name", "switchman_test_shard_1743"]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1744], ["name", "switchman_test_shard_1744"]] [shard 1742 master]  (0.2ms) COMMIT [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1742], ["name", nil]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1743], ["name", "switchman_test_shard_1743"]] [shard 1742 master]  (0.2ms) COMMIT [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1744], ["name", "switchman_test_shard_1744"]] [shard 1742 master]  (0.3ms) COMMIT [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 1743 LIMIT 1 [shard 1742 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (77) LIMIT 1 [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:08 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 78 LIMIT 1 [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:09 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 79]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 17430000000000079 LIMIT 1 [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:09 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1744 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:09 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:09 UTC +00:00]] [shard 1744 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1744 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 1742 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1742 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1743 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 1744 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:09 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 81 LIMIT 1 [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master]  (0.0ms) SAVEPOINT active_record_1 [shard 1743 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 10 Mar 2015 19:18:09 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 10 Mar 2015 19:18:09 UTC +00:00]] [shard 1743 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1743 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 82]] [shard 1743 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1743 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 1742], ["name", nil]] [shard 1742 master]  (0.2ms) COMMIT [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 1743], ["name", "switchman_test_shard_1743"]] [shard 1742 master]  (0.2ms) COMMIT [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 1744], ["name", "switchman_test_shard_1744"]] [shard 1742 master]  (0.2ms) COMMIT [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master] Switchman::Shard Load (1.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1742 AND id<1743) OR (id>=1744 AND id<1745)) ORDER BY id [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1742 AND id<1743)) [shard 1742 master]  (0.0ms) ROLLBACK [shard 1744 master]  (0.0ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ('f') [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1742 AND id<=1743)) AND (id NOT IN (1742)) [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1742)) [shard 1742 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 1742 master]  (0.0ms) ROLLBACK [shard 1744 master]  (0.0ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1743 AND id<=1743)) AND (id NOT IN (1742)) [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=1743)) ORDER BY id [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (1742)) [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.1ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.1ms) BEGIN [shard 1744 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (1742)) [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1743)) ORDER BY id [shard 1742 master]  (0.1ms) ROLLBACK [shard 1744 master]  (0.1ms) ROLLBACK [shard 1742 master]  (0.0ms) BEGIN [shard 1742 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1743]] [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 1744]] [shard 1742 master]  (0.0ms) BEGIN [shard 1744 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=1742 AND id<=1743)) ORDER BY id [shard 1742 master]  (0.0ms) ROLLBACK [shard 1744 master]  (0.0ms) ROLLBACK [shard 1742 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 1742 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1742 master]  (6.2ms) DROP SCHEMA switchman_test_shard_1743 CASCADE [shard 1743 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1743]]  (0.1ms) COMMIT  (6.1ms) DROP SCHEMA switchman_test_shard_1744 CASCADE [shard 1744 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 1744]]  (0.1ms) COMMIT Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.6ms) SELECT * FROM unnest(current_schemas(false)) PG::UndefinedTable: ERROR: relation "switchman_shards" does not exist LINE 5: WHERE a.attrelid = '"switchman_shards"'::regcla... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"switchman_shards"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum PG::UndefinedTable: ERROR: relation "switchman_shards" does not exist LINE 5: WHERE a.attrelid = '"switchman_shards"'::regcla... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"switchman_shards"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum PG::UndefinedTable: ERROR: relation "switchman_shards" does not exist LINE 5: WHERE a.attrelid = '"switchman_shards"'::regcla... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"switchman_shards"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum PG::UndefinedTable: ERROR: relation "switchman_shards" does not exist LINE 5: WHERE a.attrelid = '"switchman_shards"'::regcla... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"switchman_shards"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (7.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (7.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateSwitchmanShards (20130328212039)  (0.1ms) BEGIN  (22.4ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039')  (0.4ms) COMMIT Migrating to CreateDefaultShard (20130328224244)  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244')  (5.9ms) COMMIT Migrating to CreateUsers (20130403132607)  (0.1ms) BEGIN  (7.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607')  (6.0ms) COMMIT Migrating to CreateAppendages (20130411202442)  (5.6ms) BEGIN  (8.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442')  (6.2ms) COMMIT Migrating to CreateMirrorUsers (20130411202551)  (6.1ms) BEGIN  (8.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551')  (6.0ms) COMMIT Migrating to CreateDigits (20131022202028)  (5.8ms) BEGIN  (7.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028')  (6.0ms) COMMIT Migrating to CreateFeatures (20131206172923)  (5.5ms) BEGIN  (7.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923')  (5.6ms) COMMIT Migrating to AddParentIdToUsers (20140123154135)  (5.4ms) BEGIN  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135')  (5.6ms) COMMIT Migrating to CreateRoots (20140219183820)  (0.1ms) BEGIN  (8.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820')  (6.1ms) COMMIT  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.2ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'development' AND "switchman_shards"."name" IS NULL LIMIT 1 Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'production' AND "switchman_shards"."name" IS NULL LIMIT 1  (0.1ms) BEGIN [shard 1 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1 master] SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "non_existent_shard"]] [shard 1 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", nil]] [shard 1 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 1 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 5: WHERE a.attrelid = '"users"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 3 master]  (0.3ms) ROLLBACK [shard 1 master]  (0.1ms) BEGIN [shard 1 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 1 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1 master]  (0.1ms) ROLLBACK [shard 1 master]  (0.1ms) BEGIN [shard 1 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [shard 1 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1 master]  (0.1ms) ROLLBACK [shard 1 master]  (0.1ms) BEGIN [shard 1 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 1 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1 master]  (0.1ms) ROLLBACK [shard 1 master]  (0.1ms) BEGIN [shard 1 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [shard 1 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1 master]  (0.1ms) ROLLBACK [shard 1 master]  (0.0ms) BEGIN [shard 1 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [shard 1 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1 master]  (0.1ms) ROLLBACK [shard 1 master]  (0.1ms) BEGIN [shard 1 master]  (0.1ms) SAVEPOINT active_record_1 [shard 1 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 1 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 1 master]  (0.1ms) ROLLBACK [shard 1 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 1 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1 master]  (0.1ms) BEGIN [shard 1 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]] [shard 1 master]  (0.3ms) COMMIT [shard 1 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 1 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 10 master]  (0.9ms) CREATE SCHEMA switchman_test_shard_11 [shard 11 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 11 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 11 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 11 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 11 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (4.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [shard 11 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [shard 11 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 11 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 11 deploy]  (0.4ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_11' WHERE "switchman_shards"."id" = 11 [shard 10 master]  (0.5ms) COMMIT [shard 10 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '8' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", "public"]] [shard 10 master]  (0.4ms) COMMIT [shard 10 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_12 [shard 12 deploy]  (0.1ms) BEGIN [shard 12 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 12 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 12 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 12 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (5.6ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [shard 12 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [shard 12 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 12 deploy]  (0.9ms) COMMIT [shard 12 deploy]  (0.1ms) BEGIN [shard 10 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_12' WHERE "switchman_shards"."id" = 12 [shard 10 master]  (0.3ms) COMMIT [shard 10 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 10], ["name", nil]] [shard 10 master]  (0.2ms) COMMIT [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.0ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 11], ["name", "switchman_test_shard_11"]] [shard 10 master]  (0.2ms) COMMIT [shard 10 master]  (0.0ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 12], ["name", "switchman_test_shard_12"]] [shard 10 master]  (0.2ms) COMMIT [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10012 LIMIT 1 [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 12 LIMIT 1 [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '9' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 10 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", "public"]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (5.4ms) CREATE SCHEMA switchman_test_shard_13 [shard 13 deploy]  (0.1ms) BEGIN [shard 13 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 13 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 13 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 13 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (5.0ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [shard 13 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [shard 13 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 13 deploy]  (0.3ms) COMMIT [shard 13 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_13' WHERE "switchman_shards"."id" = 13 [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 5: WHERE a.attrelid = '"users"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master] Switchman::Shard Load (1.0ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11 LIMIT 1 [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 10 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 10 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.0ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 14]] [shard 10 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 15]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 15 LIMIT 1 [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 10], ["name", nil]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.0ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 11], ["name", "switchman_test_shard_11"]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master]  (0.0ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 12], ["name", "switchman_test_shard_12"]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 11 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 10], ["name", nil]] [shard 10 master]  (0.2ms) COMMIT [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.0ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 11], ["name", "switchman_test_shard_11"]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 12], ["name", "switchman_test_shard_12"]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master] SQL (6.9ms) DELETE FROM "switchman_shards" [shard 10 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 10], ["name", nil]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 11], ["name", "switchman_test_shard_11"]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 12], ["name", "switchman_test_shard_12"]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 11 LIMIT 1 [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 12 LIMIT 1 [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.2ms) BEGIN [shard 10 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["owner_id", 3], ["owner_type", "User"], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["value", nil]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 1 LIMIT 1 [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master] SQL (6.2ms) DELETE FROM "switchman_shards" [shard 10 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 10], ["name", nil]] [shard 10 master]  (6.2ms) COMMIT [shard 10 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 11], ["name", "switchman_test_shard_11"]] [shard 10 master]  (6.0ms) COMMIT [shard 10 master]  (0.2ms) BEGIN [shard 10 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 12], ["name", "switchman_test_shard_12"]] [shard 10 master]  (4.7ms) COMMIT [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 10 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 10], ["name", nil]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 11], ["name", "switchman_test_shard_11"]] [shard 10 master]  (0.2ms) COMMIT [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 12], ["name", "switchman_test_shard_12"]] [shard 10 master]  (0.2ms) COMMIT [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 12 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 12 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 12 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 12 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users" SQL (0.4ms) DELETE FROM "switchman_shards" [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 10], ["name", nil]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 11], ["name", "switchman_test_shard_11"]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 12], ["name", "switchman_test_shard_12"]] [shard 10 master]  (0.2ms) COMMIT [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) SAVEPOINT active_record_1 [shard 12 master] PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : SAVEPOINT active_record_1  (0.1ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.0ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.0ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.0ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.0ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.0ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 10], ["name", nil]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 11], ["name", "switchman_test_shard_11"]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 12], ["name", "switchman_test_shard_12"]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (1.0ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["user_id", nil]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 1]] [shard 10 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 1]] [shard 10 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 1 LIMIT 1 [shard 11 master] PG::UndefinedTable: ERROR: relation "mirror_users" does not exist LINE 1: SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_... ^ : SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 1 LIMIT 1  (0.1ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 10], ["name", nil]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 11], ["name", "switchman_test_shard_11"]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master]  (0.0ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 12], ["name", "switchman_test_shard_12"]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 11 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 10], ["name", nil]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 11], ["name", "switchman_test_shard_11"]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 12], ["name", "switchman_test_shard_12"]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:23:31 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:23:31 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 11 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 10], ["name", nil]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 11], ["name", "switchman_test_shard_11"]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 12], ["name", "switchman_test_shard_12"]] [shard 10 master]  (0.2ms) COMMIT [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master] Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '13' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 10 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", "public"]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_18 [shard 18 deploy]  (0.1ms) BEGIN [shard 18 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 18 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 18 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 18 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [shard 18 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [shard 18 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 18 deploy]  (0.4ms) COMMIT [shard 18 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_18' WHERE "switchman_shards"."id" = 18 [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 5: WHERE a.attrelid = '"users"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (13.8ms) DROP SCHEMA switchman_test_shard_18 CASCADE [shard 18 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 18]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '14' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 10 master]  (0.0ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 10 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.0ms) select sqlite_version(*) [shard 19 deploy]  (0.1ms) begin transaction [shard 19 deploy]  (0.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 19 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 19 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 19 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (0.2ms) CREATE TABLE "switchman_shards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "database_server_id" varchar(255), "default" boolean DEFAULT 'f' NOT NULL)  [shard 19 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [shard 19 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 19 deploy]  (1.0ms) commit transaction [shard 19 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_19.sqlite3' WHERE "switchman_shards"."id" = 19 [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master] Drop failed: No such file or directory @ unlink_internal - db/shard_19.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 19]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.2ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 10 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 10 master]  (0.0ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 10 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_20 [shard 20 deploy]  (0.1ms) SAVEPOINT active_record_2 [shard 20 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 20 deploy]  (5.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 20 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 20 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [shard 20 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [shard 20 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 20 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 20 deploy]  (0.1ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_20' WHERE "switchman_shards"."id" = 20 [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 5: WHERE a.attrelid = '"users"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.2ms) DROP SCHEMA switchman_test_shard_20 CASCADE [shard 20 deploy] PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : DROP SCHEMA switchman_test_shard_20 CASCADE Drop failed: PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : DROP SCHEMA switchman_test_shard_20 CASCADE PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : SET search_path TO public  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 20 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 10], ["name", nil]] [shard 10 master]  (6.2ms) COMMIT [shard 10 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 11], ["name", "switchman_test_shard_11"]] [shard 10 master]  (5.9ms) COMMIT [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 12], ["name", "switchman_test_shard_12"]] [shard 10 master]  (5.0ms) COMMIT [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.2ms) ROLLBACK [shard 10 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 10], ["name", nil]] [shard 10 master]  (6.1ms) COMMIT [shard 10 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 11], ["name", "switchman_test_shard_11"]] [shard 10 master]  (5.7ms) COMMIT [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 12], ["name", "switchman_test_shard_12"]] [shard 10 master]  (5.8ms) COMMIT [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 5: WHERE a.attrelid = '"users"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 5: WHERE a.attrelid = '"users"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 5: WHERE a.attrelid = '"users"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 5: WHERE a.attrelid = '"users"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 5: WHERE a.attrelid = '"users"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.0ms) ROLLBACK [shard 12 master]  (0.2ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 5: WHERE a.attrelid = '"users"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 11 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 10 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 10], ["name", nil]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.0ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 11], ["name", "switchman_test_shard_11"]] [shard 10 master]  (0.2ms) COMMIT [shard 10 master]  (0.0ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 12], ["name", "switchman_test_shard_12"]] [shard 10 master]  (0.2ms) COMMIT [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 10], ["name", nil]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 11], ["name", "switchman_test_shard_11"]] [shard 10 master]  (0.2ms) COMMIT [shard 10 master]  (0.0ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 12], ["name", "switchman_test_shard_12"]] [shard 10 master]  (0.2ms) COMMIT [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (10)) [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (10)) [shard 10 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.2ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=10 AND id<11)) [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (10)) [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=10 AND id<=11)) AND (id NOT IN (10)) [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=11)) ORDER BY id [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=11 AND id<=11)) AND (id NOT IN (10)) [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=10 AND id<11) OR (id>=12 AND id<13)) ORDER BY id [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=10 AND id<=11)) ORDER BY id [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=11)) ORDER BY id [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ('f') [shard 10 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 10 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 10], ["name", nil]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.0ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 11], ["name", "switchman_test_shard_11"]] [shard 10 master]  (0.2ms) COMMIT [shard 10 master]  (0.0ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 12], ["name", "switchman_test_shard_12"]] [shard 10 master]  (0.2ms) COMMIT [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "31"], ["default", false], ["name", nil]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.0ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "31"], ["default", false], ["name", nil]] [shard 10 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master] SQL (9.0ms) DELETE FROM "switchman_shards" [shard 10 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "32"], ["default", false], ["name", nil]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "32"], ["default", false], ["name", nil]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 10], ["name", nil]] [shard 10 master]  (5.0ms) COMMIT [shard 10 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 11], ["name", "switchman_test_shard_11"]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master]  (0.0ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 12], ["name", "switchman_test_shard_12"]] [shard 10 master]  (0.2ms) COMMIT [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 5: WHERE a.attrelid = '"users"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : SET search_path TO public  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.2ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 10 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-05-01 19:22:32.012111' [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 10 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-05-01 19:22:32.018142' [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 10 master] SQL (1.3ms) UPDATE "users" SET "updated_at" = '2015-05-01 19:22:32.022255' [shard 10 master] SQL (0.5ms) DELETE FROM "users" [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 10 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2015-05-01 19:22:32.029302' [shard 10 master] SQL (0.5ms) DELETE FROM "users" [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master] User Load (0.3ms) SELECT "users".* FROM "users" [shard 10 master] SQL (0.1ms) DELETE FROM "users" [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 10 master] SQL (0.2ms) DELETE FROM "users" [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 10 master]  (0.4ms) COMMIT [shard 10 master] User Load (0.3ms) SELECT "users".* FROM "users"  [shard 10 master] SQL (0.5ms) DELETE FROM "users" [shard 10 master] SQL (0.2ms) DELETE FROM "users" [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 10 master]  (0.4ms) COMMIT [shard 10 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 10 master] SQL (0.4ms) DELETE FROM "users" [shard 10 master] SQL (0.1ms) DELETE FROM "users" [shard 10 master]  (0.0ms) BEGIN [shard 10 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 10 master]  (0.2ms) COMMIT [shard 10 master]  (0.0ms) BEGIN [shard 10 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 28]] [shard 10 master] CACHE (0.0ms) 10::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 28]] CACHE (0.0ms) 10::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 28]]  (0.1ms) BEGIN [shard 10 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2015-05-01 19:22:32.077152' WHERE "users"."id" = 28 [shard 10 master]  (0.3ms) COMMIT [shard 10 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 28]] [shard 10 master] CACHE (0.0ms) 10::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 28]] SQL (0.3ms) DELETE FROM "users" [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 10 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 10 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 10 master]  (0.4ms) COMMIT [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 10 master]  (0.4ms) COMMIT [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 10], ["name", nil]] [shard 10 master]  (0.2ms) COMMIT [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.0ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 11], ["name", "switchman_test_shard_11"]] [shard 10 master]  (0.2ms) COMMIT [shard 10 master]  (0.0ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 12], ["name", "switchman_test_shard_12"]] [shard 10 master]  (0.2ms) COMMIT [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.2ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.6ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["user_id", nil]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 10], ["name", nil]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 11], ["name", "switchman_test_shard_11"]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master]  (0.0ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 12], ["name", "switchman_test_shard_12"]] [shard 10 master]  (0.2ms) COMMIT [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 10 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 10 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 10 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 10 master]  (0.1ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 10], ["name", nil]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 11], ["name", "switchman_test_shard_11"]] [shard 10 master]  (0.2ms) COMMIT [shard 10 master]  (0.1ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 12], ["name", "switchman_test_shard_12"]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (10, 11) AND (id IN (11,12)) [shard 10 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 10 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 10], ["name", nil]] [shard 10 master]  (0.3ms) COMMIT [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (0.0ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 11], ["name", "switchman_test_shard_11"]] [shard 10 master]  (0.2ms) COMMIT [shard 10 master]  (0.0ms) BEGIN [shard 10 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 12], ["name", "switchman_test_shard_12"]] [shard 10 master]  (0.2ms) COMMIT [shard 10 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 11 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.0ms) ROLLBACK [shard 12 master]  (0.0ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.2ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.1ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.1ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.1ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master]  (0.0ms) BEGIN [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 11]] [shard 10 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 12]] [shard 10 master]  (0.0ms) BEGIN [shard 12 master]  (0.0ms) SAVEPOINT active_record_1 [shard 11 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:22:32 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:22:32 UTC +00:00]] [shard 11 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: INSERT INTO "users" ("created_at", "mirror_user_id", "name",... ^ : INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 11 master]  (0.1ms) ROLLBACK [shard 12 master]  (0.1ms) ROLLBACK [shard 11 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 10 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 10 master]  (2.0ms) DROP SCHEMA switchman_test_shard_11 CASCADE [shard 11 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 11]]  (0.0ms) COMMIT  (2.9ms) DROP SCHEMA switchman_test_shard_12 CASCADE [shard 12 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 12]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.8ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.2ms) CREATE SCHEMA switchman_test_shard_26 [shard 26 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 26 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 26 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 26 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 26 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.1ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [shard 26 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [shard 26 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 26 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 26 deploy]  (0.4ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_26' WHERE "switchman_shards"."id" = 26 [shard 25 master]  (0.5ms) COMMIT [shard 25 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 25 master]  (0.1ms) BEGIN [shard 25 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 25 master]  (0.3ms) COMMIT [shard 25 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_27 [shard 27 deploy]  (0.1ms) BEGIN [shard 27 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 27 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 27 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 27 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (4.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [shard 27 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [shard 27 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 27 deploy]  (0.5ms) COMMIT [shard 27 deploy]  (0.1ms) BEGIN [shard 25 master]  (0.4ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_27' WHERE "switchman_shards"."id" = 27 [shard 25 master]  (0.4ms) COMMIT [shard 25 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 25 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 25], ["name", nil]] [shard 25 master]  (0.4ms) COMMIT [shard 25 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master]  (0.1ms) BEGIN [shard 25 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 26], ["name", "switchman_test_shard_26"]] [shard 25 master]  (0.4ms) COMMIT [shard 25 master]  (0.1ms) BEGIN [shard 25 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 27], ["name", "switchman_test_shard_27"]] [shard 25 master]  (0.4ms) COMMIT [shard 25 master]  (0.1ms) BEGIN [shard 25 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 26]] [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 27]] [shard 25 master]  (0.1ms) BEGIN [shard 27 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '2' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 25 master]  (0.1ms) SAVEPOINT active_record_1 [shard 25 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", "public"]] [shard 25 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 25 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_28 [shard 28 deploy]  (0.1ms) BEGIN [shard 28 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 28 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 28 deploy]  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 28 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.8ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [shard 28 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [shard 28 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 28 deploy]  (0.5ms) COMMIT [shard 28 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 25 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_28' WHERE "switchman_shards"."id" = 28 [shard 25 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 25 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 5: WHERE a.attrelid = '"users"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.1ms) ROLLBACK [shard 27 master]  (0.1ms) ROLLBACK [shard 25 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 25 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 25 master]  (2.2ms) DROP SCHEMA switchman_test_shard_26 CASCADE [shard 26 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 26]]  (0.1ms) COMMIT  (2.7ms) DROP SCHEMA switchman_test_shard_27 CASCADE [shard 27 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 27]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.4ms) CREATE SCHEMA switchman_test_shard_30 [shard 30 deploy]  (0.2ms) SAVEPOINT active_record_1 [shard 30 deploy]  (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 30 deploy]  (6.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 30 deploy] Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.2ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'development' AND "switchman_shards"."name" IS NULL LIMIT 1 Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'production' AND "switchman_shards"."name" IS NULL LIMIT 1 SQL (7.4ms) DELETE FROM "switchman_shards" [shard 29 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 29 master]  (0.1ms) BEGIN [shard 29 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 29 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]] [shard 29 master]  (0.4ms) COMMIT [shard 29 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 29 master] Switchman::Shard Load (1.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 31 master]  (0.1ms) BEGIN [shard 31 master] SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 31 master]  (0.4ms) CREATE SCHEMA switchman_test_shard_32 [shard 32 deploy]  (0.2ms) SAVEPOINT active_record_1 [shard 32 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 32 deploy]  (6.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 32 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 32 deploy] Migrating to CreateUsers (20130403132607)  (7.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 32 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 32 deploy] Migrating to CreateAppendages (20130411202442)  (8.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 32 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 32 deploy] Migrating to CreateMirrorUsers (20130411202551)  (8.3ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 32 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 32 deploy] Migrating to CreateDigits (20131022202028)  (8.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 32 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 32 deploy] Migrating to CreateFeatures (20131206172923)  (7.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 32 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 32 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.4ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 32 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 32 deploy] Migrating to CreateRoots (20140219183820)  (8.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 32 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 32 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 32 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_32' WHERE "switchman_shards"."id" = 32 [shard 31 master]  (1.1ms) COMMIT [shard 31 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 31 master]  (0.1ms) BEGIN [shard 31 master] SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 31 master]  (0.3ms) COMMIT [shard 31 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_33 [shard 33 deploy]  (0.2ms) BEGIN [shard 33 deploy]  (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 33 deploy]  (6.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 33 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 33 deploy] Migrating to CreateUsers (20130403132607)  (2.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 33 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 33 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 33 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 33 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 33 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 33 deploy] Migrating to CreateDigits (20131022202028)  (2.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 33 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 33 deploy] Migrating to CreateFeatures (20131206172923)  (3.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 33 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 33 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.4ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 33 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 33 deploy] Migrating to CreateRoots (20140219183820)  (2.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 33 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 33 deploy]  (0.9ms) COMMIT [shard 33 deploy]  (0.1ms) BEGIN [shard 31 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_33' WHERE "switchman_shards"."id" = 33 [shard 31 master]  (0.4ms) COMMIT [shard 31 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 31 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 31 master]  (0.1ms) BEGIN [shard 31 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 31 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 31], ["name", nil]] [shard 31 master]  (0.4ms) COMMIT [shard 31 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 31 master]  (0.1ms) BEGIN [shard 31 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 32], ["name", "switchman_test_shard_32"]] [shard 31 master]  (0.3ms) COMMIT [shard 31 master]  (0.1ms) BEGIN [shard 31 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 33], ["name", "switchman_test_shard_33"]] [shard 31 master]  (0.5ms) COMMIT [shard 31 master]  (0.1ms) BEGIN [shard 31 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 31 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 32]] [shard 31 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 33]] [shard 31 master]  (0.2ms) BEGIN [shard 33 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '2' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 31 master]  (0.1ms) SAVEPOINT active_record_1 [shard 31 master] SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", "public"]] [shard 31 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 31 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_34 [shard 34 deploy]  (0.2ms) BEGIN [shard 34 deploy]  (2.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 34 deploy]  (7.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 34 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 34 deploy] Migrating to CreateUsers (20130403132607)  (2.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 34 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 34 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 34 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 34 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 34 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 34 deploy] Migrating to CreateDigits (20131022202028)  (2.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 34 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 34 deploy] Migrating to CreateFeatures (20131206172923)  (2.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 34 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 34 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 34 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 34 deploy] Migrating to CreateRoots (20140219183820)  (2.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 34 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 34 deploy]  (1.0ms) COMMIT [shard 34 deploy]  (0.4ms) SAVEPOINT active_record_1 [shard 31 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_34' WHERE "switchman_shards"."id" = 34 [shard 31 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 31 master]  (0.1ms) BEGIN [shard 34 master] SQL (1.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:27 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:27 UTC +00:00]] [shard 34 master]  (0.5ms) COMMIT [shard 34 master]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 34 master]  (5.7ms) DROP SCHEMA switchman_test_shard_34 CASCADE [shard 34 deploy]  (0.4ms) SELECT COUNT(*) FROM "users"  [shard 34 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.2ms) ROLLBACK [shard 33 master]  (0.2ms) ROLLBACK [shard 31 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 31 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 31 master]  (4.7ms) DROP SCHEMA switchman_test_shard_32 CASCADE [shard 32 deploy]  (0.1ms) BEGIN SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 32]]  (0.1ms) COMMIT  (5.0ms) DROP SCHEMA switchman_test_shard_33 CASCADE [shard 33 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 33]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "non_existent_shard"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "users" does not exist LINE 5: WHERE a.attrelid = '"users"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.3ms) SELECT COUNT(*) FROM "users" [shard 36 master]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK SQL (0.3ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.5ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.5ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_44 [shard 44 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 44 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 44 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 44 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 44 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 44 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 44 deploy] Migrating to CreateAppendages (20130411202442)  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 44 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 44 deploy] Migrating to CreateMirrorUsers (20130411202551)  (3.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 44 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 44 deploy] Migrating to CreateDigits (20131022202028)  (3.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 44 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 44 deploy] Migrating to CreateFeatures (20131206172923)  (3.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 44 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 44 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 44 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 44 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 44 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 44 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 deploy]  (0.4ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_44' WHERE "switchman_shards"."id" = 44 [shard 43 master]  (0.7ms) COMMIT [shard 43 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '8' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", "public"]] [shard 43 master]  (0.2ms) COMMIT [shard 43 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_45 [shard 45 deploy]  (0.1ms) BEGIN [shard 45 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 45 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 45 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 45 deploy] Migrating to CreateUsers (20130403132607)  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 45 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 45 deploy] Migrating to CreateAppendages (20130411202442)  (2.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 45 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 45 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 45 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 45 deploy] Migrating to CreateDigits (20131022202028)  (2.3ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 45 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 45 deploy] Migrating to CreateFeatures (20131206172923)  (2.3ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 45 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 45 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 45 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 45 deploy] Migrating to CreateRoots (20140219183820)  (2.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 45 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 45 deploy]  (0.8ms) COMMIT [shard 45 deploy]  (0.1ms) BEGIN [shard 43 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_45' WHERE "switchman_shards"."id" = 45 [shard 43 master]  (0.3ms) COMMIT [shard 43 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 43], ["name", nil]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.0ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 44], ["name", "switchman_test_shard_44"]] [shard 43 master]  (0.2ms) COMMIT [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 45], ["name", "switchman_test_shard_45"]] [shard 43 master]  (0.2ms) COMMIT [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 43], ["name", nil]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.0ms) BEGIN [shard 43 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 44], ["name", "switchman_test_shard_44"]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 45], ["name", "switchman_test_shard_45"]] [shard 43 master]  (0.2ms) COMMIT [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (1.1ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:39 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:39 UTC +00:00], ["user_id", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (1.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:39 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.2ms) SAVEPOINT active_record_1 [shard 44 master] SQL (1.0ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:39 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:39 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 44 LIMIT 1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:39 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:39 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:39 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:39 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:39 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:39 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.1ms) BEGIN [shard 43 master]  (0.0ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 43], ["name", nil]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 44], ["name", "switchman_test_shard_44"]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 45], ["name", "switchman_test_shard_45"]] [shard 43 master]  (0.2ms) COMMIT [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 43], ["name", nil]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 44], ["name", "switchman_test_shard_44"]] [shard 43 master]  (0.2ms) COMMIT [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 45], ["name", "switchman_test_shard_45"]] [shard 43 master]  (0.2ms) COMMIT [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 44 LIMIT 1 [shard 43 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 4 AND "appendages"."id" = $1 LIMIT 1 [["id", 2]] [shard 44 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 1 AND "appendages"."id" = $1 LIMIT 1 [["id", 440000000000002]] [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.2ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.2ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 45 LIMIT 1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5], ["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 6]] [shard 44 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 11 LIMIT 1 [shard 44 master]  (0.2ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 12 [shard 44 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 12]] [shard 44 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 12 [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 13], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 14], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 13]] [shard 44 master]  (0.1ms) SHOW max_identifier_length [shard 44 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 13 AND "users"."id" = 15 LIMIT 1 [shard 44 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 13]] [shard 44 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 13 AND "users"."id" = 450000000000011 LIMIT 1 [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", nil], ["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["appendage_id", 9], ["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["id", 450000000000001], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17 AND "digits"."id" = $1 LIMIT 1 [["id", 450000000000001]] [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.0ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 19], ["value", 1]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 440000000000019], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 19 AND "appendages"."value" IS NULL [shard 44 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 440000000000019 AND "appendages"."value" IS NULL [shard 45 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [shard 44 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 19 AND "appendages"."value" IS NULL [shard 44 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 440000000000019 AND "appendages"."value" IS NULL [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11], ["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11], ["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["value", 1]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 440000000000020], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4], ["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["value", 2]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (1.0ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 20 AND (digits.value IS NOT NULL) [shard 44 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 440000000000020 AND (digits.value IS NOT NULL) [shard 45 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 44 master]  (0.5ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 20 AND (digits.value IS NOT NULL) [shard 44 master]  (0.6ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 440000000000020 AND (digits.value IS NOT NULL) [shard 45 master]  (0.2ms) ROLLBACK [shard 45 master]  (0.2ms) ROLLBACK [shard 44 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12], ["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 440000000000021], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5], ["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["value", 2]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 21 AND "digits"."value" IS NULL [shard 44 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 440000000000021 AND "digits"."value" IS NULL [shard 45 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 44 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 21 AND "digits"."value" IS NULL [shard 44 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 440000000000021 AND "digits"."value" IS NULL [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 22], ["value", 1]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 440000000000022], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 22], ["value", 2]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 22]] [shard 44 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 22 AND (appendages.value IS NOT NULL) [shard 44 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 440000000000022 AND (appendages.value IS NOT NULL) [shard 45 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 22]] [shard 44 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 22 AND (appendages.value IS NOT NULL) [shard 44 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 440000000000022 AND (appendages.value IS NOT NULL) [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 23], ["value", 1]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 440000000000023], ["value", 2]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 23 [shard 44 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 23]] [shard 44 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 23 [shard 44 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 440000000000023 [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.0ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 16], ["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["value", 1]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 440000000000024], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["value", 2]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 24 [shard 44 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 24]] [shard 44 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 24 [shard 44 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 440000000000024 [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 25], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 17], ["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 440000000000025], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9], ["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["value", 2]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 25 AND "digits"."value" IS NULL [shard 44 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 440000000000025 AND "digits"."value" IS NULL [shard 45 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 25]] [shard 44 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 25 AND "digits"."value" IS NULL [shard 44 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 440000000000025 AND "digits"."value" IS NULL [shard 45 master]  (0.2ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 450000000000022]] [shard 43 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 43 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 3]] [shard 43 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 22 LIMIT 1 [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 450000000000023], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 18]] [shard 44 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 23 LIMIT 1 [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 28 LIMIT 1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 28], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 19]] [shard 44 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 28 LIMIT 1 [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 440000000000029], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 440000000000029], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 20], ["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11], ["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 450000000000011], ["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 450000000000012], ["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 450000000000025], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 25], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 25], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 440000000000021], ["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 450000000000013], ["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 14], ["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [shard 44 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (29) [shard 44 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (440000000000029) [shard 45 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (20) [shard 44 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (11, 12) [shard 45 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 45 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (25) [shard 45 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (13, 14) [shard 45 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 440000000000030], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 450000000000026], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master] User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [shard 44 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (30) [shard 44 master] Appendage Load (0.6ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (440000000000030) [shard 45 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 45 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (26) [shard 45 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 22 [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.3ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (1.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 43 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.9ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 17], ["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["value", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 430000000000017], ["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 17 LIMIT 1 [shard 43 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (17) [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 440000000000032], ["value", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 450000000000028], ["value", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 43 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 43 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages"  [shard 43 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (32) [shard 44 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 45 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [shard 43 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 32 [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 440000000000033], ["value", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 21], ["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["value", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 450000000000029], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 440000000000024], ["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["value", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits"  [shard 43 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (21) [shard 43 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (24) [shard 44 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (33) [shard 44 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [shard 45 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 33 [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.2ms) ROLLBACK [shard 44 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.2ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.8ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["owner_id", 22], ["owner_type", "Appendage"], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["value", nil]] [shard 43 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 43 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 2]] [shard 43 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 22 LIMIT 1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master]  (0.2ms) UPDATE "features" SET "owner_id" = 440000000000034, "owner_type" = 'User', "updated_at" = '2015-05-01 19:25:40.582278' WHERE "features"."id" = 2 [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 2]] [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["owner_id", 35], ["owner_type", "User"], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["value", 1]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["owner_id", 440000000000035], ["owner_type", "User"], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["value", 2]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 35 AND "features"."owner_type" = 'User' [shard 44 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 35]] [shard 44 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 35 AND "features"."owner_type" = 'User' [shard 44 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 440000000000035 AND "features"."owner_type" = 'User' [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 43], ["name", nil]] [shard 43 master]  (0.2ms) COMMIT [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 44], ["name", "switchman_test_shard_44"]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master]  (0.0ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 45], ["name", "switchman_test_shard_45"]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '9' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", "public"]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_46 [shard 46 deploy]  (0.1ms) BEGIN [shard 46 deploy]  (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 46 deploy]  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 46 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 46 deploy] Migrating to CreateUsers (20130403132607)  (2.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 46 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 46 deploy] Migrating to CreateAppendages (20130411202442)  (2.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 46 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 46 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 46 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 46 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 46 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 46 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 46 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 46 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 46 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 46 deploy] Migrating to CreateRoots (20140219183820)  (3.3ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 46 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 46 deploy]  (0.5ms) COMMIT [shard 46 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_46' WHERE "switchman_shards"."id" = 46 [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) BEGIN [shard 46 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 46 master]  (0.3ms) COMMIT [shard 46 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 46 master]  (4.8ms) DROP SCHEMA switchman_test_shard_46 CASCADE [shard 46 deploy]  (0.3ms) SELECT COUNT(*) FROM "users"  [shard 46 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 44 LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 45 LIMIT 1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10045 LIMIT 1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 43 master]  (0.2ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 47]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 48]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 48 LIMIT 1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.0ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.2ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 43], ["name", nil]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 44], ["name", "switchman_test_shard_44"]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 45], ["name", "switchman_test_shard_45"]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:40 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 44 LIMIT 1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.0ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.2ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 58], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 59], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 59]] [shard 43 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 58 LIMIT 1 [shard 43 master]  (0.1ms) SHOW max_identifier_length [shard 43 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 58 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.1ms) BEGIN [shard 43 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master]  (0.0ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master]  (0.0ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master]  (0.0ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 43], ["name", nil]] [shard 43 master]  (0.4ms) COMMIT [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 44], ["name", "switchman_test_shard_44"]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 45], ["name", "switchman_test_shard_45"]] [shard 43 master]  (0.2ms) COMMIT [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '25' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "25"], ["default", false], ["name", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.0ms) select sqlite_version(*) [shard 49 deploy]  (0.0ms) begin transaction [shard 49 deploy]  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 49 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 49 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 49 deploy] Migrating to CreateUsers (20130403132607)  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 49 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 49 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 49 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 49 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 49 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 49 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 49 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 49 deploy] Migrating to CreateFeatures (20131206172923)  (0.3ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 49 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 49 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 49 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 49 deploy] Migrating to CreateRoots (20140219183820)  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 49 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 49 deploy]  (1.2ms) commit transaction [shard 49 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_49.sqlite3' WHERE "switchman_shards"."id" = 49 [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.0ms) begin transaction [shard 49 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 49 master]  (0.7ms) commit transaction [shard 49 master] Drop failed: No such file or directory @ unlink_internal - db/shard_49.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 49]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '26' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 43 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "26"], ["default", false], ["name", "public"]] [shard 43 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (6.2ms) CREATE SCHEMA switchman_test_shard_50 [shard 50 deploy]  (0.1ms) BEGIN [shard 50 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 50 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 50 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 50 deploy] Migrating to CreateUsers (20130403132607)  (2.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 50 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 50 deploy] Migrating to CreateAppendages (20130411202442)  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 50 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 50 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 50 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 50 deploy] Migrating to CreateDigits (20131022202028)  (2.3ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 50 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 50 deploy] Migrating to CreateFeatures (20131206172923)  (3.3ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 50 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 50 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 50 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 50 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 50 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 50 deploy]  (0.7ms) COMMIT [shard 50 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_50' WHERE "switchman_shards"."id" = 50 [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) BEGIN [shard 50 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 50 master]  (0.3ms) COMMIT [shard 50 master]  (4.7ms) DROP SCHEMA switchman_test_shard_50 CASCADE [shard 50 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 50]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 43 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 43 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_51 [shard 51 deploy]  (0.1ms) SAVEPOINT active_record_2 [shard 51 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 51 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 51 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 51 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 51 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 51 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 51 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 51 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 51 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 51 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 51 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 51 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 51 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 51 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 51 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 51 deploy] Migrating to CreateRoots (20140219183820)  (2.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 51 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 51 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 51 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_51' WHERE "switchman_shards"."id" = 51 [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 51 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 51 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 51 master]  (2.9ms) DROP SCHEMA switchman_test_shard_51 CASCADE [shard 51 deploy]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 51]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (2.2ms) ROLLBACK [shard 43 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.1ms) BEGIN [shard 43 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 43], ["name", nil]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 44], ["name", "switchman_test_shard_44"]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 45], ["name", "switchman_test_shard_45"]] [shard 43 master]  (0.2ms) COMMIT [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 44 LIMIT 1 [shard 43 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 52]] [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 53 LIMIT 1 [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) LIMIT 1 [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 55]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 440000000000055 LIMIT 1 [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 56 LIMIT 1 [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards"  [shard 43 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 43 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 44 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 43], ["name", nil]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 44], ["name", "switchman_test_shard_44"]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master]  (0.0ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 45], ["name", "switchman_test_shard_45"]] [shard 43 master]  (0.2ms) COMMIT [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "27"], ["default", false], ["name", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "28"], ["default", false], ["name", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.0ms) ROLLBACK [shard 43 master] SQL (1.0ms) DELETE FROM "switchman_shards" [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.1ms) BEGIN [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "29"], ["default", false], ["name", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "29"], ["default", false], ["name", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 43], ["name", nil]] [shard 43 master]  (0.4ms) COMMIT [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.0ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 44], ["name", "switchman_test_shard_44"]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master]  (0.0ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 45], ["name", "switchman_test_shard_45"]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.0ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master] MirrorUser Load (0.4ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 2]] [shard 43 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 2]] [shard 43 master] MirrorUser Load (0.4ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 2 LIMIT 1 [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 43], ["name", nil]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.0ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 44], ["name", "switchman_test_shard_44"]] [shard 43 master]  (0.2ms) COMMIT [shard 43 master]  (0.0ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 45], ["name", "switchman_test_shard_45"]] [shard 43 master]  (0.2ms) COMMIT [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 44 LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 45 LIMIT 1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["owner_id", 63], ["owner_type", "User"], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["value", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 3 LIMIT 1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master] SQL (6.3ms) DELETE FROM "switchman_shards" [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 43], ["name", nil]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 44], ["name", "switchman_test_shard_44"]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master]  (0.0ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 45], ["name", "switchman_test_shard_45"]] [shard 43 master]  (0.2ms) COMMIT [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 44 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.0ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.0ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 43 master] SQL (0.1ms) DELETE FROM "users" [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 43 master] SQL (0.1ms) DELETE FROM "users" [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 43 master] SQL (1.1ms) DELETE FROM "users" [shard 43 master] SQL (0.1ms) DELETE FROM "users" [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.4ms) COMMIT [shard 43 master] User Load (0.3ms) SELECT "users".* FROM "users"  [shard 43 master] SQL (0.4ms) DELETE FROM "users" [shard 43 master] SQL (0.1ms) DELETE FROM "users" [shard 43 master]  (0.0ms) BEGIN [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 70]] [shard 43 master] CACHE (0.0ms) 43::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 70]] CACHE (0.0ms) 43::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 70]]  (0.1ms) BEGIN [shard 43 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2015-05-01 19:25:41.777804' WHERE "users"."id" = 70 [shard 43 master]  (0.3ms) COMMIT [shard 43 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 70]] [shard 43 master] CACHE (0.0ms) 43::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 70]] SQL (0.4ms) DELETE FROM "users" [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 43 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.0ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 43 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.0ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.0ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.0ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.0ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.0ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 43 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 43 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.0ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 43 master]  (0.0ms) BEGIN [shard 43 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 43 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-05-01 19:25:41.838417' [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 43 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-05-01 19:25:41.843328' [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 43 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2015-05-01 19:25:41.846966' [shard 43 master] SQL (0.3ms) DELETE FROM "users" [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.2ms) COMMIT [shard 43 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 43 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-05-01 19:25:41.851013' [shard 43 master] SQL (0.2ms) DELETE FROM "users" [shard 43 master] SQL (0.2ms) DELETE FROM "switchman_shards" [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 43], ["name", nil]] [shard 43 master]  (0.2ms) COMMIT [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 44], ["name", "switchman_test_shard_44"]] [shard 43 master]  (0.2ms) COMMIT [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 45], ["name", "switchman_test_shard_45"]] [shard 43 master]  (0.4ms) COMMIT [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 60 LIMIT 1 [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 44 LIMIT 1 [shard 43 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (80) [shard 43 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 62 [shard 44 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 81]] [shard 43 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 62]] [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (82) [shard 43 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (63) [shard 44 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 82]] [shard 43 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 43], ["name", nil]] [shard 43 master]  (0.2ms) COMMIT [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 44], ["name", "switchman_test_shard_44"]] [shard 43 master]  (0.2ms) COMMIT [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 45], ["name", "switchman_test_shard_45"]] [shard 43 master]  (0.2ms) COMMIT [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.0ms) BEGIN [shard 43 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 43 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master]  (0.0ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master]  (0.0ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 43], ["name", nil]] [shard 43 master]  (0.2ms) COMMIT [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 44], ["name", "switchman_test_shard_44"]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 45], ["name", "switchman_test_shard_45"]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.0ms) ROLLBACK [shard 43 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 43], ["name", nil]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.0ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 44], ["name", "switchman_test_shard_44"]] [shard 43 master]  (0.2ms) COMMIT [shard 43 master]  (0.0ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 45], ["name", "switchman_test_shard_45"]] [shard 43 master]  (0.2ms) COMMIT [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master]  (0.4ms) SELECT COUNT(*) FROM "users"  [shard 45 master]  (0.1ms) SAVEPOINT active_record_2 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 45 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master] SQL (6.1ms) DELETE FROM "switchman_shards" [shard 43 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 43], ["name", nil]] [shard 43 master]  (6.0ms) COMMIT [shard 43 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 44], ["name", "switchman_test_shard_44"]] [shard 43 master]  (5.0ms) COMMIT [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 45], ["name", "switchman_test_shard_45"]] [shard 43 master]  (0.4ms) COMMIT [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 66], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:41 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 44 LIMIT 1 [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 45 LIMIT 1 [shard 43 master] SQL (0.3ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (66) [shard 44 master] SQL (0.5ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (51) [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 67], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 44 master] SQL (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 45 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 44 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 45 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 44 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 68], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 44 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 45 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 44 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 45 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 43 [shard 44 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master] SQL (0.7ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (84) [shard 43 master] SQL (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (69) [shard 44 master] SQL (0.5ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (54) [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 70], ["value", 1]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 70], ["value", 2]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 55], ["value", 3]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 55], ["value", 4]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 55], ["value", 5]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 70 [shard 44 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 44 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 55 [shard 45 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 45 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (45, 46) [shard 44 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (36, 37, 38) [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 71], ["value", 1]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 71], ["value", 2]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 56], ["value", 3]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 56], ["value", 4]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 56], ["value", 5]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.5ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 71 [shard 44 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 44 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 56 [shard 45 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 45 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (47, 48) [shard 44 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (39, 40, 41) [shard 45 master]  (0.2ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 72], ["value", 1]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 72], ["value", 2]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 57], ["value", 3]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 57], ["value", 4]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 57], ["value", 5]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 72 [shard 44 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 44 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 57 [shard 45 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 45 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (49, 50) [shard 44 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (42, 43, 44) [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 73], ["value", 1]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 73], ["value", 2]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 58], ["value", 3]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 58], ["value", 4]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 58], ["value", 5]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 73 [shard 44 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 44 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 58 [shard 45 master]  (0.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 45 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (51, 52) [shard 44 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (45, 46, 47) [shard 45 master]  (0.2ms) ROLLBACK [shard 45 master]  (0.2ms) ROLLBACK [shard 44 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 74], ["value", 1]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 74], ["value", 2]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 59], ["value", 3]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 59], ["value", 4]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 59], ["value", 5]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 74 [shard 44 master]  (0.2ms) SELECT COUNT(*) FROM "appendages"  [shard 44 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 59 [shard 45 master]  (0.1ms) SELECT COUNT(*) FROM "appendages"  [shard 45 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (53, 54) [shard 44 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (48, 49, 50) [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.0ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 75], ["value", 1]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 450000000000060], ["value", 3]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 440000000000075], ["value", 2]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 60], ["value", 4]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 60], ["value", 5]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SHOW max_identifier_length [shard 43 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 44 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 45 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 44 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 45 master]  (0.1ms) SHOW max_identifier_length [shard 45 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 44 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 45 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 44 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) [shard 44 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [shard 45 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 45 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [shard 45 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 45 master]  (0.3ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 76], ["value", 1]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 450000000000061], ["value", 3]] [shard 44 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 440000000000076], ["value", 2]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 61], ["value", 4]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 61], ["value", 5]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 76], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 77], ["value", nil]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 78], ["value", 1]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 450000000000062], ["value", 3]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 440000000000078], ["value", 2]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 62], ["value", 4]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 62], ["value", 5]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 44 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 45 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 44 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 45 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 44 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 45 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 44 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (78) [shard 44 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (62) [shard 45 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 45 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (62) [shard 45 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (78) [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 79], ["value", 1]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 450000000000063], ["value", 3]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 440000000000079], ["value", 2]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 63], ["value", 4]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 63], ["value", 5]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 44 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 45 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 44 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 45 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 44 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 45 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 44 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (79) [shard 44 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (63) [shard 45 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 45 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (63) [shard 45 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (79) [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 80], ["value", 1]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 450000000000064], ["value", 3]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 440000000000080], ["value", 2]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 64], ["value", 4]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 64], ["value", 5]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 44 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 45 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 44 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 45 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 44 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 45 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 44 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (80) [shard 44 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [shard 45 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 45 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [shard 45 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (80) [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 81], ["value", 1]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 450000000000065], ["value", 3]] [shard 44 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 440000000000081], ["value", 2]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 65], ["value", 4]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 45 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:25:42 UTC +00:00], ["user_id", 65], ["value", 5]] [shard 45 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 45 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 44 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 45 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 44 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 45 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 44 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 45 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 44 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (81) [shard 44 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 45 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 45 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 45 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (81) [shard 44 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 44 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 43], ["name", nil]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 44], ["name", "switchman_test_shard_44"]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 45], ["name", "switchman_test_shard_45"]] [shard 43 master]  (0.2ms) COMMIT [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.0ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.0ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (43, 44) AND (id IN (44,45)) [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 43], ["name", nil]] [shard 43 master]  (0.2ms) COMMIT [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 44], ["name", "switchman_test_shard_44"]] [shard 43 master]  (0.2ms) COMMIT [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 45], ["name", "switchman_test_shard_45"]] [shard 43 master]  (0.2ms) COMMIT [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=43 AND id<44)) [shard 43 master]  (0.2ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=43 AND id<44) OR (id>=45 AND id<46)) ORDER BY id [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ('f') [shard 43 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.0ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (43)) [shard 43 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.0ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (43)) [shard 43 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 43 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.0ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=43 AND id<=44)) AND (id NOT IN (43)) [shard 43 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.0ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=44 AND id<=44)) AND (id NOT IN (43)) [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=43 AND id<=44)) ORDER BY id [shard 43 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.0ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=44)) ORDER BY id [shard 43 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.0ms) ROLLBACK [shard 43 master]  (0.1ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (43)) [shard 43 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.0ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.1ms) BEGIN [shard 45 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=44)) ORDER BY id [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 43], ["name", nil]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.0ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 44], ["name", "switchman_test_shard_44"]] [shard 43 master]  (0.2ms) COMMIT [shard 43 master]  (0.0ms) BEGIN [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 45], ["name", "switchman_test_shard_45"]] [shard 43 master]  (0.2ms) COMMIT [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) SAVEPOINT active_record_1 [shard 44 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:26:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:26:42 UTC +00:00]] [shard 44 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 44 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.0ms) ROLLBACK [shard 44 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 43], ["name", nil]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 44], ["name", "switchman_test_shard_44"]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master]  (0.1ms) BEGIN [shard 43 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 45], ["name", "switchman_test_shard_45"]] [shard 43 master]  (0.3ms) COMMIT [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "30"], ["default", false], ["name", nil]] [shard 43 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.0ms) SAVEPOINT active_record_1 [shard 43 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "30"], ["default", false], ["name", nil]] [shard 43 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 43 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.1ms) ROLLBACK [shard 45 master]  (0.1ms) ROLLBACK [shard 43 master]  (0.0ms) BEGIN [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 44]] [shard 43 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 45]] [shard 43 master]  (0.0ms) BEGIN [shard 45 master]  (0.0ms) ROLLBACK [shard 45 master]  (0.0ms) ROLLBACK [shard 43 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 43 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 43 master]  (6.6ms) DROP SCHEMA switchman_test_shard_44 CASCADE [shard 44 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 44]]  (0.1ms) COMMIT  (6.8ms) DROP SCHEMA switchman_test_shard_45 CASCADE [shard 45 deploy]  (0.4ms) BEGIN SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 45]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.8ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.1ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_59 [shard 59 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 59 deploy]  (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 59 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 59 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 59 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (4.4ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [shard 59 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [shard 59 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 59 deploy] Migrating to CreateUsers (20130403132607)  (2.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 59 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 59 deploy] Migrating to CreateAppendages (20130411202442)  (2.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 59 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 59 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 59 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 59 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 59 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 59 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 59 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 59 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 59 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 59 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 59 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 59 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_59' WHERE "switchman_shards"."id" = 59 [shard 58 master]  (1.2ms) COMMIT [shard 58 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 58 master]  (0.2ms) COMMIT [shard 58 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_60 [shard 60 deploy]  (0.1ms) BEGIN [shard 60 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 60 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 60 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 60 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [shard 60 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [shard 60 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 60 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 60 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 60 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 60 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 60 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 60 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 60 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 60 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 60 deploy] Migrating to CreateFeatures (20131206172923)  (2.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 60 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 60 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 60 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 60 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 60 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 60 deploy]  (0.7ms) COMMIT [shard 60 deploy]  (0.1ms) BEGIN [shard 58 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_60' WHERE "switchman_shards"."id" = 60 [shard 58 master]  (0.3ms) COMMIT [shard 58 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 58], ["name", nil]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 59], ["name", "switchman_test_shard_59"]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 60], ["name", "switchman_test_shard_60"]] [shard 58 master]  (0.2ms) COMMIT [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (1.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["owner_id", 85], ["owner_type", "User"], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["value", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 4 LIMIT 1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 59 LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 60 LIMIT 1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master] SQL (5.5ms) DELETE FROM "switchman_shards" [shard 58 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 58], ["name", nil]] [shard 58 master]  (6.0ms) COMMIT [shard 58 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 59], ["name", "switchman_test_shard_59"]] [shard 58 master]  (4.6ms) COMMIT [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 60], ["name", "switchman_test_shard_60"]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.2ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 58], ["name", nil]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 59], ["name", "switchman_test_shard_59"]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master]  (0.0ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 60], ["name", "switchman_test_shard_60"]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.2ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 3], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2]] [shard 59 master]  (0.1ms) SHOW max_identifier_length [shard 59 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 2 AND "users"."id" = 4 LIMIT 1 [shard 59 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 59 LIMIT 1 [shard 58 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2]] [shard 59 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 2 AND "users"."id" = 600000000000002 LIMIT 1 [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 60 LIMIT 1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", nil], ["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["appendage_id", 2], ["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["id", 600000000000001], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 7 AND "digits"."id" = $1 LIMIT 1 [["id", 600000000000001]] [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 8 AND "appendages"."id" = $1 LIMIT 1 [["id", 3]] [shard 59 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 6 AND "appendages"."id" = $1 LIMIT 1 [["id", 590000000000003]] [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4], ["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 9 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.2ms) ROLLBACK [shard 59 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 6]] [shard 59 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 11 LIMIT 1 [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 14 [shard 59 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 14]] [shard 59 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 14 [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9], ["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 590000000000017], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2], ["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["value", 2]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17 AND "digits"."value" IS NULL [shard 59 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 590000000000017 AND "digits"."value" IS NULL [shard 60 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [shard 59 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17 AND "digits"."value" IS NULL [shard 59 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 590000000000017 AND "digits"."value" IS NULL [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10], ["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["value", 1]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 590000000000018], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3], ["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["value", 2]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 18 [shard 59 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [shard 59 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 18 [shard 59 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 590000000000018 [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 19], ["value", 1]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 590000000000019], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 19 AND "appendages"."value" IS NULL [shard 59 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 590000000000019 AND "appendages"."value" IS NULL [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [shard 59 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 19 AND "appendages"."value" IS NULL [shard 59 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 590000000000019 AND "appendages"."value" IS NULL [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 12], ["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 590000000000020], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5], ["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["value", 2]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 20 AND "digits"."value" IS NULL [shard 59 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 590000000000020 AND "digits"."value" IS NULL [shard 60 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [shard 59 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 20 AND "digits"."value" IS NULL [shard 59 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 590000000000020 AND "digits"."value" IS NULL [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 21], ["value", 1]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 590000000000021], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 21], ["value", 2]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 59 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 21 AND (appendages.value IS NOT NULL) [shard 59 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 590000000000021 AND (appendages.value IS NOT NULL) [shard 60 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 59 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 21 AND (appendages.value IS NOT NULL) [shard 59 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 590000000000021 AND (appendages.value IS NOT NULL) [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 22], ["value", 1]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 590000000000022], ["value", 2]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 22 [shard 59 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 22]] [shard 59 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 22 [shard 59 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 590000000000022 [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 16], ["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 16], ["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["value", 1]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 590000000000023], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["value", 2]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 23 AND (digits.value IS NOT NULL) [shard 59 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 590000000000023 AND (digits.value IS NOT NULL) [shard 60 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 23]] [shard 59 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 23 AND (digits.value IS NOT NULL) [shard 59 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 590000000000023 AND (digits.value IS NOT NULL) [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["owner_id", 41], ["owner_type", "Appendage"], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["value", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 5]] [shard 58 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 41 LIMIT 1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master]  (0.2ms) UPDATE "features" SET "owner_id" = 590000000000024, "owner_type" = 'User', "updated_at" = '2015-05-01 19:47:41.425249' WHERE "features"."id" = 5 [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master] Feature Load (0.1ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 5]] [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["owner_id", 25], ["owner_type", "User"], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["value", 1]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["owner_id", 590000000000025], ["owner_type", "User"], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["value", 2]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 25 AND "features"."owner_type" = 'User' [shard 59 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 25]] [shard 59 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 25 AND "features"."owner_type" = 'User' [shard 59 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 590000000000025 AND "features"."owner_type" = 'User' [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 590000000000026], ["value", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 42], ["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["value", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 600000000000024], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 590000000000017], ["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["value", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" [shard 58 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (42) [shard 58 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (17) [shard 59 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [shard 59 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [shard 60 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 26 [shard 59 master]  (0.2ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 27], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 590000000000027], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 600000000000025], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 59 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (27) [shard 59 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (590000000000027) [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [shard 60 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (25) [shard 60 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 18 [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 43], ["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["value", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 580000000000043], ["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 43 LIMIT 1 [shard 58 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (43) [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 590000000000029], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 590000000000029], ["value", nil]] [shard 60 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 20], ["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10], ["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 600000000000010], ["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 600000000000011], ["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 600000000000027], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 27], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 27], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 590000000000021], ["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 600000000000012], ["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["value", nil]] [shard 59 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 13], ["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["value", nil]] [shard 60 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [shard 59 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (29) [shard 59 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (590000000000029) [shard 60 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (20) [shard 59 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (10, 11) [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [shard 60 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (27) [shard 60 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (12, 13) [shard 60 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 8 [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 590000000000030], ["value", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 600000000000028], ["value", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 87], ["value", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 58 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [shard 59 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (87) [shard 58 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 30 [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 600000000000029]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master] Root Load (0.4ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 4]] [shard 58 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 29 LIMIT 1 [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 600000000000030], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 22]] [shard 59 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 30 LIMIT 1 [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 33 LIMIT 1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", 33], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 23]] [shard 59 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 33 LIMIT 1 [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 58], ["name", nil]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 59], ["name", "switchman_test_shard_59"]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 60], ["name", "switchman_test_shard_60"]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 58 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 58], ["name", nil]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 59], ["name", "switchman_test_shard_59"]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master]  (0.0ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 60], ["name", "switchman_test_shard_60"]] [shard 58 master]  (0.2ms) COMMIT [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master] MirrorUser Load (0.6ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 3]] [shard 58 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 3]] [shard 58 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 3 LIMIT 1 [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 58], ["name", nil]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 59], ["name", "switchman_test_shard_59"]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 60], ["name", "switchman_test_shard_60"]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 58], ["name", nil]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 59], ["name", "switchman_test_shard_59"]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 60], ["name", "switchman_test_shard_60"]] [shard 58 master]  (0.2ms) COMMIT [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 60 master]  (0.1ms) SAVEPOINT active_record_2 [shard 60 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 60 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 58 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 58], ["name", nil]] [shard 58 master]  (0.5ms) COMMIT [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.0ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 59], ["name", "switchman_test_shard_59"]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 60], ["name", "switchman_test_shard_60"]] [shard 58 master]  (0.2ms) COMMIT [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 58 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 58], ["name", nil]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.0ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 59], ["name", "switchman_test_shard_59"]] [shard 58 master]  (0.2ms) COMMIT [shard 58 master]  (0.0ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 60], ["name", "switchman_test_shard_60"]] [shard 58 master]  (0.2ms) COMMIT [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 59 LIMIT 1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master] SQL (6.2ms) DELETE FROM "switchman_shards" [shard 58 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 58], ["name", nil]] [shard 58 master]  (5.0ms) COMMIT [shard 58 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 59], ["name", "switchman_test_shard_59"]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 60], ["name", "switchman_test_shard_60"]] [shard 58 master]  (0.2ms) COMMIT [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=59)) ORDER BY id [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ('f') [shard 58 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (58)) [shard 58 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=58 AND id<59)) [shard 58 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=58 AND id<59) OR (id>=60 AND id<61)) ORDER BY id [shard 58 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=59)) ORDER BY id [shard 58 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=58 AND id<=59)) AND (id NOT IN (58)) [shard 58 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (58)) [shard 58 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=59 AND id<=59)) AND (id NOT IN (58)) [shard 58 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=58 AND id<=59)) ORDER BY id [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (58)) [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 58], ["name", nil]] [shard 58 master]  (0.2ms) COMMIT [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 59], ["name", "switchman_test_shard_59"]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master]  (0.0ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 60], ["name", "switchman_test_shard_60"]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 59 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 58 master]  (0.4ms) COMMIT [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 58 master]  (0.0ms) BEGIN [shard 58 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 58 master] SQL (0.1ms) DELETE FROM "users" [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 58 master] SQL (0.1ms) DELETE FROM "users" [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master]  (0.0ms) BEGIN [shard 58 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 98]] [shard 58 master] CACHE (0.0ms) 58::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 98]] CACHE (0.0ms) 58::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 98]]  (0.1ms) BEGIN [shard 58 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2015-05-01 19:47:41.913831' WHERE "users"."id" = 98 [shard 58 master]  (0.3ms) COMMIT [shard 58 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 98]] [shard 58 master] CACHE (0.0ms) 58::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 98]] SQL (0.3ms) DELETE FROM "users" [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 58 master] SQL (0.5ms) DELETE FROM "users" [shard 58 master] SQL (0.1ms) DELETE FROM "users" [shard 58 master]  (0.0ms) BEGIN [shard 58 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 58 master] SQL (0.3ms) DELETE FROM "users" [shard 58 master] SQL (0.1ms) DELETE FROM "users" [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 58 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-05-01 19:47:41.944687' [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 58 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-05-01 19:47:41.950388' [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 58 master]  (0.4ms) COMMIT [shard 58 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 58 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2015-05-01 19:47:41.954008' [shard 58 master] SQL (0.3ms) DELETE FROM "users" [shard 58 master]  (0.0ms) BEGIN [shard 58 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:41 UTC +00:00]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 58 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2015-05-01 19:47:41.958139' [shard 58 master] SQL (0.4ms) DELETE FROM "users" [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 58], ["name", nil]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.0ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 59], ["name", "switchman_test_shard_59"]] [shard 58 master]  (0.2ms) COMMIT [shard 58 master]  (0.0ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 60], ["name", "switchman_test_shard_60"]] [shard 58 master]  (0.2ms) COMMIT [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:48:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:48:41 UTC +00:00]] [shard 59 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 59 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.0ms) BEGIN [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", "non_existent_shard"]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [shard 58 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.4ms) SELECT COUNT(*) FROM "users"  [shard 63 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.9ms) SELECT COUNT(*) FROM "users" [shard 64 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 58 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 58], ["name", nil]] [shard 58 master]  (0.4ms) COMMIT [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 59], ["name", "switchman_test_shard_59"]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 60], ["name", "switchman_test_shard_60"]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 60 LIMIT 1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10060 LIMIT 1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '11' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", "public"]] [shard 58 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (6.4ms) CREATE SCHEMA switchman_test_shard_71 [shard 71 deploy]  (0.1ms) BEGIN [shard 71 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 71 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 71 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 71 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [shard 71 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [shard 71 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 71 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 71 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 71 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 71 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 71 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 71 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 71 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 71 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 71 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 71 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 71 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 71 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 71 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 71 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 71 deploy]  (0.8ms) COMMIT [shard 71 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_71' WHERE "switchman_shards"."id" = 71 [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) BEGIN [shard 71 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 71 master]  (0.3ms) COMMIT [shard 71 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 71 master]  (5.3ms) DROP SCHEMA switchman_test_shard_71 CASCADE [shard 71 deploy]  (0.4ms) SELECT COUNT(*) FROM "users"  [shard 71 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 59 LIMIT 1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 58 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 58 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 72]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 72 LIMIT 1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 58 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 58 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 73]] [shard 58 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 58], ["name", nil]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.0ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 59], ["name", "switchman_test_shard_59"]] [shard 58 master]  (0.2ms) COMMIT [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 60], ["name", "switchman_test_shard_60"]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '12' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.0ms) select sqlite_version(*) [shard 74 deploy]  (0.0ms) begin transaction [shard 74 deploy]  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 74 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 74 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 74 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (0.2ms) CREATE TABLE "switchman_shards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "database_server_id" varchar(255), "default" boolean DEFAULT 'f' NOT NULL)  [shard 74 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [shard 74 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 74 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 74 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 74 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 74 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 74 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 74 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 74 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 74 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 74 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 74 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 74 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 74 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 74 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 74 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 74 deploy]  (1.2ms) commit transaction [shard 74 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_74.sqlite3' WHERE "switchman_shards"."id" = 74 [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.0ms) begin transaction [shard 74 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 74 master]  (0.6ms) commit transaction [shard 74 master] Drop failed: No such file or directory @ unlink_internal - db/shard_74.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 74]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '13' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", "public"]] [shard 58 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (6.5ms) CREATE SCHEMA switchman_test_shard_75 [shard 75 deploy]  (0.1ms) BEGIN [shard 75 deploy]  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 75 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 75 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 75 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.6ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [shard 75 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [shard 75 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 75 deploy] Migrating to CreateUsers (20130403132607)  (2.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 75 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 75 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 75 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 75 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 75 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 75 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 75 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 75 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 75 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 75 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 75 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 75 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 75 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 75 deploy]  (0.7ms) COMMIT [shard 75 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_75' WHERE "switchman_shards"."id" = 75 [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) BEGIN [shard 75 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 75 master]  (0.4ms) COMMIT [shard 75 master]  (5.5ms) DROP SCHEMA switchman_test_shard_75 CASCADE [shard 75 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 75]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 58 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_76 [shard 76 deploy]  (0.1ms) SAVEPOINT active_record_2 [shard 76 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 76 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 76 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 76 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.3ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [shard 76 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [shard 76 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 76 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 76 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 76 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 76 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 76 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 76 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 76 deploy] Migrating to CreateDigits (20131022202028)  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 76 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 76 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 76 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 76 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 76 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 76 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 76 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 76 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 76 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_76' WHERE "switchman_shards"."id" = 76 [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.2ms) SAVEPOINT active_record_1 [shard 76 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 76 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 76 master]  (3.3ms) DROP SCHEMA switchman_test_shard_76 CASCADE [shard 76 deploy]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 76]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (2.2ms) ROLLBACK [shard 58 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 58], ["name", nil]] [shard 58 master]  (6.2ms) COMMIT [shard 58 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 59], ["name", "switchman_test_shard_59"]] [shard 58 master]  (5.0ms) COMMIT [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 60], ["name", "switchman_test_shard_60"]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 105], ["value", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (2.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 34], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 106], ["value", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 35], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 106], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 107], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 107]] [shard 58 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 106 LIMIT 1 [shard 58 master]  (0.1ms) SHOW max_identifier_length [shard 58 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 106 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.2ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 109], ["value", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.8ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 110], ["value", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 59 LIMIT 1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 111], ["value", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 112], ["value", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 113], ["value", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 114], ["value", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 115], ["value", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 116], ["value", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 43], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 117], ["value", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.2ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 118], ["value", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 119], ["value", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 120], ["value", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 47], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 121], ["value", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 122], ["value", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 55], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "29"], ["default", false], ["name", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "29"], ["default", false], ["name", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 58], ["name", nil]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 59], ["name", "switchman_test_shard_59"]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master]  (0.0ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 60], ["name", "switchman_test_shard_60"]] [shard 58 master]  (0.2ms) COMMIT [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 56 LIMIT 1 [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 58 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 58 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 59 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 58]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 590000000000058 LIMIT 1 [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 59 LIMIT 1 [shard 58 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 59]] [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 60 LIMIT 1 [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) LIMIT 1 [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master] SQL (5.9ms) DELETE FROM "switchman_shards" [shard 58 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 58], ["name", nil]] [shard 58 master]  (4.5ms) COMMIT [shard 58 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 59], ["name", "switchman_test_shard_59"]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 60], ["name", "switchman_test_shard_60"]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 62], ["value", 1]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 60 LIMIT 1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 600000000000051], ["value", 3]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 59 LIMIT 1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 590000000000062], ["value", 2]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 51], ["value", 4]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 51], ["value", 5]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 59 master]  (0.4ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 60 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 59 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 60 master]  (0.1ms) SHOW max_identifier_length [shard 60 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 59 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 60 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 59 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (62) [shard 59 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (51) [shard 60 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (51) [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (62) [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 63], ["value", 1]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 600000000000052], ["value", 3]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 590000000000063], ["value", 2]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 52], ["value", 4]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 52], ["value", 5]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 59 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 60 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 59 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 60 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 59 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 60 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 59 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (63) [shard 59 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (52) [shard 60 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 60 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (52) [shard 60 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (63) [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 64], ["value", 1]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 600000000000053], ["value", 3]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 590000000000064], ["value", 2]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 53], ["value", 4]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 53], ["value", 5]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 59 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 60 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 59 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 60 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 59 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 60 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 59 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [shard 59 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 60 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 65], ["value", 1]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 600000000000054], ["value", 3]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 590000000000065], ["value", 2]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 54], ["value", 4]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 54], ["value", 5]] [shard 60 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 59 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 60 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 59 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 60 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 59 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 60 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 59 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 59 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 60 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 60 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 60 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (65) [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 66], ["value", 1]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 600000000000055], ["value", 3]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 590000000000066], ["value", 2]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 55], ["value", 4]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:42 UTC +00:00], ["user_id", 55], ["value", 5]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 59 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 60 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 59 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 60 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 59 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 60 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 59 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 59 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 60 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 60 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 60 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 67], ["value", 1]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 600000000000056], ["value", 3]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 590000000000067], ["value", 2]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 56], ["value", 4]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 56], ["value", 5]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 67], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 68], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (123) [shard 58 master] SQL (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (69) [shard 59 master] SQL (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (57) [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 70], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 56 [shard 59 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 60 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 56 [shard 59 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 60 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 56 [shard 59 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 71], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (71) [shard 59 master] SQL (0.1ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (59) [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 72], ["value", nil]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 58 [shard 59 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 53 [shard 60 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 58 [shard 59 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 53 [shard 60 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 58 [shard 59 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 53 [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 73], ["value", 1]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 73], ["value", 2]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 61], ["value", 3]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 61], ["value", 4]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 61], ["value", 5]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 73 [shard 59 master]  (0.2ms) SELECT COUNT(*) FROM "appendages"  [shard 59 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 61 [shard 60 master]  (0.2ms) SELECT COUNT(*) FROM "appendages"  [shard 60 master]  (0.4ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (59, 60) [shard 59 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (54, 55, 56) [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 74], ["value", 1]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 74], ["value", 2]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 62], ["value", 3]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 62], ["value", 4]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 62], ["value", 5]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 74 [shard 59 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 59 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 62 [shard 60 master]  (0.1ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 60 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (61, 62) [shard 59 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (57, 58, 59) [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 75], ["value", 1]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 75], ["value", 2]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 63], ["value", 3]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 63], ["value", 4]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 63], ["value", 5]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 75 [shard 59 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 59 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 63 [shard 60 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 60 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (63, 64) [shard 59 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (60, 61, 62) [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 76], ["value", 1]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 76], ["value", 2]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 64], ["value", 3]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 64], ["value", 4]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 64], ["value", 5]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 76 [shard 59 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 59 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 64 [shard 60 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 60 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (65, 66) [shard 59 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (63, 64, 65) [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 77], ["value", 1]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 77], ["value", 2]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 65], ["value", 3]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 65], ["value", 4]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 60 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["user_id", 65], ["value", 5]] [shard 60 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 60 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 77 [shard 59 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 59 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 65 [shard 60 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 60 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (67, 68) [shard 59 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (66, 67, 68) [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 58 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 58], ["name", nil]] [shard 58 master]  (0.4ms) COMMIT [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 59], ["name", "switchman_test_shard_59"]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master]  (0.0ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 60], ["name", "switchman_test_shard_60"]] [shard 58 master]  (0.2ms) COMMIT [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "30"], ["default", false], ["name", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.2ms) ROLLBACK [shard 60 master]  (0.2ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "31"], ["default", false], ["name", nil]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master] SQL (1.0ms) DELETE FROM "switchman_shards" [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 58], ["name", nil]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.0ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 59], ["name", "switchman_test_shard_59"]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master]  (0.0ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 60], ["name", "switchman_test_shard_60"]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 79 LIMIT 1 [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.1ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.1ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 59 LIMIT 1 [shard 58 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (127) [shard 58 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (80) [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 81 [shard 59 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 128]] [shard 58 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 81]] [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) SAVEPOINT active_record_1 [shard 58 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 58 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 58 master]  (0.0ms) SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:47:43 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:47:43 UTC +00:00]] [shard 59 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 59 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (129) [shard 58 master] SQL (0.1ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (82) [shard 59 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 129]] [shard 58 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 82]] [shard 59 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 59 master] SQL (5.0ms) DELETE FROM "switchman_shards" [shard 58 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 58], ["name", nil]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 59], ["name", "switchman_test_shard_59"]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master]  (0.1ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 60], ["name", "switchman_test_shard_60"]] [shard 58 master]  (0.2ms) COMMIT [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 58], ["name", nil]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (0.0ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 59], ["name", "switchman_test_shard_59"]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master]  (0.0ms) BEGIN [shard 58 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 60], ["name", "switchman_test_shard_60"]] [shard 58 master]  (0.3ms) COMMIT [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (58, 59) AND (id IN (59,60)) [shard 58 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.0ms) ROLLBACK [shard 58 master]  (0.0ms) BEGIN [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.1ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master]  (0.1ms) BEGIN [shard 58 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 59]] [shard 58 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 60]] [shard 58 master]  (0.0ms) BEGIN [shard 60 master]  (0.0ms) ROLLBACK [shard 60 master]  (0.1ms) ROLLBACK [shard 58 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 58 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 58 master]  (6.2ms) DROP SCHEMA switchman_test_shard_59 CASCADE [shard 59 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 59]]  (0.1ms) COMMIT  (6.8ms) DROP SCHEMA switchman_test_shard_60 CASCADE [shard 60 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 60]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.6ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (1.0ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.5ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_82 [shard 82 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 82 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 82 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 82 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 82 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [shard 82 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [shard 82 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 82 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 82 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 82 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 82 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 82 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 82 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 82 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 82 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 82 deploy] Migrating to CreateFeatures (20131206172923)  (2.4ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 82 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 82 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.4ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 82 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 82 deploy] Migrating to CreateRoots (20140219183820)  (2.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 82 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 82 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 deploy]  (0.6ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_82' WHERE "switchman_shards"."id" = 82 [shard 81 master]  (1.1ms) COMMIT [shard 81 master] Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 81 master]  (0.1ms) BEGIN [shard 81 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_83 [shard 83 deploy]  (0.1ms) BEGIN [shard 83 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 83 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 83 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 83 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [shard 83 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [shard 83 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 83 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 83 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 83 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 83 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 83 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 83 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 83 deploy] Migrating to CreateDigits (20131022202028)  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 83 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 83 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 83 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 83 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 83 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 83 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 83 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 83 deploy]  (0.8ms) COMMIT [shard 83 deploy]  (0.1ms) BEGIN [shard 81 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_83' WHERE "switchman_shards"."id" = 83 [shard 81 master]  (0.3ms) COMMIT [shard 81 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 81], ["name", nil]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.1ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 82], ["name", "switchman_test_shard_82"]] [shard 81 master]  (0.2ms) COMMIT [shard 81 master]  (0.0ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 83], ["name", "switchman_test_shard_83"]] [shard 81 master]  (0.2ms) COMMIT [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 82 LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 83 LIMIT 1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10083 LIMIT 1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.2ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 84]] [shard 81 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 84 LIMIT 1 [shard 81 master]  (0.2ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 85]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 81 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '3' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 81 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", "public"]] [shard 81 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.8ms) CREATE SCHEMA switchman_test_shard_86 [shard 86 deploy]  (0.1ms) BEGIN [shard 86 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 86 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 86 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 86 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.3ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [shard 86 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [shard 86 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 86 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 86 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 86 deploy] Migrating to CreateAppendages (20130411202442)  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 86 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 86 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.3ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 86 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 86 deploy] Migrating to CreateDigits (20131022202028)  (2.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 86 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 86 deploy] Migrating to CreateFeatures (20131206172923)  (2.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 86 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 86 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 86 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 86 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 86 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 86 deploy]  (0.8ms) COMMIT [shard 86 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_86' WHERE "switchman_shards"."id" = 86 [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) BEGIN [shard 86 master] SQL (1.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 86 master]  (0.3ms) COMMIT [shard 86 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 86 master]  (5.6ms) DROP SCHEMA switchman_test_shard_86 CASCADE [shard 86 deploy]  (0.4ms) SELECT COUNT(*) FROM "users" [shard 86 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 81 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 81 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 81 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master] SQL (6.9ms) DELETE FROM "switchman_shards" [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 81], ["name", nil]] [shard 81 master]  (0.2ms) COMMIT [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.1ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 82], ["name", "switchman_test_shard_82"]] [shard 81 master]  (0.2ms) COMMIT [shard 81 master]  (0.1ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 83], ["name", "switchman_test_shard_83"]] [shard 81 master]  (0.2ms) COMMIT [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.2ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master] SQL (5.6ms) DELETE FROM "switchman_shards" [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 81], ["name", nil]] [shard 81 master]  (5.8ms) COMMIT [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.1ms) BEGIN [shard 81 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 82], ["name", "switchman_test_shard_82"]] [shard 81 master]  (6.1ms) COMMIT [shard 81 master]  (0.1ms) BEGIN [shard 81 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 83], ["name", "switchman_test_shard_83"]] [shard 81 master]  (0.4ms) COMMIT [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 82 LIMIT 1 [shard 81 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 2]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 820000000000002 LIMIT 1 [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 3 LIMIT 1 [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 81 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 81 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 82 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 5 LIMIT 1 [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) LIMIT 1 [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 81], ["name", nil]] [shard 81 master]  (0.2ms) COMMIT [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.1ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 82], ["name", "switchman_test_shard_82"]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master]  (0.0ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 83], ["name", "switchman_test_shard_83"]] [shard 81 master]  (0.2ms) COMMIT [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master] SQL (1.0ms) DELETE FROM "switchman_shards" [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 81], ["name", nil]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.0ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 82], ["name", "switchman_test_shard_82"]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master]  (0.0ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 83], ["name", "switchman_test_shard_83"]] [shard 81 master]  (0.2ms) COMMIT [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.6ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 82 LIMIT 1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (1.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master] SQL (4.7ms) DELETE FROM "switchman_shards" [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 81], ["name", nil]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.1ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 82], ["name", "switchman_test_shard_82"]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master]  (0.0ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 83], ["name", "switchman_test_shard_83"]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=81 AND id<82) OR (id>=83 AND id<84)) ORDER BY id [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (81)) [shard 81 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=82 AND id<=82)) AND (id NOT IN (81)) [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=81 AND id<=82)) ORDER BY id [shard 81 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=82)) ORDER BY id [shard 81 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ('f') [shard 81 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=82)) ORDER BY id [shard 81 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=81 AND id<82)) [shard 81 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (81)) [shard 81 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (81)) [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=81 AND id<=82)) AND (id NOT IN (81)) [shard 81 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 81], ["name", nil]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.0ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 82], ["name", "switchman_test_shard_82"]] [shard 81 master]  (0.2ms) COMMIT [shard 81 master]  (0.0ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 83], ["name", "switchman_test_shard_83"]] [shard 81 master]  (0.2ms) COMMIT [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 133], ["value", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 134], ["value", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 135], ["value", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 136], ["value", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 137], ["value", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 138], ["value", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 139], ["value", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 82 LIMIT 1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 140], ["value", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 141], ["value", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 142], ["value", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 142], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 143], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 143]] [shard 81 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 142 LIMIT 1 [shard 81 master]  (0.1ms) SHOW max_identifier_length [shard 81 master] User Load (0.4ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 142 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 145], ["value", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 146], ["value", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 147], ["value", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 22], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 148], ["value", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 23], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 149], ["value", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 82 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 24], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 150], ["value", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 25], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 81], ["name", nil]] [shard 81 master]  (0.4ms) COMMIT [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.1ms) BEGIN [shard 81 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 82], ["name", "switchman_test_shard_82"]] [shard 81 master]  (0.4ms) COMMIT [shard 81 master]  (0.1ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 83], ["name", "switchman_test_shard_83"]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 81 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 82 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 81 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-05-01 19:52:06.794324' [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 81 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-05-01 19:52:06.800808' [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.4ms) COMMIT [shard 81 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 81 master] SQL (1.1ms) UPDATE "users" SET "updated_at" = '2015-05-01 19:52:06.804849' [shard 81 master] SQL (0.3ms) DELETE FROM "users" [shard 81 master]  (0.1ms) BEGIN [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.2ms) COMMIT [shard 81 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 81 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-05-01 19:52:06.810095' [shard 81 master] SQL (0.2ms) DELETE FROM "users" [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 81 master]  (0.1ms) BEGIN [shard 81 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.4ms) COMMIT [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 81 master]  (0.0ms) BEGIN [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.2ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 81 master] SQL (0.2ms) DELETE FROM "users" [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 81 master] SQL (0.1ms) DELETE FROM "users" [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master] User Load (0.2ms) SELECT "users".* FROM "users" [shard 81 master] SQL (0.4ms) DELETE FROM "users" [shard 81 master] SQL (0.1ms) DELETE FROM "users" [shard 81 master]  (0.0ms) BEGIN [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master]  (0.0ms) BEGIN [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 164]] [shard 81 master] CACHE (0.0ms) 81::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 164]] CACHE (0.0ms) 81::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 164]]  (0.1ms) BEGIN [shard 81 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2015-05-01 19:52:06.893545' WHERE "users"."id" = 164 [shard 81 master]  (0.2ms) COMMIT [shard 81 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 164]] [shard 81 master] CACHE (0.0ms) 81::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 164]] SQL (0.4ms) DELETE FROM "users" [shard 81 master]  (0.0ms) BEGIN [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 81 master] SQL (0.3ms) DELETE FROM "users" [shard 81 master] SQL (0.1ms) DELETE FROM "users" [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.0ms) BEGIN [shard 81 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 81 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 81], ["name", nil]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.0ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 82], ["name", "switchman_test_shard_82"]] [shard 81 master]  (0.2ms) COMMIT [shard 81 master]  (0.1ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 83], ["name", "switchman_test_shard_83"]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) SAVEPOINT active_record_1 [shard 83 master]  (0.4ms) SELECT COUNT(*) FROM "users"  [shard 83 master]  (0.1ms) SAVEPOINT active_record_2 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 83 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) SELECT COUNT(*) FROM "users"  [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 81], ["name", nil]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.1ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 82], ["name", "switchman_test_shard_82"]] [shard 81 master]  (0.2ms) COMMIT [shard 81 master]  (0.0ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 83], ["name", "switchman_test_shard_83"]] [shard 81 master]  (0.2ms) COMMIT [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 81], ["name", nil]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.0ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 82], ["name", "switchman_test_shard_82"]] [shard 81 master]  (0.2ms) COMMIT [shard 81 master]  (0.0ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 83], ["name", "switchman_test_shard_83"]] [shard 81 master]  (0.2ms) COMMIT [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.1ms) BEGIN [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 81], ["name", nil]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.1ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 82], ["name", "switchman_test_shard_82"]] [shard 81 master]  (0.2ms) COMMIT [shard 81 master]  (0.1ms) BEGIN [shard 81 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 83], ["name", "switchman_test_shard_83"]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 81], ["name", nil]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.0ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 82], ["name", "switchman_test_shard_82"]] [shard 81 master]  (0.2ms) COMMIT [shard 81 master]  (0.0ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 83], ["name", "switchman_test_shard_83"]] [shard 81 master]  (0.2ms) COMMIT [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.0ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", nil], ["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 83 LIMIT 1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["appendage_id", 18], ["created_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["id", 830000000000001], ["updated_at", Fri, 01 May 2015 19:52:06 UTC +00:00], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 29 AND "digits"."id" = $1 LIMIT 1 [["id", 830000000000001]] [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 21], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 82 LIMIT 1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 32], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 32 [shard 82 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 32]] [shard 82 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 32 [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 33], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 34], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 33]] [shard 82 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 33 AND "users"."id" = 35 LIMIT 1 [shard 82 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 33]] [shard 82 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 33 AND "users"."id" = 830000000000025 LIMIT 1 [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.2ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 37], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 21], ["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master] Digit Load (0.8ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 37 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 82 master]  (0.3ms) ROLLBACK [shard 83 master]  (0.3ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 39 AND "appendages"."id" = $1 LIMIT 1 [["id", 23]] [shard 82 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 29 AND "appendages"."id" = $1 LIMIT 1 [["id", 820000000000023]] [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 25]] [shard 82 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 42 LIMIT 1 [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.0ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 44], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 26], ["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 820000000000044], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 19], ["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["value", 2]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 44 AND "digits"."value" IS NULL [shard 82 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 820000000000044 AND "digits"."value" IS NULL [shard 83 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 44]] [shard 82 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 44 AND "digits"."value" IS NULL [shard 82 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 820000000000044 AND "digits"."value" IS NULL [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 45], ["value", 1]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 820000000000045], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 45 AND "appendages"."value" IS NULL [shard 82 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 820000000000045 AND "appendages"."value" IS NULL [shard 83 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 45]] [shard 82 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 45 AND "appendages"."value" IS NULL [shard 82 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 820000000000045 AND "appendages"."value" IS NULL [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 28], ["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["value", 1]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 820000000000046], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 21], ["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["value", 2]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 46 [shard 82 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 82 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 46 [shard 82 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 820000000000046 [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 47], ["value", 1]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 820000000000047], ["value", 2]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 47 [shard 82 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 47]] [shard 82 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 47 [shard 82 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 820000000000047 [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 48], ["value", 1]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 820000000000048], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 48], ["value", 2]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 48]] [shard 82 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 48 AND (appendages.value IS NOT NULL) [shard 82 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 820000000000048 AND (appendages.value IS NOT NULL) [shard 83 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 48]] [shard 82 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 48 AND (appendages.value IS NOT NULL) [shard 82 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 820000000000048 AND (appendages.value IS NOT NULL) [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 32], ["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 820000000000049], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 24], ["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["value", 2]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 49 AND "digits"."value" IS NULL [shard 82 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 820000000000049 AND "digits"."value" IS NULL [shard 83 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 49]] [shard 82 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 49 AND "digits"."value" IS NULL [shard 82 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 820000000000049 AND "digits"."value" IS NULL [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 33], ["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 33], ["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["value", 1]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 820000000000050], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 25], ["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["value", 2]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 50 AND (digits.value IS NOT NULL) [shard 82 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 820000000000050 AND (digits.value IS NOT NULL) [shard 83 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 50]] [shard 82 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 50 AND (digits.value IS NOT NULL) [shard 82 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 820000000000050 AND (digits.value IS NOT NULL) [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.3ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 830000000000041]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master] Root Load (0.4ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 7]] [shard 81 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 41 LIMIT 1 [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.0ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 79], ["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["value", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 810000000000079], ["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 79 LIMIT 1 [shard 81 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (79) [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.0ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 820000000000053], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 830000000000043], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 82 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (53) [shard 82 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (820000000000053) [shard 83 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) [shard 83 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (43) [shard 83 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 34 [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 820000000000054], ["value", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 80], ["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["value", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 830000000000044], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 820000000000036], ["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["value", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits"  [shard 81 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (80) [shard 81 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (36) [shard 82 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 82 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (44) [shard 83 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 54 [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 820000000000055], ["value", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 830000000000045], ["value", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 166], ["value", nil]] [shard 81 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [shard 81 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 81 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 82 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [shard 83 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (166) [shard 81 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 55 [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 820000000000056], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 820000000000056], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 37], ["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 27], ["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 830000000000027], ["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 830000000000028], ["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 830000000000046], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 820000000000038], ["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 830000000000029], ["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 30], ["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 82 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (56) [shard 82 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (820000000000056) [shard 83 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (37) [shard 82 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (27, 28) [shard 83 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (46) [shard 83 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (46) [shard 83 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (29, 30) [shard 83 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 8 [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.0ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["owner_id", 84], ["owner_type", "Appendage"], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["value", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 6]] [shard 81 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 84 LIMIT 1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master]  (0.2ms) UPDATE "features" SET "owner_id" = 820000000000057, "owner_type" = 'User', "updated_at" = '2015-05-01 19:52:07.439381' WHERE "features"."id" = 6 [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master] Feature Load (0.1ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 6]] [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.0ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["owner_id", 58], ["owner_type", "User"], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["value", 1]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.0ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["owner_id", 820000000000058], ["owner_type", "User"], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["value", 2]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 58 AND "features"."owner_type" = 'User' [shard 82 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 58]] [shard 82 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 58 AND "features"."owner_type" = 'User' [shard 82 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 820000000000058 AND "features"."owner_type" = 'User' [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.0ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 830000000000049], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 39]] [shard 82 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 49 LIMIT 1 [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 60 LIMIT 1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 40]] [shard 82 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 60 LIMIT 1 [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.1ms) BEGIN [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", "non_existent_shard"]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.4ms) SELECT COUNT(*) FROM "users"  [shard 93 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.8ms) SELECT COUNT(*) FROM "users" [shard 94 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [shard 81 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 81], ["name", nil]] [shard 81 master]  (0.4ms) COMMIT [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.1ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 82], ["name", "switchman_test_shard_82"]] [shard 81 master]  (0.4ms) COMMIT [shard 81 master]  (0.1ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 83], ["name", "switchman_test_shard_83"]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 4]] [shard 81 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 4]] [shard 81 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 4 LIMIT 1 [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.1ms) BEGIN [shard 81 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 81], ["name", nil]] [shard 81 master]  (0.2ms) COMMIT [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.0ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 82], ["name", "switchman_test_shard_82"]] [shard 81 master]  (0.2ms) COMMIT [shard 81 master]  (0.0ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 83], ["name", "switchman_test_shard_83"]] [shard 81 master]  (0.2ms) COMMIT [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["owner_id", 168], ["owner_type", "User"], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["value", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 7 LIMIT 1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 82 LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 83 LIMIT 1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master] SQL (6.2ms) DELETE FROM "switchman_shards" [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 81], ["name", nil]] [shard 81 master]  (6.1ms) COMMIT [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.1ms) BEGIN [shard 81 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 82], ["name", "switchman_test_shard_82"]] [shard 81 master]  (5.0ms) COMMIT [shard 81 master]  (0.1ms) BEGIN [shard 81 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 83], ["name", "switchman_test_shard_83"]] [shard 81 master]  (0.4ms) COMMIT [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:53:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:53:07 UTC +00:00]] [shard 82 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 82 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 81], ["name", nil]] [shard 81 master]  (0.4ms) COMMIT [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.0ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 82], ["name", "switchman_test_shard_82"]] [shard 81 master]  (0.2ms) COMMIT [shard 81 master]  (0.0ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 83], ["name", "switchman_test_shard_83"]] [shard 81 master]  (0.2ms) COMMIT [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 81], ["name", nil]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.0ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 82], ["name", "switchman_test_shard_82"]] [shard 81 master]  (0.2ms) COMMIT [shard 81 master]  (0.0ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 83], ["name", "switchman_test_shard_83"]] [shard 81 master]  (0.2ms) COMMIT [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 81 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 62 LIMIT 1 [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 82 LIMIT 1 [shard 81 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (170) [shard 81 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (63) [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 65 [shard 82 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 172]] [shard 81 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 65]] [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (173) [shard 81 master] SQL (0.1ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (66) [shard 82 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 173]] [shard 81 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 66]] [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.0ms) BEGIN [shard 81 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 81], ["name", nil]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.1ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 82], ["name", "switchman_test_shard_82"]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master]  (0.0ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 83], ["name", "switchman_test_shard_83"]] [shard 81 master]  (0.2ms) COMMIT [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '15' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", nil]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) select sqlite_version(*) [shard 101 deploy]  (0.0ms) begin transaction [shard 101 deploy]  (0.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [shard 101 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 101 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 101 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (0.2ms) CREATE TABLE "switchman_shards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "database_server_id" varchar(255), "default" boolean DEFAULT 'f' NOT NULL) [shard 101 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [shard 101 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 101 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 101 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 101 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 101 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 101 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 101 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 101 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 101 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 101 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 101 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 101 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 101 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 101 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [shard 101 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 101 deploy]  (1.1ms) commit transaction [shard 101 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_101.sqlite3' WHERE "switchman_shards"."id" = 101 [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.0ms) begin transaction [shard 101 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 101 master]  (0.7ms) commit transaction [shard 101 master] Drop failed: No such file or directory @ unlink_internal - db/shard_101.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 101]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '16' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", "public"]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (6.2ms) CREATE SCHEMA switchman_test_shard_102 [shard 102 deploy]  (0.1ms) BEGIN [shard 102 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 102 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 102 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 102 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.3ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [shard 102 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [shard 102 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 102 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 102 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 102 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 102 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 102 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 102 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 102 deploy] Migrating to CreateDigits (20131022202028)  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 102 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 102 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 102 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 102 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 102 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 102 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 102 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 102 deploy]  (0.7ms) COMMIT [shard 102 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_102' WHERE "switchman_shards"."id" = 102 [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) BEGIN [shard 102 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 102 master]  (0.3ms) COMMIT [shard 102 master]  (5.1ms) DROP SCHEMA switchman_test_shard_102 CASCADE [shard 102 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 102]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 81 master]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 81 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_103 [shard 103 deploy]  (0.1ms) SAVEPOINT active_record_2 [shard 103 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 103 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 103 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 103 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [shard 103 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [shard 103 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 103 deploy] Migrating to CreateUsers (20130403132607)  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 103 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 103 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 103 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 103 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 103 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 103 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 103 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 103 deploy] Migrating to CreateFeatures (20131206172923)  (2.4ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 103 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 103 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 103 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 103 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 103 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 103 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 103 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_103' WHERE "switchman_shards"."id" = 103 [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.2ms) SAVEPOINT active_record_1 [shard 103 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 103 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 103 master]  (4.1ms) DROP SCHEMA switchman_test_shard_103 CASCADE [shard 103 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 103]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master]  (0.2ms) ROLLBACK [shard 83 master]  (2.4ms) ROLLBACK [shard 81 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.1ms) BEGIN [shard 81 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 81], ["name", nil]] [shard 81 master]  (0.4ms) COMMIT [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.1ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 82], ["name", "switchman_test_shard_82"]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master]  (0.1ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 83], ["name", "switchman_test_shard_83"]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (81, 82) AND (id IN (82,83)) [shard 81 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) ROLLBACK [shard 83 master]  (0.0ms) ROLLBACK [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 81 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 81], ["name", nil]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (0.1ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 82], ["name", "switchman_test_shard_82"]] [shard 81 master]  (0.2ms) COMMIT [shard 81 master]  (0.1ms) BEGIN [shard 81 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 83], ["name", "switchman_test_shard_83"]] [shard 81 master]  (0.3ms) COMMIT [shard 81 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 67], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 51], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 82 LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 83 LIMIT 1 [shard 81 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (67) [shard 82 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (51) [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 68], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 52], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 82 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 83 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 82 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 83 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [shard 82 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 33 [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 69], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 53], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 81 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 81 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 81 master] SQL (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (174) [shard 81 master] SQL (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (69) [shard 82 master] SQL (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (53) [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 70], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:07 UTC +00:00], ["user_id", 54], ["value", nil]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 44 [shard 82 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 83 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 44 [shard 82 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 83 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 44 [shard 82 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 35 [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.0ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 71], ["value", 1]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 830000000000055], ["value", 3]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 820000000000071], ["value", 2]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 55], ["value", 4]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 55], ["value", 5]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 82 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 83 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 82 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 83 master]  (0.1ms) SHOW max_identifier_length [shard 83 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 82 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 83 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 82 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [shard 82 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 83 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 83 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 83 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 72], ["value", 1]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 830000000000056], ["value", 3]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 820000000000072], ["value", 2]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 56], ["value", 4]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 56], ["value", 5]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 82 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 83 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 82 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 83 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 82 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 83 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 82 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [shard 82 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 83 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 83 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 83 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 73], ["value", 1]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 830000000000057], ["value", 3]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 820000000000073], ["value", 2]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 57], ["value", 4]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 57], ["value", 5]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 82 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 83 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 82 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 83 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 82 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 83 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 82 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (73) [shard 82 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 83 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 83 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 83 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (73) [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 74], ["value", 1]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 830000000000058], ["value", 3]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 820000000000074], ["value", 2]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 58], ["value", 4]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 58], ["value", 5]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 82 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 83 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 82 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 83 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 82 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 83 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 82 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (74) [shard 82 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 83 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 83 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 83 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (74) [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 75], ["value", 1]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 830000000000059], ["value", 3]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 820000000000075], ["value", 2]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 59], ["value", 4]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 59], ["value", 5]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 82 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 83 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 82 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 83 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 82 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 83 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 82 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) [shard 82 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 83 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 83 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [shard 83 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 76], ["value", 1]] [shard 82 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 830000000000060], ["value", 3]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 820000000000076], ["value", 2]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 60], ["value", 4]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 60], ["value", 5]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 76], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 77], ["value", nil]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 82 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.0ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00]] [shard 82 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 78], ["value", 1]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 78], ["value", 2]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 61], ["value", 3]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 61], ["value", 4]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 61], ["value", 5]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 78 [shard 82 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 82 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 61 [shard 83 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [shard 83 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (59, 60) [shard 82 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (54, 55, 56) [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 79], ["value", 1]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 79], ["value", 2]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 62], ["value", 3]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 62], ["value", 4]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 62], ["value", 5]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 79 [shard 82 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 82 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 62 [shard 83 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [shard 83 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (61, 62) [shard 82 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (57, 58, 59) [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 80], ["value", 1]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 80], ["value", 2]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 63], ["value", 3]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 63], ["value", 4]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 63], ["value", 5]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 80 [shard 82 master]  (0.1ms) SELECT COUNT(*) FROM "appendages"  [shard 82 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 63 [shard 83 master]  (0.1ms) SELECT COUNT(*) FROM "appendages"  [shard 83 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (63, 64) [shard 82 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (60, 61, 62) [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.1ms) BEGIN [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 81], ["value", 1]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 81], ["value", 2]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 64], ["value", 3]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 64], ["value", 4]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 64], ["value", 5]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 81 [shard 82 master]  (0.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 82 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 64 [shard 83 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [shard 83 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (65, 66) [shard 82 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (63, 64, 65) [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master]  (0.1ms) BEGIN [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 82]] [shard 81 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 83]] [shard 81 master]  (0.0ms) BEGIN [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.0ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 82], ["value", 1]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 82 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 82], ["value", 2]] [shard 82 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 82 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.0ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 65], ["value", 3]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 65], ["value", 4]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.1ms) SAVEPOINT active_record_1 [shard 83 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["updated_at", Fri, 01 May 2015 19:52:08 UTC +00:00], ["user_id", 65], ["value", 5]] [shard 83 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 83 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 82 [shard 82 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 82 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 65 [shard 83 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [shard 83 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (67, 68) [shard 82 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (66, 67, 68) [shard 83 master]  (0.1ms) ROLLBACK [shard 83 master]  (0.1ms) ROLLBACK [shard 82 master] SQL (0.5ms) DELETE FROM "switchman_shards" [shard 81 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 81 master]  (5.0ms) DROP SCHEMA switchman_test_shard_82 CASCADE [shard 82 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 82]]  (0.1ms) COMMIT  (7.2ms) DROP SCHEMA switchman_test_shard_83 CASCADE [shard 83 deploy]  (0.2ms) BEGIN SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 83]]  (0.2ms) COMMIT Connecting to database specified by database.yml  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (6.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.8ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.2ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.4ms) CREATE SCHEMA switchman_test_shard_105 [shard 105 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 105 deploy]  (2.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 105 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 105 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 105 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [shard 105 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [shard 105 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 105 deploy] Migrating to CreateUsers (20130403132607)  (1.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 105 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 105 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 105 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 105 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 105 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 105 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 105 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 105 deploy] Migrating to CreateFeatures (20131206172923)  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 105 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 105 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 105 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 105 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 105 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 105 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_105' WHERE "switchman_shards"."id" = 105 [shard 104 master]  (1.1ms) COMMIT [shard 104 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [shard 104 master]  (0.2ms) COMMIT [shard 104 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_106 [shard 106 deploy]  (0.1ms) BEGIN [shard 106 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 106 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 106 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 106 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.0ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [shard 106 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [shard 106 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 106 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 106 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 106 deploy] Migrating to CreateAppendages (20130411202442)  (2.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 106 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 106 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 106 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 106 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 106 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 106 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 106 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 106 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 106 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 106 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 106 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 106 deploy]  (0.8ms) COMMIT [shard 106 deploy]  (0.1ms) BEGIN [shard 104 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_106' WHERE "switchman_shards"."id" = 106 [shard 104 master]  (0.3ms) COMMIT [shard 104 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 104], ["name", nil]] [shard 104 master]  (0.2ms) COMMIT [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.0ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 105], ["name", "switchman_test_shard_105"]] [shard 104 master]  (0.2ms) COMMIT [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 106], ["name", "switchman_test_shard_106"]] [shard 104 master]  (0.2ms) COMMIT [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (2.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master] SQL (1.0ms) DELETE FROM "switchman_shards" [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 104], ["name", nil]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.0ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 105], ["name", "switchman_test_shard_105"]] [shard 104 master]  (0.2ms) COMMIT [shard 104 master]  (0.0ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 106], ["name", "switchman_test_shard_106"]] [shard 104 master]  (0.2ms) COMMIT [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.9ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master] MirrorUser Load (0.6ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 5]] [shard 104 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 5]] [shard 104 master] MirrorUser Load (0.6ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 5 LIMIT 1 [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master] SQL (6.1ms) DELETE FROM "switchman_shards" [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 104], ["name", nil]] [shard 104 master]  (4.9ms) COMMIT [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 105], ["name", "switchman_test_shard_105"]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 106], ["name", "switchman_test_shard_106"]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 105 LIMIT 1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (1.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master] SQL (4.9ms) DELETE FROM "switchman_shards" [shard 104 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", "non_existent_shard"]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.4ms) SELECT COUNT(*) FROM "users"  [shard 109 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (1.0ms) SELECT COUNT(*) FROM "users" [shard 110 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [shard 104 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 104], ["name", nil]] [shard 104 master]  (0.4ms) COMMIT [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 105], ["name", "switchman_test_shard_105"]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master]  (0.0ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 106], ["name", "switchman_test_shard_106"]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 104], ["name", nil]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 105], ["name", "switchman_test_shard_105"]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 106], ["name", "switchman_test_shard_106"]] [shard 104 master]  (0.2ms) COMMIT [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.0ms) BEGIN [shard 104 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 104], ["name", nil]] [shard 104 master]  (6.1ms) COMMIT [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 105], ["name", "switchman_test_shard_105"]] [shard 104 master]  (5.9ms) COMMIT [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 106], ["name", "switchman_test_shard_106"]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '25' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "25"], ["default", false], ["name", nil]] [shard 104 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) select sqlite_version(*) [shard 117 deploy]  (0.0ms) begin transaction [shard 117 deploy]  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [shard 117 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 117 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 117 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (0.2ms) CREATE TABLE "switchman_shards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "database_server_id" varchar(255), "default" boolean DEFAULT 'f' NOT NULL)  [shard 117 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [shard 117 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 117 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 117 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 117 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 117 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 117 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 117 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 117 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 117 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 117 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 117 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 117 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) ALTER TABLE "users" ADD "parent_id" integer(8) [shard 117 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 117 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [shard 117 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 117 deploy]  (1.2ms) commit transaction [shard 117 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_117.sqlite3' WHERE "switchman_shards"."id" = 117 [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) begin transaction [shard 117 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 117 master]  (0.6ms) commit transaction [shard 117 master] Drop failed: No such file or directory @ unlink_internal - db/shard_117.sqlite3  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 117]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '26' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "26"], ["default", false], ["name", "public"]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (6.4ms) CREATE SCHEMA switchman_test_shard_118 [shard 118 deploy]  (0.1ms) BEGIN [shard 118 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [shard 118 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 118 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [shard 118 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.6ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [shard 118 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [shard 118 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 118 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 118 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 118 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 118 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 118 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 118 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 118 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 118 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 118 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 118 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 118 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 118 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 118 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [shard 118 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 118 deploy]  (0.7ms) COMMIT [shard 118 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_118' WHERE "switchman_shards"."id" = 118 [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) BEGIN [shard 118 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 118 master]  (0.2ms) COMMIT [shard 118 master]  (5.4ms) DROP SCHEMA switchman_test_shard_118 CASCADE [shard 118 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 118]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [shard 104 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_119 [shard 119 deploy]  (0.1ms) SAVEPOINT active_record_2 [shard 119 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 119 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 119 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 119 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.7ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [shard 119 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [shard 119 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 119 deploy] Migrating to CreateUsers (20130403132607)  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 119 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 119 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 119 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 119 deploy] Migrating to CreateMirrorUsers (20130411202551)  (7.3ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 119 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 119 deploy] Migrating to CreateDigits (20131022202028)  (7.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 119 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 119 deploy] Migrating to CreateFeatures (20131206172923)  (7.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 119 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 119 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 119 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 119 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 119 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 119 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 119 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_119' WHERE "switchman_shards"."id" = 119 [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 119 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 119 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 119 master]  (3.4ms) DROP SCHEMA switchman_test_shard_119 CASCADE [shard 119 deploy]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 119]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (2.0ms) ROLLBACK [shard 104 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 104], ["name", nil]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 105], ["name", "switchman_test_shard_105"]] [shard 104 master]  (0.2ms) COMMIT [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 106], ["name", "switchman_test_shard_106"]] [shard 104 master]  (0.2ms) COMMIT [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 104 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 178], ["value", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 1], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 179], ["value", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 2], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.2ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 180], ["value", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 3], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 181], ["value", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 4], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 182], ["value", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 5], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 183], ["value", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 6], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 183], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 184], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 184]] [shard 104 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 183 LIMIT 1 [shard 104 master]  (0.1ms) SHOW max_identifier_length [shard 104 master] User Load (0.4ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 183 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 186], ["value", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 7], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 187], ["value", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 8], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 188], ["value", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 9], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 105 LIMIT 1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 189], ["value", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 10], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 190], ["value", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 11], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 191], ["value", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:21 UTC +00:00], ["user_id", 12], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 192], ["value", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 17], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 13], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 193], ["value", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 18], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 14], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 194], ["value", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 19], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 15], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 195], ["value", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 20], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 16], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 104], ["name", nil]] [shard 104 master]  (0.4ms) COMMIT [shard 104 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 105], ["name", "switchman_test_shard_105"]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 106], ["name", "switchman_test_shard_106"]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 104 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 120]] [shard 104 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 105 LIMIT 1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [shard 104 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 121]] [shard 104 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 121 LIMIT 1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 106 LIMIT 1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10106 LIMIT 1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.2ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '28' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "28"], ["default", false], ["name", "public"]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_122 [shard 122 deploy]  (0.1ms) BEGIN [shard 122 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [shard 122 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [shard 122 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [shard 122 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.3ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [shard 122 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [shard 122 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [shard 122 deploy] Migrating to CreateUsers (20130403132607)  (2.6ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 122 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [shard 122 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 122 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [shard 122 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 122 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [shard 122 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 122 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [shard 122 deploy] Migrating to CreateFeatures (20131206172923)  (2.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 122 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [shard 122 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [shard 122 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [shard 122 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [shard 122 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [shard 122 deploy]  (0.7ms) COMMIT [shard 122 deploy]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_122' WHERE "switchman_shards"."id" = 122 [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) BEGIN [shard 122 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 122 master]  (0.4ms) COMMIT [shard 122 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [shard 122 master]  (6.7ms) DROP SCHEMA switchman_test_shard_122 CASCADE [shard 122 deploy]  (0.4ms) SELECT COUNT(*) FROM "users"  [shard 122 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 104], ["name", nil]] [shard 104 master]  (0.2ms) COMMIT [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 105], ["name", "switchman_test_shard_105"]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 106], ["name", "switchman_test_shard_106"]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 105 LIMIT 1 [shard 104 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 22 LIMIT 1 [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [shard 104 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 104 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 105 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 24]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1050000000000024 LIMIT 1 [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 25 LIMIT 1 [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) LIMIT 1 [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 104], ["name", nil]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 105], ["name", "switchman_test_shard_105"]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 106], ["name", "switchman_test_shard_106"]] [shard 104 master]  (0.2ms) COMMIT [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master]  (0.2ms) SELECT COUNT(*) FROM "users" [shard 106 master]  (0.1ms) SAVEPOINT active_record_2 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [shard 106 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) SELECT COUNT(*) FROM "users" [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master] SQL (6.0ms) DELETE FROM "switchman_shards" [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master]  (0.3ms) SELECT COUNT(*) FROM "switchman_shards"  [shard 104 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 104], ["name", nil]] [shard 104 master]  (6.0ms) COMMIT [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 105], ["name", "switchman_test_shard_105"]] [shard 104 master]  (6.0ms) COMMIT [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 106], ["name", "switchman_test_shard_106"]] [shard 104 master]  (4.9ms) COMMIT [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.0ms) BEGIN [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "29"], ["default", false], ["name", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "29"], ["default", false], ["name", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 104], ["name", nil]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.0ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 105], ["name", "switchman_test_shard_105"]] [shard 104 master]  (0.2ms) COMMIT [shard 104 master]  (0.0ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 106], ["name", "switchman_test_shard_106"]] [shard 104 master]  (0.2ms) COMMIT [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (104, 105) AND (id IN (105,106)) [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.0ms) BEGIN [shard 104 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 104], ["name", nil]] [shard 104 master]  (6.0ms) COMMIT [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 105], ["name", "switchman_test_shard_105"]] [shard 104 master]  (5.9ms) COMMIT [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 106], ["name", "switchman_test_shard_106"]] [shard 104 master]  (6.0ms) COMMIT [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 105 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 104 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-05-04 15:38:22.485922' [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 104 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-05-04 15:38:22.491050' [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 104 master]  (0.4ms) COMMIT [shard 104 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 104 master] SQL (1.0ms) UPDATE "users" SET "updated_at" = '2015-05-04 15:38:22.495180' [shard 104 master] SQL (0.3ms) DELETE FROM "users" [shard 104 master]  (0.0ms) BEGIN [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 104 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-05-04 15:38:22.504619' [shard 104 master] SQL (0.3ms) DELETE FROM "users" [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 104 master] SQL (0.1ms) DELETE FROM "users" [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 104 master] SQL (0.1ms) DELETE FROM "users" [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 104 master]  (0.4ms) COMMIT [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 204]] [shard 104 master] CACHE (0.0ms) 104::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 204]] CACHE (0.0ms) 104::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 204]]  (0.1ms) BEGIN [shard 104 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2015-05-04 15:38:22.535288' WHERE "users"."id" = 204 [shard 104 master]  (0.3ms) COMMIT [shard 104 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 204]] [shard 104 master] CACHE (0.0ms) 104::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 204]] SQL (0.3ms) DELETE FROM "users" [shard 104 master]  (0.0ms) BEGIN [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master] User Load (0.2ms) SELECT "users".* FROM "users"  [shard 104 master] SQL (0.3ms) DELETE FROM "users" [shard 104 master] SQL (0.1ms) DELETE FROM "users" [shard 104 master]  (0.0ms) BEGIN [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 104 master]  (0.2ms) COMMIT [shard 104 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 104 master] SQL (0.3ms) DELETE FROM "users" [shard 104 master] SQL (0.1ms) DELETE FROM "users" [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 104 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 104 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] User Load (0.1ms) SELECT "users".* FROM "users" [shard 104 master]  (0.0ms) BEGIN [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 104 master]  (0.4ms) COMMIT [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] User Load (0.1ms) SELECT "users".* FROM "users"  [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.0ms) BEGIN [shard 104 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 104], ["name", nil]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.0ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 105], ["name", "switchman_test_shard_105"]] [shard 104 master]  (0.2ms) COMMIT [shard 104 master]  (0.0ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 106], ["name", "switchman_test_shard_106"]] [shard 104 master]  (0.2ms) COMMIT [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master] SQL (0.3ms) DELETE FROM "switchman_shards" [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 104], ["name", nil]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 105], ["name", "switchman_test_shard_105"]] [shard 104 master]  (0.2ms) COMMIT [shard 104 master]  (0.0ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 106], ["name", "switchman_test_shard_106"]] [shard 104 master]  (0.2ms) COMMIT [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 30], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 30 [shard 105 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 105 LIMIT 1 [shard 104 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 30]] [shard 105 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 30 [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 31], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 33], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 34], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 33]] [shard 105 master]  (0.1ms) SHOW max_identifier_length [shard 105 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 33 AND "users"."id" = 35 LIMIT 1 [shard 105 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 33]] [shard 105 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 33 AND "users"."id" = 1060000000000025 LIMIT 1 [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 36], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", nil], ["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 106 LIMIT 1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["appendage_id", 20], ["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["id", 1060000000000001], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 36 AND "digits"."id" = $1 LIMIT 1 [["id", 1060000000000001]] [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 38], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 21], ["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 38 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 39], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 29], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 40], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 40 AND "appendages"."id" = $1 LIMIT 1 [["id", 23]] [shard 105 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 30 AND "appendages"."id" = $1 LIMIT 1 [["id", 1050000000000023]] [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 41], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 24]] [shard 105 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 41 LIMIT 1 [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 42], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 44], ["value", 1]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 1050000000000044], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 44], ["value", 2]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 44]] [shard 105 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 44 AND (appendages.value IS NOT NULL) [shard 105 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 1050000000000044 AND (appendages.value IS NOT NULL) [shard 106 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 44]] [shard 105 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 44 AND (appendages.value IS NOT NULL) [shard 105 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 1050000000000044 AND (appendages.value IS NOT NULL) [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.2ms) ROLLBACK [shard 105 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 45], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 28], ["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 1050000000000045], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 20], ["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["value", 2]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 45 AND "digits"."value" IS NULL [shard 105 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1050000000000045 AND "digits"."value" IS NULL [shard 106 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 45]] [shard 105 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 45 AND "digits"."value" IS NULL [shard 105 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1050000000000045 AND "digits"."value" IS NULL [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 46], ["value", 1]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 1050000000000046], ["value", 2]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 46 [shard 105 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [shard 105 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 46 [shard 105 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 1050000000000046 [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 47], ["value", 1]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 1050000000000047], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 47 AND "appendages"."value" IS NULL [shard 105 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 1050000000000047 AND "appendages"."value" IS NULL [shard 106 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 47]] [shard 105 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 47 AND "appendages"."value" IS NULL [shard 105 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 1050000000000047 AND "appendages"."value" IS NULL [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 48], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 31], ["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 1050000000000048], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 23], ["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["value", 2]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 48 AND "digits"."value" IS NULL [shard 105 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1050000000000048 AND "digits"."value" IS NULL [shard 106 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 48]] [shard 105 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 48 AND "digits"."value" IS NULL [shard 105 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1050000000000048 AND "digits"."value" IS NULL [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 49], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 32], ["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 32], ["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["value", 1]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 1050000000000049], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 24], ["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["value", 2]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 49 AND (digits.value IS NOT NULL) [shard 105 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1050000000000049 AND (digits.value IS NOT NULL) [shard 106 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 49]] [shard 105 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 49 AND (digits.value IS NOT NULL) [shard 105 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1050000000000049 AND (digits.value IS NOT NULL) [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 50], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 33], ["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["value", 1]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 1050000000000050], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 25], ["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["value", 2]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 50 [shard 105 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 50]] [shard 105 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 50 [shard 105 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1050000000000050 [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.7ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 1060000000000041]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master] Root Load (0.5ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 9]] [shard 104 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 41 LIMIT 1 [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["owner_id", 102], ["owner_type", "Appendage"], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["value", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 8]] [shard 104 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 102 LIMIT 1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master]  (0.3ms) UPDATE "features" SET "owner_id" = 1050000000000052, "owner_type" = 'User', "updated_at" = '2015-05-04 15:38:22.956284' WHERE "features"."id" = 8 [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 8]] [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["owner_id", 53], ["owner_type", "User"], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["value", 1]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["owner_id", 1050000000000053], ["owner_type", "User"], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["value", 2]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 53 AND "features"."owner_type" = 'User' [shard 105 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 53]] [shard 105 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 53 AND "features"."owner_type" = 'User' [shard 105 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 1050000000000053 AND "features"."owner_type" = 'User' [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 1050000000000054], ["value", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 1060000000000044], ["value", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", 211], ["value", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [shard 104 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 105 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (44) [shard 106 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (211) [shard 104 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 54 [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:22 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 106], ["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["value", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1040000000000106], ["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 106 LIMIT 1 [shard 104 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (106) [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 56], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 1050000000000056], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 1050000000000056], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 34], ["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 26], ["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1060000000000026], ["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1060000000000027], ["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 1060000000000046], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 46], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1050000000000035], ["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1060000000000028], ["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 29], ["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 105 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (56) [shard 105 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (1050000000000056) [shard 106 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (34) [shard 105 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (26, 27) [shard 106 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (46) [shard 106 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (46) [shard 106 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (28, 29) [shard 106 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 8 [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 1050000000000057], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 1060000000000047], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [shard 105 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (57) [shard 105 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (1050000000000057) [shard 106 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (47) [shard 106 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (47) [shard 106 master] SQL (0.1ms) DELETE FROM "appendages" WHERE "appendages"."id" = 36 [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 1050000000000058], ["value", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 107], ["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["value", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 1060000000000048], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1050000000000038], ["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["value", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master] Digit Load (0.1ms) SELECT "digits".* FROM "digits"  [shard 104 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (107) [shard 104 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (38) [shard 105 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [shard 105 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (48) [shard 106 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 58 [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 1060000000000049], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 39]] [shard 105 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 49 LIMIT 1 [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 105 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 60 LIMIT 1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 40]] [shard 105 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 60 LIMIT 1 [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 104], ["name", nil]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 105], ["name", "switchman_test_shard_105"]] [shard 104 master]  (0.4ms) COMMIT [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 106], ["name", "switchman_test_shard_106"]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (104)) [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=105 AND id<=105)) AND (id NOT IN (104)) [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=105)) ORDER BY id [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=105)) ORDER BY id [shard 104 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ('f') [shard 104 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (104)) [shard 104 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=104 AND id<=105)) ORDER BY id [shard 104 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=104 AND id<105) OR (id>=106 AND id<107)) ORDER BY id [shard 104 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=104 AND id<105)) [shard 104 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=104 AND id<=105)) AND (id NOT IN (104)) [shard 104 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (104)) [shard 104 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 104 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 104], ["name", nil]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 105], ["name", "switchman_test_shard_105"]] [shard 104 master]  (0.2ms) COMMIT [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 106], ["name", "switchman_test_shard_106"]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 62 LIMIT 1 [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 105 LIMIT 1 [shard 104 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (214) [shard 104 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (63) [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 64 [shard 105 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 215]] [shard 104 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 64]] [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (216) [shard 104 master] SQL (0.1ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (65) [shard 105 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 216]] [shard 104 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 65]] [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master] SQL (5.4ms) DELETE FROM "switchman_shards" [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 104], ["name", nil]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 105], ["name", "switchman_test_shard_105"]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 106], ["name", "switchman_test_shard_106"]] [shard 104 master]  (0.2ms) COMMIT [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["owner_id", 217], ["owner_type", "User"], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["value", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 9 LIMIT 1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", nil], ["value", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 105 LIMIT 1 [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 106 LIMIT 1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master] SQL (6.1ms) DELETE FROM "switchman_shards" [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 104], ["name", nil]] [shard 104 master]  (6.0ms) COMMIT [shard 104 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 105], ["name", "switchman_test_shard_105"]] [shard 104 master]  (4.9ms) COMMIT [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 106], ["name", "switchman_test_shard_106"]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 66], ["value", 1]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 106 LIMIT 1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 1060000000000051], ["value", 3]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 105 LIMIT 1 [shard 104 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 1050000000000066], ["value", 2]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 51], ["value", 4]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 51], ["value", 5]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 105 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 106 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 105 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 106 master]  (0.1ms) SHOW max_identifier_length [shard 106 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 105 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 106 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 105 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 105 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (51) [shard 106 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 106 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (51) [shard 106 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 67], ["value", 1]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 1060000000000052], ["value", 3]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 1050000000000067], ["value", 2]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 52], ["value", 4]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 52], ["value", 5]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 67], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 68], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 69], ["value", 1]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 1060000000000053], ["value", 3]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 1050000000000069], ["value", 2]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 53], ["value", 4]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 53], ["value", 5]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 105 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 106 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 105 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 106 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 105 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 106 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 105 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (69) [shard 105 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 106 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 106 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [shard 106 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (69) [shard 105 master]  (0.2ms) ROLLBACK [shard 106 master]  (0.2ms) ROLLBACK [shard 105 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 70], ["value", 1]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 1060000000000054], ["value", 3]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 1050000000000070], ["value", 2]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 54], ["value", 4]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 54], ["value", 5]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 105 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 106 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 105 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 106 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 105 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 106 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 105 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [shard 105 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 106 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 106 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [shard 106 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 71], ["value", 1]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 1060000000000055], ["value", 3]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 1050000000000071], ["value", 2]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 55], ["value", 4]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 55], ["value", 5]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 105 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 106 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 105 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 106 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 105 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 106 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 105 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [shard 105 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 106 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 106 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [shard 106 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 106 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 72], ["value", 1]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 1060000000000056], ["value", 3]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 1050000000000072], ["value", 2]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 56], ["value", 4]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 56], ["value", 5]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 105 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 106 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 105 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 106 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 105 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [shard 106 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 105 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [shard 105 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 106 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [shard 106 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [shard 106 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [shard 105 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 73], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 57], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (73) [shard 105 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (57) [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 74], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 58], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master] SQL (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (219) [shard 104 master] SQL (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (74) [shard 105 master] SQL (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (58) [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 75], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 59], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 57 [shard 105 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 106 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 57 [shard 105 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 106 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 57 [shard 105 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 52 [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 76], ["value", nil]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 60], ["value", nil]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 58 [shard 105 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 53 [shard 106 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 58 [shard 105 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 53 [shard 106 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 58 [shard 105 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 53 [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 77], ["value", 1]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 77], ["value", 2]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 61], ["value", 3]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 61], ["value", 4]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 61], ["value", 5]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 77 [shard 105 master]  (0.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 105 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 61 [shard 106 master]  (0.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [shard 106 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (59, 60) [shard 105 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (54, 55, 56) [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 78], ["value", 1]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 78], ["value", 2]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 62], ["value", 3]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 62], ["value", 4]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 62], ["value", 5]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 78 [shard 105 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 105 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 62 [shard 106 master]  (0.1ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [shard 106 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (61, 62) [shard 105 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (57, 58, 59) [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 79], ["value", 1]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 79], ["value", 2]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 63], ["value", 3]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 63], ["value", 4]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 63], ["value", 5]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 79 [shard 105 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 105 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 63 [shard 106 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [shard 106 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (63, 64) [shard 105 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (60, 61, 62) [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 80], ["value", 1]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 80], ["value", 2]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 64], ["value", 3]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 64], ["value", 4]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 64], ["value", 5]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 80 [shard 105 master]  (0.1ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 105 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 64 [shard 106 master]  (0.1ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [shard 106 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (65, 66) [shard 105 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (63, 64, 65) [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 81], ["value", 1]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 81], ["value", 2]] [shard 105 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 65], ["value", 3]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 65], ["value", 4]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 106 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["updated_at", Mon, 04 May 2015 15:38:23 UTC +00:00], ["user_id", 65], ["value", 5]] [shard 106 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 106 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 81 [shard 105 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" [shard 105 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 65 [shard 106 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [shard 106 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (67, 68) [shard 105 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (66, 67, 68) [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 105 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 104], ["name", nil]] [shard 104 master]  (0.3ms) COMMIT [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 105], ["name", "switchman_test_shard_105"]] [shard 104 master]  (0.4ms) COMMIT [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 106], ["name", "switchman_test_shard_106"]] [shard 104 master]  (0.2ms) COMMIT [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.1ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "30"], ["default", false], ["name", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.0ms) SAVEPOINT active_record_1 [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "30"], ["default", false], ["name", nil]] [shard 104 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [shard 104 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.0ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.1ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.1ms) ROLLBACK [shard 106 master]  (0.1ms) ROLLBACK [shard 104 master] SQL (6.0ms) DELETE FROM "switchman_shards" [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 104], ["name", nil]] [shard 104 master]  (5.9ms) COMMIT [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 105], ["name", "switchman_test_shard_105"]] [shard 104 master]  (11.3ms) COMMIT [shard 104 master]  (0.1ms) BEGIN [shard 104 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 106], ["name", "switchman_test_shard_106"]] [shard 104 master]  (0.4ms) COMMIT [shard 104 master]  (0.1ms) BEGIN [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 105]] [shard 104 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 106]] [shard 104 master]  (0.0ms) BEGIN [shard 106 master]  (0.0ms) SAVEPOINT active_record_1 [shard 105 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 04 May 2015 15:39:23 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 04 May 2015 15:39:23 UTC +00:00]] [shard 105 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [shard 105 master]  (0.0ms) ROLLBACK [shard 106 master]  (0.0ms) ROLLBACK [shard 105 master] SQL (0.4ms) DELETE FROM "switchman_shards" [shard 104 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [shard 104 master]  (5.7ms) DROP SCHEMA switchman_test_shard_105 CASCADE [shard 105 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 105]]  (0.1ms) COMMIT  (6.3ms) DROP SCHEMA switchman_test_shard_106 CASCADE [shard 106 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 106]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (9.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (23.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN  (6.2ms) SAVEPOINT active_record_1 SQL (14.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "non_existent_shard"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "users" does not exist LINE 5: WHERE a.attrelid = '"users"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (1.2ms) SELECT COUNT(*) FROM "users" [1:128 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.2ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (17.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (3.3ms) CREATE SCHEMA switchman_test_shard_136 [test:136 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:136 deploy]  (18.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [test:136 deploy]  (2.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:136 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [test:136 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (31.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [test:136 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [test:136 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [test:136 deploy] Migrating to CreateUsers (20130403132607)  (13.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [test:136 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [test:136 deploy] Migrating to CreateAppendages (20130411202442)  (14.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [test:136 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [test:136 deploy] Migrating to CreateMirrorUsers (20130411202551)  (14.3ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [test:136 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [test:136 deploy] Migrating to CreateDigits (20131022202028)  (7.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [test:136 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [test:136 deploy] Migrating to CreateFeatures (20131206172923)  (15.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [test:136 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [test:136 deploy] Migrating to AddParentIdToUsers (20140123154135)  (6.4ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:136 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [test:136 deploy] Migrating to CreateRoots (20140219183820)  (7.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [test:136 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [test:136 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 deploy]  (10.9ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_136' WHERE "switchman_shards"."id" = 136 [test:135 master]  (0.5ms) COMMIT [test:135 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '8' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", "public"]] [test:135 master]  (0.2ms) COMMIT [test:135 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_137 [8:137 deploy]  (0.1ms) BEGIN [8:137 deploy]  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [8:137 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [8:137 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [8:137 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.4ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [8:137 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [8:137 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [8:137 deploy] Migrating to CreateUsers (20130403132607)  (2.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [8:137 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [8:137 deploy] Migrating to CreateAppendages (20130411202442)  (2.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [8:137 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [8:137 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [8:137 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [8:137 deploy] Migrating to CreateDigits (20131022202028)  (2.3ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [8:137 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [8:137 deploy] Migrating to CreateFeatures (20131206172923)  (2.3ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [8:137 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [8:137 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [8:137 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [8:137 deploy] Migrating to CreateRoots (20140219183820)  (3.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [8:137 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [8:137 deploy]  (0.8ms) COMMIT [8:137 deploy]  (0.1ms) BEGIN [test:135 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_137' WHERE "switchman_shards"."id" = 137 [test:135 master]  (0.3ms) COMMIT [test:135 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:135 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.2ms) BEGIN [test:135 master] Switchman::Shard Exists (0.4ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 135], ["name", nil]] [test:135 master]  (0.3ms) COMMIT [test:135 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 136], ["name", "switchman_test_shard_136"]] [test:135 master]  (0.3ms) COMMIT [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 137], ["name", "switchman_test_shard_137"]] [test:135 master]  (0.3ms) COMMIT [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (2.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:36 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:36 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:36 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:36 UTC +00:00]] [8:137 master]  (0.3ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 1], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 2], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:136 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] [test:136 master]  (0.2ms) SHOW max_identifier_length [test:136 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 1 AND "users"."id" = 3 LIMIT 1 [test:136 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 136 LIMIT 1 [test:135 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] [test:136 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 1 AND "users"."id" = 1370000000000002 LIMIT 1 [test:136 master]  (0.2ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (1.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 4], ["value", nil]] [test:136 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.2ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 5], ["value", nil]] [test:136 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.2ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.4ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 6], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.2ms) SAVEPOINT active_record_1 [8:137 master] SQL (1.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", nil], ["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 137 LIMIT 1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["appendage_id", 3], ["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["id", 1370000000000001], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6 AND "digits"."id" = $1 LIMIT 1 [["id", 1370000000000001]] [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 7], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4], ["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master] Digit Load (0.7ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 7 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 9], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 9 [test:136 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 9]] [test:136 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 9 [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 11], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 6]] [test:136 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 11 LIMIT 1 [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 13], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 13 AND "appendages"."id" = $1 LIMIT 1 [["id", 7]] [test:136 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 12 AND "appendages"."id" = $1 LIMIT 1 [["id", 1360000000000007]] [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 14], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 13], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 15], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9], ["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9], ["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["value", 1]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1360000000000015], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2], ["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["value", 2]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (1.8ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15 AND (digits.value IS NOT NULL) [test:136 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1360000000000015 AND (digits.value IS NOT NULL) [8:137 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 15]] [test:136 master]  (0.5ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15 AND (digits.value IS NOT NULL) [test:136 master]  (0.5ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1360000000000015 AND (digits.value IS NOT NULL) [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 16], ["value", 1]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1360000000000016], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 16], ["value", 2]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [8:137 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 16]] [test:136 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 16 AND (appendages.value IS NOT NULL) [test:136 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 1360000000000016 AND (appendages.value IS NOT NULL) [8:137 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 16]] [test:136 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 16 AND (appendages.value IS NOT NULL) [test:136 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 1360000000000016 AND (appendages.value IS NOT NULL) [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 17], ["value", 1]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1360000000000017], ["value", 2]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 17 [test:136 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [test:136 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 17 [test:136 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 1360000000000017 [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 18], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 13], ["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["value", 1]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1360000000000018], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5], ["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["value", 2]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 18 [test:136 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [test:136 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 18 [test:136 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1360000000000018 [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 19], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 14], ["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1360000000000019], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6], ["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["value", 2]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 19 AND "digits"."value" IS NULL [test:136 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1360000000000019 AND "digits"."value" IS NULL [8:137 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [test:136 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 19 AND "digits"."value" IS NULL [test:136 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1360000000000019 AND "digits"."value" IS NULL [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 20], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15], ["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1360000000000020], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7], ["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["value", 2]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 20 AND "digits"."value" IS NULL [test:136 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1360000000000020 AND "digits"."value" IS NULL [8:137 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [test:136 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 20 AND "digits"."value" IS NULL [test:136 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 1360000000000020 AND "digits"."value" IS NULL [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 21], ["value", 1]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1360000000000021], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 21 AND "appendages"."value" IS NULL [test:136 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 1360000000000021 AND "appendages"."value" IS NULL [8:137 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [test:136 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 21 AND "appendages"."value" IS NULL [test:136 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 1360000000000021 AND "appendages"."value" IS NULL [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (2.1ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1370000000000021]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 10]] [test:135 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 21 LIMIT 1 [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", nil], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 23 LIMIT 1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 23], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 17]] [test:136 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 23 LIMIT 1 [test:136 master]  (0.2ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1370000000000023], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 18]] [test:136 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 23 LIMIT 1 [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["owner_id", 25], ["owner_type", "User"], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["value", 1]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (6.0ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["owner_id", 1360000000000025], ["owner_type", "User"], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["value", 2]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 25 AND "features"."owner_type" = 'User' [test:136 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 25]] [test:136 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 25 AND "features"."owner_type" = 'User' [test:136 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 1360000000000025 AND "features"."owner_type" = 'User' [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (2.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", nil], ["value", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (2.1ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["owner_id", 109], ["owner_type", "Appendage"], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["value", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 10]] [test:135 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 109 LIMIT 1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master]  (0.2ms) UPDATE "features" SET "owner_id" = 1360000000000026, "owner_type" = 'User', "updated_at" = '2015-05-27 16:13:37.459996' WHERE "features"."id" = 10 [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 10]] [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1360000000000027], ["value", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1370000000000026], ["value", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (1.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 220], ["value", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [test:135 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [test:136 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [8:137 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (220) [test:135 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 27 [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.2ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1360000000000028], ["value", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (13.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 113], ["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["value", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1370000000000027], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1360000000000019], ["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["value", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [test:135 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (113) [test:135 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (19) [test:136 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [test:136 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [8:137 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 28 [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 29], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1360000000000029], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1360000000000029], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 20], ["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10], ["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1370000000000010], ["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1370000000000011], ["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1370000000000028], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 28], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master]  (0.0ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 28], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.0ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1360000000000021], ["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1370000000000012], ["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 13], ["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [test:136 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (29) [test:136 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (1360000000000029) [8:137 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (20) [test:136 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (10, 11) [8:137 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [8:137 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (28) [8:137 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (12, 13) [8:137 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", nil], ["value", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 114], ["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["value", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 1350000000000114], ["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 114 LIMIT 1 [test:135 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (114) [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 31], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1360000000000031], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1370000000000030], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (31) [test:136 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (31) [test:136 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (1360000000000031) [8:137 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [8:137 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (30) [8:137 master] SQL (0.1ms) DELETE FROM "appendages" WHERE "appendages"."id" = 22 [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master] SQL (2.1ms) DELETE FROM "switchman_shards" [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 135], ["name", nil]] [test:135 master]  (0.3ms) COMMIT [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 136], ["name", "switchman_test_shard_136"]] [test:135 master]  (0.3ms) COMMIT [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 137], ["name", "switchman_test_shard_137"]] [test:135 master]  (0.3ms) COMMIT [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 33], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 32], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 136 LIMIT 1 [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 137 LIMIT 1 [test:135 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (33) [test:136 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (32) [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 34], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 33], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master] SQL (0.5ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 25 [test:136 master] SQL (0.4ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 16 [8:137 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 25 [test:136 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 16 [8:137 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 25 [test:136 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 16 [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 35], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 34], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master] SQL (0.4ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (221) [test:135 master] SQL (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (35) [test:136 master] SQL (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (34) [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 36], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 35], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 27 [test:136 master] SQL (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 18 [8:137 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 27 [test:136 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 18 [8:137 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 27 [test:136 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 18 [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 37], ["value", 1]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 37], ["value", 2]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 36], ["value", 3]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 36], ["value", 4]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 36], ["value", 5]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (1.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 37 [test:136 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [test:136 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 36 [8:137 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [8:137 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (28, 29) [test:136 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (19, 20, 21) [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 38], ["value", 1]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 38], ["value", 2]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 37], ["value", 3]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 37], ["value", 4]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 37], ["value", 5]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 38 [test:136 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [test:136 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 37 [8:137 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [8:137 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (30, 31) [test:136 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (22, 23, 24) [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 39], ["value", 1]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 39], ["value", 2]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 38], ["value", 3]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 38], ["value", 4]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 38], ["value", 5]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 39 [test:136 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [test:136 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 38 [8:137 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [8:137 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (32, 33) [test:136 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (25, 26, 27) [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 40], ["value", 1]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 40], ["value", 2]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 39], ["value", 3]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 39], ["value", 4]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 39], ["value", 5]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (1.0ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 40 [test:136 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [test:136 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 39 [8:137 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [8:137 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (34, 35) [test:136 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (28, 29, 30) [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 41], ["value", 1]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 41], ["value", 2]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 40], ["value", 3]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 40], ["value", 4]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 40], ["value", 5]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 41 [test:136 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [test:136 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 40 [8:137 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [8:137 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (36, 37) [test:136 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (31, 32, 33) [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 42], ["value", 1]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1370000000000041], ["value", 3]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1360000000000042], ["value", 2]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 41], ["value", 4]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 41], ["value", 5]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:136 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:137 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:136 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:137 master]  (0.1ms) SHOW max_identifier_length [8:137 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:136 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:137 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:136 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [test:136 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [8:137 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [8:137 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [8:137 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 43], ["value", 1]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1370000000000042], ["value", 3]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1360000000000043], ["value", 2]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 42], ["value", 4]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 42], ["value", 5]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:136 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:137 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:136 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:137 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:136 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:137 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [test:136 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) [test:136 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [8:137 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [8:137 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [8:137 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 44], ["value", 1]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1370000000000043], ["value", 3]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1360000000000044], ["value", 2]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 43], ["value", 4]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 43], ["value", 5]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:136 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:137 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:136 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:137 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:136 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:137 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [test:136 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (44) [test:136 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) [8:137 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [8:137 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) [8:137 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (44) [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 45], ["value", 1]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1370000000000044], ["value", 3]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1360000000000045], ["value", 2]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 44], ["value", 4]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 44], ["value", 5]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 45], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 46], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 47], ["value", 1]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1370000000000045], ["value", 3]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1360000000000047], ["value", 2]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 45], ["value", 4]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 45], ["value", 5]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:136 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:137 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:136 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:137 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:136 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:137 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:136 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (47) [test:136 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [8:137 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [8:137 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [8:137 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (47) [test:136 master]  (0.2ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 48], ["value", 1]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1370000000000046], ["value", 3]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 1360000000000048], ["value", 2]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 46], ["value", 4]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:37 UTC +00:00], ["user_id", 46], ["value", 5]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:136 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:137 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:136 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:137 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:136 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:137 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:136 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (48) [test:136 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (46) [8:137 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [8:137 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (46) [8:137 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (48) [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 135], ["name", nil]] [test:135 master]  (0.3ms) COMMIT [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 136], ["name", "switchman_test_shard_136"]] [test:135 master]  (0.3ms) COMMIT [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 137], ["name", "switchman_test_shard_137"]] [test:135 master]  (0.3ms) COMMIT [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.2ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master] SQL (6.1ms) DELETE FROM "switchman_shards" [test:135 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 135], ["name", nil]] [test:135 master]  (5.7ms) COMMIT [test:135 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 136], ["name", "switchman_test_shard_136"]] [test:135 master]  (4.6ms) COMMIT [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 137], ["name", "switchman_test_shard_137"]] [test:135 master]  (0.3ms) COMMIT [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:38 UTC +00:00]] [test:136 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) ROLLBACK [8:137 master]  (0.0ms) ROLLBACK [test:136 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 135], ["name", nil]] [test:135 master]  (0.3ms) COMMIT [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 136], ["name", "switchman_test_shard_136"]] [test:135 master]  (0.3ms) COMMIT [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 137], ["name", "switchman_test_shard_137"]] [test:135 master]  (0.2ms) COMMIT [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (135)) [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=136)) ORDER BY id [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=136)) ORDER BY id [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=135 AND id<136) OR (id>=137 AND id<138)) ORDER BY id [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (135)) [test:135 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [test:135 master]  (0.0ms) ROLLBACK [8:137 master]  (0.0ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=135 AND id<=136)) ORDER BY id [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (135)) [test:135 master]  (0.0ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=135 AND id<=136)) AND (id NOT IN (135)) [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ('f') [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.0ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=135 AND id<136)) [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.0ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=136 AND id<=136)) AND (id NOT IN (135)) [test:135 master]  (0.0ms) ROLLBACK [8:137 master]  (0.0ms) ROLLBACK [test:135 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 135], ["name", nil]] [test:135 master]  (0.2ms) COMMIT [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.0ms) BEGIN [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 136], ["name", "switchman_test_shard_136"]] [test:135 master]  (0.2ms) COMMIT [test:135 master]  (0.0ms) BEGIN [test:135 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 137], ["name", "switchman_test_shard_137"]] [test:135 master]  (0.3ms) COMMIT [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.0ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 136 LIMIT 1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.0ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.0ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10137 LIMIT 1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.0ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 137 LIMIT 1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.0ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.0ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.0ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:135 master]  (0.0ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '11' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", "public"]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_140 [11:140 deploy]  (0.1ms) BEGIN [11:140 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [11:140 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [11:140 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [11:140 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [11:140 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [11:140 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [11:140 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [11:140 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [11:140 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [11:140 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [11:140 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [11:140 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [11:140 deploy] Migrating to CreateDigits (20131022202028)  (2.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [11:140 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [11:140 deploy] Migrating to CreateFeatures (20131206172923)  (2.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [11:140 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [11:140 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [11:140 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [11:140 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [11:140 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [11:140 deploy]  (0.7ms) COMMIT [11:140 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:135 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_140' WHERE "switchman_shards"."id" = 140 [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) BEGIN [11:140 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [11:140 master]  (1.1ms) COMMIT [11:140 master]  (0.3ms) SELECT COUNT(*) FROM "users"  [11:140 master]  (10.6ms) DROP SCHEMA switchman_test_shard_140 CASCADE [11:140 deploy]  (0.4ms) SELECT COUNT(*) FROM "users"  [11:140 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 141]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.0ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 142]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 142 LIMIT 1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.0ms) ROLLBACK [test:135 master] SQL (5.0ms) DELETE FROM "switchman_shards" [test:135 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 135], ["name", nil]] [test:135 master]  (6.1ms) COMMIT [test:135 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 136], ["name", "switchman_test_shard_136"]] [test:135 master]  (11.2ms) COMMIT [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 137], ["name", "switchman_test_shard_137"]] [test:135 master]  (0.3ms) COMMIT [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master]  (0.0ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master]  (0.0ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master]  (0.0ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master]  (0.0ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master]  (0.0ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 135], ["name", nil]] [test:135 master]  (6.0ms) COMMIT [test:135 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 136], ["name", "switchman_test_shard_136"]] [test:135 master]  (11.0ms) COMMIT [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 137], ["name", "switchman_test_shard_137"]] [test:135 master]  (0.3ms) COMMIT [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '12' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [test:135 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.0ms) select sqlite_version(*) [12:143 deploy]  (0.0ms) begin transaction [12:143 deploy]  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [12:143 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [12:143 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [12:143 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (0.1ms) CREATE TABLE "switchman_shards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "database_server_id" varchar(255), "default" boolean DEFAULT 'f' NOT NULL) [12:143 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [12:143 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [12:143 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [12:143 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [12:143 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [12:143 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [12:143 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [12:143 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [12:143 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [12:143 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [12:143 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [12:143 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [12:143 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) ALTER TABLE "users" ADD "parent_id" integer(8) [12:143 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [12:143 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [12:143 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [12:143 deploy]  (1.0ms) commit transaction [12:143 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:135 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_143.sqlite3' WHERE "switchman_shards"."id" = 143 [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.0ms) begin transaction [12:143 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [12:143 master]  (0.7ms) commit transaction [12:143 master] Drop failed: No such file or directory @ unlink_internal - db/shard_143.sqlite3  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 143]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '13' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:135 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", "public"]] [test:135 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (6.4ms) CREATE SCHEMA switchman_test_shard_144 [13:144 deploy]  (0.1ms) BEGIN [13:144 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [13:144 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [13:144 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [13:144 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (4.0ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [13:144 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [13:144 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [13:144 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [13:144 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [13:144 deploy] Migrating to CreateAppendages (20130411202442)  (2.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [13:144 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [13:144 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [13:144 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [13:144 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [13:144 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [13:144 deploy] Migrating to CreateFeatures (20131206172923)  (2.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [13:144 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [13:144 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [13:144 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [13:144 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [13:144 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [13:144 deploy]  (0.8ms) COMMIT [13:144 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:135 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_144' WHERE "switchman_shards"."id" = 144 [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) BEGIN [13:144 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [13:144 master]  (0.2ms) COMMIT [13:144 master]  (5.5ms) DROP SCHEMA switchman_test_shard_144 CASCADE [13:144 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 144]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [test:135 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_145 [test:145 deploy]  (0.1ms) SAVEPOINT active_record_2 [test:145 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:145 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:145 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [test:145 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.1ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:145 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [test:145 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [test:145 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:145 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [test:145 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:145 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [test:145 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:145 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [test:145 deploy] Migrating to CreateDigits (20131022202028)  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:145 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [test:145 deploy] Migrating to CreateFeatures (20131206172923)  (2.4ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:145 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [test:145 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:145 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [test:145 deploy] Migrating to CreateRoots (20140219183820)  (2.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:145 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [test:145 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_2 [test:145 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_145' WHERE "switchman_shards"."id" = 145 [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.2ms) SAVEPOINT active_record_1 [test:145 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:145 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:145 master]  (3.5ms) DROP SCHEMA switchman_test_shard_145 CASCADE [test:145 deploy]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 145]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (2.3ms) ROLLBACK [test:135 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:135 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master]  (0.0ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master]  (0.0ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 135], ["name", nil]] [test:135 master]  (6.0ms) COMMIT [test:135 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 136], ["name", "switchman_test_shard_136"]] [test:135 master]  (11.7ms) COMMIT [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 137], ["name", "switchman_test_shard_137"]] [test:135 master]  (0.2ms) COMMIT [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 222], ["value", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 50], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (1.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 47], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.2ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 223], ["value", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 51], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 48], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 224], ["value", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 52], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 49], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 225], ["value", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 53], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 50], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 226], ["value", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 54], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 51], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 227], ["value", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 55], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 52], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 228], ["value", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 56], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 53], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 229], ["value", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 57], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.2ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 54], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 136 LIMIT 1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 230], ["value", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 58], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 55], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 231], ["value", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 59], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master]  (0.0ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 56], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 232], ["value", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 60], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 57], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 233], ["value", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 61], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 58], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 233], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 234], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 234]] [test:135 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 233 LIMIT 1 [test:135 master]  (0.1ms) SHOW max_identifier_length [test:135 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 233 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 236], ["value", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 62], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 59], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 237], ["value", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 63], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 60], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 238], ["value", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 64], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 61], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 239], ["value", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 65], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", 62], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 135], ["name", nil]] [test:135 master]  (0.2ms) COMMIT [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 136], ["name", "switchman_test_shard_136"]] [test:135 master]  (0.3ms) COMMIT [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 137], ["name", "switchman_test_shard_137"]] [test:135 master]  (0.2ms) COMMIT [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (135, 136) AND (id IN (136,137)) [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.0ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.0ms) ROLLBACK [test:135 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.0ms) BEGIN [test:135 master]  (0.0ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "29"], ["default", false], ["name", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "29"], ["default", false], ["name", nil]] [test:135 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 135], ["name", nil]] [test:135 master]  (0.2ms) COMMIT [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 136], ["name", "switchman_test_shard_136"]] [test:135 master]  (0.2ms) COMMIT [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 137], ["name", "switchman_test_shard_137"]] [test:135 master]  (0.2ms) COMMIT [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 135], ["name", nil]] [test:135 master]  (0.2ms) COMMIT [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 136], ["name", "switchman_test_shard_136"]] [test:135 master]  (0.2ms) COMMIT [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 137], ["name", "switchman_test_shard_137"]] [test:135 master]  (0.2ms) COMMIT [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.0ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (1.8ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:38 UTC +00:00], ["user_id", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 6]] [test:135 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 6]] [test:135 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 6 LIMIT 1 [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 135], ["name", nil]] [test:135 master]  (0.3ms) COMMIT [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 136], ["name", "switchman_test_shard_136"]] [test:135 master]  (0.2ms) COMMIT [test:135 master]  (0.0ms) BEGIN [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 137], ["name", "switchman_test_shard_137"]] [test:135 master]  (0.3ms) COMMIT [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 135], ["name", nil]] [test:135 master]  (0.2ms) COMMIT [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.0ms) BEGIN [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 136], ["name", "switchman_test_shard_136"]] [test:135 master]  (0.2ms) COMMIT [test:135 master]  (0.0ms) BEGIN [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 137], ["name", "switchman_test_shard_137"]] [test:135 master]  (0.2ms) COMMIT [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 136 LIMIT 1 [test:135 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (240) [test:135 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 68 LIMIT 1 [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (242) [test:135 master] SQL (0.1ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (69) [test:136 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 242]] [test:135 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 69]] [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 70 [test:136 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 243]] [test:135 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 70]] [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 135], ["name", nil]] [test:135 master]  (0.2ms) COMMIT [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 136], ["name", "switchman_test_shard_136"]] [test:135 master]  (0.2ms) COMMIT [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 137], ["name", "switchman_test_shard_137"]] [test:135 master]  (0.3ms) COMMIT [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "30"], ["default", false], ["name", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "31"], ["default", false], ["name", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master] SQL (0.9ms) DELETE FROM "switchman_shards" [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 135], ["name", nil]] [test:135 master]  (0.3ms) COMMIT [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 136], ["name", "switchman_test_shard_136"]] [test:135 master]  (0.2ms) COMMIT [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 137], ["name", "switchman_test_shard_137"]] [test:135 master]  (0.2ms) COMMIT [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["user_id", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["user_id", nil], ["value", nil]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 136 LIMIT 1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (1.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["user_id", nil], ["value", nil]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.0ms) ROLLBACK [8:137 master]  (0.0ms) ROLLBACK [test:135 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 135], ["name", nil]] [test:135 master]  (0.3ms) COMMIT [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 136], ["name", "switchman_test_shard_136"]] [test:135 master]  (0.4ms) COMMIT [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 137], ["name", "switchman_test_shard_137"]] [test:135 master]  (0.3ms) COMMIT [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 136 LIMIT 1 [test:135 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 75]] [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (76) LIMIT 1 [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 77 LIMIT 1 [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:135 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [test:135 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 79 LIMIT 1 [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 80]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1360000000000080 LIMIT 1 [test:136 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:136 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:135 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 135], ["name", nil]] [test:135 master]  (0.3ms) COMMIT [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 136], ["name", "switchman_test_shard_136"]] [test:135 master]  (0.3ms) COMMIT [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 137], ["name", "switchman_test_shard_137"]] [test:135 master]  (0.3ms) COMMIT [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 135], ["name", nil]] [test:135 master]  (0.3ms) COMMIT [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.0ms) BEGIN [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 136], ["name", "switchman_test_shard_136"]] [test:135 master]  (0.2ms) COMMIT [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 137], ["name", "switchman_test_shard_137"]] [test:135 master]  (0.2ms) COMMIT [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [8:137 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:137 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [8:137 master]  (0.2ms) SELECT COUNT(*) FROM "users" [8:137 master]  (0.1ms) SAVEPOINT active_record_2 [8:137 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [8:137 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [8:137 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) SELECT COUNT(*) FROM "users" [8:137 master]  (0.1ms) ROLLBACK [8:137 master] SQL (11.7ms) DELETE FROM "switchman_shards" [test:135 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 135], ["name", nil]] [test:135 master]  (6.2ms) COMMIT [test:135 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 136], ["name", "switchman_test_shard_136"]] [test:135 master]  (0.3ms) COMMIT [test:135 master]  (0.0ms) BEGIN [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 137], ["name", "switchman_test_shard_137"]] [test:135 master]  (0.2ms) COMMIT [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["user_id", nil], ["value", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 136 LIMIT 1 [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 137 LIMIT 1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["owner_id", 249], ["owner_type", "User"], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["value", nil]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 11 LIMIT 1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master] SQL (6.0ms) DELETE FROM "switchman_shards" [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 135], ["name", nil]] [test:135 master]  (0.3ms) COMMIT [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 136], ["name", "switchman_test_shard_136"]] [test:135 master]  (0.2ms) COMMIT [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "8"], ["default", false], ["id", 137], ["name", "switchman_test_shard_137"]] [test:135 master]  (0.2ms) COMMIT [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.1ms) SAVEPOINT active_record_1 [test:136 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:136 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:136 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:136 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:135 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:13:39.443452' [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master] User Load (0.1ms) SELECT "users".* FROM "users"  [test:135 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:13:39.450021' [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:135 master]  (0.2ms) COMMIT [test:135 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:135 master] SQL (1.1ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:13:39.454088' [test:135 master] SQL (0.3ms) DELETE FROM "users" [test:135 master]  (0.0ms) BEGIN [test:135 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:135 master]  (0.2ms) COMMIT [test:135 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:135 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:13:39.459424' [test:135 master] SQL (0.3ms) DELETE FROM "users" [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:135 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master] User Load (0.1ms) SELECT "users".* FROM "users"  [test:135 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master]  (0.0ms) ROLLBACK [8:137 master]  (0.0ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:135 master]  (0.3ms) COMMIT [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:135 master]  (0.4ms) COMMIT [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master] User Load (0.1ms) SELECT "users".* FROM "users"  [test:135 master] SQL (0.1ms) DELETE FROM "users" [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) SAVEPOINT active_record_1 [test:135 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:135 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:135 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:135 master] SQL (0.1ms) DELETE FROM "users" [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:135 master]  (0.3ms) COMMIT [test:135 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:135 master] SQL (0.3ms) DELETE FROM "users" [test:135 master] SQL (0.1ms) DELETE FROM "users" [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:135 master]  (0.3ms) COMMIT [test:135 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:135 master] SQL (0.4ms) DELETE FROM "users" [test:135 master] SQL (0.1ms) DELETE FROM "users" [test:135 master]  (0.1ms) BEGIN [test:135 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:135 master]  (0.4ms) COMMIT [test:135 master]  (0.0ms) BEGIN [test:135 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:39 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:13:39 UTC +00:00]] [test:135 master]  (0.3ms) COMMIT [test:135 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 264]] [test:135 master] CACHE (0.0ms) 135::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 264]] CACHE (0.0ms) 135::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 264]]  (0.1ms) BEGIN [test:135 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2015-05-27 16:13:39.508062' WHERE "users"."id" = 264 [test:135 master]  (0.3ms) COMMIT [test:135 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 264]] [test:135 master] CACHE (0.0ms) 135::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 264]] SQL (0.3ms) DELETE FROM "users" [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.0ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.0ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.0ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master] User Load (0.1ms) SELECT "users".* FROM "users"  [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.0ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master] User Load (0.1ms) SELECT "users".* FROM "users"  [test:135 master]  (0.0ms) ROLLBACK [8:137 master]  (0.0ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.1ms) BEGIN [8:137 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:135 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.0ms) ROLLBACK [test:135 master]  (0.0ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.0ms) ROLLBACK [8:137 master]  (0.0ms) ROLLBACK [test:135 master]  (0.1ms) BEGIN [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 136]] [test:135 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 137]] [test:135 master]  (0.0ms) BEGIN [8:137 master]  (0.1ms) ROLLBACK [8:137 master]  (0.1ms) ROLLBACK [test:135 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:135 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:135 master]  (6.0ms) DROP SCHEMA switchman_test_shard_136 CASCADE [test:136 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 136]]  (0.1ms) COMMIT  (7.1ms) DROP SCHEMA switchman_test_shard_137 CASCADE [8:137 deploy]  (0.4ms) BEGIN SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 137]]  (0.1ms) COMMIT  (1.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.6ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", true]]  (6.1ms) COMMIT Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.4ms) CREATE SCHEMA switchman_test_shard_151 [test:151 deploy]  (0.2ms) SAVEPOINT active_record_1 [test:151 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:151 deploy]  (6.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:151 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:151 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (13.9ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:151 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:151 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:151 deploy] Migrating to CreateUsers (20130403132607)  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:151 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:151 deploy] Migrating to CreateAppendages (20130411202442)  (2.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:151 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:151 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.3ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:151 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:151 deploy] Migrating to CreateDigits (20131022202028)  (2.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:151 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:151 deploy] Migrating to CreateFeatures (20131206172923)  (2.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:151 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:151 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:151 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:151 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:151 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:151 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 deploy] SQL (0.5ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 151 [["name", "switchman_test_shard_151"]] [test:150 master]  (1.1ms) COMMIT [test:150 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:150 master]  (0.2ms) COMMIT [test:150 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_152 [1:152 deploy]  (0.1ms) BEGIN [1:152 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:152 deploy]  (13.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:152 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:152 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (8.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:152 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:152 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:152 deploy] Migrating to CreateUsers (20130403132607)  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:152 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:152 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:152 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:152 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.3ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:152 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:152 deploy] Migrating to CreateDigits (20131022202028)  (2.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:152 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:152 deploy] Migrating to CreateFeatures (20131206172923)  (2.3ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:152 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:152 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:152 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:152 deploy] Migrating to CreateRoots (20140219183820)  (2.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:152 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:152 deploy]  (0.7ms) COMMIT [1:152 deploy]  (0.1ms) BEGIN [test:150 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 152 [["name", "switchman_test_shard_152"]] [test:150 master]  (0.3ms) COMMIT [test:150 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:150 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 150]] [test:150 master]  (0.3ms) COMMIT [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 151], ["name", "switchman_test_shard_151"]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 152], ["name", "switchman_test_shard_152"]] [test:150 master]  (0.2ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.2ms) SAVEPOINT active_record_1 [test:151 master] SQL (2.8ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (6.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 1]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 1]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 151 LIMIT 1 [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 152 LIMIT 1 [test:150 master]  (0.3ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (1) [test:151 master]  (0.3ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (1) [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.2ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 2]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 2]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.4ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 2 [test:151 master]  (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 2 [1:152 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 2 [test:151 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 2 [1:152 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 2 [test:151 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 2 [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 3]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 3]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 3 [test:151 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 3 [1:152 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 3 [test:151 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 3 [1:152 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 3 [test:151 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 3 [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 4]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [1:152 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.2ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 4]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.5ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (265) [test:150 master]  (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (4) [test:151 master]  (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (4) [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 5], ["value", 1]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 5], ["value", 2]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 5], ["value", 3]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 5], ["value", 4]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 5], ["value", 5]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 5]] [test:151 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [test:151 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 5]] [1:152 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [1:152 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (5, 6) [test:151 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (5, 6, 7) [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.2ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 6], ["value", 1]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 6], ["value", 2]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 6], ["value", 3]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 6], ["value", 4]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 6], ["value", 5]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.5ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 6]] [test:151 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [test:151 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 6]] [1:152 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [1:152 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (7, 8) [test:151 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (8, 9, 10) [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 7], ["value", 1]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 7], ["value", 2]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 7], ["value", 3]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 7], ["value", 4]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 7], ["value", 5]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 7]] [test:151 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [test:151 master]  (0.4ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 7]] [1:152 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [1:152 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (9, 10) [test:151 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (11, 12, 13) [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 8], ["value", 1]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 8], ["value", 2]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 8], ["value", 3]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 8], ["value", 4]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 8], ["value", 5]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.5ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 8]] [test:151 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [test:151 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 8]] [1:152 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [1:152 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (11, 12) [test:151 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (14, 15, 16) [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 9], ["value", 1]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 9], ["value", 2]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 9], ["value", 3]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 9], ["value", 4]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 9], ["value", 5]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.5ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 9]] [test:151 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [test:151 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 9]] [1:152 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [1:152 master]  (0.5ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (13, 14) [test:151 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (17, 18, 19) [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 10], ["value", 1]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 1520000000000010], ["value", 3]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 1510000000000010], ["value", 2]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 10], ["value", 4]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 10], ["value", 5]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:151 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:152 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:151 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:152 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:151 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:152 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:151 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [test:151 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [1:152 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:152 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [1:152 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 11], ["value", 1]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 1520000000000011], ["value", 3]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 1510000000000011], ["value", 2]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 11], ["value", 4]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 11], ["value", 5]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:151 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:152 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:151 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:152 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:151 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:152 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:151 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (11) [test:151 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (11) [1:152 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:152 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (11) [1:152 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (11) [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 12], ["value", 1]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 1520000000000012], ["value", 3]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 1510000000000012], ["value", 2]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 12], ["value", 4]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 12], ["value", 5]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 12]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 13]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 14], ["value", 1]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 1520000000000013], ["value", 3]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 1510000000000014], ["value", 2]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 13], ["value", 4]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 13], ["value", 5]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:151 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:152 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:151 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:152 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:151 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:152 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [test:151 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (14) [test:151 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (13) [1:152 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [1:152 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (13) [1:152 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (14) [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 15], ["value", 1]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 1520000000000014], ["value", 3]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 1510000000000015], ["value", 2]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 14], ["value", 4]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 14], ["value", 5]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:151 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:152 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:151 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:152 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:151 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:152 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [test:151 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (15) [test:151 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (14) [1:152 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [1:152 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (14) [1:152 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (15) [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 16], ["value", 1]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 1520000000000015], ["value", 3]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 1510000000000016], ["value", 2]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 15], ["value", 4]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:58 UTC +00:00], ["user_id", 15], ["value", 5]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:151 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:152 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:151 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:152 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:151 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:152 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:151 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (16) [test:151 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (15) [1:152 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:152 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (15) [1:152 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (16) [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 150]] [test:150 master]  (0.3ms) COMMIT [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 151], ["name", "switchman_test_shard_151"]] [test:150 master]  (0.2ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 152], ["name", "switchman_test_shard_152"]] [test:150 master]  (0.2ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (151,152)) AND "switchman_shards"."id" IN (150, 151) [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 150]] [test:150 master]  (0.3ms) COMMIT [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 151], ["name", "switchman_test_shard_151"]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 152], ["name", "switchman_test_shard_152"]] [test:150 master]  (0.2ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 150]] [test:150 master]  (0.3ms) COMMIT [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 151], ["name", "switchman_test_shard_151"]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 152], ["name", "switchman_test_shard_152"]] [test:150 master]  (0.2ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.2ms) ROLLBACK [1:152 master]  (0.2ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:150 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 150]] [test:150 master]  (0.3ms) COMMIT [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 151], ["name", "switchman_test_shard_151"]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 152], ["name", "switchman_test_shard_152"]] [test:150 master]  (0.2ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" [test:150 master]  (0.2ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.4ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 155]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 151 LIMIT 1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 156]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 156 LIMIT 1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '3' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "3"], ["name", "public"]] [test:150 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_157 [3:157 deploy]  (0.1ms) BEGIN [3:157 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [3:157 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [3:157 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [3:157 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.0ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [3:157 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [3:157 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [3:157 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [3:157 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [3:157 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [3:157 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [3:157 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [3:157 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [3:157 deploy] Migrating to CreateDigits (20131022202028)  (2.3ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [3:157 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [3:157 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [3:157 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [3:157 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [3:157 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [3:157 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [3:157 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [3:157 deploy]  (0.8ms) COMMIT [3:157 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 157 [["name", "switchman_test_shard_157"]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) BEGIN [3:157 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [3:157 master]  (0.4ms) COMMIT [3:157 master]  (0.2ms) SELECT COUNT(*) FROM "users" [3:157 master]  (5.4ms) DROP SCHEMA switchman_test_shard_157 CASCADE [3:157 deploy]  (0.5ms) SELECT COUNT(*) FROM "users" [3:157 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.2ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10152 LIMIT 1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 152 LIMIT 1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:150 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:150 master] SQL (1.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 150]] [test:150 master]  (0.3ms) COMMIT [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 151], ["name", "switchman_test_shard_151"]] [test:150 master]  (0.4ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 152], ["name", "switchman_test_shard_152"]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:150 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 150]] [test:150 master]  (0.3ms) COMMIT [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 151], ["name", "switchman_test_shard_151"]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 152], ["name", "switchman_test_shard_152"]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master]  (0.4ms) SELECT COUNT(*) FROM "users" [1:152 master]  (0.1ms) SAVEPOINT active_record_2 [1:152 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [1:152 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.2ms) SELECT COUNT(*) FROM "users" [1:152 master]  (0.1ms) ROLLBACK [1:152 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master]  (0.2ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "5"]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "5"]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 150]] [test:150 master]  (5.7ms) COMMIT [test:150 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 151], ["name", "switchman_test_shard_151"]] [test:150 master]  (5.1ms) COMMIT [test:150 master]  (0.2ms) BEGIN [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 152], ["name", "switchman_test_shard_152"]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.0ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:151 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.0ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 150]] [test:150 master]  (0.3ms) COMMIT [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 151], ["name", "switchman_test_shard_151"]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 152], ["name", "switchman_test_shard_152"]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "6"]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "7"]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master] SQL (0.9ms) DELETE FROM "switchman_shards" [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:150 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 150]] [test:150 master]  (0.3ms) COMMIT [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 151], ["name", "switchman_test_shard_151"]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 152], ["name", "switchman_test_shard_152"]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["user_id", 18]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 151 LIMIT 1 [test:150 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 29]] [test:151 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["user_id", 19]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["user_id", 19]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 152 LIMIT 1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["user_id", 22]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["user_id", 23]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 23], ["id", 32]] [test:151 master] Appendage Load (0.6ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 23], ["id", 1510000000000032]] [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["user_id", 24]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 24]] [test:151 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 24]] [test:151 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 24]] [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["user_id", 25]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.7ms) INSERT INTO "digits" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 34], ["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["id", 1520000000000001], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master] Digit Load (0.6ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 25], ["id", 1520000000000001]] [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["parent_id", 26], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["parent_id", 27], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 26]] [test:151 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 28 LIMIT 1 [["parent_id", 26]] [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["id", 28], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 26]] [test:151 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 1520000000000028 LIMIT 1 [["parent_id", 26]] [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["user_id", 29]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["user_id", 30]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 36], ["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 30], ["id", 1]] [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.2ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.8ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["user_id", 33], ["value", 1]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["user_id", 1510000000000033]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 33]] [test:151 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 1510000000000033]] [1:152 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 33]] [test:151 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 33]] [test:151 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 1510000000000033]] [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["user_id", 34]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 38], ["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 38], ["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["value", 1]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["user_id", 1510000000000034]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 40], ["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["value", 2]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.5ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 34]] [test:151 master]  (0.5ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 1510000000000034]] [1:152 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 34]] [test:151 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 34]] [test:151 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 1510000000000034]] [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["user_id", 35], ["value", 1]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["user_id", 1510000000000035]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["user_id", 35], ["value", 2]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 35]] [test:151 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 35]] [test:151 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 1510000000000035]] [1:152 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 35]] [test:151 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 35]] [test:151 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 1510000000000035]] [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["user_id", 36]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 41], ["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["user_id", 1510000000000036]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 42], ["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["value", 2]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 36]] [test:151 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 1510000000000036]] [1:152 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 36]] [test:151 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 36]] [test:151 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 1510000000000036]] [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["user_id", 37], ["value", 1]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["user_id", 1510000000000037], ["value", 2]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 37]] [test:151 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 37]] [test:151 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 37]] [test:151 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 1510000000000037]] [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["user_id", 38]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 43], ["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["value", 1]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["user_id", 1510000000000038]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 44], ["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["value", 2]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 38]] [test:151 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 38]] [test:151 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 38]] [test:151 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 1510000000000038]] [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["user_id", 39]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 44], ["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["user_id", 1510000000000039]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 45], ["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["value", 2]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 39]] [test:151 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 1510000000000039]] [1:152 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 39]] [test:151 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 39]] [test:151 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 1510000000000039]] [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.6ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["user_id", 1520000000000038]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master] Root Load (0.4ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 12]] [test:150 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 38]] [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:13:59 UTC +00:00], ["user_id", 1520000000000039]] [test:151 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:151 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 45]] [test:151 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 39]] [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 42]] [test:151 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["user_id", 42]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 46]] [test:151 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 42]] [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["user_id", 43]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["user_id", 1510000000000043]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["user_id", 1510000000000043]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 47], ["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:151 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 47], ["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1520000000000047], ["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1520000000000048], ["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["user_id", 1520000000000041]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["user_id", 41]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["user_id", 41]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1510000000000048], ["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1520000000000049], ["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 50], ["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) [test:151 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (43) [test:151 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (1510000000000043) [1:152 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (47) [test:151 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (47, 48) [1:152 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [1:152 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (41) [1:152 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (49, 50) [1:152 master] SQL (0.3ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["user_id", 1510000000000044]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["user_id", 1520000000000042]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["user_id", 267]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [test:150 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (44) [test:151 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [1:152 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (267) [test:150 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 44 [test:151 master]  (0.2ms) ROLLBACK [1:152 master]  (0.2ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["user_id", 1510000000000045]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 135], ["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["user_id", 1520000000000043]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1510000000000049], ["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [test:150 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (135) [test:150 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (49) [test:151 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [test:151 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) [1:152 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 45 [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["user_id", 46]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["user_id", 1510000000000046]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["user_id", 1520000000000044]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (46) [test:151 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (46) [test:151 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (1510000000000046) [1:152 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (44) [1:152 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (44) [1:152 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 50 [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 136], ["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1500000000000136], ["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 136 ORDER BY "appendages"."id" ASC LIMIT 1 [test:150 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (136) [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.2ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.9ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["owner_id", 137], ["owner_type", "Appendage"], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 12]] [test:150 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 137]] [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.5ms) UPDATE "features" SET "owner_id" = $1, "owner_type" = $2, "updated_at" = $3 WHERE "features"."id" = 12 [["owner_id", 1510000000000048], ["owner_type", "User"], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 12]] [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["owner_id", 49], ["owner_type", "User"], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["value", 1]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["owner_id", 1510000000000049], ["owner_type", "User"], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["value", 2]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master] Feature Load (0.6ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 49], ["owner_type", "User"]] [test:151 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 49]] [test:151 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 49], ["owner_type", "User"]] [test:151 master] Feature Load (0.6ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 1510000000000049], ["owner_type", "User"]] [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 150]] [test:150 master]  (0.3ms) COMMIT [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 151], ["name", "switchman_test_shard_151"]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 152], ["name", "switchman_test_shard_152"]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "8"], ["name", "non_existent_shard"]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "8"]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.4ms) SELECT COUNT(*) FROM "users" [8:162 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.6ms) SELECT COUNT(*) FROM "users" [8:163 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "9"]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "10"]] [test:150 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "11"]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "12"]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "13"]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "14"]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 150]] [test:150 master]  (6.2ms) COMMIT [test:150 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 151], ["name", "switchman_test_shard_151"]] [test:150 master]  (5.1ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 152], ["name", "switchman_test_shard_152"]] [test:150 master]  (0.4ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '33' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "33"]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) begin transaction [33:170 deploy]  (0.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [33:170 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [33:170 deploy] ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations" [33:170 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (0.2ms) CREATE TABLE "switchman_shards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "database_server_id" varchar(255), "default" boolean DEFAULT 'f' NOT NULL)  [33:170 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130328212039"]] [33:170 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130328224244"]] [33:170 deploy] Migrating to CreateUsers (20130403132607)  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime, "updated_at" datetime) [33:170 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130403132607"]] [33:170 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [33:170 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202442"]] [33:170 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [33:170 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202551"]] [33:170 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [33:170 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131022202028"]] [33:170 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime, "updated_at" datetime) [33:170 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131206172923"]] [33:170 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) ALTER TABLE "users" ADD "parent_id" integer(8) [33:170 deploy] SQL (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140123154135"]] [33:170 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [33:170 deploy] SQL (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219183820"]] [33:170 deploy]  (1.2ms) commit transaction [33:170 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.4ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 170 [["name", "db/shard_170.sqlite3"]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) begin transaction [33:170 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [33:170 master]  (0.8ms) commit transaction [33:170 master] Drop failed: No such file or directory @ unlink_internal - db/shard_170.sqlite3  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 170]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '34' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "34"], ["name", "public"]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (6.3ms) CREATE SCHEMA switchman_test_shard_171 [34:171 deploy]  (0.1ms) BEGIN [34:171 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [34:171 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [34:171 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [34:171 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.3ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [34:171 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [34:171 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [34:171 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [34:171 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [34:171 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [34:171 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [34:171 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [34:171 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [34:171 deploy] Migrating to CreateDigits (20131022202028)  (3.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [34:171 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [34:171 deploy] Migrating to CreateFeatures (20131206172923)  (2.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [34:171 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [34:171 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [34:171 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [34:171 deploy] Migrating to CreateRoots (20140219183820)  (2.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [34:171 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [34:171 deploy]  (0.9ms) COMMIT [34:171 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 171 [["name", "switchman_test_shard_171"]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) BEGIN [34:171 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [34:171 master]  (0.4ms) COMMIT [34:171 master]  (5.2ms) DROP SCHEMA switchman_test_shard_171 CASCADE [34:171 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 171]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [test:150 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_172 [test:172 deploy]  (0.1ms) SAVEPOINT active_record_2 [test:172 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [test:172 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:172 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:172 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.1ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [test:172 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:172 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:172 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:172 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:172 deploy] Migrating to CreateAppendages (20130411202442)  (2.3ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:172 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:172 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:172 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:172 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:172 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:172 deploy] Migrating to CreateFeatures (20131206172923)  (2.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:172 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:172 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:172 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:172 deploy] Migrating to CreateRoots (20140219183820)  (2.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:172 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:172 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_2 [test:172 deploy] SQL (0.4ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 172 [["name", "switchman_test_shard_172"]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.2ms) SAVEPOINT active_record_1 [test:172 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:172 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:172 master]  (3.5ms) DROP SCHEMA switchman_test_shard_172 CASCADE [test:172 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 172]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (2.6ms) ROLLBACK [test:150 master] SQL (0.6ms) DELETE FROM "switchman_shards" [test:150 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:150 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 150]] [test:150 master]  (0.4ms) COMMIT [test:150 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 151], ["name", "switchman_test_shard_151"]] [test:150 master]  (0.4ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 152], ["name", "switchman_test_shard_152"]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.4ms) INSERT INTO "roots" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.2ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.2ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 151 LIMIT 1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 150]] [test:150 master]  (0.3ms) COMMIT [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 151], ["name", "switchman_test_shard_151"]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 152], ["name", "switchman_test_shard_152"]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:151 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] User Load (0.4ms) SELECT "users".* FROM "users" FOR UPDATE [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:150 master] SQL (0.2ms) DELETE FROM "users" [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:150 master] SQL (0.1ms) DELETE FROM "users" [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.3ms) COMMIT [test:150 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:150 master] SQL (0.4ms) DELETE FROM "users" [test:150 master] SQL (0.1ms) DELETE FROM "users" [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.3ms) COMMIT [test:150 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:150 master] SQL (0.4ms) DELETE FROM "users" [test:150 master] SQL (0.1ms) DELETE FROM "users" [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["name", "a"], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.3ms) COMMIT [test:150 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 276]] [test:150 master] CACHE (0.0ms) 150::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 276]] CACHE (0.0ms) 150::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 276]]  (0.1ms) BEGIN [test:150 master] SQL (0.4ms) UPDATE "users" SET "name" = $1, "updated_at" = $2 WHERE "users"."id" = 276 [["name", "b"], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.4ms) COMMIT [test:150 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 276]] [test:150 master] CACHE (0.0ms) 150::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 276]] SQL (0.4ms) DELETE FROM "users" [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:150 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:14:00.758517' [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:150 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:14:00.765802' [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.4ms) COMMIT [test:150 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:150 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:14:00.770546' [test:150 master] SQL (0.4ms) DELETE FROM "users" [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.3ms) COMMIT [test:150 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:150 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:14:00.774998' [test:150 master] SQL (0.3ms) DELETE FROM "users" [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:150 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 150]] [test:150 master]  (0.3ms) COMMIT [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 151], ["name", "switchman_test_shard_151"]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 152], ["name", "switchman_test_shard_152"]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=150 AND id<=151)) AND (id NOT IN (150)) [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=151 AND id<=151)) AND (id NOT IN (150)) [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (150)) [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (150)) [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.2ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=150 AND id<151)) [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=150 AND id<=151)) ORDER BY "switchman_shards"."id" ASC [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.2ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=151)) ORDER BY "switchman_shards"."id" ASC [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=151)) ORDER BY "switchman_shards"."id" ASC [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (150)) [test:150 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=150 AND id<151) OR (id>=152 AND id<153)) ORDER BY "switchman_shards"."id" ASC [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 150]] [test:150 master]  (0.3ms) COMMIT [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 151], ["name", "switchman_test_shard_151"]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 152], ["name", "switchman_test_shard_152"]] [test:150 master]  (0.2ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 151 LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 152 LIMIT 1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.2ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["owner_id", 286], ["owner_type", "User"], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master] Feature Load (0.3ms) SELECT owner_id FROM "features" WHERE "features"."id" = 13 ORDER BY "features"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master] SQL (6.1ms) DELETE FROM "switchman_shards" [test:150 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 150]] [test:150 master]  (0.3ms) COMMIT [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 151], ["name", "switchman_test_shard_151"]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 152], ["name", "switchman_test_shard_152"]] [test:150 master]  (0.2ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 55 ORDER BY "users"."id" ASC LIMIT 1 [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 151 LIMIT 1 [test:150 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (288) [test:150 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 57 [test:151 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 289]] [test:150 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 57]] [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:00 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:14:00 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (290) [test:150 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (58) [test:151 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 290]] [test:150 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 58]] [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 150]] [test:150 master]  (0.3ms) COMMIT [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 151], ["name", "switchman_test_shard_151"]] [test:150 master]  (0.2ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 152], ["name", "switchman_test_shard_152"]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 151 LIMIT 1 [test:150 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 60]] [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 61 LIMIT 1 [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (62) LIMIT 1 [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 63]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1510000000000063 ORDER BY "users"."id" ASC LIMIT 1 [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 64 LIMIT 1 [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["name", "multi-shard exists"], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [test:150 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [test:150 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [test:151 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 150]] [test:150 master]  (0.3ms) COMMIT [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 151], ["name", "switchman_test_shard_151"]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 152], ["name", "switchman_test_shard_152"]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 150]] [test:150 master]  (0.3ms) COMMIT [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 151], ["name", "switchman_test_shard_151"]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 152], ["name", "switchman_test_shard_152"]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 7]] [test:150 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 7]] [test:150 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 7 ORDER BY "mirror_users"."id" ASC LIMIT 1 [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:150 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 150]] [test:150 master]  (0.3ms) COMMIT [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 151], ["name", "switchman_test_shard_151"]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 152], ["name", "switchman_test_shard_152"]] [test:150 master]  (0.3ms) COMMIT [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 292]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 67]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 49]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 293]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 68]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 50]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 294]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 69]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 51]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 295]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 70]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 52]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 296]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 71]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 53]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.2ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 297]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 72]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 54]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 151 LIMIT 1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 298]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 73]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 55]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 299]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 74]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 56]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 300]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 75]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 57]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 301]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 76]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 58]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 302]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 77]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 59]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 303]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 78]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 60]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 304]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 79]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 61]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 305]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 80]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 62]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 306]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 81]] [test:151 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 63]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:151 master]  (0.1ms) BEGIN [test:150 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 151]] [test:150 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 152]] [test:150 master]  (0.1ms) BEGIN [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 307]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:151 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 82]] [test:151 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:151 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [1:152 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["user_id", 64]] [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:152 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["parent_id", 307], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master]  (0.1ms) SAVEPOINT active_record_1 [test:150 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:01 UTC +00:00], ["parent_id", 308], ["updated_at", Wed, 27 May 2015 16:14:01 UTC +00:00]] [test:150 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:150 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 308]] [test:150 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 307]] [test:150 master] User Load (0.5ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 [["parent_id", 307]] [test:150 master]  (0.1ms) ROLLBACK [1:152 master]  (0.1ms) ROLLBACK [test:150 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:150 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:150 master]  (5.8ms) DROP SCHEMA switchman_test_shard_151 CASCADE [test:151 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 151]]  (0.1ms) COMMIT  (7.2ms) DROP SCHEMA switchman_test_shard_152 CASCADE [1:152 deploy]  (0.3ms) BEGIN SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 152]]  (0.2ms) COMMIT  (1.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", true]]  (6.6ms) COMMIT Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_174 [test:174 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:174 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:174 deploy]  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:174 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:174 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.0ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:174 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:174 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:174 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:174 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:174 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:174 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:174 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:174 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:174 deploy] Migrating to CreateDigits (20131022202028)  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:174 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:174 deploy] Migrating to CreateFeatures (20131206172923)  (2.3ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:174 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:174 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.4ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:174 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:174 deploy] Migrating to CreateRoots (20140219183820)  (2.4ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:174 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:174 deploy]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:174 deploy] SQL (0.4ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 174 [["name", "switchman_test_shard_174"]] [test:173 master]  (0.8ms) COMMIT [test:173 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:173 master]  (0.4ms) COMMIT [test:173 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_175 [1:175 deploy]  (0.1ms) BEGIN [1:175 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:175 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:175 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:175 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:175 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:175 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:175 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:175 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:175 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:175 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:175 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:175 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:175 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:175 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:175 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:175 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:175 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:175 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:175 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:175 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:175 deploy]  (0.9ms) COMMIT [1:175 deploy]  (0.1ms) BEGIN [test:173 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 175 [["name", "switchman_test_shard_175"]] [test:173 master]  (0.4ms) COMMIT [test:173 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 173]] [test:173 master]  (0.3ms) COMMIT [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 174], ["name", "switchman_test_shard_174"]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 175], ["name", "switchman_test_shard_175"]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (1.1ms) INSERT INTO "roots" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:173 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.2ms) ROLLBACK [1:175 master]  (0.2ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 174 LIMIT 1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (1.0ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.2ms) ROLLBACK [1:175 master]  (0.2ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master] SQL (5.1ms) DELETE FROM "switchman_shards" [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 173]] [test:173 master]  (0.3ms) COMMIT [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 174], ["name", "switchman_test_shard_174"]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 175], ["name", "switchman_test_shard_175"]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (174,175)) AND "switchman_shards"."id" IN (173, 174) [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.2ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 173]] [test:173 master]  (0.3ms) COMMIT [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 174], ["name", "switchman_test_shard_174"]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 175], ["name", "switchman_test_shard_175"]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 174 LIMIT 1 [test:173 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 4]] [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 5 LIMIT 1 [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.2ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["name", "multi-shard exists"], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [test:173 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [test:173 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [test:174 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.4ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 7]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1740000000000007 ORDER BY "users"."id" ASC LIMIT 1 [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 8 LIMIT 1 [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (9) LIMIT 1 [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "2"], ["name", "non_existent_shard"]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.4ms) SELECT COUNT(*) FROM "users" [2:176 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.6ms) SELECT COUNT(*) FROM "users" [2:177 master]  (0.2ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "3"]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "4"]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "5"]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "6"]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "7"]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "8"]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 173]] [test:173 master]  (0.2ms) COMMIT [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 174], ["name", "switchman_test_shard_174"]] [test:173 master]  (0.2ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 175], ["name", "switchman_test_shard_175"]] [test:173 master]  (0.2ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.2ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["owner_id", 312], ["owner_type", "User"], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master] Feature Load (0.3ms) SELECT owner_id FROM "features" WHERE "features"."id" = 14 ORDER BY "features"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.2ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 174 LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 175 LIMIT 1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master] SQL (5.8ms) DELETE FROM "switchman_shards" [test:173 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 173]] [test:173 master]  (6.1ms) COMMIT [test:173 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 174], ["name", "switchman_test_shard_174"]] [test:173 master]  (5.0ms) COMMIT [test:173 master]  (0.2ms) BEGIN [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 175], ["name", "switchman_test_shard_175"]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=173 AND id<=174)) AND (id NOT IN (173)) [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=174)) ORDER BY "switchman_shards"."id" ASC [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (173)) [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (173)) [test:173 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (173)) [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=174)) ORDER BY "switchman_shards"."id" ASC [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=173 AND id<174) OR (id>=175 AND id<176)) ORDER BY "switchman_shards"."id" ASC [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=173 AND id<=174)) ORDER BY "switchman_shards"."id" ASC [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=174 AND id<=174)) AND (id NOT IN (173)) [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=173 AND id<174)) [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:173 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 173]] [test:173 master]  (0.3ms) COMMIT [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 174], ["name", "switchman_test_shard_174"]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 175], ["name", "switchman_test_shard_175"]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 314]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 10]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 2]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 315]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 11]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 3]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 316]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 12]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 4]] [1:175 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 317]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 13]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 5]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 318]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 14]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 6]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.2ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 319]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:174 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 15]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 7]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["parent_id", 319], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["parent_id", 320], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 320]] [test:173 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 319]] [test:173 master] User Load (0.6ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 [["parent_id", 319]] [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:173 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 322]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 16]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 8]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 323]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 17]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 9]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 324]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 18]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 10]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 174 LIMIT 1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 325]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 19]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 11]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 326]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 20]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 12]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 327]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 21]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 13]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 328]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:174 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 22]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 14]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 329]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 23]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 15]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 330]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 24]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 16]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.2ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 331]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 25]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:26 UTC +00:00], ["user_id", 17]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 173]] [test:173 master]  (0.3ms) COMMIT [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 174], ["name", "switchman_test_shard_174"]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 175], ["name", "switchman_test_shard_175"]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.2ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 173]] [test:173 master]  (0.4ms) COMMIT [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 174], ["name", "switchman_test_shard_174"]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 175], ["name", "switchman_test_shard_175"]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.3ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 173]] [test:173 master]  (0.4ms) COMMIT [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 174], ["name", "switchman_test_shard_174"]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 175], ["name", "switchman_test_shard_175"]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "9"]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "9"]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.2ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.3ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 173]] [test:173 master]  (0.3ms) COMMIT [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 174], ["name", "switchman_test_shard_174"]] [test:173 master]  (0.2ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 175], ["name", "switchman_test_shard_175"]] [test:173 master]  (0.2ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 8]] [test:173 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 8]] [test:173 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 8 ORDER BY "mirror_users"."id" ASC LIMIT 1 [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master] SQL (0.6ms) DELETE FROM "switchman_shards" [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 173]] [test:173 master]  (0.3ms) COMMIT [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 174], ["name", "switchman_test_shard_174"]] [test:173 master]  (0.4ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 175], ["name", "switchman_test_shard_175"]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "10"]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.2ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "11"]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master] SQL (0.8ms) DELETE FROM "switchman_shards" [test:173 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:173 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 173]] [test:173 master]  (0.3ms) COMMIT [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 174], ["name", "switchman_test_shard_174"]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 175], ["name", "switchman_test_shard_175"]] [test:173 master]  (0.2ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 175 LIMIT 1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10175 LIMIT 1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 174 LIMIT 1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 188]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 188 LIMIT 1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 189]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '13' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "13"], ["name", "public"]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_190 [13:190 deploy]  (0.1ms) BEGIN [13:190 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [13:190 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [13:190 deploy] ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" [13:190 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.4ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [13:190 deploy] SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [13:190 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [13:190 deploy] Migrating to CreateUsers (20130403132607)  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [13:190 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [13:190 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [13:190 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [13:190 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [13:190 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [13:190 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [13:190 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [13:190 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [13:190 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [13:190 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [13:190 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [13:190 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [13:190 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [13:190 deploy]  (0.7ms) COMMIT [13:190 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 190 [["name", "switchman_test_shard_190"]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.2ms) BEGIN [13:190 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00]] [13:190 master]  (0.4ms) COMMIT [13:190 master]  (0.2ms) SELECT COUNT(*) FROM "users" [13:190 master]  (5.0ms) DROP SCHEMA switchman_test_shard_190 CASCADE [13:190 deploy]  (0.4ms) SELECT COUNT(*) FROM "users" [13:190 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 173]] [test:173 master]  (0.3ms) COMMIT [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 174], ["name", "switchman_test_shard_174"]] [test:173 master]  (0.4ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 175], ["name", "switchman_test_shard_175"]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 173]] [test:173 master]  (0.4ms) COMMIT [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 174], ["name", "switchman_test_shard_174"]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 175], ["name", "switchman_test_shard_175"]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '14' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "14"]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) begin transaction [14:191 deploy]  (0.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [14:191 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [14:191 deploy] ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations" [14:191 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (0.2ms) CREATE TABLE "switchman_shards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "database_server_id" varchar(255), "default" boolean DEFAULT 'f' NOT NULL)  [14:191 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130328212039"]] [14:191 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130328224244"]] [14:191 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime, "updated_at" datetime) [14:191 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130403132607"]] [14:191 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [14:191 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202442"]] [14:191 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [14:191 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202551"]] [14:191 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [14:191 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131022202028"]] [14:191 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime, "updated_at" datetime) [14:191 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131206172923"]] [14:191 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) ALTER TABLE "users" ADD "parent_id" integer(8) [14:191 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140123154135"]] [14:191 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [14:191 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219183820"]] [14:191 deploy]  (1.2ms) commit transaction [14:191 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 191 [["name", "db/shard_191.sqlite3"]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) begin transaction [14:191 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00]] [14:191 master]  (0.6ms) commit transaction [14:191 master] Drop failed: No such file or directory @ unlink_internal - db/shard_191.sqlite3  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 191]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '15' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "15"], ["name", "public"]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (5.4ms) CREATE SCHEMA switchman_test_shard_192 [15:192 deploy]  (0.1ms) BEGIN [15:192 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [15:192 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [15:192 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [15:192 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.8ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [15:192 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [15:192 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [15:192 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [15:192 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [15:192 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [15:192 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [15:192 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [15:192 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [15:192 deploy] Migrating to CreateDigits (20131022202028)  (2.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [15:192 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [15:192 deploy] Migrating to CreateFeatures (20131206172923)  (2.3ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [15:192 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [15:192 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [15:192 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [15:192 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [15:192 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [15:192 deploy]  (1.0ms) COMMIT [15:192 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 192 [["name", "switchman_test_shard_192"]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) BEGIN [15:192 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00]] [15:192 master]  (0.4ms) COMMIT [15:192 master]  (5.1ms) DROP SCHEMA switchman_test_shard_192 CASCADE [15:192 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 192]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.2ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [test:173 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_193 [test:193 deploy]  (0.1ms) SAVEPOINT active_record_2 [test:193 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [test:193 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:193 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:193 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [test:193 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:193 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:193 deploy] Migrating to CreateUsers (20130403132607)  (2.6ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:193 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:193 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:193 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:193 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:193 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:193 deploy] Migrating to CreateDigits (20131022202028)  (3.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:193 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:193 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:193 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:193 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:193 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:193 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:193 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:193 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_2 [test:193 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 193 [["name", "switchman_test_shard_193"]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:193 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00]] [test:193 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:193 master]  (3.1ms) DROP SCHEMA switchman_test_shard_193 CASCADE [test:193 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 193]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (2.5ms) ROLLBACK [test:173 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master]  (0.3ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:173 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 173]] [test:173 master]  (0.4ms) COMMIT [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 174], ["name", "switchman_test_shard_174"]] [test:173 master]  (0.2ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 175], ["name", "switchman_test_shard_175"]] [test:173 master]  (0.2ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 27], ["value", 1]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 175 LIMIT 1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 1750000000000018], ["value", 3]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 174 LIMIT 1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (1.0ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 1740000000000027], ["value", 2]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 18], ["value", 4]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 18], ["value", 5]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:174 master]  (0.7ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:175 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:174 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:175 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:174 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:175 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [test:174 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [test:174 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [1:175 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [1:175 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [1:175 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 28], ["value", 1]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 1750000000000019], ["value", 3]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 1740000000000028], ["value", 2]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 19], ["value", 4]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 19], ["value", 5]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:174 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:175 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:174 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:175 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:174 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:175 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [test:174 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [test:174 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [1:175 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [1:175 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [1:175 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 29], ["value", 1]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 1750000000000020], ["value", 3]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 1740000000000029], ["value", 2]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 20], ["value", 4]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 20], ["value", 5]] [1:175 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:174 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:175 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:174 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:175 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:174 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:175 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:174 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [test:174 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [1:175 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:175 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [1:175 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 30], ["value", 1]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 1750000000000021], ["value", 3]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 1740000000000030], ["value", 2]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 21], ["value", 4]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 21], ["value", 5]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:174 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:175 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:174 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:175 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:174 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:175 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:174 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [test:174 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [1:175 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:175 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [1:175 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 31], ["value", 1]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 1750000000000022], ["value", 3]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 1740000000000031], ["value", 2]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 22], ["value", 4]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 22], ["value", 5]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.4ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:174 master]  (0.4ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:175 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:174 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:175 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:174 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:175 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:174 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (31) [test:174 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [1:175 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:175 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [1:175 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (31) [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 32], ["value", 1]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 1750000000000023], ["value", 3]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 1740000000000032], ["value", 2]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 23], ["value", 4]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 23], ["value", 5]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 32]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 33]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 34]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["user_id", 24]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.3ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (34) [test:174 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (24) [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:27 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:14:27 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 35]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 25]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.4ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (333) [test:173 master]  (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (35) [test:174 master]  (0.6ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (25) [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 36]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 26]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [test:174 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 38 [1:175 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [test:174 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 38 [1:175 master]  (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [test:174 master]  (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 38 [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 37]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 27]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 35 [test:174 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 39 [1:175 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 35 [test:174 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 39 [1:175 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 35 [test:174 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 39 [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 38], ["value", 1]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 38], ["value", 2]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 28], ["value", 3]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 28], ["value", 4]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 28], ["value", 5]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.4ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 38]] [test:174 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [test:174 master]  (0.4ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 28]] [1:175 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [1:175 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (36, 37) [test:174 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (40, 41, 42) [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 39], ["value", 1]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 39], ["value", 2]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 29], ["value", 3]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 29], ["value", 4]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 29], ["value", 5]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 39]] [test:174 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [test:174 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 29]] [1:175 master]  (0.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [1:175 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (38, 39) [test:174 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (43, 44, 45) [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 40], ["value", 1]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 40], ["value", 2]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 30], ["value", 3]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 30], ["value", 4]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 30], ["value", 5]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 40]] [test:174 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [test:174 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 30]] [1:175 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [1:175 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (40, 41) [test:174 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (46, 47, 48) [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 41], ["value", 1]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 41], ["value", 2]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 31], ["value", 3]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 31], ["value", 4]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 31], ["value", 5]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 41]] [test:174 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [test:174 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 31]] [1:175 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [1:175 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (42, 43) [test:174 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (49, 50, 51) [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 42], ["value", 1]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 42], ["value", 2]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 32], ["value", 3]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 32], ["value", 4]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 32], ["value", 5]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 42]] [test:174 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [test:174 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 32]] [1:175 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [1:175 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (44, 45) [test:174 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (52, 53, 54) [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 173]] [test:173 master]  (0.3ms) COMMIT [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 174], ["name", "switchman_test_shard_174"]] [test:173 master]  (0.4ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 175], ["name", "switchman_test_shard_175"]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.0ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:15:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:15:28 UTC +00:00]] [test:174 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.0ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 173]] [test:173 master]  (0.3ms) COMMIT [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 174], ["name", "switchman_test_shard_174"]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 175], ["name", "switchman_test_shard_175"]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:174 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.2ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master] User Load (0.3ms) SELECT "users".* FROM "users" [test:173 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:14:28.231262' [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:173 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:14:28.238776' [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:173 master]  (0.4ms) COMMIT [test:173 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:173 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:14:28.243662' [test:173 master] SQL (0.3ms) DELETE FROM "users" [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:173 master]  (0.3ms) COMMIT [test:173 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:173 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:14:28.248557' [test:173 master] SQL (0.3ms) DELETE FROM "users" [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:173 master] SQL (0.1ms) DELETE FROM "users" [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:173 master] SQL (0.1ms) DELETE FROM "users" [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["name", "a"], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:173 master]  (0.3ms) COMMIT [test:173 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 342]] [test:173 master] CACHE (0.0ms) 173::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 342]] CACHE (0.0ms) 173::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 342]]  (0.1ms) BEGIN [test:173 master] SQL (0.4ms) UPDATE "users" SET "name" = $1, "updated_at" = $2 WHERE "users"."id" = 342 [["name", "b"], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:173 master]  (0.3ms) COMMIT [test:173 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 342]] [test:173 master] CACHE (0.0ms) 173::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 342]] SQL (0.5ms) DELETE FROM "users" [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:173 master]  (0.4ms) COMMIT [test:173 master] User Load (0.3ms) SELECT "users".* FROM "users" [test:173 master] SQL (0.4ms) DELETE FROM "users" [test:173 master] SQL (0.1ms) DELETE FROM "users" [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:173 master]  (0.3ms) COMMIT [test:173 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:173 master] SQL (0.3ms) DELETE FROM "users" [test:173 master] SQL (0.1ms) DELETE FROM "users" [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:173 master]  (0.4ms) COMMIT [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:173 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 173]] [test:173 master]  (0.3ms) COMMIT [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 174], ["name", "switchman_test_shard_174"]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 175], ["name", "switchman_test_shard_175"]] [test:173 master]  (0.2ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 47]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.2ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.7ms) INSERT INTO "digits" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 175 LIMIT 1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 46], ["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["id", 1750000000000001], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 47], ["id", 1750000000000001]] [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 48]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 174 LIMIT 1 [test:173 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 47]] [test:174 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 48]] [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["parent_id", 49], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["parent_id", 50], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 49]] [test:174 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 51 LIMIT 1 [["parent_id", 49]] [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["id", 51], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [1:175 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 49]] [test:174 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 1750000000000051 LIMIT 1 [["parent_id", 49]] [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.2ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 52]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 52]] [test:174 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 52]] [test:174 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 52]] [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 53]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 38]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 54]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 55]] [test:174 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.2ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 56]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 52], ["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 56], ["id", 1]] [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.3ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 58]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 58], ["id", 53]] [test:174 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 43], ["id", 1740000000000053]] [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 61]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 54], ["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["value", 1]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 1740000000000061]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["value", 2]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 61]] [test:174 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [test:174 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 61]] [test:174 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 1740000000000061]] [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 62], ["value", 1]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 1740000000000062]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 62], ["value", 2]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 62]] [test:174 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 62]] [test:174 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 1740000000000062]] [1:175 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 62]] [test:174 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 62]] [test:174 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 1740000000000062]] [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 63], ["value", 1]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 1740000000000063], ["value", 2]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 63]] [test:174 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [test:174 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 63]] [test:174 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 1740000000000063]] [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 64]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 58], ["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.2ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 1740000000000064]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 59], ["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["value", 2]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 64]] [test:174 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 1740000000000064]] [1:175 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 64]] [test:174 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 64]] [test:174 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 1740000000000064]] [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 65]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 59], ["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 1740000000000065]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 60], ["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["value", 2]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 65]] [test:174 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 1740000000000065]] [1:175 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 65]] [test:174 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 65]] [test:174 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 1740000000000065]] [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 66], ["value", 1]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 1740000000000066]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 66]] [test:174 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 1740000000000066]] [1:175 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 66]] [test:174 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 66]] [test:174 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 1740000000000066]] [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.2ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 67]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 61], ["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 61], ["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["value", 1]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 1740000000000067]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 62], ["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["value", 2]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 67]] [test:174 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 1740000000000067]] [1:175 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 67]] [test:174 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 67]] [test:174 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 1740000000000067]] [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.6ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 1750000000000053]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master] Root Load (0.4ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 15]] [test:173 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 53]] [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["owner_id", 172], ["owner_type", "Appendage"], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 15]] [test:173 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 172]] [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.4ms) UPDATE "features" SET "owner_id" = $1, "owner_type" = $2, "updated_at" = $3 WHERE "features"."id" = 15 [["owner_id", 1740000000000069], ["owner_type", "User"], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 15]] [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["owner_id", 70], ["owner_type", "User"], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["value", 1]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (1.0ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["owner_id", 1740000000000070], ["owner_type", "User"], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["value", 2]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master] Feature Load (0.6ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 70], ["owner_type", "User"]] [test:174 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 70]] [test:174 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 70], ["owner_type", "User"]] [test:174 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 1740000000000070], ["owner_type", "User"]] [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 1740000000000071]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 173], ["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 1750000000000056]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1740000000000062], ["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" [test:173 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (173) [test:173 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (62) [test:174 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [test:174 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [1:175 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 71 [test:174 master]  (0.2ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 1740000000000072]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 1750000000000057]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 349]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" [test:173 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [test:174 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [1:175 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (349) [test:173 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 72 [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.2ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 73]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 1740000000000073]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 1740000000000073]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 63], ["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 63], ["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1750000000000063], ["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1750000000000064], ["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 1750000000000058]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 58]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 58]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1740000000000064], ["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1750000000000065], ["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 66], ["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (73) [test:174 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (73) [test:174 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (1740000000000073) [1:175 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (63) [test:174 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (63, 64) [1:175 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [1:175 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (58) [1:175 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (65, 66) [1:175 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 177], ["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1730000000000177], ["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 177 ORDER BY "appendages"."id" ASC LIMIT 1 [test:173 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (177) [test:173 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 75]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 1740000000000075]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 1750000000000060]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) [test:174 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (75) [test:174 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (1740000000000075) [1:175 master] User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [1:175 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (60) [1:175 master] SQL (0.3ms) DELETE FROM "appendages" WHERE "appendages"."id" = 65 [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 1750000000000061]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 67]] [test:174 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 77]] [test:174 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["user_id", 77]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 68]] [test:174 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 77]] [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 173]] [test:173 master]  (0.3ms) COMMIT [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 174], ["name", "switchman_test_shard_174"]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 175], ["name", "switchman_test_shard_175"]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:28 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:14:28 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:29 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:14:29 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master]  (0.2ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:29 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:14:29 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:29 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:14:29 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 79 ORDER BY "users"."id" ASC LIMIT 1 [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:29 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:14:29 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:29 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:14:29 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 174 LIMIT 1 [test:173 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (352) [test:173 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (80) [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:29 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:14:29 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:29 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:14:29 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 81 [test:174 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 353]] [test:173 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 81]] [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:29 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:14:29 UTC +00:00]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:174 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:29 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:14:29 UTC +00:00]] [test:174 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:174 master] SQL (0.3ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (354) [test:173 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (82) [test:174 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 354]] [test:173 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 82]] [test:174 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:174 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "33"]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "33"]] [test:173 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:173 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:173 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 173]] [test:173 master]  (0.4ms) COMMIT [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 174], ["name", "switchman_test_shard_174"]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 175], ["name", "switchman_test_shard_175"]] [test:173 master]  (0.2ms) COMMIT [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:29 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:29 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:175 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) SAVEPOINT active_record_1 [1:175 master]  (0.2ms) SELECT COUNT(*) FROM "users" [1:175 master]  (0.1ms) SAVEPOINT active_record_2 [1:175 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:29 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:29 UTC +00:00]] [1:175 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [1:175 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [1:175 master]  (0.1ms) ROLLBACK [test:173 master]  (0.2ms) SELECT COUNT(*) FROM "users" [1:175 master]  (0.1ms) ROLLBACK [1:175 master] SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:173 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:173 master]  (0.1ms) ROLLBACK [test:173 master]  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:173 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 173]] [test:173 master]  (0.3ms) COMMIT [test:173 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 174], ["name", "switchman_test_shard_174"]] [test:173 master]  (0.3ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 175], ["name", "switchman_test_shard_175"]] [test:173 master]  (0.2ms) COMMIT [test:173 master]  (0.1ms) BEGIN [test:173 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 174]] [test:173 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 175]] [test:173 master]  (0.1ms) BEGIN [1:175 master]  (0.1ms) ROLLBACK [1:175 master]  (0.1ms) ROLLBACK [test:173 master] SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (5.6ms) DROP SCHEMA switchman_test_shard_174 CASCADE [test:174 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 174]]  (0.1ms) COMMIT  (6.4ms) DROP SCHEMA switchman_test_shard_175 CASCADE [1:175 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 175]]  (0.1ms) COMMIT  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.6ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.2ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.4ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (5.8ms) COMMIT Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_197 [test:197 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:197 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:197 deploy]  (6.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:197 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:197 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (14.0ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:197 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:197 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:197 deploy] Migrating to CreateUsers (20130403132607)  (3.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:197 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:197 deploy] Migrating to CreateAppendages (20130411202442)  (2.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:197 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:197 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:197 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:197 deploy] Migrating to CreateDigits (20131022202028)  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:197 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:197 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:197 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:197 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:197 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:197 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:197 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:197 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 197 [["name", "switchman_test_shard_197"]] [test:196 master]  (0.8ms) COMMIT [test:196 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:196 master]  (0.3ms) COMMIT [test:196 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_198 [1:198 deploy]  (0.1ms) BEGIN [1:198 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:198 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:198 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:198 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.3ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:198 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:198 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:198 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:198 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:198 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:198 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:198 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:198 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:198 deploy] Migrating to CreateDigits (20131022202028)  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:198 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:198 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:198 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:198 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:198 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:198 deploy] Migrating to CreateRoots (20140219183820)  (2.4ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:198 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:198 deploy]  (0.7ms) COMMIT [1:198 deploy]  (0.1ms) BEGIN [test:196 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 198 [["name", "switchman_test_shard_198"]] [test:196 master]  (0.3ms) COMMIT [test:196 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.2ms) BEGIN [test:196 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 196]] [test:196 master]  (0.4ms) COMMIT [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 197], ["name", "switchman_test_shard_197"]] [test:196 master]  (0.3ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 198], ["name", "switchman_test_shard_198"]] [test:196 master]  (0.2ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.192524"], ["updated_at", "2015-05-27 16:14:38.192524"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.216315"], ["updated_at", "2015-05-27 16:14:38.216315"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 197 LIMIT 1 [test:196 master]  (0.2ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.227186"], ["updated_at", "2015-05-27 16:14:38.227186"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.228947"], ["updated_at", "2015-05-27 16:14:38.228947"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.2ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.232337"], ["updated_at", "2015-05-27 16:14:38.232337"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.239036"], ["updated_at", "2015-05-27 16:14:38.239036"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.240727"], ["updated_at", "2015-05-27 16:14:38.240727"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.254471"], ["updated_at", "2015-05-27 16:14:38.254471"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 196]] [test:196 master]  (0.3ms) COMMIT [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 197], ["name", "switchman_test_shard_197"]] [test:196 master]  (0.3ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 198], ["name", "switchman_test_shard_198"]] [test:196 master]  (0.4ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.309553"], ["updated_at", "2015-05-27 16:14:38.309553"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "3"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master] SQL (0.8ms) DELETE FROM "switchman_shards" [test:196 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 196]] [test:196 master]  (0.3ms) COMMIT [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 197], ["name", "switchman_test_shard_197"]] [test:196 master]  (0.3ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 198], ["name", "switchman_test_shard_198"]] [test:196 master]  (0.2ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.425855"], ["updated_at", "2015-05-27 16:14:38.425855"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.428330"], ["updated_at", "2015-05-27 16:14:38.428330"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.438612"], ["updated_at", "2015-05-27 16:14:38.438612"], ["user_id", 4]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.6ms) INSERT INTO "digits" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.445709"], ["updated_at", "2015-05-27 16:14:38.445709"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 198 LIMIT 1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2], ["created_at", "2015-05-27 16:14:38.455279"], ["id", 1980000000000001], ["updated_at", "2015-05-27 16:14:38.455279"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 4], ["id", 1980000000000001]] [test:197 master]  (0.2ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.471305"], ["updated_at", "2015-05-27 16:14:38.471305"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.473030"], ["updated_at", "2015-05-27 16:14:38.473030"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.475922"], ["updated_at", "2015-05-27 16:14:38.475922"], ["user_id", 5]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.478643"], ["updated_at", "2015-05-27 16:14:38.478643"], ["user_id", 2]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 197 LIMIT 1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.489279"], ["updated_at", "2015-05-27 16:14:38.489279"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.491148"], ["updated_at", "2015-05-27 16:14:38.491148"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.494494"], ["parent_id", 6], ["updated_at", "2015-05-27 16:14:38.494494"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.497372"], ["parent_id", 7], ["updated_at", "2015-05-27 16:14:38.497372"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 6]] [test:197 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 8 LIMIT 1 [["parent_id", 6]] [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.505051"], ["id", 8], ["updated_at", "2015-05-27 16:14:38.505051"]] [1:198 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [1:198 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 6]] [test:197 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 1980000000000008 LIMIT 1 [["parent_id", 6]] [test:197 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.514613"], ["updated_at", "2015-05-27 16:14:38.514613"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.516330"], ["updated_at", "2015-05-27 16:14:38.516330"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.519918"], ["updated_at", "2015-05-27 16:14:38.519918"], ["user_id", 9]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 4]] [test:197 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 9]] [test:197 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.528807"], ["updated_at", "2015-05-27 16:14:38.528807"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.2ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.530543"], ["updated_at", "2015-05-27 16:14:38.530543"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.533582"], ["updated_at", "2015-05-27 16:14:38.533582"], ["user_id", 10]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 10], ["id", 5]] [test:197 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 5], ["id", 1970000000000005]] [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.544234"], ["updated_at", "2015-05-27 16:14:38.544234"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.546105"], ["updated_at", "2015-05-27 16:14:38.546105"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.549269"], ["updated_at", "2015-05-27 16:14:38.549269"], ["user_id", 11]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.555569"], ["updated_at", "2015-05-27 16:14:38.555569"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.557303"], ["updated_at", "2015-05-27 16:14:38.557303"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.564063"], ["updated_at", "2015-05-27 16:14:38.564063"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.566019"], ["updated_at", "2015-05-27 16:14:38.566019"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.570525"], ["updated_at", "2015-05-27 16:14:38.570525"], ["user_id", 13]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.578866"], ["updated_at", "2015-05-27 16:14:38.578866"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.580501"], ["updated_at", "2015-05-27 16:14:38.580501"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.583510"], ["updated_at", "2015-05-27 16:14:38.583510"], ["user_id", 14]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 14]] [test:197 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 14]] [test:197 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 14]] [test:197 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.595768"], ["updated_at", "2015-05-27 16:14:38.595768"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.597441"], ["updated_at", "2015-05-27 16:14:38.597441"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.599201"], ["updated_at", "2015-05-27 16:14:38.599201"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.611657"], ["updated_at", "2015-05-27 16:14:38.611657"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.613376"], ["updated_at", "2015-05-27 16:14:38.613376"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.616380"], ["updated_at", "2015-05-27 16:14:38.616380"], ["user_id", 16]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 9], ["created_at", "2015-05-27 16:14:38.620402"], ["updated_at", "2015-05-27 16:14:38.620402"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 16], ["id", 1]] [test:197 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.630532"], ["updated_at", "2015-05-27 16:14:38.630532"]] [test:197 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.632267"], ["updated_at", "2015-05-27 16:14:38.632267"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.639713"], ["updated_at", "2015-05-27 16:14:38.639713"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.641317"], ["updated_at", "2015-05-27 16:14:38.641317"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.643064"], ["updated_at", "2015-05-27 16:14:38.643064"], ["user_id", 18]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10], ["created_at", "2015-05-27 16:14:38.645560"], ["updated_at", "2015-05-27 16:14:38.645560"], ["value", 1]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.647996"], ["updated_at", "2015-05-27 16:14:38.647996"], ["user_id", 1970000000000018]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3], ["created_at", "2015-05-27 16:14:38.650647"], ["updated_at", "2015-05-27 16:14:38.650647"], ["value", 2]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 18]] [test:197 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [test:197 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 18]] [test:197 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 1970000000000018]] [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.665495"], ["updated_at", "2015-05-27 16:14:38.665495"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.668075"], ["updated_at", "2015-05-27 16:14:38.668075"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:38.670592"], ["updated_at", "2015-05-27 16:14:38.670592"], ["user_id", 19], ["value", 1]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.673358"], ["updated_at", "2015-05-27 16:14:38.673358"], ["user_id", 1970000000000019]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 19]] [test:197 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 1970000000000019]] [1:198 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [test:197 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 19]] [test:197 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 1970000000000019]] [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.687209"], ["updated_at", "2015-05-27 16:14:38.687209"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.688998"], ["updated_at", "2015-05-27 16:14:38.688998"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.690918"], ["updated_at", "2015-05-27 16:14:38.690918"], ["user_id", 20]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 12], ["created_at", "2015-05-27 16:14:38.693862"], ["updated_at", "2015-05-27 16:14:38.693862"]] [test:197 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.697323"], ["updated_at", "2015-05-27 16:14:38.697323"], ["user_id", 1970000000000020]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5], ["created_at", "2015-05-27 16:14:38.700259"], ["updated_at", "2015-05-27 16:14:38.700259"], ["value", 2]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 20]] [test:197 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 1970000000000020]] [1:198 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [test:197 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 20]] [test:197 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 1970000000000020]] [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.717588"], ["updated_at", "2015-05-27 16:14:38.717588"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.719732"], ["updated_at", "2015-05-27 16:14:38.719732"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:38.721824"], ["updated_at", "2015-05-27 16:14:38.721824"], ["user_id", 21], ["value", 1]] [test:197 master]  (0.3ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.2ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.726257"], ["updated_at", "2015-05-27 16:14:38.726257"], ["user_id", 1970000000000021]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:38.730430"], ["updated_at", "2015-05-27 16:14:38.730430"], ["user_id", 21], ["value", 2]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [test:197 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 21]] [test:197 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 1970000000000021]] [1:198 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [test:197 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 21]] [test:197 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 1970000000000021]] [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.758624"], ["updated_at", "2015-05-27 16:14:38.758624"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.760657"], ["updated_at", "2015-05-27 16:14:38.760657"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.762479"], ["updated_at", "2015-05-27 16:14:38.762479"], ["user_id", 22]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 15], ["created_at", "2015-05-27 16:14:38.765199"], ["updated_at", "2015-05-27 16:14:38.765199"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.767386"], ["updated_at", "2015-05-27 16:14:38.767386"], ["user_id", 1970000000000022]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7], ["created_at", "2015-05-27 16:14:38.770512"], ["updated_at", "2015-05-27 16:14:38.770512"], ["value", 2]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 22]] [test:197 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 1970000000000022]] [1:198 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 22]] [test:197 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 22]] [test:197 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 1970000000000022]] [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.786472"], ["updated_at", "2015-05-27 16:14:38.786472"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.788440"], ["updated_at", "2015-05-27 16:14:38.788440"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.790532"], ["updated_at", "2015-05-27 16:14:38.790532"], ["user_id", 23]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 16], ["created_at", "2015-05-27 16:14:38.793570"], ["updated_at", "2015-05-27 16:14:38.793570"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 16], ["created_at", "2015-05-27 16:14:38.795695"], ["updated_at", "2015-05-27 16:14:38.795695"], ["value", 1]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.798269"], ["updated_at", "2015-05-27 16:14:38.798269"], ["user_id", 1970000000000023]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", "2015-05-27 16:14:38.801121"], ["updated_at", "2015-05-27 16:14:38.801121"], ["value", 2]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 23]] [test:197 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 1970000000000023]] [1:198 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 23]] [test:197 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 23]] [test:197 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 1970000000000023]] [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.816572"], ["updated_at", "2015-05-27 16:14:38.816572"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.818201"], ["updated_at", "2015-05-27 16:14:38.818201"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:38.820068"], ["updated_at", "2015-05-27 16:14:38.820068"], ["user_id", 24], ["value", 1]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:38.822795"], ["updated_at", "2015-05-27 16:14:38.822795"], ["user_id", 1970000000000024], ["value", 2]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 24]] [test:197 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 24]] [test:197 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 24]] [test:197 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 1970000000000024]] [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.836719"], ["updated_at", "2015-05-27 16:14:38.836719"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.838768"], ["updated_at", "2015-05-27 16:14:38.838768"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.841119"], ["updated_at", "2015-05-27 16:14:38.841119"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 178], ["created_at", "2015-05-27 16:14:38.844133"], ["updated_at", "2015-05-27 16:14:38.844133"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1960000000000178], ["created_at", "2015-05-27 16:14:38.846082"], ["updated_at", "2015-05-27 16:14:38.846082"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 178 ORDER BY "appendages"."id" ASC LIMIT 1 [test:196 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (178) [test:196 master]  (0.2ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.859897"], ["updated_at", "2015-05-27 16:14:38.859897"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.861477"], ["updated_at", "2015-05-27 16:14:38.861477"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.864644"], ["updated_at", "2015-05-27 16:14:38.864644"], ["user_id", 26]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.867059"], ["updated_at", "2015-05-27 16:14:38.867059"], ["user_id", 1970000000000026]] [1:198 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.870128"], ["updated_at", "2015-05-27 16:14:38.870128"], ["user_id", 1970000000000026]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 18], ["created_at", "2015-05-27 16:14:38.874440"], ["updated_at", "2015-05-27 16:14:38.874440"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 10], ["created_at", "2015-05-27 16:14:38.878412"], ["updated_at", "2015-05-27 16:14:38.878412"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1980000000000010], ["created_at", "2015-05-27 16:14:38.881125"], ["updated_at", "2015-05-27 16:14:38.881125"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1980000000000011], ["created_at", "2015-05-27 16:14:38.882544"], ["updated_at", "2015-05-27 16:14:38.882544"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.884111"], ["updated_at", "2015-05-27 16:14:38.884111"], ["user_id", 1980000000000021]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.887190"], ["updated_at", "2015-05-27 16:14:38.887190"], ["user_id", 21]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.890197"], ["updated_at", "2015-05-27 16:14:38.890197"], ["user_id", 21]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1970000000000019], ["created_at", "2015-05-27 16:14:38.892133"], ["updated_at", "2015-05-27 16:14:38.892133"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1980000000000012], ["created_at", "2015-05-27 16:14:38.894274"], ["updated_at", "2015-05-27 16:14:38.894274"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 13], ["created_at", "2015-05-27 16:14:38.896264"], ["updated_at", "2015-05-27 16:14:38.896264"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [test:197 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (26) [test:197 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (1970000000000026) [1:198 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (18) [test:197 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (10, 11) [1:198 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [1:198 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (21) [1:198 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (12, 13) [1:198 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 8 [test:197 master]  (0.1ms) ROLLBACK [1:198 master]  (0.2ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.923111"], ["updated_at", "2015-05-27 16:14:38.923111"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.924776"], ["updated_at", "2015-05-27 16:14:38.924776"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.927605"], ["updated_at", "2015-05-27 16:14:38.927605"], ["user_id", 27]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.931247"], ["updated_at", "2015-05-27 16:14:38.931247"], ["user_id", 1970000000000027]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.933140"], ["updated_at", "2015-05-27 16:14:38.933140"], ["user_id", 1980000000000022]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [test:197 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (27) [test:197 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (1970000000000027) [1:198 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [1:198 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (22) [1:198 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 20 [test:197 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.947543"], ["updated_at", "2015-05-27 16:14:38.947543"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.949259"], ["updated_at", "2015-05-27 16:14:38.949259"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.951529"], ["updated_at", "2015-05-27 16:14:38.951529"], ["user_id", 1970000000000028]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 179], ["created_at", "2015-05-27 16:14:38.954609"], ["updated_at", "2015-05-27 16:14:38.954609"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.957161"], ["updated_at", "2015-05-27 16:14:38.957161"], ["user_id", 1980000000000023]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 1970000000000022], ["created_at", "2015-05-27 16:14:38.958931"], ["updated_at", "2015-05-27 16:14:38.958931"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [test:196 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (179) [test:196 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (22) [test:197 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [test:197 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23) [1:198 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 28 [test:197 master]  (0.1ms) ROLLBACK [1:198 master]  (0.2ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.978105"], ["updated_at", "2015-05-27 16:14:38.978105"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.979796"], ["updated_at", "2015-05-27 16:14:38.979796"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.982285"], ["updated_at", "2015-05-27 16:14:38.982285"], ["user_id", 1970000000000029]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.984516"], ["updated_at", "2015-05-27 16:14:38.984516"], ["user_id", 1980000000000024]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:38.986148"], ["updated_at", "2015-05-27 16:14:38.986148"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.2ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:38.989007"], ["updated_at", "2015-05-27 16:14:38.989007"], ["user_id", 358]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [test:196 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [test:197 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [1:198 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (358) [test:196 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 29 [test:197 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.002178"], ["updated_at", "2015-05-27 16:14:39.002178"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.004031"], ["updated_at", "2015-05-27 16:14:39.004031"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-05-27 16:14:39.013043"], ["owner_id", 30], ["owner_type", "User"], ["updated_at", "2015-05-27 16:14:39.013043"], ["value", 1]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-05-27 16:14:39.016345"], ["owner_id", 1970000000000030], ["owner_type", "User"], ["updated_at", "2015-05-27 16:14:39.016345"], ["value", 2]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 30], ["owner_type", "User"]] [test:197 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 30]] [test:197 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 30], ["owner_type", "User"]] [test:197 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 1970000000000030], ["owner_type", "User"]] [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.034201"], ["updated_at", "2015-05-27 16:14:39.034201"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.035964"], ["updated_at", "2015-05-27 16:14:39.035964"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.037823"], ["updated_at", "2015-05-27 16:14:39.037823"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:39.039871"], ["owner_id", 183], ["owner_type", "Appendage"], ["updated_at", "2015-05-27 16:14:39.039871"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 16]] [test:196 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 183]] [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) UPDATE "features" SET "owner_id" = $1, "owner_type" = $2, "updated_at" = $3 WHERE "features"."id" = 16 [["owner_id", 1970000000000031], ["owner_type", "User"], ["updated_at", "2015-05-27 16:14:39.046248"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master] Feature Load (0.1ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 16]] [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.055851"], ["updated_at", "2015-05-27 16:14:39.055851"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.057628"], ["updated_at", "2015-05-27 16:14:39.057628"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.059268"], ["updated_at", "2015-05-27 16:14:39.059268"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 32]] [test:197 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:39.062902"], ["updated_at", "2015-05-27 16:14:39.062902"], ["user_id", 32]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 23]] [test:197 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 32]] [test:197 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.072419"], ["updated_at", "2015-05-27 16:14:39.072419"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.075285"], ["updated_at", "2015-05-27 16:14:39.075285"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:39.078225"], ["updated_at", "2015-05-27 16:14:39.078225"], ["user_id", 1980000000000028]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 24]] [test:197 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 28]] [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.088226"], ["updated_at", "2015-05-27 16:14:39.088226"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.090090"], ["updated_at", "2015-05-27 16:14:39.090090"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.3ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:39.094047"], ["updated_at", "2015-05-27 16:14:39.094047"], ["user_id", 1980000000000029]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 17]] [test:196 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 29]] [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.102927"], ["updated_at", "2015-05-27 16:14:39.102927"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.104746"], ["updated_at", "2015-05-27 16:14:39.104746"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 196]] [test:196 master]  (0.6ms) COMMIT [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 197], ["name", "switchman_test_shard_197"]] [test:196 master]  (0.2ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 198], ["name", "switchman_test_shard_198"]] [test:196 master]  (0.2ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.123529"], ["updated_at", "2015-05-27 16:14:39.123529"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [test:197 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 196]] [test:196 master]  (0.3ms) COMMIT [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 197], ["name", "switchman_test_shard_197"]] [test:196 master]  (0.3ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 198], ["name", "switchman_test_shard_198"]] [test:196 master]  (0.3ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "4"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "4"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.2ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master] SQL (6.2ms) DELETE FROM "switchman_shards" [test:196 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 196]] [test:196 master]  (0.4ms) COMMIT [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 197], ["name", "switchman_test_shard_197"]] [test:196 master]  (0.2ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 198], ["name", "switchman_test_shard_198"]] [test:196 master]  (0.3ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.0ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:15:39.189582"], ["updated_at", "2015-05-27 16:15:39.189582"]] [test:197 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.0ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 196]] [test:196 master]  (0.2ms) COMMIT [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 197], ["name", "switchman_test_shard_197"]] [test:196 master]  (0.2ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 198], ["name", "switchman_test_shard_198"]] [test:196 master]  (0.2ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.204777"], ["updated_at", "2015-05-27 16:14:39.204777"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:39.206817"], ["owner_id", 359], ["owner_type", "User"], ["updated_at", "2015-05-27 16:14:39.206817"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master] Feature Load (0.2ms) SELECT "features"."owner_id" FROM "features" WHERE "features"."id" = 17 ORDER BY "features"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.213588"], ["updated_at", "2015-05-27 16:14:39.213588"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 197 LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 198 LIMIT 1 [test:196 master]  (0.2ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.224791"], ["updated_at", "2015-05-27 16:14:39.224791"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master] SQL (6.2ms) DELETE FROM "switchman_shards" [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "5"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "5"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 196]] [test:196 master]  (6.1ms) COMMIT [test:196 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 197], ["name", "switchman_test_shard_197"]] [test:196 master]  (5.7ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 198], ["name", "switchman_test_shard_198"]] [test:196 master]  (0.4ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '6' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "6"], ["name", "public"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_205 [6:205 deploy]  (0.1ms) BEGIN [6:205 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [6:205 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [6:205 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [6:205 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.1ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [6:205 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [6:205 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [6:205 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [6:205 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [6:205 deploy] Migrating to CreateAppendages (20130411202442)  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [6:205 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [6:205 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [6:205 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [6:205 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [6:205 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [6:205 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [6:205 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [6:205 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [6:205 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [6:205 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [6:205 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [6:205 deploy]  (0.8ms) COMMIT [6:205 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 205 [["name", "switchman_test_shard_205"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) BEGIN [6:205 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.357305"], ["updated_at", "2015-05-27 16:14:39.357305"]] [6:205 master]  (0.3ms) COMMIT [6:205 master]  (5.2ms) DROP SCHEMA switchman_test_shard_205 CASCADE [6:205 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 205]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '7' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "7"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) begin transaction [7:206 deploy]  (0.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [7:206 deploy]  (0.1ms) select sqlite_version(*) [7:206 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [7:206 deploy] ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations" [7:206 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (0.2ms) CREATE TABLE "switchman_shards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "database_server_id" varchar(255), "default" boolean DEFAULT 'f' NOT NULL) [7:206 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130328212039"]] [7:206 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130328224244"]] [7:206 deploy] Migrating to CreateUsers (20130403132607)  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [7:206 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130403132607"]] [7:206 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime)  [7:206 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202442"]] [7:206 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [7:206 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202551"]] [7:206 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime)  [7:206 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131022202028"]] [7:206 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime, "updated_at" datetime)  [7:206 deploy] SQL (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131206172923"]] [7:206 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) ALTER TABLE "users" ADD "parent_id" integer(8) [7:206 deploy] SQL (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140123154135"]] [7:206 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [7:206 deploy] SQL (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219183820"]] [7:206 deploy]  (1.1ms) commit transaction [7:206 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 206 [["name", "db/shard_206.sqlite3"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.0ms) begin transaction [7:206 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-27 16:14:39.404027"], ["updated_at", "2015-05-27 16:14:39.404027"]] [7:206 master]  (0.7ms) commit transaction [7:206 master] Drop failed: No such file or directory @ unlink_internal - db/shard_206.sqlite3  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 206]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [test:196 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_207 [test:207 deploy]  (0.1ms) SAVEPOINT active_record_2 [test:207 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:207 deploy]  (6.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:207 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:207 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.3ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:207 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:207 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:207 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:207 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:207 deploy] Migrating to CreateAppendages (20130411202442)  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:207 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:207 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.3ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:207 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:207 deploy] Migrating to CreateDigits (20131022202028)  (2.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:207 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:207 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:207 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:207 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:207 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:207 deploy] Migrating to CreateRoots (20140219183820)  (2.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:207 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:207 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_2 [test:207 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 207 [["name", "switchman_test_shard_207"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:207 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.483164"], ["updated_at", "2015-05-27 16:14:39.483164"]] [test:207 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:207 master]  (4.3ms) DROP SCHEMA switchman_test_shard_207 CASCADE [test:207 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 207]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.2ms) ROLLBACK [1:198 master]  (3.1ms) ROLLBACK [test:196 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 196]] [test:196 master]  (6.1ms) COMMIT [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 197], ["name", "switchman_test_shard_197"]] [test:196 master]  (4.8ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 198], ["name", "switchman_test_shard_198"]] [test:196 master]  (0.3ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.534004"], ["updated_at", "2015-05-27 16:14:39.534004"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.535656"], ["updated_at", "2015-05-27 16:14:39.535656"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.537348"], ["updated_at", "2015-05-27 16:14:39.537348"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:197 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.2ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.581934"], ["updated_at", "2015-05-27 16:14:39.581934"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:196 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:14:39.584011' [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.590282"], ["updated_at", "2015-05-27 16:14:39.590282"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:196 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:14:39.592099' [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.594655"], ["updated_at", "2015-05-27 16:14:39.594655"]] [test:196 master]  (0.4ms) COMMIT [test:196 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:196 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:14:39.596884' [test:196 master] SQL (0.3ms) DELETE FROM "users" [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.599732"], ["updated_at", "2015-05-27 16:14:39.599732"]] [test:196 master]  (0.2ms) COMMIT [test:196 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:196 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:14:39.601611' [test:196 master] SQL (0.3ms) DELETE FROM "users" [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.617226"], ["updated_at", "2015-05-27 16:14:39.617226"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:196 master] SQL (0.1ms) DELETE FROM "users" [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.623691"], ["updated_at", "2015-05-27 16:14:39.623691"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:196 master] SQL (0.2ms) DELETE FROM "users" [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.627634"], ["updated_at", "2015-05-27 16:14:39.627634"]] [test:196 master]  (0.3ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:39.629320"], ["name", "a"], ["updated_at", "2015-05-27 16:14:39.629320"]] [test:196 master]  (0.3ms) COMMIT [test:196 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 369]] [test:196 master] CACHE (0.0ms) 196::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 369]] CACHE (0.0ms) 196::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 369]]  (0.1ms) BEGIN [test:196 master] SQL (0.2ms) UPDATE "users" SET "name" = $1, "updated_at" = $2 WHERE "users"."id" = 369 [["name", "b"], ["updated_at", "2015-05-27 16:14:39.632909"]] [test:196 master]  (0.3ms) COMMIT [test:196 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 369]] [test:196 master] CACHE (0.0ms) 196::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 369]] SQL (0.4ms) DELETE FROM "users" [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.639371"], ["updated_at", "2015-05-27 16:14:39.639371"]] [test:196 master]  (0.3ms) COMMIT [test:196 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:196 master] SQL (0.4ms) DELETE FROM "users" [test:196 master] SQL (0.2ms) DELETE FROM "users" [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.644372"], ["updated_at", "2015-05-27 16:14:39.644372"]] [test:196 master]  (0.3ms) COMMIT [test:196 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:196 master] SQL (0.3ms) DELETE FROM "users" [test:196 master] SQL (0.1ms) DELETE FROM "users" [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.652096"], ["updated_at", "2015-05-27 16:14:39.652096"]] [test:196 master]  (0.3ms) COMMIT [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.658624"], ["updated_at", "2015-05-27 16:14:39.658624"]] [test:196 master]  (0.3ms) COMMIT [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.664962"], ["updated_at", "2015-05-27 16:14:39.664962"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] User Load (0.3ms) SELECT "users".* FROM "users" [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:39.671089"], ["updated_at", "2015-05-27 16:14:39.671089"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 196]] [test:196 master]  (0.3ms) COMMIT [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 197], ["name", "switchman_test_shard_197"]] [test:196 master]  (0.3ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 198], ["name", "switchman_test_shard_198"]] [test:196 master]  (0.3ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (196)) [test:196 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=196 AND id<=197)) AND (id NOT IN (196)) [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=197)) ORDER BY "switchman_shards"."id" ASC [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=196 AND id<197)) [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (196)) [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.2ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=197)) ORDER BY "switchman_shards"."id" ASC [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=196 AND id<=197)) ORDER BY "switchman_shards"."id" ASC [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=197 AND id<=197)) AND (id NOT IN (196)) [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=196 AND id<197) OR (id>=198 AND id<199)) ORDER BY "switchman_shards"."id" ASC [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (196)) [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 196]] [test:196 master]  (0.2ms) COMMIT [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 197], ["name", "switchman_test_shard_197"]] [test:196 master]  (0.2ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 198], ["name", "switchman_test_shard_198"]] [test:196 master]  (0.2ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:39.783656"], ["name", "user1"], ["updated_at", "2015-05-27 16:14:39.783656"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:39.785703"], ["name", "user2"], ["updated_at", "2015-05-27 16:14:39.785703"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:39.793263"], ["name", "user1"], ["updated_at", "2015-05-27 16:14:39.793263"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:39.795343"], ["name", "user2"], ["updated_at", "2015-05-27 16:14:39.795343"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 197 LIMIT 1 [test:196 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (377) [test:196 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (41) [test:197 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 377]] [test:196 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]] [test:197 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:39.808211"], ["name", "user1"], ["updated_at", "2015-05-27 16:14:39.808211"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:39.810507"], ["name", "user2"], ["updated_at", "2015-05-27 16:14:39.810507"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master] SQL (0.3ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 42 [test:197 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 378]] [test:196 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 42]] [test:197 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:39.819721"], ["name", "user1"], ["updated_at", "2015-05-27 16:14:39.819721"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:39.821749"], ["name", "user2"], ["updated_at", "2015-05-27 16:14:39.821749"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (379) [test:196 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) [test:197 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:39.829715"], ["name", "user1"], ["updated_at", "2015-05-27 16:14:39.829715"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:39.831535"], ["name", "user2"], ["updated_at", "2015-05-27 16:14:39.831535"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 44 ORDER BY "users"."id" ASC LIMIT 1 [test:197 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "17"], ["name", "non_existent_shard"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "17"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.4ms) SELECT COUNT(*) FROM "users" [17:208 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.6ms) SELECT COUNT(*) FROM "users" [17:209 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "18"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "19"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "20"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "21"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "22"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "23"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 196]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 197], ["name", "switchman_test_shard_197"]]  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 198], ["name", "switchman_test_shard_198"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (197,198)) AND "switchman_shards"."id" IN (196, 197) [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "switchman_shards" [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 196]]  (0.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 197], ["name", "switchman_test_shard_197"]]  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 198], ["name", "switchman_test_shard_198"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "switchman_shards" [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 196]] [test:196 master]  (0.3ms) COMMIT [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 197], ["name", "switchman_test_shard_197"]] [test:196 master]  (0.3ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 198], ["name", "switchman_test_shard_198"]] [test:196 master]  (0.2ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:39.966246"], ["name", "user1"], ["updated_at", "2015-05-27 16:14:39.966246"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:39.967908"], ["name", "user2"], ["updated_at", "2015-05-27 16:14:39.967908"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:39.973940"], ["updated_at", "2015-05-27 16:14:39.973940"], ["user_id", 45], ["value", 1]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 198 LIMIT 1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:39.978451"], ["updated_at", "2015-05-27 16:14:39.978451"], ["user_id", 1980000000000031], ["value", 3]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 197 LIMIT 1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:39.982679"], ["updated_at", "2015-05-27 16:14:39.982679"], ["user_id", 1970000000000045], ["value", 2]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:39.984989"], ["updated_at", "2015-05-27 16:14:39.984989"], ["user_id", 31], ["value", 4]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:39.986805"], ["updated_at", "2015-05-27 16:14:39.986805"], ["user_id", 31], ["value", 5]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:197 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:198 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:197 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:198 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:197 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:198 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [test:197 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [test:197 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (31) [1:198 master]  (0.4ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [1:198 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (31) [1:198 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [test:197 master]  (0.2ms) ROLLBACK [1:198 master]  (0.2ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.007367"], ["name", "user1"], ["updated_at", "2015-05-27 16:14:40.007367"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.009262"], ["name", "user2"], ["updated_at", "2015-05-27 16:14:40.009262"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.011033"], ["updated_at", "2015-05-27 16:14:40.011033"], ["user_id", 46], ["value", 1]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.013434"], ["updated_at", "2015-05-27 16:14:40.013434"], ["user_id", 1980000000000032], ["value", 3]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.015616"], ["updated_at", "2015-05-27 16:14:40.015616"], ["user_id", 1970000000000046], ["value", 2]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.017570"], ["updated_at", "2015-05-27 16:14:40.017570"], ["user_id", 32], ["value", 4]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.019547"], ["updated_at", "2015-05-27 16:14:40.019547"], ["user_id", 32], ["value", 5]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.4ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:197 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:198 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:197 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:198 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:197 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:198 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:197 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (46) [test:197 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (32) [1:198 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:198 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (32) [1:198 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (46) [test:197 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.037476"], ["name", "user1"], ["updated_at", "2015-05-27 16:14:40.037476"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.039347"], ["name", "user2"], ["updated_at", "2015-05-27 16:14:40.039347"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.041034"], ["updated_at", "2015-05-27 16:14:40.041034"], ["user_id", 47], ["value", 1]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.043057"], ["updated_at", "2015-05-27 16:14:40.043057"], ["user_id", 1980000000000033], ["value", 3]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.045437"], ["updated_at", "2015-05-27 16:14:40.045437"], ["user_id", 1970000000000047], ["value", 2]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.047239"], ["updated_at", "2015-05-27 16:14:40.047239"], ["user_id", 33], ["value", 4]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.048895"], ["updated_at", "2015-05-27 16:14:40.048895"], ["user_id", 33], ["value", 5]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:197 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:198 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:197 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:198 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:197 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:198 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:197 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (47) [test:197 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (33) [1:198 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:198 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (33) [1:198 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (47) [test:197 master]  (0.2ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.069451"], ["name", "user1"], ["updated_at", "2015-05-27 16:14:40.069451"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.2ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.072106"], ["name", "user2"], ["updated_at", "2015-05-27 16:14:40.072106"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.074558"], ["updated_at", "2015-05-27 16:14:40.074558"], ["user_id", 48], ["value", 1]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.077354"], ["updated_at", "2015-05-27 16:14:40.077354"], ["user_id", 1980000000000034], ["value", 3]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.079697"], ["updated_at", "2015-05-27 16:14:40.079697"], ["user_id", 1970000000000048], ["value", 2]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.081391"], ["updated_at", "2015-05-27 16:14:40.081391"], ["user_id", 34], ["value", 4]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.083360"], ["updated_at", "2015-05-27 16:14:40.083360"], ["user_id", 34], ["value", 5]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:197 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:198 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:197 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:198 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:197 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:198 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:197 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (48) [test:197 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (34) [1:198 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:198 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (34) [1:198 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (48) [test:197 master]  (0.2ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.104875"], ["name", "user1"], ["updated_at", "2015-05-27 16:14:40.104875"]] [test:197 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.106911"], ["name", "user2"], ["updated_at", "2015-05-27 16:14:40.106911"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.109000"], ["updated_at", "2015-05-27 16:14:40.109000"], ["user_id", 49], ["value", 1]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.111589"], ["updated_at", "2015-05-27 16:14:40.111589"], ["user_id", 1980000000000035], ["value", 3]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.114027"], ["updated_at", "2015-05-27 16:14:40.114027"], ["user_id", 1970000000000049], ["value", 2]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.115858"], ["updated_at", "2015-05-27 16:14:40.115858"], ["user_id", 35], ["value", 4]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.117733"], ["updated_at", "2015-05-27 16:14:40.117733"], ["user_id", 35], ["value", 5]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.120834"], ["updated_at", "2015-05-27 16:14:40.120834"], ["user_id", 49]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.123138"], ["updated_at", "2015-05-27 16:14:40.123138"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.126404"], ["updated_at", "2015-05-27 16:14:40.126404"], ["user_id", 50]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.5ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [test:197 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.135116"], ["name", "user1"], ["updated_at", "2015-05-27 16:14:40.135116"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.136956"], ["name", "user2"], ["updated_at", "2015-05-27 16:14:40.136956"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.138832"], ["updated_at", "2015-05-27 16:14:40.138832"], ["user_id", 51], ["value", 1]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.140991"], ["updated_at", "2015-05-27 16:14:40.140991"], ["user_id", 1980000000000036], ["value", 3]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.143423"], ["updated_at", "2015-05-27 16:14:40.143423"], ["user_id", 1970000000000051], ["value", 2]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.145505"], ["updated_at", "2015-05-27 16:14:40.145505"], ["user_id", 36], ["value", 4]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.147714"], ["updated_at", "2015-05-27 16:14:40.147714"], ["user_id", 36], ["value", 5]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.5ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:197 master]  (0.5ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:198 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:197 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:198 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:197 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:198 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [test:197 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (51) [test:197 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (36) [1:198 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [1:198 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (36) [1:198 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (51) [test:197 master]  (0.2ms) ROLLBACK [1:198 master]  (0.2ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.171874"], ["name", "user1"], ["updated_at", "2015-05-27 16:14:40.171874"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.174807"], ["updated_at", "2015-05-27 16:14:40.174807"], ["user_id", 52], ["value", 1]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.177553"], ["updated_at", "2015-05-27 16:14:40.177553"], ["user_id", 52], ["value", 2]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.179756"], ["name", "user2"], ["updated_at", "2015-05-27 16:14:40.179756"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.2ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.183389"], ["updated_at", "2015-05-27 16:14:40.183389"], ["user_id", 37], ["value", 3]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.185652"], ["updated_at", "2015-05-27 16:14:40.185652"], ["user_id", 37], ["value", 4]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.187640"], ["updated_at", "2015-05-27 16:14:40.187640"], ["user_id", 37], ["value", 5]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 52]] [test:197 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [test:197 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 37]] [1:198 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [1:198 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (39, 40) [test:197 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (34, 35, 36) [1:198 master]  (0.2ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.203830"], ["name", "user1"], ["updated_at", "2015-05-27 16:14:40.203830"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.206981"], ["updated_at", "2015-05-27 16:14:40.206981"], ["user_id", 53], ["value", 1]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.209461"], ["updated_at", "2015-05-27 16:14:40.209461"], ["user_id", 53], ["value", 2]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.211841"], ["name", "user2"], ["updated_at", "2015-05-27 16:14:40.211841"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.215250"], ["updated_at", "2015-05-27 16:14:40.215250"], ["user_id", 38], ["value", 3]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.218079"], ["updated_at", "2015-05-27 16:14:40.218079"], ["user_id", 38], ["value", 4]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.220309"], ["updated_at", "2015-05-27 16:14:40.220309"], ["user_id", 38], ["value", 5]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 53]] [test:197 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [test:197 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 38]] [1:198 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [1:198 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (41, 42) [test:197 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (37, 38, 39) [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.232984"], ["name", "user1"], ["updated_at", "2015-05-27 16:14:40.232984"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.235928"], ["updated_at", "2015-05-27 16:14:40.235928"], ["user_id", 54], ["value", 1]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.238095"], ["updated_at", "2015-05-27 16:14:40.238095"], ["user_id", 54], ["value", 2]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.240056"], ["name", "user2"], ["updated_at", "2015-05-27 16:14:40.240056"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.242653"], ["updated_at", "2015-05-27 16:14:40.242653"], ["user_id", 39], ["value", 3]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.244871"], ["updated_at", "2015-05-27 16:14:40.244871"], ["user_id", 39], ["value", 4]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.247516"], ["updated_at", "2015-05-27 16:14:40.247516"], ["user_id", 39], ["value", 5]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 54]] [test:197 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [test:197 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 39]] [1:198 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [1:198 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (43, 44) [test:197 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (40, 41, 42) [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.262959"], ["name", "user1"], ["updated_at", "2015-05-27 16:14:40.262959"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.265847"], ["updated_at", "2015-05-27 16:14:40.265847"], ["user_id", 55], ["value", 1]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.267894"], ["updated_at", "2015-05-27 16:14:40.267894"], ["user_id", 55], ["value", 2]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.269511"], ["name", "user2"], ["updated_at", "2015-05-27 16:14:40.269511"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.272000"], ["updated_at", "2015-05-27 16:14:40.272000"], ["user_id", 40], ["value", 3]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.274733"], ["updated_at", "2015-05-27 16:14:40.274733"], ["user_id", 40], ["value", 4]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.277093"], ["updated_at", "2015-05-27 16:14:40.277093"], ["user_id", 40], ["value", 5]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 55]] [test:197 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [test:197 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 40]] [1:198 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [1:198 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (45, 46) [test:197 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (43, 44, 45) [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.290436"], ["name", "user1"], ["updated_at", "2015-05-27 16:14:40.290436"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.293286"], ["updated_at", "2015-05-27 16:14:40.293286"], ["user_id", 56], ["value", 1]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.295160"], ["updated_at", "2015-05-27 16:14:40.295160"], ["user_id", 56], ["value", 2]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.296697"], ["name", "user2"], ["updated_at", "2015-05-27 16:14:40.296697"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.298918"], ["updated_at", "2015-05-27 16:14:40.298918"], ["user_id", 41], ["value", 3]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.300676"], ["updated_at", "2015-05-27 16:14:40.300676"], ["user_id", 41], ["value", 4]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:14:40.302405"], ["updated_at", "2015-05-27 16:14:40.302405"], ["user_id", 41], ["value", 5]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 56]] [test:197 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [test:197 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 41]] [1:198 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [1:198 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (47, 48) [test:197 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (46, 47, 48) [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.314630"], ["name", "user1"], ["updated_at", "2015-05-27 16:14:40.314630"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.317140"], ["updated_at", "2015-05-27 16:14:40.317140"], ["user_id", 57]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.318822"], ["name", "user2"], ["updated_at", "2015-05-27 16:14:40.318822"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.321202"], ["updated_at", "2015-05-27 16:14:40.321202"], ["user_id", 42]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 49 [test:197 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 49 [1:198 master]  (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 49 [test:197 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 49 [1:198 master]  (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 49 [test:197 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 49 [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.332488"], ["name", "user1"], ["updated_at", "2015-05-27 16:14:40.332488"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.334834"], ["updated_at", "2015-05-27 16:14:40.334834"], ["user_id", 58]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.336366"], ["name", "user2"], ["updated_at", "2015-05-27 16:14:40.336366"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.338815"], ["updated_at", "2015-05-27 16:14:40.338815"], ["user_id", 43]] [1:198 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.341282"], ["name", "user2"], ["updated_at", "2015-05-27 16:14:40.341282"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (381) [test:196 master]  (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (58) [test:197 master]  (0.4ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (43) [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.351246"], ["name", "user1"], ["updated_at", "2015-05-27 16:14:40.351246"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.353666"], ["updated_at", "2015-05-27 16:14:40.353666"], ["user_id", 59]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.355424"], ["name", "user2"], ["updated_at", "2015-05-27 16:14:40.355424"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.357826"], ["updated_at", "2015-05-27 16:14:40.357826"], ["user_id", 44]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 51 [test:197 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 51 [1:198 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 51 [test:197 master]  (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 51 [1:198 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 51 [test:197 master]  (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 51 [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.368247"], ["name", "user1"], ["updated_at", "2015-05-27 16:14:40.368247"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.370688"], ["updated_at", "2015-05-27 16:14:40.370688"], ["user_id", 60]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.372338"], ["name", "user2"], ["updated_at", "2015-05-27 16:14:40.372338"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.374730"], ["updated_at", "2015-05-27 16:14:40.374730"], ["user_id", 45]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (60) [test:197 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (45) [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 196]] [test:196 master]  (0.3ms) COMMIT [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 197], ["name", "switchman_test_shard_197"]] [test:196 master]  (0.3ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 198], ["name", "switchman_test_shard_198"]] [test:196 master]  (0.2ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.390646"], ["updated_at", "2015-05-27 16:14:40.390646"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.393488"], ["updated_at", "2015-05-27 16:14:40.393488"], ["user_id", 382]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.395544"], ["updated_at", "2015-05-27 16:14:40.395544"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.398248"], ["updated_at", "2015-05-27 16:14:40.398248"], ["user_id", 61]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.399802"], ["updated_at", "2015-05-27 16:14:40.399802"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.402596"], ["updated_at", "2015-05-27 16:14:40.402596"], ["user_id", 46]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.408843"], ["updated_at", "2015-05-27 16:14:40.408843"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.411171"], ["updated_at", "2015-05-27 16:14:40.411171"], ["user_id", 383]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.412947"], ["updated_at", "2015-05-27 16:14:40.412947"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.415371"], ["updated_at", "2015-05-27 16:14:40.415371"], ["user_id", 62]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.416866"], ["updated_at", "2015-05-27 16:14:40.416866"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.419356"], ["updated_at", "2015-05-27 16:14:40.419356"], ["user_id", 47]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 197 LIMIT 1 [test:196 master]  (0.2ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.427297"], ["updated_at", "2015-05-27 16:14:40.427297"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.429680"], ["updated_at", "2015-05-27 16:14:40.429680"], ["user_id", 384]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.431351"], ["updated_at", "2015-05-27 16:14:40.431351"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.433931"], ["updated_at", "2015-05-27 16:14:40.433931"], ["user_id", 63]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.435488"], ["updated_at", "2015-05-27 16:14:40.435488"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.438030"], ["updated_at", "2015-05-27 16:14:40.438030"], ["user_id", 48]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.3ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.443757"], ["updated_at", "2015-05-27 16:14:40.443757"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.450142"], ["updated_at", "2015-05-27 16:14:40.450142"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.452323"], ["updated_at", "2015-05-27 16:14:40.452323"], ["user_id", 385]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.454013"], ["updated_at", "2015-05-27 16:14:40.454013"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.456720"], ["updated_at", "2015-05-27 16:14:40.456720"], ["user_id", 64]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.458443"], ["updated_at", "2015-05-27 16:14:40.458443"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.461104"], ["updated_at", "2015-05-27 16:14:40.461104"], ["user_id", 49]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.467474"], ["updated_at", "2015-05-27 16:14:40.467474"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.469560"], ["updated_at", "2015-05-27 16:14:40.469560"], ["user_id", 386]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.471188"], ["updated_at", "2015-05-27 16:14:40.471188"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.473960"], ["updated_at", "2015-05-27 16:14:40.473960"], ["user_id", 65]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.475659"], ["updated_at", "2015-05-27 16:14:40.475659"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.478218"], ["updated_at", "2015-05-27 16:14:40.478218"], ["user_id", 50]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.484174"], ["updated_at", "2015-05-27 16:14:40.484174"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.486362"], ["updated_at", "2015-05-27 16:14:40.486362"], ["user_id", 387]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.488069"], ["updated_at", "2015-05-27 16:14:40.488069"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.490661"], ["updated_at", "2015-05-27 16:14:40.490661"], ["user_id", 66]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.492287"], ["updated_at", "2015-05-27 16:14:40.492287"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.495329"], ["updated_at", "2015-05-27 16:14:40.495329"], ["user_id", 51]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.497928"], ["parent_id", 387], ["updated_at", "2015-05-27 16:14:40.497928"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.500162"], ["parent_id", 388], ["updated_at", "2015-05-27 16:14:40.500162"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 388]] [test:196 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 387]] [test:196 master] User Load (0.2ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 [["parent_id", 387]] [test:196 master]  (0.2ms) ROLLBACK [1:198 master]  (0.2ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.517796"], ["updated_at", "2015-05-27 16:14:40.517796"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.520552"], ["updated_at", "2015-05-27 16:14:40.520552"], ["user_id", 390]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.522545"], ["updated_at", "2015-05-27 16:14:40.522545"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.525244"], ["updated_at", "2015-05-27 16:14:40.525244"], ["user_id", 67]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.526749"], ["updated_at", "2015-05-27 16:14:40.526749"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.529733"], ["updated_at", "2015-05-27 16:14:40.529733"], ["user_id", 52]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.537992"], ["updated_at", "2015-05-27 16:14:40.537992"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.540917"], ["updated_at", "2015-05-27 16:14:40.540917"], ["user_id", 391]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.543224"], ["updated_at", "2015-05-27 16:14:40.543224"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.546466"], ["updated_at", "2015-05-27 16:14:40.546466"], ["user_id", 68]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.548648"], ["updated_at", "2015-05-27 16:14:40.548648"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.551724"], ["updated_at", "2015-05-27 16:14:40.551724"], ["user_id", 53]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.558742"], ["updated_at", "2015-05-27 16:14:40.558742"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.561429"], ["updated_at", "2015-05-27 16:14:40.561429"], ["user_id", 392]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.563119"], ["updated_at", "2015-05-27 16:14:40.563119"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.565747"], ["updated_at", "2015-05-27 16:14:40.565747"], ["user_id", 69]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.567281"], ["updated_at", "2015-05-27 16:14:40.567281"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.570285"], ["updated_at", "2015-05-27 16:14:40.570285"], ["user_id", 54]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.2ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.578552"], ["updated_at", "2015-05-27 16:14:40.578552"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.581304"], ["updated_at", "2015-05-27 16:14:40.581304"], ["user_id", 393]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.583529"], ["updated_at", "2015-05-27 16:14:40.583529"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.586201"], ["updated_at", "2015-05-27 16:14:40.586201"], ["user_id", 70]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.588054"], ["updated_at", "2015-05-27 16:14:40.588054"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.591432"], ["updated_at", "2015-05-27 16:14:40.591432"], ["user_id", 55]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.597768"], ["updated_at", "2015-05-27 16:14:40.597768"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.600269"], ["updated_at", "2015-05-27 16:14:40.600269"], ["user_id", 394]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.602033"], ["updated_at", "2015-05-27 16:14:40.602033"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.604390"], ["updated_at", "2015-05-27 16:14:40.604390"], ["user_id", 71]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.606140"], ["updated_at", "2015-05-27 16:14:40.606140"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.609081"], ["updated_at", "2015-05-27 16:14:40.609081"], ["user_id", 56]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.615661"], ["updated_at", "2015-05-27 16:14:40.615661"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.617994"], ["updated_at", "2015-05-27 16:14:40.617994"], ["user_id", 395]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.619662"], ["updated_at", "2015-05-27 16:14:40.619662"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.622359"], ["updated_at", "2015-05-27 16:14:40.622359"], ["user_id", 72]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.624084"], ["updated_at", "2015-05-27 16:14:40.624084"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.626899"], ["updated_at", "2015-05-27 16:14:40.626899"], ["user_id", 57]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.633670"], ["updated_at", "2015-05-27 16:14:40.633670"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.636082"], ["updated_at", "2015-05-27 16:14:40.636082"], ["user_id", 396]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.637897"], ["updated_at", "2015-05-27 16:14:40.637897"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.640481"], ["updated_at", "2015-05-27 16:14:40.640481"], ["user_id", 73]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.642677"], ["updated_at", "2015-05-27 16:14:40.642677"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.645761"], ["updated_at", "2015-05-27 16:14:40.645761"], ["user_id", 58]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.651550"], ["updated_at", "2015-05-27 16:14:40.651550"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.653910"], ["updated_at", "2015-05-27 16:14:40.653910"], ["user_id", 397]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.655561"], ["updated_at", "2015-05-27 16:14:40.655561"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.658397"], ["updated_at", "2015-05-27 16:14:40.658397"], ["user_id", 74]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.660096"], ["updated_at", "2015-05-27 16:14:40.660096"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.663302"], ["updated_at", "2015-05-27 16:14:40.663302"], ["user_id", 59]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.669286"], ["updated_at", "2015-05-27 16:14:40.669286"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.671561"], ["updated_at", "2015-05-27 16:14:40.671561"], ["user_id", 398]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.673523"], ["updated_at", "2015-05-27 16:14:40.673523"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.676391"], ["updated_at", "2015-05-27 16:14:40.676391"], ["user_id", 75]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.678086"], ["updated_at", "2015-05-27 16:14:40.678086"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.680725"], ["updated_at", "2015-05-27 16:14:40.680725"], ["user_id", 60]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.686400"], ["updated_at", "2015-05-27 16:14:40.686400"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.688694"], ["updated_at", "2015-05-27 16:14:40.688694"], ["user_id", 399]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.690684"], ["updated_at", "2015-05-27 16:14:40.690684"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.693741"], ["updated_at", "2015-05-27 16:14:40.693741"], ["user_id", 76]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.695346"], ["updated_at", "2015-05-27 16:14:40.695346"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.698041"], ["updated_at", "2015-05-27 16:14:40.698041"], ["user_id", 61]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master] SQL (0.6ms) DELETE FROM "switchman_shards" [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 196]] [test:196 master]  (0.3ms) COMMIT [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 197], ["name", "switchman_test_shard_197"]] [test:196 master]  (0.3ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 198], ["name", "switchman_test_shard_198"]] [test:196 master]  (0.3ms) COMMIT [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.710944"], ["updated_at", "2015-05-27 16:14:40.710944"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master]  (0.2ms) SELECT COUNT(*) FROM "users" [1:198 master]  (0.1ms) SAVEPOINT active_record_2 [1:198 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.715918"], ["updated_at", "2015-05-27 16:14:40.715918"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [1:198 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.2ms) SELECT COUNT(*) FROM "users" [1:198 master]  (0.1ms) ROLLBACK [1:198 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 196]] [test:196 master]  (0.3ms) COMMIT [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 197], ["name", "switchman_test_shard_197"]] [test:196 master]  (0.3ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 198], ["name", "switchman_test_shard_198"]] [test:196 master]  (0.2ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:196 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 196]] [test:196 master]  (0.3ms) COMMIT [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 197], ["name", "switchman_test_shard_197"]] [test:196 master]  (0.2ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 198], ["name", "switchman_test_shard_198"]] [test:196 master]  (0.2ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.746303"], ["updated_at", "2015-05-27 16:14:40.746303"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 77]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1970000000000077 ORDER BY "users"."id" ASC LIMIT 1 [test:197 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.755519"], ["updated_at", "2015-05-27 16:14:40.755519"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master]  (0.1ms) SAVEPOINT active_record_1 [1:198 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:14:40.757987"], ["name", "multi-shard exists"], ["updated_at", "2015-05-27 16:14:40.757987"]] [1:198 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:198 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [test:196 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [test:196 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [test:197 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.768315"], ["updated_at", "2015-05-27 16:14:40.768315"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 79 LIMIT 1 [test:197 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.775140"], ["updated_at", "2015-05-27 16:14:40.775140"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 197 LIMIT 1 [test:196 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (80) LIMIT 1 [test:197 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.784074"], ["updated_at", "2015-05-27 16:14:40.784074"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 81 LIMIT 1 [test:197 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:197 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.791829"], ["updated_at", "2015-05-27 16:14:40.791829"]] [test:197 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:197 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 82]] [test:197 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master] SQL (6.3ms) DELETE FROM "switchman_shards" [test:196 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 196]] [test:196 master]  (0.3ms) COMMIT [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 197], ["name", "switchman_test_shard_197"]] [test:196 master]  (0.3ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 198], ["name", "switchman_test_shard_198"]] [test:196 master]  (0.3ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10198 LIMIT 1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 198 LIMIT 1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '25' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "25"], ["name", "public"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_216 [25:216 deploy]  (0.1ms) BEGIN [25:216 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [25:216 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [25:216 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [25:216 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [25:216 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [25:216 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [25:216 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [25:216 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [25:216 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [25:216 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [25:216 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [25:216 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [25:216 deploy] Migrating to CreateDigits (20131022202028)  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [25:216 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [25:216 deploy] Migrating to CreateFeatures (20131206172923)  (2.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [25:216 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [25:216 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [25:216 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [25:216 deploy] Migrating to CreateRoots (20140219183820)  (2.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [25:216 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [25:216 deploy]  (0.8ms) COMMIT [25:216 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 216 [["name", "switchman_test_shard_216"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) BEGIN [25:216 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:40.997575"], ["updated_at", "2015-05-27 16:14:40.997575"]] [25:216 master]  (0.3ms) COMMIT [25:216 master]  (0.2ms) SELECT COUNT(*) FROM "users" [25:216 master]  (5.3ms) DROP SCHEMA switchman_test_shard_216 CASCADE [25:216 deploy]  (0.5ms) SELECT COUNT(*) FROM "users" [25:216 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 197 LIMIT 1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 217]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 217 LIMIT 1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 218]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 196]] [test:196 master]  (0.3ms) COMMIT [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 197], ["name", "switchman_test_shard_197"]] [test:196 master]  (0.2ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 198], ["name", "switchman_test_shard_198"]] [test:196 master]  (0.3ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) SAVEPOINT active_record_1 [test:196 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:14:41.145836"], ["updated_at", "2015-05-27 16:14:41.145836"]] [test:196 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:196 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 9]] [test:196 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 9]] [test:196 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 9 ORDER BY "mirror_users"."id" ASC LIMIT 1 [test:197 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:197 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 196]] [test:196 master]  (0.3ms) COMMIT [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 197], ["name", "switchman_test_shard_197"]] [test:196 master]  (0.2ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 198], ["name", "switchman_test_shard_198"]] [test:196 master]  (0.2ms) COMMIT [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master]  (0.1ms) BEGIN [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 197]] [test:196 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 198]] [test:196 master]  (0.1ms) BEGIN [1:198 master]  (0.1ms) ROLLBACK [1:198 master]  (0.1ms) ROLLBACK [test:196 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:196 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:196 master]  (6.0ms) DROP SCHEMA switchman_test_shard_197 CASCADE [test:197 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 197]]  (0.1ms) COMMIT  (6.6ms) DROP SCHEMA switchman_test_shard_198 CASCADE [1:198 deploy]  (0.3ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 198]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.9ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.3ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_220 [test:220 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:220 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:220 deploy]  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:220 deploy]  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [test:220 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (5.3ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:220 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [test:220 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [test:220 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:220 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [test:220 deploy] Migrating to CreateAppendages (20130411202442)  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:220 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [test:220 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:220 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [test:220 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:220 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [test:220 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:220 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [test:220 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:220 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [test:220 deploy] Migrating to CreateRoots (20140219183820)  (2.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:220 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [test:220 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_220' WHERE "switchman_shards"."id" = 220 [test:219 master]  (0.7ms) COMMIT [test:219 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [test:219 master]  (0.2ms) COMMIT [test:219 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_221 [1:221 deploy]  (0.1ms) BEGIN [1:221 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:221 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:221 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [1:221 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.4ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:221 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [1:221 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [1:221 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:221 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [1:221 deploy] Migrating to CreateAppendages (20130411202442)  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:221 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [1:221 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:221 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [1:221 deploy] Migrating to CreateDigits (20131022202028)  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:221 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [1:221 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:221 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [1:221 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:221 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [1:221 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:221 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [1:221 deploy]  (0.7ms) COMMIT [1:221 deploy]  (0.1ms) BEGIN [test:219 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_221' WHERE "switchman_shards"."id" = 221 [test:219 master]  (0.3ms) COMMIT [test:219 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 219], ["name", nil]] [test:219 master]  (0.3ms) COMMIT [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 220], ["name", "switchman_test_shard_220"]] [test:219 master]  (0.3ms) COMMIT [test:219 master]  (0.0ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 221], ["name", "switchman_test_shard_221"]] [test:219 master]  (0.3ms) COMMIT [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.2ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.9ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 220 LIMIT 1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) ROLLBACK [1:221 master]  (0.0ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:220 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", nil], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.2ms) SAVEPOINT active_record_1 [1:221 master] SQL (1.0ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", nil], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master] SQL (0.6ms) DELETE FROM "switchman_shards" [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 219], ["name", nil]] [test:219 master]  (0.2ms) COMMIT [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 220], ["name", "switchman_test_shard_220"]] [test:219 master]  (0.3ms) COMMIT [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 221], ["name", "switchman_test_shard_221"]] [test:219 master]  (0.2ms) COMMIT [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 402], ["value", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 4], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.2ms) SAVEPOINT active_record_1 [1:221 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 1], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 403], ["value", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 5], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 2], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 220 LIMIT 1 [test:219 master]  (0.2ms) ROLLBACK [1:221 master]  (0.2ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (1.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 404], ["value", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 6], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 3], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 405], ["value", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.2ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 7], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master]  (0.0ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 4], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.8ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.2ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 406], ["value", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 8], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 5], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.3ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 407], ["value", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 9], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 6], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 408], ["value", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 10], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 7], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 409], ["value", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 11], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 8], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 410], ["value", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 12], ["value", nil]] [test:220 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [1:221 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 9], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 411], ["value", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 13], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 10], ["value", nil]] [1:221 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 411], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 412], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 412]] [test:219 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 411 LIMIT 1 [test:219 master]  (0.1ms) SHOW max_identifier_length [test:219 master] User Load (0.4ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 411 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 414], ["value", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 14], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 11], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 415], ["value", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 15], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 12], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 416], ["value", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 16], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 13], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 417], ["value", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 17], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 14], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 418], ["value", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 18], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 15], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 419], ["value", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 19], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", 16], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 219], ["name", nil]] [test:219 master]  (0.2ms) COMMIT [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 220], ["name", "switchman_test_shard_220"]] [test:219 master]  (0.2ms) COMMIT [test:219 master]  (0.0ms) BEGIN [test:219 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 221], ["name", "switchman_test_shard_221"]] [test:219 master]  (0.2ms) COMMIT [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["owner_id", 421], ["owner_type", "User"], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["value", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 18 LIMIT 1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:57 UTC +00:00], ["user_id", nil], ["value", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 220 LIMIT 1 [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 221 LIMIT 1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master] SQL (6.0ms) DELETE FROM "switchman_shards" [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", "non_existent_shard"]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.4ms) SELECT COUNT(*) FROM "users"  [2:222 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (5.5ms) SELECT COUNT(*) FROM "users" [2:223 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [test:219 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 219], ["name", nil]] [test:219 master]  (0.2ms) COMMIT [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 220], ["name", "switchman_test_shard_220"]] [test:219 master]  (0.3ms) COMMIT [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 221], ["name", "switchman_test_shard_221"]] [test:219 master]  (0.2ms) COMMIT [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 20 LIMIT 1 [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 220 LIMIT 1 [test:219 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (423) [test:219 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master] SQL (0.5ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 23 [test:220 master] User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 425]] [test:219 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 23]] [test:220 master]  (0.2ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.2ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master] SQL (0.4ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (426) [test:219 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (24) [test:220 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 426]] [test:219 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 24]] [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 219], ["name", nil]] [test:219 master]  (0.3ms) COMMIT [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 220], ["name", "switchman_test_shard_220"]] [test:219 master]  (0.3ms) COMMIT [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 221], ["name", "switchman_test_shard_221"]] [test:219 master]  (0.3ms) COMMIT [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.2ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 220 LIMIT 1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '9' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", "public"]] [test:219 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (6.3ms) CREATE SCHEMA switchman_test_shard_230 [9:230 deploy]  (0.1ms) BEGIN [9:230 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [9:230 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [9:230 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [9:230 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.6ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [9:230 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [9:230 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [9:230 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [9:230 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [9:230 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [9:230 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [9:230 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [9:230 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [9:230 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [9:230 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [9:230 deploy] Migrating to CreateFeatures (20131206172923)  (3.3ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [9:230 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [9:230 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [9:230 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [9:230 deploy] Migrating to CreateRoots (20140219183820)  (2.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [9:230 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [9:230 deploy]  (0.7ms) COMMIT [9:230 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:219 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_230' WHERE "switchman_shards"."id" = 230 [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) BEGIN [9:230 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [9:230 master]  (0.3ms) COMMIT [9:230 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [9:230 master]  (5.9ms) DROP SCHEMA switchman_test_shard_230 CASCADE [9:230 deploy]  (0.4ms) SELECT COUNT(*) FROM "users"  [9:230 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.0ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 221 LIMIT 1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10221 LIMIT 1 [test:219 master]  (0.2ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) ROLLBACK [1:221 master]  (0.0ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.0ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) ROLLBACK [1:221 master]  (0.0ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.0ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) ROLLBACK [1:221 master]  (0.0ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 231]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 231 LIMIT 1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.0ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 232]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) ROLLBACK [1:221 master]  (0.0ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.0ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.0ms) ROLLBACK [test:219 master] SQL (6.5ms) DELETE FROM "switchman_shards" [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 219], ["name", nil]] [test:219 master]  (0.3ms) COMMIT [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 220], ["name", "switchman_test_shard_220"]] [test:219 master]  (0.2ms) COMMIT [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 221], ["name", "switchman_test_shard_221"]] [test:219 master]  (0.2ms) COMMIT [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (219, 220) AND (id IN (220,221)) [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.0ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) ROLLBACK [1:221 master]  (0.0ms) ROLLBACK [test:219 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.0ms) BEGIN [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master]  (0.0ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 219], ["name", nil]] [test:219 master]  (0.3ms) COMMIT [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.0ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 220], ["name", "switchman_test_shard_220"]] [test:219 master]  (0.3ms) COMMIT [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 221], ["name", "switchman_test_shard_221"]] [test:219 master]  (0.2ms) COMMIT [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (1.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 25], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 220 LIMIT 1 [test:219 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 25 AND "appendages"."id" = $1 LIMIT 1 [["id", 18]] [test:220 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 17 AND "appendages"."id" = $1 LIMIT 1 [["id", 2200000000000018]] [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.0ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 27], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 27 [test:220 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 27]] [test:220 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 27 [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 28], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 20], ["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 28 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 29], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 30], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", nil], ["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 221 LIMIT 1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["appendage_id", 22], ["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["id", 2210000000000001], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 30 AND "digits"."id" = $1 LIMIT 1 [["id", 2210000000000001]] [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 31], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 33], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 25], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 34], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 35], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 34]] [test:220 master]  (0.1ms) SHOW max_identifier_length [test:220 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 34 AND "users"."id" = 36 LIMIT 1 [test:220 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 34]] [test:220 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 34 AND "users"."id" = 2210000000000027 LIMIT 1 [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 38], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 25]] [test:220 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 38 LIMIT 1 [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 40], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 26], ["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 2200000000000040], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 19], ["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["value", 2]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 40 AND "digits"."value" IS NULL [test:220 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2200000000000040 AND "digits"."value" IS NULL [1:221 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 40]] [test:220 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 40 AND "digits"."value" IS NULL [test:220 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2200000000000040 AND "digits"."value" IS NULL [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.0ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 41], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 27], ["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["value", 1]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 2200000000000041], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 20], ["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["value", 2]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 41 [test:220 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]] [test:220 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 41 [test:220 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2200000000000041 [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 42], ["value", 1]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.0ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 2200000000000042], ["value", 2]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 42 [test:220 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 42]] [test:220 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 42 [test:220 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 2200000000000042 [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 43], ["value", 1]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 2200000000000043], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 43], ["value", 2]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 43]] [test:220 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 43 AND (appendages.value IS NOT NULL) [test:220 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 2200000000000043 AND (appendages.value IS NOT NULL) [1:221 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 43]] [test:220 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 43 AND (appendages.value IS NOT NULL) [test:220 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 2200000000000043 AND (appendages.value IS NOT NULL) [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.0ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 44], ["value", 1]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 2200000000000044], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 44 AND "appendages"."value" IS NULL [test:220 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 2200000000000044 AND "appendages"."value" IS NULL [1:221 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 44]] [test:220 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 44 AND "appendages"."value" IS NULL [test:220 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 2200000000000044 AND "appendages"."value" IS NULL [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 45], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 32], ["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 2200000000000045], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 24], ["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["value", 2]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 45 AND "digits"."value" IS NULL [test:220 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2200000000000045 AND "digits"."value" IS NULL [1:221 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 45]] [test:220 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 45 AND "digits"."value" IS NULL [test:220 master] Digit Load (0.6ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2200000000000045 AND "digits"."value" IS NULL [1:221 master]  (0.2ms) ROLLBACK [1:221 master]  (0.2ms) ROLLBACK [test:220 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 46], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 33], ["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 33], ["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["value", 1]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 2200000000000046], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 25], ["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["value", 2]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 46 AND (digits.value IS NOT NULL) [test:220 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2200000000000046 AND (digits.value IS NOT NULL) [1:221 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [test:220 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 46 AND (digits.value IS NOT NULL) [test:220 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2200000000000046 AND (digits.value IS NOT NULL) [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", nil], ["value", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 218], ["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["value", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2190000000000218], ["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 218 LIMIT 1 [test:219 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (218) [test:219 master]  (0.2ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 2200000000000048], ["value", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 219], ["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["value", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 2210000000000039], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2200000000000034], ["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["value", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [test:219 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (219) [test:219 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (34) [test:220 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (48) [test:220 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) [1:221 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 48 [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 2200000000000049], ["value", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 2210000000000040], ["value", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 427], ["value", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages"  [test:219 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (49) [test:220 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) [1:221 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (427) [test:219 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 49 [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 50], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 2200000000000050], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 2200000000000050], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 35], ["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 26], ["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2210000000000026], ["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2210000000000027], ["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 2210000000000041], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 41], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master]  (0.0ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 41], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.0ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2200000000000036], ["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2210000000000028], ["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.0ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 29], ["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (50) [test:220 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (50) [test:220 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (2200000000000050) [1:221 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (35) [test:220 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (26, 27) [1:221 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [1:221 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (41) [1:221 master] Digit Load (0.1ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (28, 29) [1:221 master] SQL (0.1ms) DELETE FROM "digits" WHERE "digits"."id" = 8 [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 51], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 2200000000000051], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 2210000000000042], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (51) [test:220 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (51) [test:220 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (2200000000000051) [1:221 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [1:221 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (42) [1:221 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 37 [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.6ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 2210000000000043]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master] Root Load (0.2ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 19]] [test:219 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 43 LIMIT 1 [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", nil], ["value", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["owner_id", 223], ["owner_type", "Appendage"], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["value", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 19]] [test:219 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 223 LIMIT 1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master]  (0.2ms) UPDATE "features" SET "owner_id" = 2200000000000053, "owner_type" = 'User', "updated_at" = '2015-05-27 16:14:58.910450' WHERE "features"."id" = 19 [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 19]] [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.2ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["owner_id", 54], ["owner_type", "User"], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["value", 1]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["owner_id", 2200000000000054], ["owner_type", "User"], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["value", 2]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 54 AND "features"."owner_type" = 'User' [test:220 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 54]] [test:220 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 54 AND "features"."owner_type" = 'User' [test:220 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 2200000000000054 AND "features"."owner_type" = 'User' [1:221 master]  (0.2ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.0ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 2210000000000046], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 39]] [test:220 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 46 LIMIT 1 [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", nil], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 56 LIMIT 1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", 56], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 40]] [test:220 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 56 LIMIT 1 [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 219], ["name", nil]] [test:219 master]  (0.3ms) COMMIT [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 220], ["name", "switchman_test_shard_220"]] [test:219 master]  (0.3ms) COMMIT [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 221], ["name", "switchman_test_shard_221"]] [test:219 master]  (0.2ms) COMMIT [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:58 UTC +00:00], ["user_id", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 10]] [test:219 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 10]] [test:219 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 10 LIMIT 1 [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 219], ["name", nil]] [test:219 master]  (0.3ms) COMMIT [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.0ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 220], ["name", "switchman_test_shard_220"]] [test:219 master]  (0.2ms) COMMIT [test:219 master]  (0.0ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 221], ["name", "switchman_test_shard_221"]] [test:219 master]  (0.3ms) COMMIT [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ('f') [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=219 AND id<=220)) ORDER BY id [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=219 AND id<220)) [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=219 AND id<220) OR (id>=221 AND id<222)) ORDER BY id [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (219)) [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (219)) [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (219)) [test:219 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=220)) ORDER BY id [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.0ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=220)) ORDER BY id [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.0ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=220 AND id<=220)) AND (id NOT IN (219)) [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=219 AND id<=220)) AND (id NOT IN (219)) [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.0ms) ROLLBACK [test:219 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 219], ["name", nil]] [test:219 master]  (0.3ms) COMMIT [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.0ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 220], ["name", "switchman_test_shard_220"]] [test:219 master]  (0.2ms) COMMIT [test:219 master]  (0.0ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 221], ["name", "switchman_test_shard_221"]] [test:219 master]  (0.2ms) COMMIT [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:15:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:15:59 UTC +00:00]] [test:220 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.0ms) ROLLBACK [1:221 master]  (0.0ms) ROLLBACK [test:220 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:219 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 219], ["name", nil]] [test:219 master]  (0.3ms) COMMIT [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.0ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 220], ["name", "switchman_test_shard_220"]] [test:219 master]  (0.2ms) COMMIT [test:219 master]  (0.0ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 221], ["name", "switchman_test_shard_221"]] [test:219 master]  (0.2ms) COMMIT [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.2ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SELECT COUNT(*) FROM "users" [1:221 master]  (0.0ms) SAVEPOINT active_record_2 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [1:221 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.2ms) SELECT COUNT(*) FROM "users" [1:221 master]  (0.1ms) ROLLBACK [1:221 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:219 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 219], ["name", nil]] [test:219 master]  (0.3ms) COMMIT [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 220], ["name", "switchman_test_shard_220"]] [test:219 master]  (0.2ms) COMMIT [test:219 master]  (0.0ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 221], ["name", "switchman_test_shard_221"]] [test:219 master]  (0.2ms) COMMIT [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.0ms) BEGIN [test:219 master]  (0.0ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 219], ["name", nil]] [test:219 master]  (0.3ms) COMMIT [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 220], ["name", "switchman_test_shard_220"]] [test:219 master]  (0.3ms) COMMIT [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 221], ["name", "switchman_test_shard_221"]] [test:219 master]  (0.2ms) COMMIT [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) ROLLBACK [1:221 master]  (0.0ms) ROLLBACK [test:219 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 219], ["name", nil]] [test:219 master]  (0.3ms) COMMIT [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.0ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 220], ["name", "switchman_test_shard_220"]] [test:219 master]  (0.3ms) COMMIT [test:219 master]  (0.0ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 221], ["name", "switchman_test_shard_221"]] [test:219 master]  (0.2ms) COMMIT [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 219], ["name", nil]] [test:219 master]  (0.4ms) COMMIT [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 220], ["name", "switchman_test_shard_220"]] [test:219 master]  (0.3ms) COMMIT [test:219 master]  (0.0ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 221], ["name", "switchman_test_shard_221"]] [test:219 master]  (0.3ms) COMMIT [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) ROLLBACK [1:221 master]  (0.0ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) ROLLBACK [1:221 master]  (0.0ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.0ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.0ms) BEGIN [test:219 master]  (0.0ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master]  (0.0ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 219], ["name", nil]] [test:219 master]  (0.3ms) COMMIT [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 220], ["name", "switchman_test_shard_220"]] [test:219 master]  (0.2ms) COMMIT [test:219 master]  (0.0ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 221], ["name", "switchman_test_shard_221"]] [test:219 master]  (0.2ms) COMMIT [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '12' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "12"], ["default", false], ["name", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.0ms) select sqlite_version(*) [12:235 deploy]  (0.0ms) begin transaction [12:235 deploy]  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [12:235 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [12:235 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [12:235 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (0.2ms) CREATE TABLE "switchman_shards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "database_server_id" varchar(255), "default" boolean DEFAULT 'f' NOT NULL)  [12:235 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [12:235 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [12:235 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [12:235 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [12:235 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [12:235 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [12:235 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [12:235 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [12:235 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [12:235 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [12:235 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [12:235 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [12:235 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) ALTER TABLE "users" ADD "parent_id" integer(8) [12:235 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [12:235 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [12:235 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [12:235 deploy]  (1.0ms) commit transaction [12:235 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:219 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_235.sqlite3' WHERE "switchman_shards"."id" = 235 [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.0ms) begin transaction [12:235 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [12:235 master]  (0.7ms) commit transaction [12:235 master] Drop failed: No such file or directory @ unlink_internal - db/shard_235.sqlite3  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 235]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '13' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", "public"]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (6.4ms) CREATE SCHEMA switchman_test_shard_236 [13:236 deploy]  (0.1ms) BEGIN [13:236 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [13:236 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [13:236 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [13:236 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.5ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [13:236 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [13:236 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [13:236 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [13:236 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [13:236 deploy] Migrating to CreateAppendages (20130411202442)  (3.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [13:236 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [13:236 deploy] Migrating to CreateMirrorUsers (20130411202551)  (3.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [13:236 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [13:236 deploy] Migrating to CreateDigits (20131022202028)  (3.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [13:236 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [13:236 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [13:236 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [13:236 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [13:236 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [13:236 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [13:236 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [13:236 deploy]  (0.8ms) COMMIT [13:236 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:219 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_236' WHERE "switchman_shards"."id" = 236 [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) BEGIN [13:236 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [13:236 master]  (0.3ms) COMMIT [13:236 master]  (5.7ms) DROP SCHEMA switchman_test_shard_236 CASCADE [13:236 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 236]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [test:219 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_237 [test:237 deploy]  (0.1ms) SAVEPOINT active_record_2 [test:237 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [test:237 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:237 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [test:237 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [test:237 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [test:237 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [test:237 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [test:237 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [test:237 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [test:237 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [test:237 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [test:237 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [test:237 deploy] Migrating to CreateDigits (20131022202028)  (2.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [test:237 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [test:237 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [test:237 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [test:237 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:237 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [test:237 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [test:237 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [test:237 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_2 [test:237 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_237' WHERE "switchman_shards"."id" = 237 [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:237 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:237 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:237 master]  (3.6ms) DROP SCHEMA switchman_test_shard_237 CASCADE [test:237 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 237]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (2.5ms) ROLLBACK [test:219 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master]  (0.0ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master]  (0.0ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 219], ["name", nil]] [test:219 master]  (0.4ms) COMMIT [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 220], ["name", "switchman_test_shard_220"]] [test:219 master]  (0.3ms) COMMIT [test:219 master]  (0.0ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 221], ["name", "switchman_test_shard_221"]] [test:219 master]  (0.2ms) COMMIT [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 59]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2200000000000059 LIMIT 1 [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 220 LIMIT 1 [test:219 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 60]] [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 61 LIMIT 1 [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:219 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [test:219 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 63 LIMIT 1 [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.2ms) ROLLBACK [test:220 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) LIMIT 1 [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 219], ["name", nil]] [test:219 master]  (0.3ms) COMMIT [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 220], ["name", "switchman_test_shard_220"]] [test:219 master]  (0.3ms) COMMIT [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 221], ["name", "switchman_test_shard_221"]] [test:219 master]  (0.3ms) COMMIT [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:220 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:219 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:14:59.489443' [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:219 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:14:59.495436' [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:219 master]  (0.2ms) COMMIT [test:219 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:219 master] SQL (1.2ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:14:59.499613' [test:219 master] SQL (0.5ms) DELETE FROM "users" [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:219 master]  (0.3ms) COMMIT [test:219 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:219 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:14:59.506296' [test:219 master] SQL (0.3ms) DELETE FROM "users" [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:219 master]  (0.3ms) COMMIT [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master] User Load (0.1ms) SELECT "users".* FROM "users"  [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:219 master]  (0.0ms) BEGIN [test:219 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:219 master]  (0.3ms) COMMIT [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:219 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:219 master] SQL (0.1ms) DELETE FROM "users" [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:219 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:219 master] User Load (0.1ms) SELECT "users".* FROM "users"  [test:219 master] SQL (0.1ms) DELETE FROM "users" [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:219 master]  (0.3ms) COMMIT [test:219 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:219 master] SQL (0.3ms) DELETE FROM "users" [test:219 master] SQL (0.1ms) DELETE FROM "users" [test:219 master]  (0.0ms) BEGIN [test:219 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:219 master]  (0.2ms) COMMIT [test:219 master]  (0.0ms) BEGIN [test:219 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:219 master]  (0.2ms) COMMIT [test:219 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 441]] [test:219 master] CACHE (0.0ms) 219::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 441]] CACHE (0.0ms) 219::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 441]]  (0.1ms) BEGIN [test:219 master]  (0.3ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2015-05-27 16:14:59.552833' WHERE "users"."id" = 441 [test:219 master]  (0.3ms) COMMIT [test:219 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 441]] [test:219 master] CACHE (0.0ms) 219::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 441]] SQL (0.4ms) DELETE FROM "users" [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:219 master]  (0.4ms) COMMIT [test:219 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:219 master] SQL (0.3ms) DELETE FROM "users" [test:219 master] SQL (0.1ms) DELETE FROM "users" [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master] User Load (0.1ms) SELECT "users".* FROM "users"  [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master] User Load (0.1ms) SELECT "users".* FROM "users"  [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 219], ["name", nil]] [test:219 master]  (0.2ms) COMMIT [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 220], ["name", "switchman_test_shard_220"]] [test:219 master]  (0.3ms) COMMIT [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 221], ["name", "switchman_test_shard_221"]] [test:219 master]  (0.2ms) COMMIT [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "29"], ["default", false], ["name", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "29"], ["default", false], ["name", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master] SQL (6.1ms) DELETE FROM "switchman_shards" [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 219], ["name", nil]] [test:219 master]  (5.8ms) COMMIT [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 220], ["name", "switchman_test_shard_220"]] [test:219 master]  (5.5ms) COMMIT [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 221], ["name", "switchman_test_shard_221"]] [test:219 master]  (0.3ms) COMMIT [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "30"], ["default", false], ["name", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "31"], ["default", false], ["name", nil]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:219 master] SQL (1.1ms) DELETE FROM "switchman_shards" [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 219], ["name", nil]] [test:219 master]  (0.3ms) COMMIT [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 220], ["name", "switchman_test_shard_220"]] [test:219 master]  (0.3ms) COMMIT [test:219 master]  (0.1ms) BEGIN [test:219 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 221], ["name", "switchman_test_shard_221"]] [test:219 master]  (0.2ms) COMMIT [test:219 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 67], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (1.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 51], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 220 LIMIT 1 [test:219 master] SQL (1.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 41 [test:220 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 221 LIMIT 1 [test:219 master] SQL (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 32 [1:221 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 41 [test:220 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 32 [1:221 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 41 [test:220 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 32 [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 68], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 52], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (68) [test:220 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (52) [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 69], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 53], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:219 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:219 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:219 master] SQL (0.8ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (444) [test:219 master] SQL (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (69) [test:220 master] SQL (0.7ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (53) [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 70], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 54], ["value", nil]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 44 [test:220 master] SQL (0.4ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 35 [1:221 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 44 [test:220 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 35 [1:221 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 44 [test:220 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 35 [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 71], ["value", 1]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 2210000000000055], ["value", 3]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 2200000000000071], ["value", 2]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 55], ["value", 4]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 55], ["value", 5]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SHOW max_identifier_length [test:219 master]  (0.5ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:220 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:221 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:220 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:221 master]  (0.1ms) SHOW max_identifier_length [1:221 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:220 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:221 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:220 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [test:220 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [1:221 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:221 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [1:221 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 72], ["value", 1]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 2210000000000056], ["value", 3]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 2200000000000072], ["value", 2]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 56], ["value", 4]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 56], ["value", 5]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:220 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:221 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:220 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:221 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:220 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:221 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [test:220 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [test:220 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [1:221 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [1:221 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [1:221 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 73], ["value", 1]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 2210000000000057], ["value", 3]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 2200000000000073], ["value", 2]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 57], ["value", 4]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 57], ["value", 5]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:220 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:221 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:220 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:221 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:220 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:221 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [test:220 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (73) [test:220 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [1:221 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [1:221 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [1:221 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (73) [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 74], ["value", 1]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 2210000000000058], ["value", 3]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 2200000000000074], ["value", 2]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 58], ["value", 4]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 58], ["value", 5]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:220 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:221 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:220 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:221 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:220 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:221 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:220 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (74) [test:220 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [1:221 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:221 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [1:221 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (74) [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 75], ["value", 1]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 2210000000000059], ["value", 3]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 2200000000000075], ["value", 2]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 59], ["value", 4]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 59], ["value", 5]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:220 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:221 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:220 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:221 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:220 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:221 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:220 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) [test:220 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [1:221 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:221 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [1:221 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 76], ["value", 1]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 2210000000000060], ["value", 3]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 2200000000000076], ["value", 2]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 60], ["value", 4]] [1:221 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 60], ["value", 5]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 76], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 77], ["value", nil]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [test:220 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 78], ["value", 1]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 78], ["value", 2]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 61], ["value", 3]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 61], ["value", 4]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.2ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 61], ["value", 5]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 78 [test:220 master]  (0.1ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [test:220 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 61 [1:221 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [1:221 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (59, 60) [test:220 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (54, 55, 56) [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:14:59 UTC +00:00], ["user_id", 79], ["value", 1]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["user_id", 79], ["value", 2]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:15:00 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["user_id", 62], ["value", 3]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["user_id", 62], ["value", 4]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["user_id", 62], ["value", 5]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 79 [test:220 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [test:220 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 62 [1:221 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [1:221 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (61, 62) [test:220 master]  (0.4ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (57, 58, 59) [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:15:00 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["user_id", 80], ["value", 1]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["user_id", 80], ["value", 2]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:15:00 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["user_id", 63], ["value", 3]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["user_id", 63], ["value", 4]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["user_id", 63], ["value", 5]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 80 [test:220 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [test:220 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 63 [1:221 master]  (0.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [1:221 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (63, 64) [test:220 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (60, 61, 62) [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.1ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.1ms) BEGIN [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:15:00 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["user_id", 81], ["value", 1]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["user_id", 81], ["value", 2]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:15:00 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["user_id", 64], ["value", 3]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["user_id", 64], ["value", 4]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["user_id", 64], ["value", 5]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 81 [test:220 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [test:220 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 64 [1:221 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [1:221 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (65, 66) [test:220 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (63, 64, 65) [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master]  (0.0ms) BEGIN [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 220]] [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 221]] [test:219 master]  (0.0ms) BEGIN [1:221 master]  (0.0ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:15:00 UTC +00:00]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["user_id", 82], ["value", 1]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [test:220 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["user_id", 82], ["value", 2]] [test:220 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:220 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:15:00 UTC +00:00]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["user_id", 65], ["value", 3]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["user_id", 65], ["value", 4]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.1ms) SAVEPOINT active_record_1 [1:221 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:15:00 UTC +00:00], ["user_id", 65], ["value", 5]] [1:221 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:221 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 82 [test:220 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [test:220 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 65 [1:221 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [1:221 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (67, 68) [test:220 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (66, 67, 68) [1:221 master]  (0.1ms) ROLLBACK [1:221 master]  (0.1ms) ROLLBACK [test:220 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:219 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:219 master]  (6.1ms) DROP SCHEMA switchman_test_shard_220 CASCADE [test:220 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 220]]  (0.1ms) COMMIT  (7.9ms) DROP SCHEMA switchman_test_shard_221 CASCADE [1:221 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 221]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.8ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.5ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_243 [test:243 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:243 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:243 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:243 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [test:243 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (4.9ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:243 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [test:243 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [test:243 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:243 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [test:243 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:243 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [test:243 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:243 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [test:243 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:243 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [test:243 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:243 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [test:243 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:243 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [test:243 deploy] Migrating to CreateRoots (20140219183820)  (2.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:243 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [test:243 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_243' WHERE "switchman_shards"."id" = 243 [test:242 master]  (0.7ms) COMMIT [test:242 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [test:242 master]  (0.2ms) COMMIT [test:242 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_244 [1:244 deploy]  (0.1ms) BEGIN [1:244 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:244 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:244 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [1:244 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (4.4ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:244 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [1:244 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [1:244 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:244 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [1:244 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:244 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [1:244 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.3ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:244 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [1:244 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:244 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [1:244 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:244 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [1:244 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:244 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [1:244 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:244 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [1:244 deploy]  (0.7ms) COMMIT [1:244 deploy]  (0.1ms) BEGIN [test:242 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_244' WHERE "switchman_shards"."id" = 244 [test:242 master]  (0.3ms) COMMIT [test:242 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 242], ["name", nil]] [test:242 master]  (0.3ms) COMMIT [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 243], ["name", "switchman_test_shard_243"]] [test:242 master]  (0.3ms) COMMIT [test:242 master]  (0.0ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 244], ["name", "switchman_test_shard_244"]] [test:242 master]  (0.2ms) COMMIT [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:59 UTC +00:00]] [test:243 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) ROLLBACK [1:244 master]  (0.0ms) ROLLBACK [test:243 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 242], ["name", nil]] [test:242 master]  (0.3ms) COMMIT [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 243], ["name", "switchman_test_shard_243"]] [test:242 master]  (0.3ms) COMMIT [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 244], ["name", "switchman_test_shard_244"]] [test:242 master]  (0.3ms) COMMIT [test:242 master]  (0.2ms) BEGIN [test:242 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:16:59 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:16:59 UTC +00:00], ["user_id", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 11]] [test:242 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 11]] [test:242 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 11 LIMIT 1 [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.2ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 242], ["name", nil]] [test:242 master]  (0.5ms) COMMIT [test:242 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 243], ["name", "switchman_test_shard_243"]] [test:242 master]  (0.4ms) COMMIT [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 244], ["name", "switchman_test_shard_244"]] [test:242 master]  (0.3ms) COMMIT [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 245]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 245 LIMIT 1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 243 LIMIT 1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) ROLLBACK [1:244 master]  (0.0ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 246]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.0ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10244 LIMIT 1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 244 LIMIT 1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) ROLLBACK [1:244 master]  (0.0ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) ROLLBACK [1:244 master]  (0.0ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '3' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", "public"]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_247 [3:247 deploy]  (0.1ms) BEGIN [3:247 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [3:247 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [3:247 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [3:247 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.3ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [3:247 deploy]  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [3:247 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [3:247 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [3:247 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [3:247 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [3:247 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [3:247 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [3:247 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [3:247 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [3:247 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [3:247 deploy] Migrating to CreateFeatures (20131206172923)  (2.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [3:247 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [3:247 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [3:247 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [3:247 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [3:247 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [3:247 deploy]  (0.4ms) COMMIT [3:247 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:242 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_247' WHERE "switchman_shards"."id" = 247 [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) BEGIN [3:247 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:16:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:16:59 UTC +00:00]] [3:247 master]  (0.3ms) COMMIT [3:247 master]  (0.2ms) SELECT COUNT(*) FROM "users" [3:247 master]  (5.4ms) DROP SCHEMA switchman_test_shard_247 CASCADE [3:247 deploy]  (0.4ms) SELECT COUNT(*) FROM "users" [3:247 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [1:244 master]  (0.3ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 242 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY id [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master] SQL (6.4ms) DELETE FROM "switchman_shards" [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 242], ["name", nil]] [test:242 master]  (0.4ms) COMMIT [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 243], ["name", "switchman_test_shard_243"]] [test:242 master]  (0.2ms) COMMIT [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 244], ["name", "switchman_test_shard_244"]] [test:242 master]  (0.3ms) COMMIT [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:16:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:16:59 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master]  (0.4ms) SELECT COUNT(*) FROM "users" [1:244 master]  (0.1ms) SAVEPOINT active_record_2 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:16:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:16:59 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [1:244 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.2ms) SELECT COUNT(*) FROM "users" [1:244 master]  (0.1ms) ROLLBACK [1:244 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards"  [test:242 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master]  (0.0ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 242], ["name", nil]] [test:242 master]  (0.3ms) COMMIT [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 243], ["name", "switchman_test_shard_243"]] [test:242 master]  (0.2ms) COMMIT [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 244], ["name", "switchman_test_shard_244"]] [test:242 master]  (0.2ms) COMMIT [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) ROLLBACK [1:244 master]  (0.0ms) ROLLBACK [test:242 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 242], ["name", nil]] [test:242 master]  (0.3ms) COMMIT [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 243], ["name", "switchman_test_shard_243"]] [test:242 master]  (0.2ms) COMMIT [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 244], ["name", "switchman_test_shard_244"]] [test:242 master]  (0.3ms) COMMIT [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '4' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [test:242 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) select sqlite_version(*) [4:248 deploy]  (0.0ms) begin transaction [4:248 deploy]  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [4:248 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [4:248 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [4:248 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (0.2ms) CREATE TABLE "switchman_shards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "database_server_id" varchar(255), "default" boolean DEFAULT 'f' NOT NULL) [4:248 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [4:248 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [4:248 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [4:248 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [4:248 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [4:248 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [4:248 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [4:248 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [4:248 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [4:248 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [4:248 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [4:248 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [4:248 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) ALTER TABLE "users" ADD "parent_id" integer(8) [4:248 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [4:248 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [4:248 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [4:248 deploy]  (1.1ms) commit transaction [4:248 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:242 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'db/shard_248.sqlite3' WHERE "switchman_shards"."id" = 248 [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) begin transaction [4:248 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 27 May 2015 16:16:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:16:59 UTC +00:00]] [4:248 master]  (0.6ms) commit transaction [4:248 master] Drop failed: No such file or directory @ unlink_internal - db/shard_248.sqlite3  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 248]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '5' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", "public"]] [test:242 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (6.2ms) CREATE SCHEMA switchman_test_shard_249 [5:249 deploy]  (0.1ms) BEGIN [5:249 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [5:249 deploy]  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [5:249 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [5:249 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (5.5ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [5:249 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [5:249 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [5:249 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [5:249 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [5:249 deploy] Migrating to CreateAppendages (20130411202442)  (2.3ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [5:249 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [5:249 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [5:249 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [5:249 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [5:249 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [5:249 deploy] Migrating to CreateFeatures (20131206172923)  (2.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [5:249 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [5:249 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [5:249 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [5:249 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [5:249 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [5:249 deploy]  (0.7ms) COMMIT [5:249 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:242 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_249' WHERE "switchman_shards"."id" = 249 [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) BEGIN [5:249 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:16:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:16:59 UTC +00:00]] [5:249 master]  (0.3ms) COMMIT [5:249 master]  (5.8ms) DROP SCHEMA switchman_test_shard_249 CASCADE [5:249 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 249]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [test:242 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_250 [test:250 deploy]  (0.1ms) SAVEPOINT active_record_2 [test:250 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:250 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:250 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [test:250 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.3ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:250 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [test:250 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [test:250 deploy] Migrating to CreateUsers (20130403132607)  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:250 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [test:250 deploy] Migrating to CreateAppendages (20130411202442)  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:250 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [test:250 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:250 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [test:250 deploy] Migrating to CreateDigits (20131022202028)  (2.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:250 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [test:250 deploy] Migrating to CreateFeatures (20131206172923)  (2.4ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:250 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [test:250 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:250 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [test:250 deploy] Migrating to CreateRoots (20140219183820)  (3.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:250 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [test:250 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_2 [test:250 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_250' WHERE "switchman_shards"."id" = 250 [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.2ms) SAVEPOINT active_record_1 [test:250 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:16:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:16:59 UTC +00:00]] [test:250 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:250 master]  (35.9ms) DROP SCHEMA switchman_test_shard_250 CASCADE [test:250 deploy]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 250]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (2.2ms) ROLLBACK [test:242 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:242 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 242], ["name", nil]] [test:242 master]  (0.2ms) COMMIT [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 243], ["name", "switchman_test_shard_243"]] [test:242 master]  (0.2ms) COMMIT [test:242 master]  (0.0ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 244], ["name", "switchman_test_shard_244"]] [test:242 master]  (0.2ms) COMMIT [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.0ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) ROLLBACK [1:244 master]  (0.0ms) ROLLBACK [test:242 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 242], ["name", nil]] [test:242 master]  (0.2ms) COMMIT [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 243], ["name", "switchman_test_shard_243"]] [test:242 master]  (0.2ms) COMMIT [test:242 master]  (0.0ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 244], ["name", "switchman_test_shard_244"]] [test:242 master]  (0.2ms) COMMIT [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:16:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:16:59 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:16:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:16:59 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:16:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:16:59 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:243 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:16:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:16:59 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:242 master] SQL (0.1ms) DELETE FROM "users" [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:16:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:16:59 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:242 master] SQL (0.1ms) DELETE FROM "users" [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:16:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:16:59 UTC +00:00]] [test:242 master]  (0.3ms) COMMIT [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:16:59 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:16:59 UTC +00:00]] [test:242 master]  (0.3ms) COMMIT [test:242 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 449]] [test:242 master] CACHE (0.0ms) 242::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 449]] CACHE (0.0ms) 242::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 449]]  (0.1ms) BEGIN [test:242 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2015-05-27 16:16:59.850827' WHERE "users"."id" = 449 [test:242 master]  (0.3ms) COMMIT [test:242 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 449]] [test:242 master] CACHE (0.0ms) 242::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 449]] SQL (0.4ms) DELETE FROM "users" [test:242 master]  (0.0ms) BEGIN [test:242 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:16:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:16:59 UTC +00:00]] [test:242 master]  (0.4ms) COMMIT [test:242 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:242 master] SQL (1.1ms) DELETE FROM "users" [test:242 master] SQL (0.1ms) DELETE FROM "users" [test:242 master]  (0.0ms) BEGIN [test:242 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:16:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:16:59 UTC +00:00]] [test:242 master]  (0.3ms) COMMIT [test:242 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:242 master] SQL (0.4ms) DELETE FROM "users" [test:242 master] SQL (0.1ms) DELETE FROM "users" [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:16:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:16:59 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:242 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:16:59.876911' [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:16:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:16:59 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:242 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:16:59.882937' [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:16:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:16:59 UTC +00:00]] [test:242 master]  (0.3ms) COMMIT [test:242 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:242 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:16:59.886902' [test:242 master] SQL (0.3ms) DELETE FROM "users" [test:242 master]  (0.0ms) BEGIN [test:242 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:16:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:16:59 UTC +00:00]] [test:242 master]  (0.3ms) COMMIT [test:242 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:242 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:16:59.891748' [test:242 master] SQL (0.3ms) DELETE FROM "users" [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.0ms) ROLLBACK [1:244 master]  (0.0ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) ROLLBACK [1:244 master]  (0.0ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master] User Load (0.1ms) SELECT "users".* FROM "users"  [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:16:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:16:59 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:16:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:16:59 UTC +00:00]] [test:242 master]  (0.4ms) COMMIT [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master] User Load (0.1ms) SELECT "users".* FROM "users"  [test:242 master]  (0.0ms) BEGIN [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:16:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:16:59 UTC +00:00]] [test:242 master]  (0.3ms) COMMIT [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:16:59 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:16:59 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master] User Load (0.1ms) SELECT "users".* FROM "users"  [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master] User Load (0.1ms) SELECT "users".* FROM "users"  [test:242 master]  (0.0ms) ROLLBACK [1:244 master]  (0.0ms) ROLLBACK [test:242 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:242 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 242], ["name", nil]] [test:242 master]  (0.3ms) COMMIT [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 243], ["name", "switchman_test_shard_243"]] [test:242 master]  (0.3ms) COMMIT [test:242 master]  (0.0ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 244], ["name", "switchman_test_shard_244"]] [test:242 master]  (0.2ms) COMMIT [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "13"], ["default", false], ["name", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.2ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "14"], ["default", false], ["name", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master] SQL (1.1ms) DELETE FROM "switchman_shards" [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 242], ["name", nil]] [test:242 master]  (0.4ms) COMMIT [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 243], ["name", "switchman_test_shard_243"]] [test:242 master]  (0.2ms) COMMIT [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 244], ["name", "switchman_test_shard_244"]] [test:242 master]  (0.2ms) COMMIT [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) ROLLBACK [1:244 master]  (0.0ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", nil], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 243 LIMIT 1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (1.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", nil], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.7ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master] SQL (4.9ms) DELETE FROM "switchman_shards" [test:242 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 242], ["name", nil]] [test:242 master]  (0.3ms) COMMIT [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 243], ["name", "switchman_test_shard_243"]] [test:242 master]  (0.2ms) COMMIT [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 244], ["name", "switchman_test_shard_244"]] [test:242 master]  (0.3ms) COMMIT [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.0ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 8 LIMIT 1 [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 243 LIMIT 1 [test:242 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (465) [test:242 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (9) [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 10 [test:243 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 466]] [test:242 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 10]] [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master] SQL (0.3ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (467) [test:242 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (11) [test:243 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 467]] [test:242 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 11]] [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master] SQL (4.9ms) DELETE FROM "switchman_shards" [test:242 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 242], ["name", nil]] [test:242 master]  (0.3ms) COMMIT [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 243], ["name", "switchman_test_shard_243"]] [test:242 master]  (0.3ms) COMMIT [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 244], ["name", "switchman_test_shard_244"]] [test:242 master]  (0.3ms) COMMIT [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 242], ["name", nil]] [test:242 master]  (0.3ms) COMMIT [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 243], ["name", "switchman_test_shard_243"]] [test:242 master]  (0.2ms) COMMIT [test:242 master]  (0.0ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 244], ["name", "switchman_test_shard_244"]] [test:242 master]  (0.2ms) COMMIT [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 12], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 3], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 244 LIMIT 1 [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 243 LIMIT 1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 13], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 13 [test:243 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 13]] [test:243 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 13 [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 15], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.2ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", nil], ["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["appendage_id", 4], ["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["id", 2440000000000001], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master] Digit Load (0.6ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 15 AND "digits"."id" = $1 LIMIT 1 [["id", 2440000000000001]] [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 16], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 19], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 20], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 20 AND "appendages"."id" = $1 LIMIT 1 [["id", 7]] [test:243 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 11 AND "appendages"."id" = $1 LIMIT 1 [["id", 2430000000000007]] [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 21], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 22], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [test:243 master]  (0.1ms) SHOW max_identifier_length [test:243 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 21 AND "users"."id" = 23 LIMIT 1 [test:243 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [test:243 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 21 AND "users"."id" = 2440000000000013 LIMIT 1 [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 24], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 24 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 25], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 9]] [test:243 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 25 LIMIT 1 [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 27], ["value", 1]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 2430000000000027], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 27 AND "appendages"."value" IS NULL [test:243 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 2430000000000027 AND "appendages"."value" IS NULL [1:244 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 27]] [test:243 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 27 AND "appendages"."value" IS NULL [test:243 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 2430000000000027 AND "appendages"."value" IS NULL [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 28], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11], ["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["value", 1]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 2430000000000028], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4], ["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["value", 2]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 28 [test:243 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 28]] [test:243 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 28 [test:243 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2430000000000028 [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 29], ["value", 1]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 2430000000000029], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 29], ["value", 2]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 29]] [test:243 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 29 AND (appendages.value IS NOT NULL) [test:243 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 2430000000000029 AND (appendages.value IS NOT NULL) [1:244 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 29]] [test:243 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 29 AND (appendages.value IS NOT NULL) [test:243 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 2430000000000029 AND (appendages.value IS NOT NULL) [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 30], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 14], ["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 2430000000000030], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6], ["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["value", 2]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 30 AND "digits"."value" IS NULL [test:243 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2430000000000030 AND "digits"."value" IS NULL [1:244 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 30]] [test:243 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 30 AND "digits"."value" IS NULL [test:243 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2430000000000030 AND "digits"."value" IS NULL [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 31], ["value", 1]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 2430000000000031], ["value", 2]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 31 [test:243 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 31]] [test:243 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 31 [test:243 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 2430000000000031 [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 32], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 16], ["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 2430000000000032], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["value", 2]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 32 AND "digits"."value" IS NULL [test:243 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2430000000000032 AND "digits"."value" IS NULL [1:244 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 32]] [test:243 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 32 AND "digits"."value" IS NULL [test:243 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2430000000000032 AND "digits"."value" IS NULL [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 33], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 17], ["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 17], ["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["value", 1]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 2430000000000033], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9], ["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["value", 2]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 33 AND (digits.value IS NOT NULL) [test:243 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2430000000000033 AND (digits.value IS NOT NULL) [1:244 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 33]] [test:243 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 33 AND (digits.value IS NOT NULL) [test:243 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 2430000000000033 AND (digits.value IS NOT NULL) [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 2440000000000024]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 21]] [test:242 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 24 LIMIT 1 [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", nil], ["value", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["owner_id", 224], ["owner_type", "Appendage"], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["value", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 20]] [test:242 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 224 LIMIT 1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master]  (0.2ms) UPDATE "features" SET "owner_id" = 2430000000000035, "owner_type" = 'User', "updated_at" = '2015-05-27 16:17:00.695512' WHERE "features"."id" = 20 [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 20]] [test:242 master]  (0.2ms) ROLLBACK [1:244 master]  (0.2ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["owner_id", 36], ["owner_type", "User"], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["value", 1]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["owner_id", 2430000000000036], ["owner_type", "User"], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["value", 2]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 36 AND "features"."owner_type" = 'User' [test:243 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 36]] [test:243 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 36 AND "features"."owner_type" = 'User' [test:243 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 2430000000000036 AND "features"."owner_type" = 'User' [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 37], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 2430000000000037], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 2430000000000037], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 18], ["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10], ["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2440000000000010], ["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2440000000000011], ["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 2440000000000027], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 27], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 27], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2430000000000019], ["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2440000000000012], ["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["value", nil]] [test:243 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 13], ["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["value", nil]] [1:244 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [1:244 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [test:243 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (37) [test:243 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (2430000000000037) [1:244 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (18) [test:243 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (10, 11) [1:244 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [1:244 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (27) [1:244 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (12, 13) [1:244 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 2430000000000038], ["value", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 225], ["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["value", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 2440000000000028], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2430000000000020], ["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["value", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits"  [test:242 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (225) [test:242 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (20) [test:243 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38) [test:243 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [1:244 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 38 [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 2430000000000039], ["value", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 2440000000000029], ["value", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 468], ["value", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [test:242 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) [test:243 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [1:244 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (468) [test:242 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 39 [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 40], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 2430000000000040], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 2440000000000030], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) [test:243 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (40) [test:243 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (2430000000000040) [1:244 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [1:244 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (30) [1:244 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 21 [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", nil], ["value", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 229], ["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["value", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2420000000000229], ["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 229 LIMIT 1 [test:242 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (229) [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 2440000000000032], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 23]] [test:243 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 32 LIMIT 1 [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", nil], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 43 LIMIT 1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["user_id", 43], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 24]] [test:243 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 43 LIMIT 1 [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 242], ["name", nil]] [test:242 master]  (0.3ms) COMMIT [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 243], ["name", "switchman_test_shard_243"]] [test:242 master]  (0.3ms) COMMIT [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 244], ["name", "switchman_test_shard_244"]] [test:242 master]  (0.2ms) COMMIT [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=243 AND id<=243)) AND (id NOT IN (242)) [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=242 AND id<=243)) ORDER BY id [test:242 master]  (0.0ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ('f') [test:242 master]  (0.0ms) ROLLBACK [1:244 master]  (0.0ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (242)) [test:242 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:242 master]  (0.0ms) ROLLBACK [1:244 master]  (0.0ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (242)) [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (242)) [test:242 master]  (0.0ms) ROLLBACK [1:244 master]  (0.0ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=243)) ORDER BY id [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=242 AND id<243)) [test:242 master]  (0.0ms) ROLLBACK [1:244 master]  (0.0ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=243)) ORDER BY id [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=242 AND id<243) OR (id>=244 AND id<245)) ORDER BY id [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=242 AND id<=243)) AND (id NOT IN (242)) [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.0ms) ROLLBACK [test:242 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 242], ["name", nil]] [test:242 master]  (0.2ms) COMMIT [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 243], ["name", "switchman_test_shard_243"]] [test:242 master]  (0.2ms) COMMIT [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 244], ["name", "switchman_test_shard_244"]] [test:242 master]  (0.2ms) COMMIT [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 242], ["name", nil]] [test:242 master]  (0.2ms) COMMIT [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 243], ["name", "switchman_test_shard_243"]] [test:242 master]  (0.3ms) COMMIT [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 244], ["name", "switchman_test_shard_244"]] [test:242 master]  (0.2ms) COMMIT [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (242, 243) AND (id IN (243,244)) [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) ROLLBACK [1:244 master]  (0.0ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) ROLLBACK [1:244 master]  (0.0ms) ROLLBACK [test:242 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.0ms) BEGIN [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", "non_existent_shard"]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "15"], ["default", false], ["name", nil]] [test:242 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.3ms) SELECT COUNT(*) FROM "users" [15:253 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.9ms) SELECT COUNT(*) FROM "users"  [15:254 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "16"], ["default", false], ["name", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "17"], ["default", false], ["name", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "18"], ["default", false], ["name", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "19"], ["default", false], ["name", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "20"], ["default", false], ["name", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "21"], ["default", false], ["name", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "22"], ["default", false], ["name", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "22"], ["default", false], ["name", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master]  (0.0ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 242], ["name", nil]] [test:242 master]  (0.4ms) COMMIT [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 243], ["name", "switchman_test_shard_243"]] [test:242 master]  (0.3ms) COMMIT [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 244], ["name", "switchman_test_shard_244"]] [test:242 master]  (0.2ms) COMMIT [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["owner_id", 469], ["owner_type", "User"], ["updated_at", Wed, 27 May 2015 16:17:00 UTC +00:00], ["value", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 21 LIMIT 1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", nil], ["value", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 243 LIMIT 1 [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 244 LIMIT 1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master] SQL (6.1ms) DELETE FROM "switchman_shards" [test:242 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 242], ["name", nil]] [test:242 master]  (5.9ms) COMMIT [test:242 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 243], ["name", "switchman_test_shard_243"]] [test:242 master]  (5.0ms) COMMIT [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 244], ["name", "switchman_test_shard_244"]] [test:242 master]  (0.4ms) COMMIT [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 243 LIMIT 1 [test:242 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 45]] [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 46 LIMIT 1 [test:243 master]  (0.0ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:242 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [test:242 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 48]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2430000000000048 LIMIT 1 [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 49 LIMIT 1 [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (50) LIMIT 1 [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 242], ["name", nil]] [test:242 master]  (0.3ms) COMMIT [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 243], ["name", "switchman_test_shard_243"]] [test:242 master]  (0.3ms) COMMIT [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 244], ["name", "switchman_test_shard_244"]] [test:242 master]  (0.3ms) COMMIT [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 471], ["value", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 51], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 35], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 472], ["value", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 52], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 36], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 473], ["value", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 53], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 37], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 474], ["value", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 54], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 38], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 475], ["value", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 55], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 39], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 476], ["value", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 56], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 40], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 476], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 477], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 477]] [test:242 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 476 LIMIT 1 [test:242 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 476 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 479], ["value", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 57], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 41], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 480], ["value", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 58], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 42], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.3ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.2ms) ROLLBACK [1:244 master]  (0.2ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 481], ["value", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 59], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 43], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 243 LIMIT 1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 482], ["value", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 60], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 44], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 483], ["value", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 61], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 45], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 484], ["value", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 62], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 46], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 485], ["value", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 63], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 47], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 486], ["value", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 64], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 48], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 487], ["value", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 65], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 49], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 488], ["value", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 66], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 50], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:242 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 242], ["name", nil]] [test:242 master]  (0.3ms) COMMIT [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 243], ["name", "switchman_test_shard_243"]] [test:242 master]  (0.4ms) COMMIT [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 244], ["name", "switchman_test_shard_244"]] [test:242 master]  (0.2ms) COMMIT [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "23"], ["default", false], ["name", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.0ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "23"], ["default", false], ["name", nil]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:242 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 242], ["name", nil]] [test:242 master]  (0.2ms) COMMIT [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 243], ["name", "switchman_test_shard_243"]] [test:242 master]  (0.2ms) COMMIT [test:242 master]  (0.1ms) BEGIN [test:242 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 244], ["name", "switchman_test_shard_244"]] [test:242 master]  (0.5ms) COMMIT [test:242 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 67], ["value", 1]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 244 LIMIT 1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 2440000000000051], ["value", 3]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 243 LIMIT 1 [test:242 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 2430000000000067], ["value", 2]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 51], ["value", 4]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 51], ["value", 5]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:243 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:244 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:243 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:244 master]  (0.1ms) SHOW max_identifier_length [1:244 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:243 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:244 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:243 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [test:243 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (51) [1:244 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:244 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (51) [1:244 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 68], ["value", 1]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 2440000000000052], ["value", 3]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 2430000000000068], ["value", 2]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 52], ["value", 4]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 52], ["value", 5]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:243 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:244 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:243 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:244 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:243 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:244 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [test:243 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (68) [test:243 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (52) [1:244 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [1:244 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (52) [1:244 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (68) [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 69], ["value", 1]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 2440000000000053], ["value", 3]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 2430000000000069], ["value", 2]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 53], ["value", 4]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 53], ["value", 5]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:243 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:244 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:243 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:244 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:243 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:244 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [test:243 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (69) [test:243 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [1:244 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [1:244 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [1:244 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (69) [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 70], ["value", 1]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 2440000000000054], ["value", 3]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 2430000000000070], ["value", 2]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 54], ["value", 4]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 54], ["value", 5]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.4ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:243 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:244 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:243 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:244 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:243 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:244 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:243 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [test:243 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [1:244 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:244 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [1:244 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 71], ["value", 1]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 2440000000000055], ["value", 3]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 2430000000000071], ["value", 2]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 55], ["value", 4]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 55], ["value", 5]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:243 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:244 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:243 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:244 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:243 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:244 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:243 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [test:243 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [1:244 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:244 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [1:244 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.1ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 72], ["value", 1]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 2440000000000056], ["value", 3]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 2430000000000072], ["value", 2]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 56], ["value", 4]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 56], ["value", 5]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 72], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 73], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [test:243 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 74], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 57], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (74) [test:243 master] SQL (0.1ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (57) [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 75], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 58], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:242 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:242 master] SQL (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (489) [test:242 master] SQL (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (75) [test:243 master] SQL (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (58) [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 76], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 59], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 57 [test:243 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 52 [1:244 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 57 [test:243 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 52 [1:244 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 57 [test:243 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 52 [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 77], ["value", nil]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 60], ["value", nil]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master] SQL (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 58 [test:243 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 53 [1:244 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 58 [test:243 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 53 [1:244 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 58 [test:243 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 53 [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 78], ["value", 1]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 78], ["value", 2]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 61], ["value", 3]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 61], ["value", 4]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 61], ["value", 5]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 78 [test:243 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [test:243 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 61 [1:244 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [1:244 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (59, 60) [test:243 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (54, 55, 56) [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 79], ["value", 1]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 79], ["value", 2]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 62], ["value", 3]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 62], ["value", 4]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 62], ["value", 5]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 79 [test:243 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [test:243 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 62 [1:244 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [1:244 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (61, 62) [test:243 master]  (0.4ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (57, 58, 59) [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 80], ["value", 1]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 80], ["value", 2]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 63], ["value", 3]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 63], ["value", 4]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 63], ["value", 5]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 80 [test:243 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [test:243 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 63 [1:244 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [1:244 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (63, 64) [test:243 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (60, 61, 62) [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.1ms) BEGIN [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 81], ["value", 1]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 81], ["value", 2]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 64], ["value", 3]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 64], ["value", 4]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 64], ["value", 5]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.5ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 81 [test:243 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [test:243 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 64 [1:244 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [1:244 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (65, 66) [test:243 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (63, 64, 65) [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master]  (0.0ms) BEGIN [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 243]] [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 244]] [test:242 master]  (0.0ms) BEGIN [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 82], ["value", 1]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [test:243 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 82], ["value", 2]] [test:243 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:243 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 65], ["value", 3]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.0ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 65], ["value", 4]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.1ms) SAVEPOINT active_record_1 [1:244 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:17:01 UTC +00:00], ["user_id", 65], ["value", 5]] [1:244 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:244 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 82 [test:243 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [test:243 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 65 [1:244 master]  (0.1ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [1:244 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (67, 68) [test:243 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (66, 67, 68) [1:244 master]  (0.1ms) ROLLBACK [1:244 master]  (0.1ms) ROLLBACK [test:243 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:242 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:242 master]  (7.2ms) DROP SCHEMA switchman_test_shard_243 CASCADE [test:243 deploy]  (0.1ms) BEGIN SQL (0.6ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 243]]  (0.1ms) COMMIT  (7.3ms) DROP SCHEMA switchman_test_shard_244 CASCADE [1:244 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 244]]  (0.2ms) COMMIT  (1.2ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.6ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.2ms) BEGIN Switchman::Shard Exists (0.4ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", true]]  (0.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_266 [test:266 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:266 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:266 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:266 deploy] ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:266 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (5.0ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:266 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:266 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:266 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:266 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:266 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:266 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:266 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:266 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:266 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:266 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:266 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:266 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:266 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.5ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:266 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:266 deploy] Migrating to CreateRoots (20140219183820)  (2.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:266 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:266 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 deploy] SQL (0.4ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 266 [["name", "switchman_test_shard_266"]] [test:265 master]  (1.2ms) COMMIT [test:265 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:265 master]  (0.3ms) COMMIT [test:265 master]  (0.9ms) CREATE SCHEMA switchman_test_shard_267 [1:267 deploy]  (0.1ms) BEGIN [1:267 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:267 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:267 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:267 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:267 deploy] SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:267 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:267 deploy] Migrating to CreateUsers (20130403132607)  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:267 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:267 deploy] Migrating to CreateAppendages (20130411202442)  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:267 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:267 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:267 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:267 deploy] Migrating to CreateDigits (20131022202028)  (2.3ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:267 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:267 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:267 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:267 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:267 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:267 deploy] Migrating to CreateRoots (20140219183820)  (2.3ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:267 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:267 deploy]  (0.8ms) COMMIT [1:267 deploy]  (0.1ms) BEGIN [test:265 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 267 [["name", "switchman_test_shard_267"]] [test:265 master]  (0.2ms) COMMIT [test:265 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:265 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 265]] [test:265 master]  (0.3ms) COMMIT [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 266], ["name", "switchman_test_shard_266"]] [test:265 master]  (0.2ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 267], ["name", "switchman_test_shard_267"]] [test:265 master]  (0.3ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (1.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.2ms) SAVEPOINT active_record_1 [test:266 master] SQL (1.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 1], ["value", 1]] [test:266 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:266 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 267 LIMIT 1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 2670000000000001], ["value", 3]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 266 LIMIT 1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 2660000000000001], ["value", 2]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 1], ["value", 4]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 1], ["value", 5]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.5ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:266 master]  (0.5ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:267 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:266 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:267 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:266 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:267 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [test:266 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1) [test:266 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1) [1:267 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [1:267 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1) [1:267 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1) [test:266 master]  (0.2ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 2], ["value", 1]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 2670000000000002], ["value", 3]] [test:266 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 2660000000000002], ["value", 2]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 2], ["value", 4]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 2], ["value", 5]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:266 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:267 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:266 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:267 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:266 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:267 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:266 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2) [test:266 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2) [1:267 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:267 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2) [1:267 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (2) [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 3], ["value", 1]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 2670000000000003], ["value", 3]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 2660000000000003], ["value", 2]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 3], ["value", 4]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 3], ["value", 5]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:266 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:267 master]  (0.4ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:266 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:267 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:266 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:267 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:266 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (3) [test:266 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (3) [1:267 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:267 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (3) [1:267 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (3) [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 4], ["value", 1]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 2670000000000004], ["value", 3]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 2660000000000004], ["value", 2]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 4], ["value", 4]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 4], ["value", 5]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:266 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:267 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:266 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:267 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:266 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:267 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [test:266 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (4) [test:266 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (4) [1:267 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [1:267 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (4) [1:267 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (4) [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 5], ["value", 1]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 2670000000000005], ["value", 3]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 2660000000000005], ["value", 2]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 5], ["value", 4]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 5], ["value", 5]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:266 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:267 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:266 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:267 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:266 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:267 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:266 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [test:266 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [1:267 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:267 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [1:267 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 6], ["value", 1]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 2670000000000006], ["value", 3]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 2660000000000006], ["value", 2]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 6], ["value", 4]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 6], ["value", 5]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 6]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 7]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.2ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 8]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 7]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 15 [test:266 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 19 [1:267 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 15 [test:266 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 19 [1:267 master]  (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 15 [test:266 master]  (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 19 [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 9]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 8]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.4ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (490) [test:265 master]  (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (9) [test:266 master]  (0.4ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (8) [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 10]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 9]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (10) [test:266 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (9) [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 11]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 10]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 18 [test:266 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 22 [1:267 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 18 [test:266 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 22 [1:267 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 18 [test:266 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 22 [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 12], ["value", 1]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 12], ["value", 2]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 11], ["value", 3]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 11], ["value", 4]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 11], ["value", 5]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 12]] [test:266 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [test:266 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 11]] [1:267 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [1:267 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (19, 20) [test:266 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (23, 24, 25) [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 13], ["value", 1]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 13], ["value", 2]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.2ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 12], ["value", 3]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 12], ["value", 4]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 12], ["value", 5]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.5ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 13]] [test:266 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [test:266 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 12]] [1:267 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [1:267 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (21, 22) [test:266 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (26, 27, 28) [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 14], ["value", 1]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 14], ["value", 2]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 13], ["value", 3]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 13], ["value", 4]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 13], ["value", 5]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 14]] [test:266 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [test:266 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 13]] [1:267 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [1:267 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (23, 24) [test:266 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (29, 30, 31) [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 15], ["value", 1]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 15], ["value", 2]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 14], ["value", 3]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 14], ["value", 4]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 14], ["value", 5]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 15]] [test:266 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [test:266 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 14]] [1:267 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [1:267 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (25, 26) [test:266 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (32, 33, 34) [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 16], ["value", 1]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 16], ["value", 2]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 15], ["value", 3]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 15], ["value", 4]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["user_id", 15], ["value", 5]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 16]] [test:266 master]  (0.9ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [test:266 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 15]] [1:267 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [1:267 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (27, 28) [test:266 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (35, 36, 37) [1:267 master]  (0.6ms) ROLLBACK [1:267 master]  (0.3ms) ROLLBACK [test:266 master] SQL (3.3ms) DELETE FROM "switchman_shards" [test:265 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 265]] [test:265 master]  (0.3ms) COMMIT [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 266], ["name", "switchman_test_shard_266"]] [test:265 master]  (0.7ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 267], ["name", "switchman_test_shard_267"]] [test:265 master]  (0.3ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.2ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.2ms) BEGIN [test:265 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 265]] [test:265 master]  (0.3ms) COMMIT [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 266], ["name", "switchman_test_shard_266"]] [test:265 master]  (0.2ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 267], ["name", "switchman_test_shard_267"]] [test:265 master]  (0.3ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.2ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.7ms) INSERT INTO "roots" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 266 LIMIT 1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.2ms) ROLLBACK [test:266 master] SQL (6.2ms) DELETE FROM "switchman_shards" [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 265]] [test:265 master]  (5.9ms) COMMIT [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 266], ["name", "switchman_test_shard_266"]] [test:265 master]  (5.8ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 267], ["name", "switchman_test_shard_267"]] [test:265 master]  (6.0ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 20]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2660000000000020 ORDER BY "users"."id" ASC LIMIT 1 [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 21 LIMIT 1 [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.2ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["name", "multi-shard exists"], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [test:265 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [test:265 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [test:266 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 266 LIMIT 1 [test:265 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 23]] [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:52 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:52 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 24 LIMIT 1 [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) LIMIT 1 [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master] SQL (6.2ms) DELETE FROM "switchman_shards" [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 265]] [test:265 master]  (0.3ms) COMMIT [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 266], ["name", "switchman_test_shard_266"]] [test:265 master]  (0.3ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 267], ["name", "switchman_test_shard_267"]] [test:265 master]  (0.3ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.2ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["owner_id", 493], ["owner_type", "User"], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master] Feature Load (0.3ms) SELECT owner_id FROM "features" WHERE "features"."id" = 22 ORDER BY "features"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 266 LIMIT 1 [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 267 LIMIT 1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master] SQL (6.1ms) DELETE FROM "switchman_shards" [test:265 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 265]] [test:265 master]  (5.9ms) COMMIT [test:265 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 266], ["name", "switchman_test_shard_266"]] [test:265 master]  (4.8ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 267], ["name", "switchman_test_shard_267"]] [test:265 master]  (0.3ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.2ms) ROLLBACK [1:267 master]  (0.2ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master] MirrorUser Load (0.4ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 12]] [test:265 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 12]] [test:265 master] MirrorUser Load (0.4ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 12 ORDER BY "mirror_users"."id" ASC LIMIT 1 [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:265 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 265]] [test:265 master]  (0.3ms) COMMIT [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 266], ["name", "switchman_test_shard_266"]] [test:265 master]  (0.2ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 267], ["name", "switchman_test_shard_267"]] [test:265 master]  (0.2ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 265]] [test:265 master]  (0.3ms) COMMIT [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 266], ["name", "switchman_test_shard_266"]] [test:265 master]  (0.3ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 267], ["name", "switchman_test_shard_267"]] [test:265 master]  (0.4ms) COMMIT [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master]  (0.2ms) SELECT COUNT(*) FROM "users" [1:267 master]  (0.1ms) SAVEPOINT active_record_2 [1:267 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [1:267 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.2ms) SELECT COUNT(*) FROM "users" [1:267 master]  (0.1ms) ROLLBACK [1:267 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.2ms) BEGIN [test:265 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:265 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 265]] [test:265 master]  (0.3ms) COMMIT [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 266], ["name", "switchman_test_shard_266"]] [test:265 master]  (0.2ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 267], ["name", "switchman_test_shard_267"]] [test:265 master]  (0.2ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [test:265 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 265]] [test:265 master]  (0.3ms) COMMIT [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 266], ["name", "switchman_test_shard_266"]] [test:265 master]  (0.2ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 267], ["name", "switchman_test_shard_267"]] [test:265 master]  (0.2ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '3' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "3"]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) begin transaction [3:270 deploy]  (0.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [3:270 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [3:270 deploy] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" [3:270 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (0.2ms) CREATE TABLE "switchman_shards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "database_server_id" varchar(255), "default" boolean DEFAULT 'f' NOT NULL)  [3:270 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130328212039"]] [3:270 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130328224244"]] [3:270 deploy] Migrating to CreateUsers (20130403132607)  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime, "updated_at" datetime) [3:270 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130403132607"]] [3:270 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [3:270 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202442"]] [3:270 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [3:270 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202551"]] [3:270 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [3:270 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131022202028"]] [3:270 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime, "updated_at" datetime) [3:270 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131206172923"]] [3:270 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD "parent_id" integer(8) [3:270 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140123154135"]] [3:270 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [3:270 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219183820"]] [3:270 deploy]  (1.6ms) commit transaction [3:270 deploy]  (0.2ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 270 [["name", "db/shard_270.sqlite3"]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) begin transaction [3:270 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [3:270 master]  (0.9ms) commit transaction [3:270 master] Drop failed: No such file or directory @ unlink_internal - db/shard_270.sqlite3  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 270]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '4' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "4"], ["name", "public"]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_271 [4:271 deploy]  (0.1ms) BEGIN [4:271 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [4:271 deploy]  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [4:271 deploy] ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" [4:271 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (7.3ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [4:271 deploy] SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [4:271 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [4:271 deploy] Migrating to CreateUsers (20130403132607)  (3.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [4:271 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [4:271 deploy] Migrating to CreateAppendages (20130411202442)  (2.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [4:271 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [4:271 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [4:271 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [4:271 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [4:271 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [4:271 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [4:271 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [4:271 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.4ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [4:271 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [4:271 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [4:271 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [4:271 deploy]  (0.8ms) COMMIT [4:271 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 271 [["name", "switchman_test_shard_271"]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) BEGIN [4:271 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [4:271 master]  (0.4ms) COMMIT [4:271 master]  (5.0ms) DROP SCHEMA switchman_test_shard_271 CASCADE [4:271 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 271]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.2ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [test:265 master]  (0.1ms) CREATE SCHEMA switchman_test_shard_272 [test:272 deploy]  (0.1ms) SAVEPOINT active_record_2 [test:272 deploy]  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [test:272 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:272 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:272 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.4ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [test:272 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:272 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:272 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:272 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:272 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:272 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:272 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:272 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:272 deploy] Migrating to CreateDigits (20131022202028)  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:272 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:272 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:272 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:272 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:272 deploy] SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:272 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:272 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:272 deploy]  (0.2ms) RELEASE SAVEPOINT active_record_2 [test:272 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 272 [["name", "switchman_test_shard_272"]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:272 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:272 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:272 master]  (3.1ms) DROP SCHEMA switchman_test_shard_272 CASCADE [test:272 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 272]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (2.1ms) ROLLBACK [test:265 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:265 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 265]] [test:265 master]  (0.3ms) COMMIT [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 266], ["name", "switchman_test_shard_266"]] [test:265 master]  (0.3ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 267], ["name", "switchman_test_shard_267"]] [test:265 master]  (0.2ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (265)) [test:265 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=265 AND id<=266)) ORDER BY "switchman_shards"."id" ASC [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=266)) ORDER BY "switchman_shards"."id" ASC [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=265 AND id<266)) [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=265 AND id<266) OR (id>=267 AND id<268)) ORDER BY "switchman_shards"."id" ASC [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (265)) [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=266)) ORDER BY "switchman_shards"."id" ASC [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (265)) [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=266 AND id<=266)) AND (id NOT IN (265)) [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=265 AND id<=266)) AND (id NOT IN (265)) [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "11"], ["name", "non_existent_shard"]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "11"]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.6ms) SELECT COUNT(*) FROM "users" [11:273 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.6ms) SELECT COUNT(*) FROM "users" [11:274 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "12"]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "13"]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "14"]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "15"]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "16"]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "17"]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 265]] [test:265 master]  (0.3ms) COMMIT [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 266], ["name", "switchman_test_shard_266"]] [test:265 master]  (0.3ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 267], ["name", "switchman_test_shard_267"]] [test:265 master]  (0.3ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["user_id", 27]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 30], ["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 266 LIMIT 1 [test:265 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 27], ["id", 1]] [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["user_id", 28]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.6ms) INSERT INTO "digits" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 267 LIMIT 1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 31], ["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["id", 2670000000000001], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 28], ["id", 2670000000000001]] [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["user_id", 29]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.4ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 29]] [test:266 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 29]] [test:266 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 29]] [test:266 master]  (0.2ms) ROLLBACK [1:267 master]  (0.2ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["user_id", 31]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["user_id", 23]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["user_id", 32]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master] Appendage Load (0.5ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 32], ["id", 34]] [test:266 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 24], ["id", 2660000000000034]] [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["user_id", 33]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["user_id", 34]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["parent_id", 35], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["parent_id", 36], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 35]] [test:266 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 37 LIMIT 1 [["parent_id", 35]] [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["id", 37], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 35]] [test:266 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 2670000000000037 LIMIT 1 [["parent_id", 35]] [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.2ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["user_id", 40]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 37]] [test:266 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 40]] [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["user_id", 42]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 38], ["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["user_id", 2660000000000042]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 40], ["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["value", 2]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.6ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 42]] [test:266 master]  (0.6ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 2660000000000042]] [1:267 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 42]] [test:266 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 42]] [test:266 master] Digit Load (0.6ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 2660000000000042]] [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["user_id", 43]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 39], ["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["value", 1]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["user_id", 2660000000000043]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 41], ["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["value", 2]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 43]] [test:266 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 43]] [test:266 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 43]] [test:266 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 2660000000000043]] [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["user_id", 44]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 40], ["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["user_id", 2660000000000044]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 42], ["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["value", 2]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 44]] [test:266 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 2660000000000044]] [1:267 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 44]] [test:266 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 44]] [test:266 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 2660000000000044]] [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["user_id", 45], ["value", 1]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["user_id", 2660000000000045]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 45]] [test:266 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 2660000000000045]] [1:267 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 45]] [test:266 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 45]] [test:266 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 2660000000000045]] [1:267 master]  (0.2ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["user_id", 46], ["value", 1]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["user_id", 2660000000000046], ["value", 2]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 46]] [test:266 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [test:266 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 46]] [test:266 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 2660000000000046]] [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["user_id", 47], ["value", 1]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["user_id", 2660000000000047]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["user_id", 47], ["value", 2]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 47]] [test:266 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 47]] [test:266 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 2660000000000047]] [1:267 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 47]] [test:266 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 47]] [test:266 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 2660000000000047]] [1:267 master]  (0.2ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["user_id", 48]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 45], ["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 45], ["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["value", 1]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["user_id", 2660000000000048]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 46], ["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["value", 2]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.6ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 48]] [test:266 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 2660000000000048]] [1:267 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 48]] [test:266 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 48]] [test:266 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 2660000000000048]] [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["user_id", 2660000000000049]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["user_id", 2670000000000039]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:53 UTC +00:00], ["user_id", 495]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" [test:265 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (49) [test:266 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) [1:267 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (495) [test:265 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 49 [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 50]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 2660000000000050]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 2670000000000040]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (50) [test:266 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (50) [test:266 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (2660000000000050) [1:267 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) [1:267 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (40) [1:267 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 46 [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 251], ["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 2650000000000251], ["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 251 ORDER BY "appendages"."id" ASC LIMIT 1 [test:265 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (251) [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 2660000000000052]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 252], ["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 2670000000000042]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 2660000000000048], ["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [test:265 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (252) [test:265 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (48) [test:266 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (52) [test:266 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [1:267 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 52 [test:266 master]  (0.2ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 53]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 2660000000000053]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 2660000000000053]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 49], ["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 48], ["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 2670000000000048], ["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 2670000000000049], ["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 2670000000000043]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 43]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 43]] [1:267 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 2660000000000050], ["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 2670000000000050], ["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 51], ["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [test:266 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (53) [test:266 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (2660000000000053) [1:267 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (49) [test:266 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (48, 49) [1:267 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) [1:267 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (43) [1:267 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (50, 51) [1:267 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 8 [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.2ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["owner_id", 253], ["owner_type", "Appendage"], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 23]] [test:265 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 253]] [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.4ms) UPDATE "features" SET "owner_id" = $1, "owner_type" = $2, "updated_at" = $3 WHERE "features"."id" = 23 [["owner_id", 2660000000000054], ["owner_type", "User"], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 23]] [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["owner_id", 55], ["owner_type", "User"], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["value", 1]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["owner_id", 2660000000000055], ["owner_type", "User"], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["value", 2]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 55], ["owner_type", "User"]] [test:266 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 55]] [test:266 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 55], ["owner_type", "User"]] [test:266 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 2660000000000055], ["owner_type", "User"]] [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 2670000000000046]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master] Root Load (0.4ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 23]] [test:265 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 2670000000000047]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 51]] [test:266 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 47]] [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 58]] [test:266 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 58]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 52]] [test:266 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 58]] [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 265]] [test:265 master]  (0.4ms) COMMIT [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 266], ["name", "switchman_test_shard_266"]] [test:265 master]  (0.3ms) COMMIT [test:265 master]  (0.2ms) BEGIN [test:265 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 267], ["name", "switchman_test_shard_267"]] [test:265 master]  (0.3ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.0ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:38:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:38:54 UTC +00:00]] [test:266 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.0ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 265]] [test:265 master]  (0.2ms) COMMIT [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 266], ["name", "switchman_test_shard_266"]] [test:265 master]  (0.3ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 267], ["name", "switchman_test_shard_267"]] [test:265 master]  (0.3ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 61 ORDER BY "users"."id" ASC LIMIT 1 [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.2ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 266 LIMIT 1 [test:265 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (498) [test:265 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (62) [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 63 [test:266 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 499]] [test:265 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (500) [test:265 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (64) [test:266 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 500]] [test:265 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 64]] [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 265]] [test:265 master]  (0.3ms) COMMIT [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 266], ["name", "switchman_test_shard_266"]] [test:265 master]  (0.4ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 267], ["name", "switchman_test_shard_267"]] [test:265 master]  (0.2ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 501]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 65]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 49]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 502]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 66]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 50]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 266 LIMIT 1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 503]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 67]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 51]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 504]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 68]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 52]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 505]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 69]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.2ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 53]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.4ms) ROLLBACK [1:267 master]  (0.2ms) ROLLBACK [test:265 master]  (0.3ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 506]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 70]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 54]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["parent_id", 506], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["parent_id", 507], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 507]] [test:265 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 506]] [test:265 master] User Load (0.5ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 [["parent_id", 506]] [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 509]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 71]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 55]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 510]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 72]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 56]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 511]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 73]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 57]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 512]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 74]] [test:266 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 58]] [1:267 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 513]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 75]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 59]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 514]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 76]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 60]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 515]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 77]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 61]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.2ms) ROLLBACK [1:267 master]  (0.2ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 516]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 78]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.2ms) SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 62]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.2ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 517]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 79]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [1:267 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.2ms) SAVEPOINT active_record_1 [test:265 master]  (0.2ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 63]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 518]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 80]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [1:267 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["user_id", 64]] [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:267 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.2ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:265 master] Switchman::Shard Load (1.0ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.2ms) BEGIN [test:265 master] Switchman::Shard Exists (0.5ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 265]] [test:265 master]  (0.3ms) COMMIT [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 266], ["name", "switchman_test_shard_266"]] [test:265 master]  (0.3ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 267], ["name", "switchman_test_shard_267"]] [test:265 master]  (0.3ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "18"]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "18"]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 265]] [test:265 master]  (0.3ms) COMMIT [test:265 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 266], ["name", "switchman_test_shard_266"]] [test:265 master]  (0.3ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 267], ["name", "switchman_test_shard_267"]] [test:265 master]  (0.3ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:266 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:266 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:266 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:266 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:265 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:37:54.789292' [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:265 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:37:54.795795' [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.4ms) COMMIT [test:265 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:265 master] SQL (0.5ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:37:54.800216' [test:265 master] SQL (0.3ms) DELETE FROM "users" [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.3ms) COMMIT [test:265 master] User Load (0.3ms) SELECT "users".* FROM "users" [test:265 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:37:54.805863' [test:265 master] SQL (0.3ms) DELETE FROM "users" [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.3ms) COMMIT [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.3ms) COMMIT [test:265 master]  (0.2ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] User Load (0.5ms) SELECT "users".* FROM "users" [test:265 master]  (0.2ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] User Load (0.3ms) SELECT "users".* FROM "users" [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:265 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:265 master] SQL (0.2ms) DELETE FROM "users" [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:265 master] SQL (0.2ms) DELETE FROM "users" [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.4ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["name", "a"], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.3ms) COMMIT [test:265 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 531]] [test:265 master] CACHE (0.0ms) 265::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 531]] CACHE (0.0ms) 265::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 531]]  (0.1ms) BEGIN [test:265 master] SQL (0.5ms) UPDATE "users" SET "name" = $1, "updated_at" = $2 WHERE "users"."id" = 531 [["name", "b"], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.3ms) COMMIT [test:265 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 531]] [test:265 master] CACHE (0.0ms) 265::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 531]] SQL (0.3ms) DELETE FROM "users" [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.3ms) COMMIT [test:265 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:265 master] SQL (0.4ms) DELETE FROM "users" [test:265 master] SQL (0.2ms) DELETE FROM "users" [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:54 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:54 UTC +00:00]] [test:265 master]  (0.6ms) COMMIT [test:265 master] User Load (0.4ms) SELECT "users".* FROM "users" [test:265 master] SQL (0.4ms) DELETE FROM "users" [test:265 master] SQL (0.2ms) DELETE FROM "users" [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.3ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:265 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 265]] [test:265 master]  (0.3ms) COMMIT [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 266], ["name", "switchman_test_shard_266"]] [test:265 master]  (0.2ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 267], ["name", "switchman_test_shard_267"]] [test:265 master]  (0.2ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:265 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 265]] [test:265 master]  (0.4ms) COMMIT [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 266], ["name", "switchman_test_shard_266"]] [test:265 master]  (0.3ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 267], ["name", "switchman_test_shard_267"]] [test:265 master]  (0.2ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 267 LIMIT 1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10267 LIMIT 1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 266 LIMIT 1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.2ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '20' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "20"], ["name", "public"]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_283 [20:283 deploy]  (0.1ms) BEGIN [20:283 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [20:283 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [20:283 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [20:283 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.6ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [20:283 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [20:283 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [20:283 deploy] Migrating to CreateUsers (20130403132607)  (3.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [20:283 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [20:283 deploy] Migrating to CreateAppendages (20130411202442)  (2.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [20:283 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [20:283 deploy] Migrating to CreateMirrorUsers (20130411202551)  (4.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [20:283 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [20:283 deploy] Migrating to CreateDigits (20131022202028)  (2.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [20:283 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [20:283 deploy] Migrating to CreateFeatures (20131206172923)  (2.3ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [20:283 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [20:283 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [20:283 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [20:283 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [20:283 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [20:283 deploy]  (0.8ms) COMMIT [20:283 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 283 [["name", "switchman_test_shard_283"]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) BEGIN [20:283 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:55 UTC +00:00]] [20:283 master]  (0.3ms) COMMIT [20:283 master]  (0.2ms) SELECT COUNT(*) FROM "users" [20:283 master]  (5.9ms) DROP SCHEMA switchman_test_shard_283 CASCADE [20:283 deploy]  (0.5ms) SELECT COUNT(*) FROM "users" [20:283 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.2ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.2ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.2ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 284]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 285]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 285 LIMIT 1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 265 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:266 master] SQL (0.9ms) DELETE FROM "switchman_shards" [test:265 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.3ms) BEGIN [test:265 master] Switchman::Shard Exists (0.4ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:265 master] SQL (0.6ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 265]] [test:265 master]  (0.5ms) COMMIT [test:265 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 266], ["name", "switchman_test_shard_266"]] [test:265 master]  (0.3ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 267], ["name", "switchman_test_shard_267"]] [test:265 master]  (0.2ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (266,267)) AND "switchman_shards"."id" IN (265, 266) [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:265 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 265]] [test:265 master]  (0.4ms) COMMIT [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 266], ["name", "switchman_test_shard_266"]] [test:265 master]  (0.4ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 267], ["name", "switchman_test_shard_267"]] [test:265 master]  (0.3ms) COMMIT [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "21"]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:37:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:37:55 UTC +00:00]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master]  (0.1ms) BEGIN [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 266]] [test:265 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 267]] [test:265 master]  (0.1ms) BEGIN [1:267 master]  (0.1ms) SAVEPOINT active_record_1 [test:265 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "22"]] [test:265 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:265 master]  (0.1ms) ROLLBACK [1:267 master]  (0.1ms) ROLLBACK [test:265 master] SQL (0.9ms) DELETE FROM "switchman_shards" [test:265 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:265 master]  (6.0ms) DROP SCHEMA switchman_test_shard_266 CASCADE [test:266 deploy]  (0.2ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 266]]  (0.1ms) COMMIT  (7.2ms) DROP SCHEMA switchman_test_shard_267 CASCADE [1:267 deploy]  (0.2ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 267]]  (0.1ms) COMMIT  (1.0ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.6ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", true]]  (0.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_289 [test:289 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:289 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:289 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:289 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:289 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.1ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:289 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:289 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:289 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:289 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:289 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:289 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:289 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:289 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:289 deploy] Migrating to CreateDigits (20131022202028)  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:289 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:289 deploy] Migrating to CreateFeatures (20131206172923)  (2.3ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:289 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:289 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:289 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:289 deploy] Migrating to CreateRoots (20140219183820)  (2.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:289 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:289 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:289 deploy] SQL (0.6ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 289 [["name", "switchman_test_shard_289"]] [test:288 master]  (0.8ms) COMMIT [test:288 master] Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:288 master]  (0.1ms) BEGIN [test:288 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:288 master]  (0.4ms) COMMIT [test:288 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_290 [1:290 deploy]  (0.1ms) BEGIN [1:290 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:290 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:290 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:290 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.4ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:290 deploy] SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:290 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:290 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:290 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:290 deploy] Migrating to CreateAppendages (20130411202442)  (2.3ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:290 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:290 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:290 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:290 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:290 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:290 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:290 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:290 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:290 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:290 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:290 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:290 deploy]  (0.8ms) COMMIT [1:290 deploy]  (0.1ms) BEGIN [test:288 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 290 [["name", "switchman_test_shard_290"]] [test:288 master]  (0.4ms) COMMIT [test:288 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:288 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:288 master]  (0.1ms) BEGIN [test:288 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:288 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 288]] [test:288 master]  (0.3ms) COMMIT [test:288 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:288 master]  (0.1ms) BEGIN [test:288 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 289], ["name", "switchman_test_shard_289"]] [test:288 master]  (0.3ms) COMMIT [test:288 master]  (0.1ms) BEGIN [test:288 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 290], ["name", "switchman_test_shard_290"]] [test:288 master]  (0.2ms) COMMIT [test:288 master]  (0.1ms) BEGIN [test:288 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:288 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 289]] [test:288 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 290]] [test:288 master]  (0.1ms) BEGIN [1:290 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 288 [test:288 master]  (0.1ms) ROLLBACK [1:290 master]  (0.1ms) ROLLBACK [test:288 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:288 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:288 master]  (5.1ms) DROP SCHEMA switchman_test_shard_289 CASCADE [test:289 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 289]]  (0.1ms) COMMIT  (5.6ms) DROP SCHEMA switchman_test_shard_290 CASCADE [1:290 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 290]]  (0.1ms) COMMIT  (1.0ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.4ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", true]]  (6.5ms) COMMIT Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (1.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.2ms) BEGIN SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_292 [test:292 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:292 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:292 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:292 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:292 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:292 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:292 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:292 deploy] Migrating to CreateUsers (20130403132607)  (2.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:292 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:292 deploy] Migrating to CreateAppendages (20130411202442)  (2.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:292 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:292 deploy] Migrating to CreateMirrorUsers (20130411202551)  (3.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:292 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:292 deploy] Migrating to CreateDigits (20131022202028)  (2.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:292 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:292 deploy] Migrating to CreateFeatures (20131206172923)  (2.3ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:292 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:292 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:292 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:292 deploy] Migrating to CreateRoots (20140219183820)  (2.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:292 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:292 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:292 deploy] SQL (0.4ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 292 [["name", "switchman_test_shard_292"]] [test:291 master]  (0.8ms) COMMIT [test:291 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:291 master]  (0.1ms) BEGIN [test:291 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:291 master]  (0.3ms) COMMIT [test:291 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_293 [1:293 deploy]  (0.1ms) BEGIN [1:293 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:293 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:293 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:293 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.7ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:293 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:293 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:293 deploy] Migrating to CreateUsers (20130403132607)  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:293 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:293 deploy] Migrating to CreateAppendages (20130411202442)  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:293 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:293 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:293 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:293 deploy] Migrating to CreateDigits (20131022202028)  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:293 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:293 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:293 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:293 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:293 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:293 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:293 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:293 deploy]  (0.8ms) COMMIT [1:293 deploy]  (0.1ms) BEGIN [test:291 master] SQL (0.4ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 293 [["name", "switchman_test_shard_293"]] [test:291 master]  (0.3ms) COMMIT [test:291 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:291 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:291 master]  (0.1ms) BEGIN [test:291 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:291 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 291]] [test:291 master]  (0.3ms) COMMIT [test:291 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:291 master]  (0.1ms) BEGIN [test:291 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 292], ["name", "switchman_test_shard_292"]] [test:291 master]  (0.2ms) COMMIT [test:291 master]  (0.1ms) BEGIN [test:291 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 293], ["name", "switchman_test_shard_293"]] [test:291 master]  (0.2ms) COMMIT [test:291 master]  (0.1ms) BEGIN [test:291 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:291 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 292]] [test:291 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 293]] [test:291 master]  (0.1ms) BEGIN [1:293 master] Switchman::Shard Load (1.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 291 [test:291 master]  (0.4ms) ROLLBACK [1:293 master]  (0.6ms) ROLLBACK [test:291 master] SQL (6.4ms) DELETE FROM "switchman_shards" [test:291 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:291 master]  (6.1ms) DROP SCHEMA switchman_test_shard_292 CASCADE [test:292 deploy]  (0.2ms) BEGIN SQL (0.7ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 292]]  (0.2ms) COMMIT  (6.3ms) DROP SCHEMA switchman_test_shard_293 CASCADE [1:293 deploy]  (0.4ms) BEGIN SQL (1.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 293]]  (0.4ms) COMMIT  (1.0ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.6ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.2ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", true]]  (6.7ms) COMMIT Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (1.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.2ms) BEGIN SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.4ms) CREATE SCHEMA switchman_test_shard_295 [test:295 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:295 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:295 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:295 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:295 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.9ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:295 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:295 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:295 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:295 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:295 deploy] Migrating to CreateAppendages (20130411202442)  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:295 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:295 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.3ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:295 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:295 deploy] Migrating to CreateDigits (20131022202028)  (2.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:295 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:295 deploy] Migrating to CreateFeatures (20131206172923)  (2.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:295 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:295 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:295 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:295 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:295 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:295 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:295 deploy] SQL (0.4ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 295 [["name", "switchman_test_shard_295"]] [test:294 master]  (1.0ms) COMMIT [test:294 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:294 master]  (0.1ms) BEGIN [test:294 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:294 master]  (0.2ms) COMMIT [test:294 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_296 [1:296 deploy]  (0.1ms) BEGIN [1:296 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:296 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:296 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:296 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.3ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:296 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:296 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:296 deploy] Migrating to CreateUsers (20130403132607)  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:296 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:296 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:296 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:296 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:296 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:296 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:296 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:296 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:296 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:296 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:296 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:296 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:296 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:296 deploy]  (0.8ms) COMMIT [1:296 deploy]  (0.1ms) BEGIN [test:294 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 296 [["name", "switchman_test_shard_296"]] [test:294 master]  (0.3ms) COMMIT [test:294 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:294 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:294 master]  (0.1ms) BEGIN [test:294 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:294 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 294]] [test:294 master]  (0.3ms) COMMIT [test:294 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:294 master]  (0.1ms) BEGIN [test:294 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 295], ["name", "switchman_test_shard_295"]] [test:294 master]  (0.2ms) COMMIT [test:294 master]  (0.1ms) BEGIN [test:294 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 296], ["name", "switchman_test_shard_296"]] [test:294 master]  (0.2ms) COMMIT [test:294 master]  (0.1ms) BEGIN [test:294 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:294 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 295]] [test:294 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 296]] [test:294 master]  (0.1ms) BEGIN [1:296 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 294 [test:294 master]  (0.1ms) ROLLBACK [1:296 master]  (0.1ms) ROLLBACK [test:294 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:294 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:294 master]  (5.1ms) DROP SCHEMA switchman_test_shard_295 CASCADE [test:295 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 295]]  (0.1ms) COMMIT  (5.0ms) DROP SCHEMA switchman_test_shard_296 CASCADE [1:296 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 296]]  (0.1ms) COMMIT  (1.0ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.8ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.2ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", true]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_298 [test:298 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:298 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:298 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:298 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:298 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (4.5ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:298 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:298 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:298 deploy] Migrating to CreateUsers (20130403132607)  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:298 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:298 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:298 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:298 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:298 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:298 deploy] Migrating to CreateDigits (20131022202028)  (2.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:298 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:298 deploy] Migrating to CreateFeatures (20131206172923)  (2.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:298 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:298 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:298 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:298 deploy] Migrating to CreateRoots (20140219183820)  (2.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:298 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:298 deploy]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:298 deploy] SQL (0.5ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 298 [["name", "switchman_test_shard_298"]] [test:297 master]  (0.9ms) COMMIT [test:297 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:297 master]  (0.2ms) COMMIT [test:297 master]  (0.8ms) CREATE SCHEMA switchman_test_shard_299 [1:299 deploy]  (0.1ms) BEGIN [1:299 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:299 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:299 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:299 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.0ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:299 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:299 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:299 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:299 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:299 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:299 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:299 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:299 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:299 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:299 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:299 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:299 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:299 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:299 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:299 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:299 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:299 deploy]  (0.8ms) COMMIT [1:299 deploy]  (0.1ms) BEGIN [test:297 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 299 [["name", "switchman_test_shard_299"]] [test:297 master]  (0.3ms) COMMIT [test:297 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:297 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 297]] [test:297 master]  (0.3ms) COMMIT [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 298], ["name", "switchman_test_shard_298"]] [test:297 master]  (0.3ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 299], ["name", "switchman_test_shard_299"]] [test:297 master]  (0.3ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (1.5ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (1.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 1]] [test:298 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 1]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 298 LIMIT 1 [test:297 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 299 LIMIT 1 [test:297 master]  (0.3ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (1) [test:298 master]  (0.3ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (1) [1:299 master]  (0.2ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 2]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 2]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 2 [test:298 master]  (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 2 [1:299 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 2 [test:298 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 2 [1:299 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 2 [test:298 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 2 [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 3]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 3]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:297 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.5ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (535) [test:297 master]  (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (3) [test:298 master]  (0.4ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (3) [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 4]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 4]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 4 [test:298 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 4 [1:299 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 4 [test:298 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 4 [1:299 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 4 [test:298 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 4 [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 5], ["value", 1]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 2990000000000005], ["value", 3]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 2980000000000005], ["value", 2]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 5], ["value", 4]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 5], ["value", 5]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:298 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:299 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:298 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:299 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:298 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:299 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:298 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [test:298 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [1:299 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:299 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [1:299 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (5) [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 6], ["value", 1]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 2990000000000006], ["value", 3]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 2980000000000006], ["value", 2]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 6], ["value", 4]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 6], ["value", 5]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:298 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:299 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:298 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:299 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:298 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:299 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:298 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) [test:298 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) [1:299 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:299 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) [1:299 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 7], ["value", 1]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 2990000000000007], ["value", 3]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 2980000000000007], ["value", 2]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 7], ["value", 4]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 7], ["value", 5]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:298 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:299 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:298 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:299 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:298 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:299 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [test:298 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (7) [test:298 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (7) [1:299 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [1:299 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (7) [1:299 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (7) [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.2ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 8], ["value", 1]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 2990000000000008], ["value", 3]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 2980000000000008], ["value", 2]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 8], ["value", 4]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 8], ["value", 5]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 8]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 9]] [test:298 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 10], ["value", 1]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 2990000000000009], ["value", 3]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 2980000000000010], ["value", 2]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 9], ["value", 4]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 9], ["value", 5]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:298 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:299 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:298 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:299 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:298 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:299 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:298 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [test:298 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (9) [1:299 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:299 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (9) [1:299 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 11], ["value", 1]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 2990000000000010], ["value", 3]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 2980000000000011], ["value", 2]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 10], ["value", 4]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 10], ["value", 5]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:298 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:299 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:298 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:299 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:298 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:299 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [test:298 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (11) [test:298 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [1:299 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [1:299 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [1:299 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (11) [test:298 master]  (0.2ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 12], ["value", 1]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 12], ["value", 2]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 11], ["value", 3]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 11], ["value", 4]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 11], ["value", 5]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 12]] [test:298 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [test:298 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 11]] [1:299 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [1:299 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (19, 20) [test:298 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (23, 24, 25) [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 13], ["value", 1]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 13], ["value", 2]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 12], ["value", 3]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 12], ["value", 4]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 12], ["value", 5]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.5ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 13]] [test:298 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [test:298 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 12]] [1:299 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [1:299 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (21, 22) [test:298 master]  (0.5ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (26, 27, 28) [1:299 master]  (0.2ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 14], ["value", 1]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 14], ["value", 2]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 13], ["value", 3]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 13], ["value", 4]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 13], ["value", 5]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 14]] [test:298 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [test:298 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 13]] [1:299 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [1:299 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (23, 24) [test:298 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (29, 30, 31) [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 15], ["value", 1]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 15], ["value", 2]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 14], ["value", 3]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 14], ["value", 4]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 14], ["value", 5]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 15]] [test:298 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [test:298 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 14]] [1:299 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [1:299 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (25, 26) [test:298 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (32, 33, 34) [1:299 master]  (0.2ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 16], ["value", 1]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 16], ["value", 2]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 15], ["value", 3]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 15], ["value", 4]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 15], ["value", 5]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 16]] [test:298 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [test:298 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 15]] [1:299 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [1:299 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (27, 28) [test:298 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (35, 36, 37) [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 297]] [test:297 master]  (0.3ms) COMMIT [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 298], ["name", "switchman_test_shard_298"]] [test:297 master]  (0.3ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 299], ["name", "switchman_test_shard_299"]] [test:297 master]  (0.3ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["parent_id", 17], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["parent_id", 18], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [test:298 master] User Exists (0.6ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 19 LIMIT 1 [["parent_id", 17]] [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["id", 19], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 298 LIMIT 1 [test:297 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [test:298 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 2990000000000019 LIMIT 1 [["parent_id", 17]] [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 20]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 17]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 299 LIMIT 1 [test:297 master]  (0.2ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 21]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 30]] [test:298 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 23]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 24]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.9ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 32], ["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 24], ["id", 1]] [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.2ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 26]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.4ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 26]] [test:298 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 26]] [test:298 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 26]] [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 27]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.6ms) INSERT INTO "digits" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 34], ["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["id", 2990000000000001], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 27], ["id", 2990000000000001]] [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.8ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 29]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 29], ["id", 35]] [test:298 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 26], ["id", 2980000000000035]] [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 30]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 32], ["value", 1]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 2980000000000032]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:36 UTC +00:00], ["user_id", 32], ["value", 2]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 32]] [test:298 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 32]] [test:298 master]  (0.6ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 2980000000000032]] [1:299 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 32]] [test:298 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 32]] [test:298 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 2980000000000032]] [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["user_id", 33], ["value", 1]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["user_id", 2980000000000033]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 33]] [test:298 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 2980000000000033]] [1:299 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 33]] [test:298 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 33]] [test:298 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 2980000000000033]] [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["user_id", 34], ["value", 1]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["user_id", 2980000000000034], ["value", 2]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 34]] [test:298 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 34]] [test:298 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 34]] [test:298 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 2980000000000034]] [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["user_id", 35]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 41], ["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:298 master]  (0.3ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 41], ["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["value", 1]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["user_id", 2980000000000035]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 42], ["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["value", 2]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 35]] [test:298 master]  (0.5ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 2980000000000035]] [1:299 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 35]] [test:298 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 35]] [test:298 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 2980000000000035]] [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.2ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["user_id", 36]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 42], ["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["user_id", 2980000000000036]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 43], ["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["value", 2]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 36]] [test:298 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 2980000000000036]] [1:299 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 36]] [test:298 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 36]] [test:298 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 2980000000000036]] [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["user_id", 37]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 43], ["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["user_id", 2980000000000037]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 44], ["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["value", 2]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 37]] [test:298 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 2980000000000037]] [1:299 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 37]] [test:298 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 37]] [test:298 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 2980000000000037]] [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["user_id", 38]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 44], ["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["value", 1]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["user_id", 2980000000000038]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 45], ["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["value", 2]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 38]] [test:298 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 38]] [test:298 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 38]] [test:298 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 2980000000000038]] [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.8ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["user_id", 2990000000000036]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master] Root Load (0.4ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 24]] [test:297 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 36]] [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["user_id", 2980000000000040]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["user_id", 2990000000000037]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["user_id", 536]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [test:297 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) [test:298 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [1:299 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (536) [test:297 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 40 [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["user_id", 41]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["user_id", 2980000000000041]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["user_id", 2990000000000038]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [test:298 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (41) [test:298 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (2980000000000041) [1:299 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38) [1:299 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (38) [1:299 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 45 [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["user_id", 42]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["user_id", 2980000000000042]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["user_id", 2980000000000042]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 47], ["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 47], ["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 2990000000000047], ["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 2990000000000048], ["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["user_id", 2990000000000039]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["user_id", 39]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["user_id", 39]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 2980000000000048], ["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 2990000000000049], ["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 50], ["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (42) [test:298 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (42) [test:298 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (2980000000000042) [1:299 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (47) [test:298 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (47, 48) [1:299 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) [1:299 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (39) [1:299 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (49, 50) [1:299 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [test:298 master]  (0.2ms) ROLLBACK [1:299 master]  (0.2ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.2ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 273], ["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 2970000000000273], ["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 273 ORDER BY "appendages"."id" ASC LIMIT 1 [test:297 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (273) [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["user_id", 2980000000000044]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 274], ["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["user_id", 2990000000000041]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 2980000000000049], ["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [test:297 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (274) [test:297 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (49) [test:298 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (44) [test:298 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [1:299 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 44 [test:298 master]  (0.2ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["owner_id", 275], ["owner_type", "Appendage"], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 24]] [test:297 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 275]] [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.4ms) UPDATE "features" SET "owner_id" = $1, "owner_type" = $2, "updated_at" = $3 WHERE "features"."id" = 24 [["owner_id", 2980000000000045], ["owner_type", "User"], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 24]] [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["owner_id", 46], ["owner_type", "User"], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["value", 1]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["owner_id", 2980000000000046], ["owner_type", "User"], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["value", 2]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 46], ["owner_type", "User"]] [test:298 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [test:298 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 46], ["owner_type", "User"]] [test:298 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 2980000000000046], ["owner_type", "User"]] [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["user_id", 2990000000000044]] [test:298 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:298 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 50]] [test:298 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 44]] [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 48]] [test:298 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["user_id", 48]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 51]] [test:298 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 48]] [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 297]] [test:297 master]  (0.3ms) COMMIT [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 298], ["name", "switchman_test_shard_298"]] [test:297 master]  (0.3ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 299], ["name", "switchman_test_shard_299"]] [test:297 master]  (0.3ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.2ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 297]] [test:297 master]  (0.4ms) COMMIT [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 298], ["name", "switchman_test_shard_298"]] [test:297 master]  (0.2ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 299], ["name", "switchman_test_shard_299"]] [test:297 master]  (0.3ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "3"]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.2ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "4"]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master] SQL (0.8ms) DELETE FROM "switchman_shards" [test:297 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Exists (1.0ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:297 master] SQL (0.5ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 297]] [test:297 master]  (0.3ms) COMMIT [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 298], ["name", "switchman_test_shard_298"]] [test:297 master]  (0.3ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 299], ["name", "switchman_test_shard_299"]] [test:297 master]  (0.2ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master] User Load (0.3ms) SELECT "users".* FROM "users" [test:298 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:297 master] SQL (0.2ms) DELETE FROM "users" [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:297 master] SQL (0.2ms) DELETE FROM "users" [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:297 master]  (0.3ms) COMMIT [test:297 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:297 master] SQL (0.8ms) DELETE FROM "users" [test:297 master] SQL (0.2ms) DELETE FROM "users" [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:297 master]  (0.3ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["name", "a"], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:297 master]  (0.3ms) COMMIT [test:297 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 543]] [test:297 master] CACHE (0.0ms) 297::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 543]] CACHE (0.0ms) 297::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 543]]  (0.1ms) BEGIN [test:297 master] SQL (0.4ms) UPDATE "users" SET "name" = $1, "updated_at" = $2 WHERE "users"."id" = 543 [["name", "b"], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:297 master]  (0.3ms) COMMIT [test:297 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 543]] [test:297 master] CACHE (0.0ms) 297::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 543]] SQL (0.4ms) DELETE FROM "users" [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:297 master]  (0.3ms) COMMIT [test:297 master] User Load (0.3ms) SELECT "users".* FROM "users" [test:297 master] SQL (0.4ms) DELETE FROM "users" [test:297 master] SQL (0.1ms) DELETE FROM "users" [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:297 master]  (0.3ms) COMMIT [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:297 master]  (0.3ms) COMMIT [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:297 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:41:37.777250' [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:297 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:41:37.783438' [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:297 master]  (0.3ms) COMMIT [test:297 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:297 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:41:37.787491' [test:297 master] SQL (0.3ms) DELETE FROM "users" [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [test:297 master]  (0.3ms) COMMIT [test:297 master] User Load (0.3ms) SELECT "users".* FROM "users" [test:297 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:41:37.792278' [test:297 master] SQL (0.4ms) DELETE FROM "users" [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.2ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Exists (0.4ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 297]] [test:297 master]  (0.3ms) COMMIT [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 298], ["name", "switchman_test_shard_298"]] [test:297 master]  (0.2ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 299], ["name", "switchman_test_shard_299"]] [test:297 master]  (0.2ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '13' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "13"]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) begin transaction [13:304 deploy]  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [13:304 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [13:304 deploy] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" [13:304 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (0.2ms) CREATE TABLE "switchman_shards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "database_server_id" varchar(255), "default" boolean DEFAULT 'f' NOT NULL)  [13:304 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130328212039"]] [13:304 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130328224244"]] [13:304 deploy] Migrating to CreateUsers (20130403132607)  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime, "updated_at" datetime) [13:304 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130403132607"]] [13:304 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [13:304 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202442"]] [13:304 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [13:304 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202551"]] [13:304 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [13:304 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131022202028"]] [13:304 deploy] Migrating to CreateFeatures (20131206172923)  (0.2ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime, "updated_at" datetime) [13:304 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131206172923"]] [13:304 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD "parent_id" integer(8) [13:304 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140123154135"]] [13:304 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [13:304 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219183820"]] [13:304 deploy]  (0.9ms) commit transaction [13:304 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.4ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 304 [["name", "db/shard_304.sqlite3"]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) begin transaction [13:304 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 27 May 2015 16:41:37 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:37 UTC +00:00]] [13:304 master]  (0.6ms) commit transaction [13:304 master] Drop failed: No such file or directory @ unlink_internal - db/shard_304.sqlite3  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 304]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '14' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "14"], ["name", "public"]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (7.0ms) CREATE SCHEMA switchman_test_shard_305 [14:305 deploy]  (0.1ms) BEGIN [14:305 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [14:305 deploy]  (6.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [14:305 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [14:305 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (14.3ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [14:305 deploy] SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [14:305 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [14:305 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [14:305 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [14:305 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [14:305 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [14:305 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [14:305 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [14:305 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [14:305 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [14:305 deploy] Migrating to CreateFeatures (20131206172923)  (2.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [14:305 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [14:305 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [14:305 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [14:305 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [14:305 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [14:305 deploy]  (0.8ms) COMMIT [14:305 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 305 [["name", "switchman_test_shard_305"]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) BEGIN [14:305 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [14:305 master]  (0.3ms) COMMIT [14:305 master]  (5.2ms) DROP SCHEMA switchman_test_shard_305 CASCADE [14:305 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 305]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [test:297 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_306 [test:306 deploy]  (0.1ms) SAVEPOINT active_record_2 [test:306 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [test:306 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:306 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:306 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.9ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [test:306 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:306 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:306 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:306 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:306 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:306 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:306 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:306 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:306 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:306 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:306 deploy] Migrating to CreateFeatures (20131206172923)  (2.3ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:306 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:306 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:306 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:306 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:306 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:306 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_2 [test:306 deploy] SQL (0.4ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 306 [["name", "switchman_test_shard_306"]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:306 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:306 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:306 master]  (3.1ms) DROP SCHEMA switchman_test_shard_306 CASCADE [test:306 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 306]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (2.6ms) ROLLBACK [test:297 master] SQL (0.6ms) DELETE FROM "switchman_shards" [test:297 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:297 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 297]] [test:297 master]  (0.3ms) COMMIT [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 298], ["name", "switchman_test_shard_298"]] [test:297 master]  (0.2ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 299], ["name", "switchman_test_shard_299"]] [test:297 master]  (0.4ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.0ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:42:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:42:38 UTC +00:00]] [test:298 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.0ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:297 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.2ms) BEGIN [test:297 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:297 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 297]] [test:297 master]  (0.3ms) COMMIT [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 298], ["name", "switchman_test_shard_298"]] [test:297 master]  (0.3ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 299], ["name", "switchman_test_shard_299"]] [test:297 master]  (0.3ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.6ms) INSERT INTO "roots" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 298 LIMIT 1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master] SQL (5.6ms) DELETE FROM "switchman_shards" [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 297]] [test:297 master]  (4.4ms) COMMIT [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 298], ["name", "switchman_test_shard_298"]] [test:297 master]  (0.3ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 299], ["name", "switchman_test_shard_299"]] [test:297 master]  (0.3ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 555]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 55]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 46]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 556]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 56]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 47]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 557]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 57]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 48]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 558]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 58]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 49]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 559]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 59]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 50]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 560]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 60]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 51]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 561]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 61]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 52]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 298 LIMIT 1 [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.2ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 562]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 62]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 53]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 563]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 63]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 54]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 564]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 64]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 55]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["parent_id", 564], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["parent_id", 565], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 565]] [test:297 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 564]] [test:297 master] User Load (0.5ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 [["parent_id", 564]] [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 567]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.2ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 65]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 56]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.2ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 568]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 66]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 57]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 569]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 67]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 58]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.2ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 570]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 68]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 59]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 571]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 69]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 60]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 572]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 70]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["user_id", 61]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 297]] [test:297 master]  (0.3ms) COMMIT [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 298], ["name", "switchman_test_shard_298"]] [test:297 master]  (0.3ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 299], ["name", "switchman_test_shard_299"]] [test:297 master]  (0.3ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 71 ORDER BY "users"."id" ASC LIMIT 1 [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 298 LIMIT 1 [test:297 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (574) [test:297 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 74 [test:298 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 576]] [test:297 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 74]] [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["name", "user1"], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["name", "user2"], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (577) [test:297 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (75) [test:298 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 577]] [test:297 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 75]] [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 297]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 298], ["name", "switchman_test_shard_298"]]  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 299], ["name", "switchman_test_shard_299"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master] SQL (0.3ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 297]]  (0.2ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 298], ["name", "switchman_test_shard_298"]]  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 299], ["name", "switchman_test_shard_299"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["owner_id", 579], ["owner_type", "User"], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master] Feature Load (0.3ms) SELECT owner_id FROM "features" WHERE "features"."id" = 25 ORDER BY "features"."id" ASC LIMIT 1 [test:297 master]  (0.2ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 298 LIMIT 1 Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 299 LIMIT 1  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK SQL (6.1ms) DELETE FROM "switchman_shards" [test:297 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 297]]  (5.5ms) COMMIT Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 298], ["name", "switchman_test_shard_298"]]  (4.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 299], ["name", "switchman_test_shard_299"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "switchman_shards" [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 297]] [test:297 master]  (0.3ms) COMMIT [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 298], ["name", "switchman_test_shard_298"]] [test:297 master]  (0.2ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 299], ["name", "switchman_test_shard_299"]] [test:297 master]  (0.2ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (298,299)) AND "switchman_shards"."id" IN (297, 298) [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master] SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN  (0.2ms) SELECT COUNT(*) FROM "switchman_shards"  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:297 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:297 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 297]] [test:297 master]  (0.3ms) COMMIT [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 298], ["name", "switchman_test_shard_298"]] [test:297 master]  (0.2ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 299], ["name", "switchman_test_shard_299"]] [test:297 master]  (0.2ms) COMMIT [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master]  (0.5ms) SELECT COUNT(*) FROM "users" [1:299 master]  (0.1ms) SAVEPOINT active_record_2 [1:299 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [1:299 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.2ms) SELECT COUNT(*) FROM "users" [1:299 master]  (0.1ms) ROLLBACK [1:299 master] SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 297]]  (0.2ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 298], ["name", "switchman_test_shard_298"]]  (0.4ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 299], ["name", "switchman_test_shard_299"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK SQL (0.3ms) DELETE FROM "switchman_shards" [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:297 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 297]] [test:297 master]  (0.2ms) COMMIT [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 298], ["name", "switchman_test_shard_298"]] [test:297 master]  (0.3ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 299], ["name", "switchman_test_shard_299"]] [test:297 master]  (0.3ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master] MirrorUser Load (0.4ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 13]] [test:297 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 13]] [test:297 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 13 ORDER BY "mirror_users"."id" ASC LIMIT 1 [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK SQL (0.4ms) DELETE FROM "switchman_shards" [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 297]] [test:297 master]  (0.3ms) COMMIT [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 298], ["name", "switchman_test_shard_298"]] [test:297 master]  (0.3ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 299], ["name", "switchman_test_shard_299"]] [test:297 master]  (0.2ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=298)) ORDER BY "switchman_shards"."id" ASC [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]]  (0.1ms) BEGIN [1:299 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=298 AND id<=298)) AND (id NOT IN (297))  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=297 AND id<=298)) AND (id NOT IN (297)) [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (297)) [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]]  (0.1ms) BEGIN [1:299 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=297 AND id<298) OR (id>=299 AND id<300)) ORDER BY "switchman_shards"."id" ASC  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (297)) [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]]  (0.1ms) BEGIN [1:299 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=297 AND id<=298)) ORDER BY "switchman_shards"."id" ASC  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=298)) ORDER BY "switchman_shards"."id" ASC [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]]  (0.1ms) BEGIN [1:299 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=297 AND id<298))  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (297)) [test:297 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master] SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 297]]  (0.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 298], ["name", "switchman_test_shard_298"]]  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 299], ["name", "switchman_test_shard_299"]]  (0.2ms) COMMIT  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:298 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 298 LIMIT 1 [test:297 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 76]] [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 77]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2980000000000077 ORDER BY "users"."id" ASC LIMIT 1 [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 78 LIMIT 1 [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [1:299 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["name", "multi-shard exists"], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [1:299 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:299 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:297 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [test:297 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 80 LIMIT 1 [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:38 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:38 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (81) LIMIT 1 [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "15"], ["name", "non_existent_shard"]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "15"]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.4ms) SELECT COUNT(*) FROM "users" [15:307 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.6ms) SELECT COUNT(*) FROM "users" [15:308 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "16"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "17"]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.2ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "18"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "19"]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "20"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "21"]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 297]]  (0.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 298], ["name", "switchman_test_shard_298"]]  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 299], ["name", "switchman_test_shard_299"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]]  (0.1ms) BEGIN [1:299 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 298 LIMIT 1  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 315]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]]  (0.1ms) BEGIN [1:299 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 316]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 316 LIMIT 1 [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]]  (0.1ms) BEGIN [1:299 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 297  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master]  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]]  (0.1ms) BEGIN [1:299 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]]  (0.1ms) BEGIN [1:299 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 299 LIMIT 1 [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.2ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10299 LIMIT 1 [test:297 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '23' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "23"], ["name", "public"]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_317 [23:317 deploy]  (0.1ms) BEGIN [23:317 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [23:317 deploy]  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [23:317 deploy] ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" [23:317 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.6ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [23:317 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [23:317 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [23:317 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [23:317 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [23:317 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [23:317 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [23:317 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [23:317 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [23:317 deploy] Migrating to CreateDigits (20131022202028)  (2.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [23:317 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [23:317 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [23:317 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [23:317 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [23:317 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [23:317 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [23:317 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [23:317 deploy]  (0.8ms) COMMIT [23:317 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 317 [["name", "switchman_test_shard_317"]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) BEGIN [23:317 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:39 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:39 UTC +00:00]] [23:317 master]  (0.3ms) COMMIT [23:317 master]  (0.2ms) SELECT COUNT(*) FROM "users" [23:317 master]  (5.1ms) DROP SCHEMA switchman_test_shard_317 CASCADE [23:317 deploy]  (0.4ms) SELECT COUNT(*) FROM "users" [23:317 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:297 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "24"]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) SAVEPOINT active_record_1 [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "24"]] [test:297 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:297 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master]  (0.1ms) ROLLBACK [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:297 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 297]] [test:297 master]  (0.4ms) COMMIT [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 298], ["name", "switchman_test_shard_298"]] [test:297 master]  (0.3ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 299], ["name", "switchman_test_shard_299"]] [test:297 master]  (0.3ms) COMMIT [test:297 master]  (0.1ms) BEGIN [test:297 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 298]] [test:297 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 299]] [test:297 master]  (0.1ms) BEGIN [1:299 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:39 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:39 UTC +00:00]] [test:298 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:298 master]  (0.1ms) SAVEPOINT active_record_1 [test:298 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [test:298 master]  (0.1ms) ROLLBACK [1:299 master]  (0.1ms) ROLLBACK [test:298 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:297 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:297 master]  (5.6ms) DROP SCHEMA switchman_test_shard_298 CASCADE [test:298 deploy]  (0.1ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 298]]  (0.1ms) COMMIT  (6.7ms) DROP SCHEMA switchman_test_shard_299 CASCADE [1:299 deploy]  (0.3ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 299]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.9ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.5ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_321 [test:321 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:321 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:321 deploy]  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:321 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [test:321 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.9ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:321 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [test:321 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [test:321 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:321 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [test:321 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:321 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [test:321 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:321 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [test:321 deploy] Migrating to CreateDigits (20131022202028)  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:321 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [test:321 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:321 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [test:321 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:321 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [test:321 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:321 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [test:321 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_321' WHERE "switchman_shards"."id" = 321 [test:320 master]  (0.9ms) COMMIT [test:320 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [test:320 master]  (0.3ms) COMMIT [test:320 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_322 [1:322 deploy]  (0.1ms) BEGIN [1:322 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:322 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:322 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [1:322 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (4.5ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:322 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [1:322 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [1:322 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:322 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [1:322 deploy] Migrating to CreateAppendages (20130411202442)  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:322 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [1:322 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:322 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [1:322 deploy] Migrating to CreateDigits (20131022202028)  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:322 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [1:322 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:322 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [1:322 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:322 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [1:322 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:322 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [1:322 deploy]  (0.8ms) COMMIT [1:322 deploy]  (0.1ms) BEGIN [test:320 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_322' WHERE "switchman_shards"."id" = 322 [test:320 master]  (0.3ms) COMMIT [test:320 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 320], ["name", nil]] [test:320 master]  (0.3ms) COMMIT [test:320 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 321], ["name", "switchman_test_shard_321"]] [test:320 master]  (0.3ms) COMMIT [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 322], ["name", "switchman_test_shard_322"]] [test:320 master]  (0.4ms) COMMIT [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (1.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:54 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:54 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:54 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:321 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:54 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (1.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:54 UTC +00:00]] [test:320 master]  (0.4ms) COMMIT [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:54 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master] User Load (0.3ms) SELECT "users".* FROM "users" [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:54 UTC +00:00]] [test:320 master]  (0.4ms) COMMIT [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:54 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:320 master] SQL (0.1ms) DELETE FROM "users" [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:54 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:320 master] SQL (0.1ms) DELETE FROM "users" [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:54 UTC +00:00]] [test:320 master]  (0.3ms) COMMIT [test:320 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:320 master] SQL (0.5ms) DELETE FROM "users" [test:320 master] SQL (0.1ms) DELETE FROM "users" [test:320 master]  (0.0ms) BEGIN [test:320 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:54 UTC +00:00]] [test:320 master]  (0.2ms) COMMIT [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:54 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:54 UTC +00:00]] [test:320 master]  (0.3ms) COMMIT [test:320 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 589]] [test:320 master] CACHE (0.0ms) 320::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 589]] CACHE (0.0ms) 320::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 589]]  (0.1ms) BEGIN [test:320 master]  (0.3ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2015-05-27 16:41:54.992749' WHERE "users"."id" = 589 [test:320 master]  (0.3ms) COMMIT [test:320 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 589]] [test:320 master] CACHE (0.0ms) 320::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 589]] SQL (0.5ms) DELETE FROM "users" [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:54 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:54 UTC +00:00]] [test:320 master]  (0.3ms) COMMIT [test:320 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:320 master] SQL (0.3ms) DELETE FROM "users" [test:320 master] SQL (0.1ms) DELETE FROM "users" [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master] User Load (0.1ms) SELECT "users".* FROM "users"  [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.0ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master] User Load (0.1ms) SELECT "users".* FROM "users"  [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:320 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:41:55.043474' [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:320 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:41:55.049878' [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:320 master]  (0.3ms) COMMIT [test:320 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:320 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:41:55.053621' [test:320 master] SQL (0.3ms) DELETE FROM "users" [test:320 master]  (0.0ms) BEGIN [test:320 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:320 master]  (0.3ms) COMMIT [test:320 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:320 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:41:55.057703' [test:320 master] SQL (0.3ms) DELETE FROM "users" [test:320 master] SQL (1.0ms) DELETE FROM "switchman_shards" [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 320], ["name", nil]] [test:320 master]  (0.3ms) COMMIT [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.0ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 321], ["name", "switchman_test_shard_321"]] [test:320 master]  (0.2ms) COMMIT [test:320 master]  (0.0ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 322], ["name", "switchman_test_shard_322"]] [test:320 master]  (0.2ms) COMMIT [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (320, 321) AND (id IN (321,322)) [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 320], ["name", nil]] [test:320 master]  (0.2ms) COMMIT [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 321], ["name", "switchman_test_shard_321"]] [test:320 master]  (0.3ms) COMMIT [test:320 master]  (0.0ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 322], ["name", "switchman_test_shard_322"]] [test:320 master]  (0.2ms) COMMIT [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 3], ["value", 1]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 3], ["value", 2]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 1], ["value", 3]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 1], ["value", 4]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 1], ["value", 5]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 3 [test:321 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [test:321 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 1 [1:322 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [1:322 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 321 LIMIT 1 [test:320 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 322 LIMIT 1 [test:320 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (1, 2) [test:321 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (1, 2, 3) [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 4], ["value", 1]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 4], ["value", 2]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 2], ["value", 3]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 2], ["value", 4]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 2], ["value", 5]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 4 [test:321 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [test:321 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 2 [1:322 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [1:322 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (3, 4) [test:321 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (4, 5, 6) [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 5], ["value", 1]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 5], ["value", 2]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 3], ["value", 3]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 3], ["value", 4]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 3], ["value", 5]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 5 [test:321 master]  (0.1ms) SELECT COUNT(*) FROM "appendages"  [test:321 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 3 [1:322 master]  (0.1ms) SELECT COUNT(*) FROM "appendages"  [1:322 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (5, 6) [test:321 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (7, 8, 9) [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 6], ["value", 1]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 6], ["value", 2]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 4], ["value", 3]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 4], ["value", 4]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 4], ["value", 5]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 6 [test:321 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [test:321 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 4 [1:322 master]  (0.1ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [1:322 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (7, 8) [test:321 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (10, 11, 12) [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 7], ["value", 1]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 7], ["value", 2]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 5], ["value", 3]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 5], ["value", 4]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 5], ["value", 5]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 7 [test:321 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [test:321 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 5 [1:322 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [1:322 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (9, 10) [test:321 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (13, 14, 15) [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 8], ["value", 1]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 3220000000000006], ["value", 3]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 3210000000000008], ["value", 2]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 6], ["value", 4]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 6], ["value", 5]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 8], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 9], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.2ms) SHOW max_identifier_length [test:321 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 10], ["value", 1]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 3220000000000007], ["value", 3]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 3210000000000010], ["value", 2]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 7], ["value", 4]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 7], ["value", 5]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:321 master]  (0.4ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:322 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:321 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:322 master]  (0.1ms) SHOW max_identifier_length [1:322 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:321 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:322 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:321 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [test:321 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (7) [1:322 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:322 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (7) [1:322 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 11], ["value", 1]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 3220000000000008], ["value", 3]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 3210000000000011], ["value", 2]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 8], ["value", 4]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 8], ["value", 5]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:321 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:322 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:321 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:322 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:321 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:322 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:321 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (11) [test:321 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (8) [1:322 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:322 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (8) [1:322 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (11) [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 12], ["value", 1]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 3220000000000009], ["value", 3]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 3210000000000012], ["value", 2]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 9], ["value", 4]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 9], ["value", 5]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:321 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:322 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:321 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:322 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:321 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:322 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [test:321 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (12) [test:321 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (9) [1:322 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [1:322 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (9) [1:322 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (12) [test:321 master]  (0.2ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 13], ["value", 1]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 3220000000000010], ["value", 3]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 3210000000000013], ["value", 2]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 10], ["value", 4]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 10], ["value", 5]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:321 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:322 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:321 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:322 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:321 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:322 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [test:321 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (13) [test:321 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [1:322 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [1:322 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [1:322 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (13) [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 14], ["value", 1]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 3220000000000011], ["value", 3]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 3210000000000014], ["value", 2]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 11], ["value", 4]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 11], ["value", 5]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:321 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:322 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:321 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:322 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:321 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:322 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:321 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (14) [test:321 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (11) [1:322 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:322 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (11) [1:322 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (14) [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 15], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 12], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 25 [test:321 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 34 [1:322 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 25 [test:321 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 34 [1:322 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 25 [test:321 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 34 [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 16], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 13], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master] SQL (0.4ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 26 [test:321 master] SQL (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 35 [1:322 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 26 [test:321 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 35 [1:322 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 26 [test:321 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 35 [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 17], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 14], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (17) [test:321 master] SQL (0.3ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (14) [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 18], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 15], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master] SQL (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (595) [test:320 master] SQL (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (18) [test:321 master] SQL (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (15) [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 320], ["name", nil]] [test:320 master]  (0.2ms) COMMIT [test:320 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 321], ["name", "switchman_test_shard_321"]] [test:320 master]  (0.3ms) COMMIT [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 322], ["name", "switchman_test_shard_322"]] [test:320 master]  (0.2ms) COMMIT [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", nil], ["value", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 321 LIMIT 1 [test:320 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 322 LIMIT 1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["owner_id", 596], ["owner_type", "User"], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["value", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 26 LIMIT 1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master] SQL (4.6ms) DELETE FROM "switchman_shards" [test:320 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 320], ["name", nil]] [test:320 master]  (0.3ms) COMMIT [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 321], ["name", "switchman_test_shard_321"]] [test:320 master]  (0.3ms) COMMIT [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 322], ["name", "switchman_test_shard_322"]] [test:320 master]  (0.2ms) COMMIT [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:42:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:42:55 UTC +00:00]] [test:321 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.0ms) ROLLBACK [1:322 master]  (0.0ms) ROLLBACK [test:321 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 320], ["name", nil]] [test:320 master]  (0.3ms) COMMIT [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 321], ["name", "switchman_test_shard_321"]] [test:320 master]  (0.2ms) COMMIT [test:320 master]  (0.0ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 322], ["name", "switchman_test_shard_322"]] [test:320 master]  (0.2ms) COMMIT [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 321 LIMIT 1 [test:320 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 20 LIMIT 1 [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) LIMIT 1 [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 22]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3210000000000022 LIMIT 1 [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 23]] [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 24 LIMIT 1 [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:320 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [test:320 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 320], ["name", nil]] [test:320 master]  (0.4ms) COMMIT [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 321], ["name", "switchman_test_shard_321"]] [test:320 master]  (0.4ms) COMMIT [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 322], ["name", "switchman_test_shard_322"]] [test:320 master]  (0.3ms) COMMIT [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 320], ["name", nil]] [test:320 master]  (0.3ms) COMMIT [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 321], ["name", "switchman_test_shard_321"]] [test:320 master]  (0.4ms) COMMIT [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 322], ["name", "switchman_test_shard_322"]] [test:320 master]  (0.2ms) COMMIT [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master]  (0.2ms) SELECT COUNT(*) FROM "users" [1:322 master]  (0.1ms) SAVEPOINT active_record_2 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [1:322 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.2ms) SELECT COUNT(*) FROM "users" [1:322 master]  (0.1ms) ROLLBACK [1:322 master] SQL (0.6ms) DELETE FROM "switchman_shards" [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards"  [test:320 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 320], ["name", nil]] [test:320 master]  (0.3ms) COMMIT [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.0ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 321], ["name", "switchman_test_shard_321"]] [test:320 master]  (0.2ms) COMMIT [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 322], ["name", "switchman_test_shard_322"]] [test:320 master]  (0.3ms) COMMIT [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 321 LIMIT 1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 325]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 325 LIMIT 1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.0ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 326]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 322 LIMIT 1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10322 LIMIT 1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '3' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", "public"]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (6.5ms) CREATE SCHEMA switchman_test_shard_327 [3:327 deploy]  (0.1ms) BEGIN [3:327 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [3:327 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [3:327 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [3:327 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.9ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [3:327 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [3:327 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [3:327 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [3:327 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [3:327 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [3:327 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [3:327 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [3:327 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [3:327 deploy] Migrating to CreateDigits (20131022202028)  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [3:327 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [3:327 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [3:327 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [3:327 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [3:327 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [3:327 deploy] Migrating to CreateRoots (20140219183820)  (2.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [3:327 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [3:327 deploy]  (0.7ms) COMMIT [3:327 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:320 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_327' WHERE "switchman_shards"."id" = 327 [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) BEGIN [3:327 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [3:327 master]  (0.3ms) COMMIT [3:327 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [3:327 master]  (5.2ms) DROP SCHEMA switchman_test_shard_327 CASCADE [3:327 deploy]  (0.4ms) SELECT COUNT(*) FROM "users"  [3:327 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.0ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.0ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.0ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 320 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY id [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.0ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 320], ["name", nil]] [test:320 master]  (0.3ms) COMMIT [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.0ms) BEGIN [test:320 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 321], ["name", "switchman_test_shard_321"]] [test:320 master]  (0.3ms) COMMIT [test:320 master]  (0.0ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 322], ["name", "switchman_test_shard_322"]] [test:320 master]  (0.2ms) COMMIT [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 26], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 27], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 26]] [test:321 master]  (0.3ms) SHOW max_identifier_length [test:321 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 26 AND "users"."id" = 28 LIMIT 1 [test:321 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 321 LIMIT 1 [test:320 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 26]] [test:321 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 26 AND "users"."id" = 3220000000000020 LIMIT 1 [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 29], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 29]] [test:321 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 29 LIMIT 1 [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.0ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 31], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 23], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 322 LIMIT 1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 32], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.9ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 31], ["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 32 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:55 UTC +00:00], ["user_id", 33], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 33 AND "appendages"."id" = $1 LIMIT 1 [["id", 32]] [test:321 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 25 AND "appendages"."id" = $1 LIMIT 1 [["id", 3210000000000032]] [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.0ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 34], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", nil]] [test:321 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 36], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.0ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 38], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 38 [test:321 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 38]] [test:321 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 38 [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.0ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 39], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", nil], ["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["appendage_id", 36], ["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["id", 3220000000000001], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 39 AND "digits"."id" = $1 LIMIT 1 [["id", 3220000000000001]] [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.0ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 41], ["value", 1]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 3210000000000041], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 41 AND "appendages"."value" IS NULL [test:321 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 3210000000000041 AND "appendages"."value" IS NULL [1:322 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]] [test:321 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 41 AND "appendages"."value" IS NULL [test:321 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 3210000000000041 AND "appendages"."value" IS NULL [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 42], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 38], ["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 3210000000000042], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 40], ["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["value", 2]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 42 AND "digits"."value" IS NULL [test:321 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3210000000000042 AND "digits"."value" IS NULL [1:322 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 42]] [test:321 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 42 AND "digits"."value" IS NULL [test:321 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3210000000000042 AND "digits"."value" IS NULL [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 43], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 39], ["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 39], ["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["value", 1]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 3210000000000043], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 41], ["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["value", 2]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.5ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 43 AND (digits.value IS NOT NULL) [test:321 master]  (0.5ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3210000000000043 AND (digits.value IS NOT NULL) [1:322 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 43]] [test:321 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 43 AND (digits.value IS NOT NULL) [test:321 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3210000000000043 AND (digits.value IS NOT NULL) [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 44], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 40], ["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 3210000000000044], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 42], ["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["value", 2]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 44 AND "digits"."value" IS NULL [test:321 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3210000000000044 AND "digits"."value" IS NULL [1:322 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 44]] [test:321 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 44 AND "digits"."value" IS NULL [test:321 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3210000000000044 AND "digits"."value" IS NULL [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 45], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 41], ["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["value", 1]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 3210000000000045], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 43], ["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["value", 2]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 45 [test:321 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 45]] [test:321 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 45 [test:321 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 3210000000000045 [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 46], ["value", 1]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 3210000000000046], ["value", 2]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 46 [test:321 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [test:321 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 46 [test:321 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 3210000000000046 [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 47], ["value", 1]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 3210000000000047], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 47], ["value", 2]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 47]] [test:321 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 47 AND (appendages.value IS NOT NULL) [test:321 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 3210000000000047 AND (appendages.value IS NOT NULL) [1:322 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 47]] [test:321 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 47 AND (appendages.value IS NOT NULL) [test:321 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 3210000000000047 AND (appendages.value IS NOT NULL) [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 3220000000000040], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 45]] [test:321 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 40 LIMIT 1 [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.0ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", nil], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 49 LIMIT 1 [test:321 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 49], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 46]] [test:321 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 49 LIMIT 1 [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.0ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", nil], ["value", nil]] [test:320 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 294], ["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["value", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3200000000000294], ["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 294 LIMIT 1 [test:320 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (294) [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 51], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 3210000000000051], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 3220000000000043], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (51) [test:321 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (51) [test:321 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (3210000000000051) [1:322 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) [1:322 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (43) [1:322 master] SQL (0.1ms) DELETE FROM "appendages" WHERE "appendages"."id" = 47 [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 3210000000000052], ["value", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 295], ["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["value", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 3220000000000044], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3210000000000049], ["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["value", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits"  [test:320 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (295) [test:320 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (49) [test:321 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (52) [test:321 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (44) [1:322 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 52 [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 3210000000000053], ["value", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 3220000000000045], ["value", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 598], ["value", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [test:320 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (53) [test:321 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [1:322 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (598) [test:320 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 53 [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 54], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 3210000000000054], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 3210000000000054], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 50], ["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 48], ["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3220000000000048], ["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3220000000000049], ["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 3220000000000046], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 46], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 46], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3210000000000051], ["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3220000000000050], ["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 51], ["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (54) [test:321 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (54) [test:321 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (3210000000000054) [1:322 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (50) [test:321 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (48, 49) [1:322 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (46) [1:322 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (46) [1:322 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (50, 51) [1:322 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 8 [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 3220000000000047]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 26]] [test:320 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 47 LIMIT 1 [1:322 master]  (0.2ms) ROLLBACK [1:322 master]  (0.2ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", nil], ["value", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["owner_id", 299], ["owner_type", "Appendage"], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["value", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 27]] [test:320 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 299 LIMIT 1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master]  (0.2ms) UPDATE "features" SET "owner_id" = 3210000000000056, "owner_type" = 'User', "updated_at" = '2015-05-27 16:41:56.378770' WHERE "features"."id" = 27 [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 27]] [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["owner_id", 57], ["owner_type", "User"], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["value", 1]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.8ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["owner_id", 3210000000000057], ["owner_type", "User"], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["value", 2]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 57 AND "features"."owner_type" = 'User' [test:321 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 57]] [test:321 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 57 AND "features"."owner_type" = 'User' [test:321 master] Feature Load (0.6ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 3210000000000057 AND "features"."owner_type" = 'User' [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 320], ["name", nil]] [test:320 master]  (0.3ms) COMMIT [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 321], ["name", "switchman_test_shard_321"]] [test:320 master]  (0.3ms) COMMIT [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 322], ["name", "switchman_test_shard_322"]] [test:320 master]  (0.3ms) COMMIT [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 320], ["name", nil]] [test:320 master]  (0.3ms) COMMIT [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.0ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 321], ["name", "switchman_test_shard_321"]] [test:320 master]  (0.2ms) COMMIT [test:320 master]  (0.0ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 322], ["name", "switchman_test_shard_322"]] [test:320 master]  (0.2ms) COMMIT [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 58 [test:321 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 599]] [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 321 LIMIT 1 [test:320 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 58]] [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (600) [test:320 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (59) [test:321 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 600]] [test:320 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 59]] [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 61 LIMIT 1 [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (603) [test:320 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (62) [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 320], ["name", nil]] [test:320 master]  (0.3ms) COMMIT [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 321], ["name", "switchman_test_shard_321"]] [test:320 master]  (0.2ms) COMMIT [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 322], ["name", "switchman_test_shard_322"]] [test:320 master]  (0.2ms) COMMIT [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 14]] [test:320 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 14]] [test:320 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 14 LIMIT 1 [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 320], ["name", nil]] [test:320 master]  (0.3ms) COMMIT [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.0ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 321], ["name", "switchman_test_shard_321"]] [test:320 master]  (0.2ms) COMMIT [test:320 master]  (0.0ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 322], ["name", "switchman_test_shard_322"]] [test:320 master]  (0.2ms) COMMIT [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 321 LIMIT 1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", nil], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", nil], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.0ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 320], ["name", nil]] [test:320 master]  (0.2ms) COMMIT [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.0ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 321], ["name", "switchman_test_shard_321"]] [test:320 master]  (0.3ms) COMMIT [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 322], ["name", "switchman_test_shard_322"]] [test:320 master]  (0.3ms) COMMIT [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) ROLLBACK [1:322 master]  (0.0ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master] SQL (1.0ms) DELETE FROM "switchman_shards" [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 320], ["name", nil]] [test:320 master]  (0.4ms) COMMIT [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.0ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 321], ["name", "switchman_test_shard_321"]] [test:320 master]  (0.2ms) COMMIT [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 322], ["name", "switchman_test_shard_322"]] [test:320 master]  (0.2ms) COMMIT [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 607], ["value", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 66], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (1.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 50], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 608], ["value", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 67], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 51], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 321 LIMIT 1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 609], ["value", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 68], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 52], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 610], ["value", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 69], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 53], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 611], ["value", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 70], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 54], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 612], ["value", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 71], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 55], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 613], ["value", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 72], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 56], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 614], ["value", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 73], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 57], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 615], ["value", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 74], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 58], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 616], ["value", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 75], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 59], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 617], ["value", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 76], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 60], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 618], ["value", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 77], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 61], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 619], ["value", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 78], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 62], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 620], ["value", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 79], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 63], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 621], ["value", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 80], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 64], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 622], ["value", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 81], ["value", nil]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [1:322 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["user_id", 65], ["value", nil]] [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:322 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 622], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 623], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 623]] [test:320 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 622 LIMIT 1 [test:320 master]  (0.1ms) SHOW max_identifier_length [test:320 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 622 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.0ms) BEGIN [test:320 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 320], ["name", nil]] [test:320 master]  (0.3ms) COMMIT [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 321], ["name", "switchman_test_shard_321"]] [test:320 master]  (0.2ms) COMMIT [test:320 master]  (0.0ms) BEGIN [test:320 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 322], ["name", "switchman_test_shard_322"]] [test:320 master]  (0.2ms) COMMIT [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 320], ["name", nil]] [test:320 master]  (0.3ms) COMMIT [test:320 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 321], ["name", "switchman_test_shard_321"]] [test:320 master]  (0.3ms) COMMIT [test:320 master]  (0.0ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 322], ["name", "switchman_test_shard_322"]] [test:320 master]  (0.3ms) COMMIT [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) SAVEPOINT active_record_1 [test:321 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:56 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:56 UTC +00:00]] [test:321 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:321 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:321 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master]  (0.0ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master]  (0.0ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master]  (0.0ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master]  (0.0ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master]  (0.0ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 320], ["name", nil]] [test:320 master]  (0.4ms) COMMIT [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 321], ["name", "switchman_test_shard_321"]] [test:320 master]  (0.3ms) COMMIT [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 322], ["name", "switchman_test_shard_322"]] [test:320 master]  (0.2ms) COMMIT [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '19' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "19"], ["default", false], ["name", "public"]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_332 [19:332 deploy]  (0.1ms) BEGIN [19:332 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [19:332 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [19:332 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [19:332 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.3ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [19:332 deploy]  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [19:332 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [19:332 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [19:332 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [19:332 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [19:332 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [19:332 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [19:332 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [19:332 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [19:332 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [19:332 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [19:332 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [19:332 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [19:332 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [19:332 deploy] Migrating to CreateRoots (20140219183820)  (2.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [19:332 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [19:332 deploy]  (0.7ms) COMMIT [19:332 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:320 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_332' WHERE "switchman_shards"."id" = 332 [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) BEGIN [19:332 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:57 UTC +00:00]] [19:332 master]  (0.4ms) COMMIT [19:332 master]  (5.3ms) DROP SCHEMA switchman_test_shard_332 CASCADE [19:332 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 332]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '20' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "20"], ["default", false], ["name", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) select sqlite_version(*) [20:333 deploy]  (0.0ms) begin transaction [20:333 deploy]  (0.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [20:333 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [20:333 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [20:333 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (0.2ms) CREATE TABLE "switchman_shards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "database_server_id" varchar(255), "default" boolean DEFAULT 'f' NOT NULL)  [20:333 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [20:333 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [20:333 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [20:333 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [20:333 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [20:333 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [20:333 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [20:333 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [20:333 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [20:333 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [20:333 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [20:333 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [20:333 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) ALTER TABLE "users" ADD "parent_id" integer(8) [20:333 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [20:333 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [20:333 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [20:333 deploy]  (1.1ms) commit transaction [20:333 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:320 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_333.sqlite3' WHERE "switchman_shards"."id" = 333 [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) begin transaction [20:333 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 27 May 2015 16:41:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:57 UTC +00:00]] [20:333 master]  (0.8ms) commit transaction [20:333 master] Drop failed: No such file or directory @ unlink_internal - db/shard_333.sqlite3  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 333]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [test:320 master]  (0.2ms) CREATE SCHEMA switchman_test_shard_334 [test:334 deploy]  (0.1ms) SAVEPOINT active_record_2 [test:334 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [test:334 deploy]  (6.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:334 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [test:334 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [test:334 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [test:334 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [test:334 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [test:334 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [test:334 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [test:334 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [test:334 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [test:334 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [test:334 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [test:334 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [test:334 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [test:334 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [test:334 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:334 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [test:334 deploy] Migrating to CreateRoots (20140219183820)  (2.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [test:334 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [test:334 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_2 [test:334 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_334' WHERE "switchman_shards"."id" = 334 [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:334 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 27 May 2015 16:41:57 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Wed, 27 May 2015 16:41:57 UTC +00:00]] [test:334 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:334 master]  (3.5ms) DROP SCHEMA switchman_test_shard_334 CASCADE [test:334 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 334]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (2.4ms) ROLLBACK [test:320 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master]  (0.0ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 320], ["name", nil]] [test:320 master]  (0.4ms) COMMIT [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 321], ["name", "switchman_test_shard_321"]] [test:320 master]  (0.3ms) COMMIT [test:320 master]  (0.0ms) BEGIN [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 322], ["name", "switchman_test_shard_322"]] [test:320 master]  (0.2ms) COMMIT [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.0ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.0ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master]  (0.0ms) ROLLBACK [1:322 master]  (0.0ms) ROLLBACK [test:320 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Exists (0.4ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 320], ["name", nil]] [test:320 master]  (0.3ms) COMMIT [test:320 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 321], ["name", "switchman_test_shard_321"]] [test:320 master]  (0.4ms) COMMIT [test:320 master]  (0.1ms) BEGIN [test:320 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 322], ["name", "switchman_test_shard_322"]] [test:320 master]  (0.2ms) COMMIT [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=321 AND id<=321)) AND (id NOT IN (320)) [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ('f') [test:320 master]  (0.0ms) ROLLBACK [1:322 master]  (0.0ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (320)) [test:320 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=320 AND id<321)) [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=321)) ORDER BY id [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.0ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=320 AND id<321) OR (id>=322 AND id<323)) ORDER BY id [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.1ms) BEGIN [1:322 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (320)) [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=320 AND id<=321)) AND (id NOT IN (320)) [test:320 master]  (0.0ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (320)) [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=320 AND id<=321)) ORDER BY id [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 321]] [test:320 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 322]] [test:320 master]  (0.0ms) BEGIN [1:322 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=321)) ORDER BY id [test:320 master]  (0.1ms) ROLLBACK [1:322 master]  (0.1ms) ROLLBACK [test:320 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:320 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:320 master]  (0.1ms) BEGIN [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "21"], ["default", false], ["name", "non_existent_shard"]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "21"], ["default", false], ["name", nil]] [test:320 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.4ms) SELECT COUNT(*) FROM "users" [21:335 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (1.0ms) SELECT COUNT(*) FROM "users"  [21:336 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "22"], ["default", false], ["name", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "23"], ["default", false], ["name", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "24"], ["default", false], ["name", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master]  (0.1ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "25"], ["default", false], ["name", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [test:320 master]  (0.0ms) BEGIN [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "26"], ["default", false], ["name", nil]] [test:320 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.0ms) ROLLBACK [test:320 master]  (0.1ms) BEGIN [test:320 master]  (0.0ms) SAVEPOINT active_record_1 [test:320 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "27"], ["default", false], ["name", nil]] [test:320 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:320 master]  (0.1ms) ROLLBACK [test:320 master]  (4.7ms) DROP SCHEMA switchman_test_shard_321 CASCADE [test:321 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 321]]  (0.1ms) COMMIT  (6.9ms) DROP SCHEMA switchman_test_shard_322 CASCADE [1:322 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 322]]  (0.1ms) COMMIT  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.8ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.2ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (6.1ms) COMMIT Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_344 [test:344 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:344 deploy]  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:344 deploy]  (6.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:344 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:344 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (14.5ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:344 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:344 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:344 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:344 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:344 deploy] Migrating to CreateAppendages (20130411202442)  (2.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:344 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:344 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:344 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:344 deploy] Migrating to CreateDigits (20131022202028)  (2.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:344 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:344 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:344 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:344 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:344 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:344 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:344 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:344 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 344 [["name", "switchman_test_shard_344"]] [test:343 master]  (0.8ms) COMMIT [test:343 master] Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:343 master]  (0.3ms) COMMIT [test:343 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_345 [1:345 deploy]  (0.1ms) BEGIN [1:345 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:345 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:345 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:345 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.6ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:345 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:345 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:345 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:345 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:345 deploy] Migrating to CreateAppendages (20130411202442)  (2.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:345 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:345 deploy] Migrating to CreateMirrorUsers (20130411202551)  (7.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:345 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:345 deploy] Migrating to CreateDigits (20131022202028)  (9.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:345 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:345 deploy] Migrating to CreateFeatures (20131206172923)  (3.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:345 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:345 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:345 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:345 deploy] Migrating to CreateRoots (20140219183820)  (3.4ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:345 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:345 deploy]  (1.0ms) COMMIT [1:345 deploy]  (0.1ms) BEGIN [test:343 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 345 [["name", "switchman_test_shard_345"]] [test:343 master]  (0.4ms) COMMIT [test:343 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:343 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 343]] [test:343 master]  (0.3ms) COMMIT [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 344], ["name", "switchman_test_shard_344"]] [test:343 master]  (0.3ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 345], ["name", "switchman_test_shard_345"]] [test:343 master]  (0.2ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '2' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "2"], ["name", "public"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (1.4ms) CREATE SCHEMA switchman_test_shard_346 [2:346 deploy]  (0.1ms) BEGIN [2:346 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [2:346 deploy]  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [2:346 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [2:346 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (4.1ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [2:346 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [2:346 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [2:346 deploy] Migrating to CreateUsers (20130403132607)  (2.5ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [2:346 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [2:346 deploy] Migrating to CreateAppendages (20130411202442)  (2.3ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [2:346 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [2:346 deploy] Migrating to CreateMirrorUsers (20130411202551)  (3.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [2:346 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [2:346 deploy] Migrating to CreateDigits (20131022202028)  (2.3ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [2:346 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [2:346 deploy] Migrating to CreateFeatures (20131206172923)  (2.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [2:346 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [2:346 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [2:346 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [2:346 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [2:346 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [2:346 deploy]  (0.7ms) COMMIT [2:346 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 346 [["name", "switchman_test_shard_346"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) BEGIN [2:346 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:13.637562"], ["updated_at", "2015-05-27 16:42:13.637562"]] [2:346 master]  (0.3ms) COMMIT [2:346 master]  (5.0ms) DROP SCHEMA switchman_test_shard_346 CASCADE [2:346 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 346]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '3' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "3"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) begin transaction [3:347 deploy]  (0.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [3:347 deploy]  (0.1ms) select sqlite_version(*) [3:347 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [3:347 deploy] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" [3:347 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (0.2ms) CREATE TABLE "switchman_shards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "database_server_id" varchar(255), "default" boolean DEFAULT 'f' NOT NULL)  [3:347 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130328212039"]] [3:347 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130328224244"]] [3:347 deploy] Migrating to CreateUsers (20130403132607)  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime, "updated_at" datetime) [3:347 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130403132607"]] [3:347 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [3:347 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202442"]] [3:347 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [3:347 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202551"]] [3:347 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [3:347 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131022202028"]] [3:347 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime, "updated_at" datetime) [3:347 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131206172923"]] [3:347 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) ALTER TABLE "users" ADD "parent_id" integer(8) [3:347 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140123154135"]] [3:347 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [3:347 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219183820"]] [3:347 deploy]  (1.0ms) commit transaction [3:347 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 347 [["name", "db/shard_347.sqlite3"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.0ms) begin transaction [3:347 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-27 16:42:13.707896"], ["updated_at", "2015-05-27 16:42:13.707896"]] [3:347 master]  (0.6ms) commit transaction [3:347 master] Drop failed: No such file or directory @ unlink_internal - db/shard_347.sqlite3  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 347]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.2ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [test:343 master]  (0.1ms) CREATE SCHEMA switchman_test_shard_348 [test:348 deploy]  (0.1ms) SAVEPOINT active_record_2 [test:348 deploy]  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [test:348 deploy]  (6.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:348 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:348 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.0ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [test:348 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:348 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:348 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:348 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:348 deploy] Migrating to CreateAppendages (20130411202442)  (2.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:348 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:348 deploy] Migrating to CreateMirrorUsers (20130411202551)  (3.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:348 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:348 deploy] Migrating to CreateDigits (20131022202028)  (2.3ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:348 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:348 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:348 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:348 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:348 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:348 deploy] Migrating to CreateRoots (20140219183820)  (2.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:348 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:348 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_2 [test:348 deploy] SQL (0.1ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 348 [["name", "switchman_test_shard_348"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:348 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:13.785547"], ["updated_at", "2015-05-27 16:42:13.785547"]] [test:348 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:348 master]  (2.9ms) DROP SCHEMA switchman_test_shard_348 CASCADE [test:348 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 348]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (2.2ms) ROLLBACK [test:343 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 343]] [test:343 master]  (6.0ms) COMMIT [test:343 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 344], ["name", "switchman_test_shard_344"]] [test:343 master]  (6.0ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 345], ["name", "switchman_test_shard_345"]] [test:343 master]  (4.8ms) COMMIT [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:13.839610"], ["updated_at", "2015-05-27 16:42:13.839610"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master]  (0.2ms) SELECT COUNT(*) FROM "users" [1:345 master]  (0.1ms) SAVEPOINT active_record_2 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:13.847726"], ["updated_at", "2015-05-27 16:42:13.847726"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [1:345 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.2ms) SELECT COUNT(*) FROM "users" [1:345 master]  (0.1ms) ROLLBACK [1:345 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 343]] [test:343 master]  (0.3ms) COMMIT [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 344], ["name", "switchman_test_shard_344"]] [test:343 master]  (0.3ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 345], ["name", "switchman_test_shard_345"]] [test:343 master]  (0.2ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:343 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:343 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 343]] [test:343 master]  (0.3ms) COMMIT [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 344], ["name", "switchman_test_shard_344"]] [test:343 master]  (0.3ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 345], ["name", "switchman_test_shard_345"]] [test:343 master]  (0.2ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:13.880172"], ["updated_at", "2015-05-27 16:42:13.880172"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:343 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 343]] [test:343 master]  (0.4ms) COMMIT [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 344], ["name", "switchman_test_shard_344"]] [test:343 master]  (0.3ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 345], ["name", "switchman_test_shard_345"]] [test:343 master]  (0.3ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:13.898711"], ["updated_at", "2015-05-27 16:42:13.898711"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:13.913158"], ["updated_at", "2015-05-27 16:42:13.913158"], ["user_id", 625]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:13.915535"], ["updated_at", "2015-05-27 16:42:13.915535"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:13.918125"], ["updated_at", "2015-05-27 16:42:13.918125"], ["user_id", 2]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:13.919995"], ["updated_at", "2015-05-27 16:42:13.919995"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:13.922713"], ["updated_at", "2015-05-27 16:42:13.922713"], ["user_id", 3]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.2ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:13.929977"], ["updated_at", "2015-05-27 16:42:13.929977"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:13.932891"], ["updated_at", "2015-05-27 16:42:13.932891"], ["user_id", 626]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:13.934875"], ["updated_at", "2015-05-27 16:42:13.934875"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:13.938274"], ["updated_at", "2015-05-27 16:42:13.938274"], ["user_id", 3]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:13.939994"], ["updated_at", "2015-05-27 16:42:13.939994"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:13.943421"], ["updated_at", "2015-05-27 16:42:13.943421"], ["user_id", 4]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 344 LIMIT 1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:13.951770"], ["updated_at", "2015-05-27 16:42:13.951770"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:13.954282"], ["updated_at", "2015-05-27 16:42:13.954282"], ["user_id", 627]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:13.956265"], ["updated_at", "2015-05-27 16:42:13.956265"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:13.959419"], ["updated_at", "2015-05-27 16:42:13.959419"], ["user_id", 4]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:13.961175"], ["updated_at", "2015-05-27 16:42:13.961175"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:13.964204"], ["updated_at", "2015-05-27 16:42:13.964204"], ["user_id", 5]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:13.970747"], ["updated_at", "2015-05-27 16:42:13.970747"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:13.973386"], ["updated_at", "2015-05-27 16:42:13.973386"], ["user_id", 628]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:13.975372"], ["updated_at", "2015-05-27 16:42:13.975372"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:13.978505"], ["updated_at", "2015-05-27 16:42:13.978505"], ["user_id", 5]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:13.980314"], ["updated_at", "2015-05-27 16:42:13.980314"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:13.983072"], ["updated_at", "2015-05-27 16:42:13.983072"], ["user_id", 6]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:13.989359"], ["updated_at", "2015-05-27 16:42:13.989359"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:13.992179"], ["updated_at", "2015-05-27 16:42:13.992179"], ["user_id", 629]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:13.994061"], ["updated_at", "2015-05-27 16:42:13.994061"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:13.997098"], ["updated_at", "2015-05-27 16:42:13.997098"], ["user_id", 6]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:13.999300"], ["updated_at", "2015-05-27 16:42:13.999300"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.002752"], ["updated_at", "2015-05-27 16:42:14.002752"], ["user_id", 7]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.2ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.011627"], ["updated_at", "2015-05-27 16:42:14.011627"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.014289"], ["updated_at", "2015-05-27 16:42:14.014289"], ["user_id", 630]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.016203"], ["updated_at", "2015-05-27 16:42:14.016203"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.018734"], ["updated_at", "2015-05-27 16:42:14.018734"], ["user_id", 7]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.020538"], ["updated_at", "2015-05-27 16:42:14.020538"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.024031"], ["updated_at", "2015-05-27 16:42:14.024031"], ["user_id", 8]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.030109"], ["updated_at", "2015-05-27 16:42:14.030109"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.032527"], ["updated_at", "2015-05-27 16:42:14.032527"], ["user_id", 631]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.034400"], ["updated_at", "2015-05-27 16:42:14.034400"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.037093"], ["updated_at", "2015-05-27 16:42:14.037093"], ["user_id", 8]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.038701"], ["updated_at", "2015-05-27 16:42:14.038701"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.041576"], ["updated_at", "2015-05-27 16:42:14.041576"], ["user_id", 9]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.047639"], ["updated_at", "2015-05-27 16:42:14.047639"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.049990"], ["updated_at", "2015-05-27 16:42:14.049990"], ["user_id", 632]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.051887"], ["updated_at", "2015-05-27 16:42:14.051887"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.054824"], ["updated_at", "2015-05-27 16:42:14.054824"], ["user_id", 9]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.056632"], ["updated_at", "2015-05-27 16:42:14.056632"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.059574"], ["updated_at", "2015-05-27 16:42:14.059574"], ["user_id", 10]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.066410"], ["updated_at", "2015-05-27 16:42:14.066410"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.068901"], ["updated_at", "2015-05-27 16:42:14.068901"], ["user_id", 633]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.070703"], ["updated_at", "2015-05-27 16:42:14.070703"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.073594"], ["updated_at", "2015-05-27 16:42:14.073594"], ["user_id", 10]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.075475"], ["updated_at", "2015-05-27 16:42:14.075475"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.078477"], ["updated_at", "2015-05-27 16:42:14.078477"], ["user_id", 11]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.2ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.086238"], ["updated_at", "2015-05-27 16:42:14.086238"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.088641"], ["updated_at", "2015-05-27 16:42:14.088641"], ["user_id", 634]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.090362"], ["updated_at", "2015-05-27 16:42:14.090362"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.093479"], ["updated_at", "2015-05-27 16:42:14.093479"], ["user_id", 11]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.095209"], ["updated_at", "2015-05-27 16:42:14.095209"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.097977"], ["updated_at", "2015-05-27 16:42:14.097977"], ["user_id", 12]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.100934"], ["updated_at", "2015-05-27 16:42:14.100934"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.109276"], ["updated_at", "2015-05-27 16:42:14.109276"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.111726"], ["updated_at", "2015-05-27 16:42:14.111726"], ["user_id", 635]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.113384"], ["updated_at", "2015-05-27 16:42:14.113384"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.116342"], ["updated_at", "2015-05-27 16:42:14.116342"], ["user_id", 12]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.118316"], ["updated_at", "2015-05-27 16:42:14.118316"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.121317"], ["updated_at", "2015-05-27 16:42:14.121317"], ["user_id", 13]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.2ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.128877"], ["updated_at", "2015-05-27 16:42:14.128877"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.131294"], ["updated_at", "2015-05-27 16:42:14.131294"], ["user_id", 636]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.133212"], ["updated_at", "2015-05-27 16:42:14.133212"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.135965"], ["updated_at", "2015-05-27 16:42:14.135965"], ["user_id", 13]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.137934"], ["updated_at", "2015-05-27 16:42:14.137934"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.140860"], ["updated_at", "2015-05-27 16:42:14.140860"], ["user_id", 14]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.144065"], ["parent_id", 636], ["updated_at", "2015-05-27 16:42:14.144065"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.146660"], ["parent_id", 637], ["updated_at", "2015-05-27 16:42:14.146660"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 637]] [test:343 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 636]] [test:343 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 [["parent_id", 636]] [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.162227"], ["updated_at", "2015-05-27 16:42:14.162227"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.165023"], ["updated_at", "2015-05-27 16:42:14.165023"], ["user_id", 639]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.167085"], ["updated_at", "2015-05-27 16:42:14.167085"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.169527"], ["updated_at", "2015-05-27 16:42:14.169527"], ["user_id", 14]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.171041"], ["updated_at", "2015-05-27 16:42:14.171041"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.173889"], ["updated_at", "2015-05-27 16:42:14.173889"], ["user_id", 15]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.179677"], ["updated_at", "2015-05-27 16:42:14.179677"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.182509"], ["updated_at", "2015-05-27 16:42:14.182509"], ["user_id", 640]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.184611"], ["updated_at", "2015-05-27 16:42:14.184611"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.187346"], ["updated_at", "2015-05-27 16:42:14.187346"], ["user_id", 15]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.189016"], ["updated_at", "2015-05-27 16:42:14.189016"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.192630"], ["updated_at", "2015-05-27 16:42:14.192630"], ["user_id", 16]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.198303"], ["updated_at", "2015-05-27 16:42:14.198303"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.200605"], ["updated_at", "2015-05-27 16:42:14.200605"], ["user_id", 641]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.213599"], ["updated_at", "2015-05-27 16:42:14.213599"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.216901"], ["updated_at", "2015-05-27 16:42:14.216901"], ["user_id", 16]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.218864"], ["updated_at", "2015-05-27 16:42:14.218864"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.222595"], ["updated_at", "2015-05-27 16:42:14.222595"], ["user_id", 17]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.2ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.229559"], ["updated_at", "2015-05-27 16:42:14.229559"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.231950"], ["updated_at", "2015-05-27 16:42:14.231950"], ["user_id", 642]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.233549"], ["updated_at", "2015-05-27 16:42:14.233549"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.236658"], ["updated_at", "2015-05-27 16:42:14.236658"], ["user_id", 17]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.238826"], ["updated_at", "2015-05-27 16:42:14.238826"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.3ms) SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.242226"], ["updated_at", "2015-05-27 16:42:14.242226"], ["user_id", 18]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 343]] [test:343 master]  (0.3ms) COMMIT [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 344], ["name", "switchman_test_shard_344"]] [test:343 master]  (0.3ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 345], ["name", "switchman_test_shard_345"]] [test:343 master]  (0.2ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "9"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "9"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "10"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "10"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 343]] [test:343 master]  (0.3ms) COMMIT [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 344], ["name", "switchman_test_shard_344"]] [test:343 master]  (0.2ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 345], ["name", "switchman_test_shard_345"]] [test:343 master]  (0.3ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.296179"], ["updated_at", "2015-05-27 16:42:14.296179"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 344 LIMIT 1 [test:343 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) LIMIT 1 [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.305152"], ["updated_at", "2015-05-27 16:42:14.305152"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 19 LIMIT 1 [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.313450"], ["updated_at", "2015-05-27 16:42:14.313450"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 20]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3440000000000020 ORDER BY "users"."id" ASC LIMIT 1 [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.321299"], ["updated_at", "2015-05-27 16:42:14.321299"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.323033"], ["name", "multi-shard exists"], ["updated_at", "2015-05-27 16:42:14.323033"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:343 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [test:343 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.333808"], ["updated_at", "2015-05-27 16:42:14.333808"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 22 LIMIT 1 [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.340619"], ["updated_at", "2015-05-27 16:42:14.340619"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 23]] [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 343]] [test:343 master]  (0.3ms) COMMIT [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 344], ["name", "switchman_test_shard_344"]] [test:343 master]  (0.3ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 345], ["name", "switchman_test_shard_345"]] [test:343 master]  (0.3ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.355587"], ["name", "user1"], ["updated_at", "2015-05-27 16:42:14.355587"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.357463"], ["name", "user2"], ["updated_at", "2015-05-27 16:42:14.357463"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.364295"], ["name", "user1"], ["updated_at", "2015-05-27 16:42:14.364295"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.366106"], ["name", "user2"], ["updated_at", "2015-05-27 16:42:14.366106"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 344 LIMIT 1 [test:343 master] SQL (0.3ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (644) [test:343 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (25) [test:344 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 644]] [test:343 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 25]] [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.378558"], ["name", "user1"], ["updated_at", "2015-05-27 16:42:14.378558"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.380786"], ["name", "user2"], ["updated_at", "2015-05-27 16:42:14.380786"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 26 [test:344 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 645]] [test:343 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 26]] [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.390871"], ["name", "user1"], ["updated_at", "2015-05-27 16:42:14.390871"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.392730"], ["name", "user2"], ["updated_at", "2015-05-27 16:42:14.392730"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (646) [test:343 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.401570"], ["name", "user1"], ["updated_at", "2015-05-27 16:42:14.401570"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.403648"], ["name", "user2"], ["updated_at", "2015-05-27 16:42:14.403648"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 28 ORDER BY "users"."id" ASC LIMIT 1 [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 343]] [test:343 master]  (0.3ms) COMMIT [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 344], ["name", "switchman_test_shard_344"]] [test:343 master]  (0.3ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 345], ["name", "switchman_test_shard_345"]] [test:343 master]  (0.2ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 343]] [test:343 master]  (0.3ms) COMMIT [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 344], ["name", "switchman_test_shard_344"]] [test:343 master]  (0.4ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 345], ["name", "switchman_test_shard_345"]] [test:343 master]  (0.2ms) COMMIT [test:343 master]  (0.2ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.431015"], ["updated_at", "2015-05-27 16:42:14.431015"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:14.435623"], ["owner_id", 648], ["owner_type", "User"], ["updated_at", "2015-05-27 16:42:14.435623"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master] Feature Load (0.4ms) SELECT "features"."owner_id" FROM "features" WHERE "features"."id" = 28 ORDER BY "features"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.448064"], ["updated_at", "2015-05-27 16:42:14.448064"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 344 LIMIT 1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 345 LIMIT 1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.457565"], ["updated_at", "2015-05-27 16:42:14.457565"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master] SQL (6.3ms) DELETE FROM "switchman_shards" [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:343 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 343]] [test:343 master]  (6.1ms) COMMIT [test:343 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 344], ["name", "switchman_test_shard_344"]] [test:343 master]  (0.4ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 345], ["name", "switchman_test_shard_345"]] [test:343 master]  (0.4ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (344,345)) AND "switchman_shards"."id" IN (343, 344) [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 343]] [test:343 master]  (0.3ms) COMMIT [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 344], ["name", "switchman_test_shard_344"]] [test:343 master]  (0.3ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 345], ["name", "switchman_test_shard_345"]] [test:343 master]  (0.2ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '11' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "11"], ["name", "public"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_353 [11:353 deploy]  (0.1ms) BEGIN [11:353 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [11:353 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [11:353 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [11:353 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.5ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [11:353 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [11:353 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [11:353 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [11:353 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [11:353 deploy] Migrating to CreateAppendages (20130411202442)  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [11:353 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [11:353 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [11:353 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [11:353 deploy] Migrating to CreateDigits (20131022202028)  (2.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [11:353 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [11:353 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [11:353 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [11:353 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [11:353 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [11:353 deploy] Migrating to CreateRoots (20140219183820)  (3.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [11:353 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [11:353 deploy]  (0.8ms) COMMIT [11:353 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 353 [["name", "switchman_test_shard_353"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) BEGIN [11:353 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:14.607520"], ["updated_at", "2015-05-27 16:42:14.607520"]] [11:353 master]  (0.5ms) COMMIT [11:353 master]  (0.3ms) SELECT COUNT(*) FROM "users" [11:353 master]  (5.7ms) DROP SCHEMA switchman_test_shard_353 CASCADE [11:353 deploy]  (0.6ms) SELECT COUNT(*) FROM "users" [11:353 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 344 LIMIT 1 [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 345 LIMIT 1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10345 LIMIT 1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 343 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:343 master]  (0.2ms) ROLLBACK [1:345 master]  (0.2ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (2.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.2ms) ROLLBACK [1:345 master]  (0.2ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.3ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 354]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 354 LIMIT 1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 355]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 343]] [test:343 master]  (0.3ms) COMMIT [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 344], ["name", "switchman_test_shard_344"]] [test:343 master]  (0.3ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 345], ["name", "switchman_test_shard_345"]] [test:343 master]  (0.3ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.891683"], ["name", "user1"], ["updated_at", "2015-05-27 16:42:14.891683"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.2ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.894162"], ["name", "user2"], ["updated_at", "2015-05-27 16:42:14.894162"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.2ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:14.901908"], ["updated_at", "2015-05-27 16:42:14.901908"], ["user_id", 29], ["value", 1]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 345 LIMIT 1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:14.907544"], ["updated_at", "2015-05-27 16:42:14.907544"], ["user_id", 3450000000000020], ["value", 3]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 344 LIMIT 1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:14.911557"], ["updated_at", "2015-05-27 16:42:14.911557"], ["user_id", 3440000000000029], ["value", 2]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:14.913678"], ["updated_at", "2015-05-27 16:42:14.913678"], ["user_id", 20], ["value", 4]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:14.915228"], ["updated_at", "2015-05-27 16:42:14.915228"], ["user_id", 20], ["value", 5]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.5ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:344 master]  (0.7ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:345 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:344 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:345 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:344 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:345 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:344 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [test:344 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [1:345 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:345 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (20) [1:345 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.937566"], ["name", "user1"], ["updated_at", "2015-05-27 16:42:14.937566"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.939126"], ["name", "user2"], ["updated_at", "2015-05-27 16:42:14.939126"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:14.940802"], ["updated_at", "2015-05-27 16:42:14.940802"], ["user_id", 30], ["value", 1]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:14.942911"], ["updated_at", "2015-05-27 16:42:14.942911"], ["user_id", 3450000000000021], ["value", 3]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:14.945856"], ["updated_at", "2015-05-27 16:42:14.945856"], ["user_id", 3440000000000030], ["value", 2]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:14.947624"], ["updated_at", "2015-05-27 16:42:14.947624"], ["user_id", 21], ["value", 4]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:14.949168"], ["updated_at", "2015-05-27 16:42:14.949168"], ["user_id", 21], ["value", 5]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:344 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:345 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:344 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:345 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:344 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:345 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [test:344 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [test:344 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [1:345 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [1:345 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (21) [1:345 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.966188"], ["name", "user1"], ["updated_at", "2015-05-27 16:42:14.966188"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.968145"], ["name", "user2"], ["updated_at", "2015-05-27 16:42:14.968145"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:14.970482"], ["updated_at", "2015-05-27 16:42:14.970482"], ["user_id", 31], ["value", 1]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:14.972549"], ["updated_at", "2015-05-27 16:42:14.972549"], ["user_id", 3450000000000022], ["value", 3]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:14.974393"], ["updated_at", "2015-05-27 16:42:14.974393"], ["user_id", 3440000000000031], ["value", 2]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:14.975928"], ["updated_at", "2015-05-27 16:42:14.975928"], ["user_id", 22], ["value", 4]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:14.977643"], ["updated_at", "2015-05-27 16:42:14.977643"], ["user_id", 22], ["value", 5]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:344 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:345 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:344 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:345 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:344 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:345 master]  (0.1ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:344 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (31) [test:344 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [1:345 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:345 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (22) [1:345 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (31) [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.993802"], ["name", "user1"], ["updated_at", "2015-05-27 16:42:14.993802"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:14.995375"], ["name", "user2"], ["updated_at", "2015-05-27 16:42:14.995375"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:14.997252"], ["updated_at", "2015-05-27 16:42:14.997252"], ["user_id", 32], ["value", 1]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:14.999215"], ["updated_at", "2015-05-27 16:42:14.999215"], ["user_id", 3450000000000023], ["value", 3]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.001120"], ["updated_at", "2015-05-27 16:42:15.001120"], ["user_id", 3440000000000032], ["value", 2]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.002811"], ["updated_at", "2015-05-27 16:42:15.002811"], ["user_id", 23], ["value", 4]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.004355"], ["updated_at", "2015-05-27 16:42:15.004355"], ["user_id", 23], ["value", 5]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.006883"], ["updated_at", "2015-05-27 16:42:15.006883"], ["user_id", 32]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.008720"], ["updated_at", "2015-05-27 16:42:15.008720"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.011353"], ["updated_at", "2015-05-27 16:42:15.011353"], ["user_id", 33]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.018979"], ["name", "user1"], ["updated_at", "2015-05-27 16:42:15.018979"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.020809"], ["name", "user2"], ["updated_at", "2015-05-27 16:42:15.020809"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.022447"], ["updated_at", "2015-05-27 16:42:15.022447"], ["user_id", 34], ["value", 1]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.024485"], ["updated_at", "2015-05-27 16:42:15.024485"], ["user_id", 3450000000000024], ["value", 3]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.026518"], ["updated_at", "2015-05-27 16:42:15.026518"], ["user_id", 3440000000000034], ["value", 2]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.028160"], ["updated_at", "2015-05-27 16:42:15.028160"], ["user_id", 24], ["value", 4]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.029876"], ["updated_at", "2015-05-27 16:42:15.029876"], ["user_id", 24], ["value", 5]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:344 master]  (0.5ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:345 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:344 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:345 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:344 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:345 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [test:344 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (34) [test:344 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [1:345 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [1:345 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (24) [1:345 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (34) [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.049615"], ["name", "user1"], ["updated_at", "2015-05-27 16:42:15.049615"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.051310"], ["name", "user2"], ["updated_at", "2015-05-27 16:42:15.051310"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.053007"], ["updated_at", "2015-05-27 16:42:15.053007"], ["user_id", 35], ["value", 1]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.054933"], ["updated_at", "2015-05-27 16:42:15.054933"], ["user_id", 3450000000000025], ["value", 3]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.056725"], ["updated_at", "2015-05-27 16:42:15.056725"], ["user_id", 3440000000000035], ["value", 2]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.058368"], ["updated_at", "2015-05-27 16:42:15.058368"], ["user_id", 25], ["value", 4]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.060013"], ["updated_at", "2015-05-27 16:42:15.060013"], ["user_id", 25], ["value", 5]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:344 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:345 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:344 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:345 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:344 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:345 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:344 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35) [test:344 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [1:345 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:345 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [1:345 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35) [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.077934"], ["name", "user1"], ["updated_at", "2015-05-27 16:42:15.077934"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.080403"], ["updated_at", "2015-05-27 16:42:15.080403"], ["user_id", 36], ["value", 1]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.082498"], ["updated_at", "2015-05-27 16:42:15.082498"], ["user_id", 36], ["value", 2]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.084562"], ["name", "user2"], ["updated_at", "2015-05-27 16:42:15.084562"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.087322"], ["updated_at", "2015-05-27 16:42:15.087322"], ["user_id", 26], ["value", 3]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.089531"], ["updated_at", "2015-05-27 16:42:15.089531"], ["user_id", 26], ["value", 4]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.2ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.092194"], ["updated_at", "2015-05-27 16:42:15.092194"], ["user_id", 26], ["value", 5]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 36]] [test:344 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [test:344 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 26]] [1:345 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [1:345 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (31, 32) [test:344 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (35, 36, 37) [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.106374"], ["name", "user1"], ["updated_at", "2015-05-27 16:42:15.106374"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.2ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.119226"], ["updated_at", "2015-05-27 16:42:15.119226"], ["user_id", 37], ["value", 1]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.121572"], ["updated_at", "2015-05-27 16:42:15.121572"], ["user_id", 37], ["value", 2]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.123469"], ["name", "user2"], ["updated_at", "2015-05-27 16:42:15.123469"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.126210"], ["updated_at", "2015-05-27 16:42:15.126210"], ["user_id", 27], ["value", 3]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.128647"], ["updated_at", "2015-05-27 16:42:15.128647"], ["user_id", 27], ["value", 4]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.130510"], ["updated_at", "2015-05-27 16:42:15.130510"], ["user_id", 27], ["value", 5]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 37]] [test:344 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [test:344 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 27]] [1:345 master]  (0.1ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [1:345 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (33, 34) [test:344 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (38, 39, 40) [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.143836"], ["name", "user1"], ["updated_at", "2015-05-27 16:42:15.143836"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.147344"], ["updated_at", "2015-05-27 16:42:15.147344"], ["user_id", 38], ["value", 1]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.149740"], ["updated_at", "2015-05-27 16:42:15.149740"], ["user_id", 38], ["value", 2]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.151770"], ["name", "user2"], ["updated_at", "2015-05-27 16:42:15.151770"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.154622"], ["updated_at", "2015-05-27 16:42:15.154622"], ["user_id", 28], ["value", 3]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.157321"], ["updated_at", "2015-05-27 16:42:15.157321"], ["user_id", 28], ["value", 4]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.159860"], ["updated_at", "2015-05-27 16:42:15.159860"], ["user_id", 28], ["value", 5]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 38]] [test:344 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [test:344 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 28]] [1:345 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [1:345 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (35, 36) [test:344 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (41, 42, 43) [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.174115"], ["name", "user1"], ["updated_at", "2015-05-27 16:42:15.174115"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.177554"], ["updated_at", "2015-05-27 16:42:15.177554"], ["user_id", 39], ["value", 1]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.180389"], ["updated_at", "2015-05-27 16:42:15.180389"], ["user_id", 39], ["value", 2]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.183004"], ["name", "user2"], ["updated_at", "2015-05-27 16:42:15.183004"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.185863"], ["updated_at", "2015-05-27 16:42:15.185863"], ["user_id", 29], ["value", 3]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.187999"], ["updated_at", "2015-05-27 16:42:15.187999"], ["user_id", 29], ["value", 4]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.189911"], ["updated_at", "2015-05-27 16:42:15.189911"], ["user_id", 29], ["value", 5]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 39]] [test:344 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [test:344 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 29]] [1:345 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [1:345 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (37, 38) [test:344 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (44, 45, 46) [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.202721"], ["name", "user1"], ["updated_at", "2015-05-27 16:42:15.202721"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.205521"], ["updated_at", "2015-05-27 16:42:15.205521"], ["user_id", 40], ["value", 1]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.207665"], ["updated_at", "2015-05-27 16:42:15.207665"], ["user_id", 40], ["value", 2]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.209432"], ["name", "user2"], ["updated_at", "2015-05-27 16:42:15.209432"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.212513"], ["updated_at", "2015-05-27 16:42:15.212513"], ["user_id", 30], ["value", 3]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.214664"], ["updated_at", "2015-05-27 16:42:15.214664"], ["user_id", 30], ["value", 4]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:15.216970"], ["updated_at", "2015-05-27 16:42:15.216970"], ["user_id", 30], ["value", 5]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 40]] [test:344 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [test:344 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 30]] [1:345 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [1:345 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (39, 40) [test:344 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (47, 48, 49) [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.229005"], ["name", "user1"], ["updated_at", "2015-05-27 16:42:15.229005"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.232314"], ["updated_at", "2015-05-27 16:42:15.232314"], ["user_id", 41]] [test:344 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.235319"], ["name", "user2"], ["updated_at", "2015-05-27 16:42:15.235319"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.238735"], ["updated_at", "2015-05-27 16:42:15.238735"], ["user_id", 31]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [test:344 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 50 [1:345 master]  (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [test:344 master]  (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 50 [1:345 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 41 [test:344 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 50 [1:345 master]  (0.2ms) ROLLBACK [1:345 master]  (0.2ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.252522"], ["name", "user1"], ["updated_at", "2015-05-27 16:42:15.252522"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.255393"], ["updated_at", "2015-05-27 16:42:15.255393"], ["user_id", 42]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.257644"], ["name", "user2"], ["updated_at", "2015-05-27 16:42:15.257644"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.260645"], ["updated_at", "2015-05-27 16:42:15.260645"], ["user_id", 32]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [test:344 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [1:345 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [test:344 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [1:345 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [test:344 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 51 [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.273766"], ["name", "user1"], ["updated_at", "2015-05-27 16:42:15.273766"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.276901"], ["updated_at", "2015-05-27 16:42:15.276901"], ["user_id", 43]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.279434"], ["name", "user2"], ["updated_at", "2015-05-27 16:42:15.279434"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.281785"], ["updated_at", "2015-05-27 16:42:15.281785"], ["user_id", 33]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.283541"], ["name", "user2"], ["updated_at", "2015-05-27 16:42:15.283541"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (650) [test:343 master]  (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (43) [test:344 master]  (0.4ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (33) [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.293899"], ["name", "user1"], ["updated_at", "2015-05-27 16:42:15.293899"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.297423"], ["updated_at", "2015-05-27 16:42:15.297423"], ["user_id", 44]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.299240"], ["name", "user2"], ["updated_at", "2015-05-27 16:42:15.299240"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.301617"], ["updated_at", "2015-05-27 16:42:15.301617"], ["user_id", 34]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (44) [test:344 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (34) [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:343 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 343]] [test:343 master]  (0.3ms) COMMIT [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 344], ["name", "switchman_test_shard_344"]] [test:343 master]  (0.3ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 345], ["name", "switchman_test_shard_345"]] [test:343 master]  (0.3ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.0ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:43:15.317517"], ["updated_at", "2015-05-27 16:43:15.317517"]] [test:344 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.0ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "13"], ["name", "non_existent_shard"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "13"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.4ms) SELECT COUNT(*) FROM "users" [13:356 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.8ms) SELECT COUNT(*) FROM "users" [13:357 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master]  (0.2ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "14"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "15"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "16"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "17"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "18"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "19"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 343]] [test:343 master]  (0.4ms) COMMIT [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 344], ["name", "switchman_test_shard_344"]] [test:343 master]  (0.2ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 345], ["name", "switchman_test_shard_345"]] [test:343 master]  (0.2ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.419141"], ["updated_at", "2015-05-27 16:42:15.419141"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 15]] [test:343 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 15]] [test:343 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 15 ORDER BY "mirror_users"."id" ASC LIMIT 1 [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 343]] [test:343 master]  (0.3ms) COMMIT [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 344], ["name", "switchman_test_shard_344"]] [test:343 master]  (0.3ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 345], ["name", "switchman_test_shard_345"]] [test:343 master]  (0.3ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "20"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "21"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.487315"], ["updated_at", "2015-05-27 16:42:15.487315"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master] SQL (0.9ms) DELETE FROM "switchman_shards" [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:343 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 343]] [test:343 master]  (0.3ms) COMMIT [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 344], ["name", "switchman_test_shard_344"]] [test:343 master]  (0.2ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 345], ["name", "switchman_test_shard_345"]] [test:343 master]  (0.2ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.588802"], ["updated_at", "2015-05-27 16:42:15.588802"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.590802"], ["updated_at", "2015-05-27 16:42:15.590802"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.592352"], ["updated_at", "2015-05-27 16:42:15.592352"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:344 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] User Load (0.3ms) SELECT "users".* FROM "users" FOR UPDATE [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.649804"], ["updated_at", "2015-05-27 16:42:15.649804"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:343 master] SQL (0.1ms) DELETE FROM "users" [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.655332"], ["updated_at", "2015-05-27 16:42:15.655332"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:343 master] SQL (0.1ms) DELETE FROM "users" [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.658679"], ["updated_at", "2015-05-27 16:42:15.658679"]] [test:343 master]  (0.4ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.660585"], ["name", "a"], ["updated_at", "2015-05-27 16:42:15.660585"]] [test:343 master]  (0.4ms) COMMIT [test:343 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 656]] [test:343 master] CACHE (0.0ms) 343::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 656]] CACHE (0.0ms) 343::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 656]]  (0.1ms) BEGIN [test:343 master] SQL (0.2ms) UPDATE "users" SET "name" = $1, "updated_at" = $2 WHERE "users"."id" = 656 [["name", "b"], ["updated_at", "2015-05-27 16:42:15.664165"]] [test:343 master]  (0.3ms) COMMIT [test:343 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 656]] [test:343 master] CACHE (0.0ms) 343::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 656]] SQL (0.3ms) DELETE FROM "users" [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.669896"], ["updated_at", "2015-05-27 16:42:15.669896"]] [test:343 master]  (0.3ms) COMMIT [test:343 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:343 master] SQL (0.3ms) DELETE FROM "users" [test:343 master] SQL (0.1ms) DELETE FROM "users" [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.674270"], ["updated_at", "2015-05-27 16:42:15.674270"]] [test:343 master]  (0.4ms) COMMIT [test:343 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:343 master] SQL (0.3ms) DELETE FROM "users" [test:343 master] SQL (0.1ms) DELETE FROM "users" [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.681994"], ["updated_at", "2015-05-27 16:42:15.681994"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.687664"], ["updated_at", "2015-05-27 16:42:15.687664"]] [test:343 master]  (0.3ms) COMMIT [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.693479"], ["updated_at", "2015-05-27 16:42:15.693479"]] [test:343 master]  (0.3ms) COMMIT [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.699962"], ["updated_at", "2015-05-27 16:42:15.699962"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.715825"], ["updated_at", "2015-05-27 16:42:15.715825"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:343 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:42:15.717525' [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.722137"], ["updated_at", "2015-05-27 16:42:15.722137"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:343 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:42:15.724120' [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.726588"], ["updated_at", "2015-05-27 16:42:15.726588"]] [test:343 master]  (0.3ms) COMMIT [test:343 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:343 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:42:15.728519' [test:343 master] SQL (0.3ms) DELETE FROM "users" [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.731445"], ["updated_at", "2015-05-27 16:42:15.731445"]] [test:343 master]  (0.3ms) COMMIT [test:343 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:343 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-05-27 16:42:15.733359' [test:343 master] SQL (0.3ms) DELETE FROM "users" [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 343]] [test:343 master]  (0.4ms) COMMIT [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 344], ["name", "switchman_test_shard_344"]] [test:343 master]  (0.3ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 345], ["name", "switchman_test_shard_345"]] [test:343 master]  (0.3ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.758941"], ["updated_at", "2015-05-27 16:42:15.758941"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.760488"], ["updated_at", "2015-05-27 16:42:15.760488"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.764057"], ["updated_at", "2015-05-27 16:42:15.764057"], ["user_id", 48]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.767067"], ["updated_at", "2015-05-27 16:42:15.767067"], ["user_id", 35]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 345 LIMIT 1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 344 LIMIT 1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.777471"], ["updated_at", "2015-05-27 16:42:15.777471"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.779210"], ["updated_at", "2015-05-27 16:42:15.779210"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.782260"], ["updated_at", "2015-05-27 16:42:15.782260"], ["user_id", 49]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.787982"], ["updated_at", "2015-05-27 16:42:15.787982"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.789338"], ["updated_at", "2015-05-27 16:42:15.789338"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.791877"], ["updated_at", "2015-05-27 16:42:15.791877"], ["user_id", 50]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 47]] [test:344 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 50]] [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.800936"], ["updated_at", "2015-05-27 16:42:15.800936"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.808130"], ["updated_at", "2015-05-27 16:42:15.808130"]] [1:345 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.811591"], ["updated_at", "2015-05-27 16:42:15.811591"], ["user_id", 51]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 51], ["id", 48]] [test:344 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 38], ["id", 3440000000000048]] [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.2ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.823817"], ["updated_at", "2015-05-27 16:42:15.823817"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.825924"], ["updated_at", "2015-05-27 16:42:15.825924"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.828938"], ["updated_at", "2015-05-27 16:42:15.828938"], ["user_id", 52]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.836039"], ["updated_at", "2015-05-27 16:42:15.836039"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.837718"], ["updated_at", "2015-05-27 16:42:15.837718"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.840339"], ["updated_at", "2015-05-27 16:42:15.840339"], ["user_id", 53]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 50], ["created_at", "2015-05-27 16:42:15.850593"], ["updated_at", "2015-05-27 16:42:15.850593"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 53], ["id", 1]] [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.862576"], ["updated_at", "2015-05-27 16:42:15.862576"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.864288"], ["updated_at", "2015-05-27 16:42:15.864288"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.871189"], ["updated_at", "2015-05-27 16:42:15.871189"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.872690"], ["updated_at", "2015-05-27 16:42:15.872690"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.3ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.874236"], ["updated_at", "2015-05-27 16:42:15.874236"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.883503"], ["updated_at", "2015-05-27 16:42:15.883503"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.885203"], ["updated_at", "2015-05-27 16:42:15.885203"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.892579"], ["updated_at", "2015-05-27 16:42:15.892579"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.894291"], ["updated_at", "2015-05-27 16:42:15.894291"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.897136"], ["parent_id", 57], ["updated_at", "2015-05-27 16:42:15.897136"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.900382"], ["parent_id", 58], ["updated_at", "2015-05-27 16:42:15.900382"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 57]] [test:344 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 59 LIMIT 1 [["parent_id", 57]] [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.906955"], ["id", 59], ["updated_at", "2015-05-27 16:42:15.906955"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 57]] [test:344 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 3450000000000059 LIMIT 1 [["parent_id", 57]] [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.916082"], ["updated_at", "2015-05-27 16:42:15.916082"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.917539"], ["updated_at", "2015-05-27 16:42:15.917539"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.920247"], ["updated_at", "2015-05-27 16:42:15.920247"], ["user_id", 60]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.4ms) INSERT INTO "digits" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.922299"], ["updated_at", "2015-05-27 16:42:15.922299"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 51], ["created_at", "2015-05-27 16:42:15.924834"], ["id", 3450000000000001], ["updated_at", "2015-05-27 16:42:15.924834"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 60], ["id", 3450000000000001]] [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.935463"], ["updated_at", "2015-05-27 16:42:15.935463"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.937120"], ["updated_at", "2015-05-27 16:42:15.937120"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.941043"], ["updated_at", "2015-05-27 16:42:15.941043"], ["user_id", 61]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 61]] [test:344 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 61]] [test:344 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 61]] [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.953699"], ["updated_at", "2015-05-27 16:42:15.953699"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.955348"], ["updated_at", "2015-05-27 16:42:15.955348"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.956855"], ["updated_at", "2015-05-27 16:42:15.956855"], ["user_id", 62]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 53], ["created_at", "2015-05-27 16:42:15.959257"], ["updated_at", "2015-05-27 16:42:15.959257"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.961448"], ["updated_at", "2015-05-27 16:42:15.961448"], ["user_id", 3440000000000062]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", "2015-05-27 16:42:15.964061"], ["updated_at", "2015-05-27 16:42:15.964061"], ["value", 2]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 62]] [test:344 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 3440000000000062]] [1:345 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 62]] [test:344 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 62]] [test:344 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 3440000000000062]] [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.978691"], ["updated_at", "2015-05-27 16:42:15.978691"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:15.980199"], ["updated_at", "2015-05-27 16:42:15.980199"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.981682"], ["updated_at", "2015-05-27 16:42:15.981682"], ["user_id", 63]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 54], ["created_at", "2015-05-27 16:42:15.984060"], ["updated_at", "2015-05-27 16:42:15.984060"], ["value", 1]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:15.986238"], ["updated_at", "2015-05-27 16:42:15.986238"], ["user_id", 3440000000000063]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", "2015-05-27 16:42:15.988594"], ["updated_at", "2015-05-27 16:42:15.988594"], ["value", 2]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 63]] [test:344 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [test:344 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 63]] [test:344 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 3440000000000063]] [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.002552"], ["updated_at", "2015-05-27 16:42:16.002552"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.004231"], ["updated_at", "2015-05-27 16:42:16.004231"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:16.005791"], ["updated_at", "2015-05-27 16:42:16.005791"], ["user_id", 64], ["value", 1]] [test:344 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:16.008341"], ["updated_at", "2015-05-27 16:42:16.008341"], ["user_id", 3440000000000064]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 64]] [test:344 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 3440000000000064]] [1:345 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 64]] [test:344 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 64]] [test:344 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 3440000000000064]] [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.021326"], ["updated_at", "2015-05-27 16:42:16.021326"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.023021"], ["updated_at", "2015-05-27 16:42:16.023021"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:16.024859"], ["updated_at", "2015-05-27 16:42:16.024859"], ["user_id", 65]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 56], ["created_at", "2015-05-27 16:42:16.027537"], ["updated_at", "2015-05-27 16:42:16.027537"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:16.029653"], ["updated_at", "2015-05-27 16:42:16.029653"], ["user_id", 3440000000000065]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 58], ["created_at", "2015-05-27 16:42:16.032704"], ["updated_at", "2015-05-27 16:42:16.032704"], ["value", 2]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 65]] [test:344 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 3440000000000065]] [1:345 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 65]] [test:344 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 65]] [test:344 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 3440000000000065]] [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.2ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.048367"], ["updated_at", "2015-05-27 16:42:16.048367"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.050633"], ["updated_at", "2015-05-27 16:42:16.050633"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:16.052520"], ["updated_at", "2015-05-27 16:42:16.052520"], ["user_id", 66]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 57], ["created_at", "2015-05-27 16:42:16.055196"], ["updated_at", "2015-05-27 16:42:16.055196"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 57], ["created_at", "2015-05-27 16:42:16.057145"], ["updated_at", "2015-05-27 16:42:16.057145"], ["value", 1]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:16.059603"], ["updated_at", "2015-05-27 16:42:16.059603"], ["user_id", 3440000000000066]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 59], ["created_at", "2015-05-27 16:42:16.062354"], ["updated_at", "2015-05-27 16:42:16.062354"], ["value", 2]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 66]] [test:344 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 3440000000000066]] [1:345 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 66]] [test:344 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 66]] [test:344 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 3440000000000066]] [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.2ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.077847"], ["updated_at", "2015-05-27 16:42:16.077847"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.079598"], ["updated_at", "2015-05-27 16:42:16.079598"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:16.081379"], ["updated_at", "2015-05-27 16:42:16.081379"], ["user_id", 67], ["value", 1]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:16.083699"], ["updated_at", "2015-05-27 16:42:16.083699"], ["user_id", 3440000000000067], ["value", 2]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 67]] [test:344 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 67]] [test:344 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 67]] [test:344 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 3440000000000067]] [1:345 master]  (0.2ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.095428"], ["updated_at", "2015-05-27 16:42:16.095428"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.097307"], ["updated_at", "2015-05-27 16:42:16.097307"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:16.099766"], ["updated_at", "2015-05-27 16:42:16.099766"], ["user_id", 68], ["value", 1]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:16.101992"], ["updated_at", "2015-05-27 16:42:16.101992"], ["user_id", 3440000000000068]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:16.104665"], ["updated_at", "2015-05-27 16:42:16.104665"], ["user_id", 68], ["value", 2]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 68]] [test:344 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 68]] [test:344 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 3440000000000068]] [1:345 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 68]] [test:344 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 68]] [test:344 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 3440000000000068]] [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.118484"], ["updated_at", "2015-05-27 16:42:16.118484"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.120257"], ["updated_at", "2015-05-27 16:42:16.120257"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.122304"], ["updated_at", "2015-05-27 16:42:16.122304"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 69]] [test:344 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:16.125732"], ["updated_at", "2015-05-27 16:42:16.125732"], ["user_id", 69]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 61]] [test:344 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 69]] [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.133800"], ["updated_at", "2015-05-27 16:42:16.133800"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.135356"], ["updated_at", "2015-05-27 16:42:16.135356"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:16.137287"], ["updated_at", "2015-05-27 16:42:16.137287"], ["user_id", 3450000000000055]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 62]] [test:344 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 55]] [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.144980"], ["updated_at", "2015-05-27 16:42:16.144980"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.146722"], ["updated_at", "2015-05-27 16:42:16.146722"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:16.149630"], ["updated_at", "2015-05-27 16:42:16.149630"], ["user_id", 3440000000000071]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 333], ["created_at", "2015-05-27 16:42:16.152566"], ["updated_at", "2015-05-27 16:42:16.152566"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:16.155010"], ["updated_at", "2015-05-27 16:42:16.155010"], ["user_id", 3450000000000056]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 3440000000000063], ["created_at", "2015-05-27 16:42:16.156743"], ["updated_at", "2015-05-27 16:42:16.156743"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [test:343 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (333) [test:343 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (63) [test:344 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [test:344 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [1:345 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 71 [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.175437"], ["updated_at", "2015-05-27 16:42:16.175437"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.177023"], ["updated_at", "2015-05-27 16:42:16.177023"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:16.179874"], ["updated_at", "2015-05-27 16:42:16.179874"], ["user_id", 72]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:16.181937"], ["updated_at", "2015-05-27 16:42:16.181937"], ["user_id", 3440000000000072]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:16.183950"], ["updated_at", "2015-05-27 16:42:16.183950"], ["user_id", 3450000000000057]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [test:344 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (72) [test:344 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (3440000000000072) [1:345 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [1:345 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (57) [1:345 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 64 [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.200480"], ["updated_at", "2015-05-27 16:42:16.200480"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.202136"], ["updated_at", "2015-05-27 16:42:16.202136"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:16.204511"], ["updated_at", "2015-05-27 16:42:16.204511"], ["user_id", 3440000000000073]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:16.206404"], ["updated_at", "2015-05-27 16:42:16.206404"], ["user_id", 3450000000000058]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.207880"], ["updated_at", "2015-05-27 16:42:16.207880"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:16.210081"], ["updated_at", "2015-05-27 16:42:16.210081"], ["user_id", 667]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [test:343 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (73) [test:344 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [1:345 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (667) [test:343 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 73 [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.222166"], ["updated_at", "2015-05-27 16:42:16.222166"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.224078"], ["updated_at", "2015-05-27 16:42:16.224078"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.226025"], ["updated_at", "2015-05-27 16:42:16.226025"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 337], ["created_at", "2015-05-27 16:42:16.228645"], ["updated_at", "2015-05-27 16:42:16.228645"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 3430000000000337], ["created_at", "2015-05-27 16:42:16.230768"], ["updated_at", "2015-05-27 16:42:16.230768"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 337 ORDER BY "appendages"."id" ASC LIMIT 1 [test:343 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (337) [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.242042"], ["updated_at", "2015-05-27 16:42:16.242042"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.244183"], ["updated_at", "2015-05-27 16:42:16.244183"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:16.248276"], ["updated_at", "2015-05-27 16:42:16.248276"], ["user_id", 75]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:16.250741"], ["updated_at", "2015-05-27 16:42:16.250741"], ["user_id", 3440000000000075]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:16.252677"], ["updated_at", "2015-05-27 16:42:16.252677"], ["user_id", 3440000000000075]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 66], ["created_at", "2015-05-27 16:42:16.255380"], ["updated_at", "2015-05-27 16:42:16.255380"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 64], ["created_at", "2015-05-27 16:42:16.257969"], ["updated_at", "2015-05-27 16:42:16.257969"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 3450000000000064], ["created_at", "2015-05-27 16:42:16.260181"], ["updated_at", "2015-05-27 16:42:16.260181"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 3450000000000065], ["created_at", "2015-05-27 16:42:16.261673"], ["updated_at", "2015-05-27 16:42:16.261673"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:16.263286"], ["updated_at", "2015-05-27 16:42:16.263286"], ["user_id", 3450000000000060]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:16.266035"], ["updated_at", "2015-05-27 16:42:16.266035"], ["user_id", 60]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:16.268181"], ["updated_at", "2015-05-27 16:42:16.268181"], ["user_id", 60]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 3440000000000067], ["created_at", "2015-05-27 16:42:16.269889"], ["updated_at", "2015-05-27 16:42:16.269889"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 3450000000000066], ["created_at", "2015-05-27 16:42:16.271453"], ["updated_at", "2015-05-27 16:42:16.271453"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 67], ["created_at", "2015-05-27 16:42:16.272808"], ["updated_at", "2015-05-27 16:42:16.272808"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) [test:344 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (75) [test:344 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (3440000000000075) [1:345 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (66) [test:344 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (64, 65) [1:345 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [1:345 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (60) [1:345 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (66, 67) [1:345 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 8 [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.298843"], ["updated_at", "2015-05-27 16:42:16.298843"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.300953"], ["updated_at", "2015-05-27 16:42:16.300953"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-05-27 16:42:16.306804"], ["owner_id", 76], ["owner_type", "User"], ["updated_at", "2015-05-27 16:42:16.306804"], ["value", 1]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.4ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2015-05-27 16:42:16.309361"], ["owner_id", 3440000000000076], ["owner_type", "User"], ["updated_at", "2015-05-27 16:42:16.309361"], ["value", 2]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 76], ["owner_type", "User"]] [test:344 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 76]] [test:344 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 76], ["owner_type", "User"]] [test:344 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 3440000000000076], ["owner_type", "User"]] [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.325224"], ["updated_at", "2015-05-27 16:42:16.325224"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.327331"], ["updated_at", "2015-05-27 16:42:16.327331"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.329186"], ["updated_at", "2015-05-27 16:42:16.329186"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.3ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-27 16:42:16.331354"], ["owner_id", 338], ["owner_type", "Appendage"], ["updated_at", "2015-05-27 16:42:16.331354"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 29]] [test:343 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 338]] [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) UPDATE "features" SET "owner_id" = $1, "owner_type" = $2, "updated_at" = $3 WHERE "features"."id" = 29 [["owner_id", 3440000000000077], ["owner_type", "User"], ["updated_at", "2015-05-27 16:42:16.336682"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master] Feature Load (0.1ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 29]] [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.344795"], ["updated_at", "2015-05-27 16:42:16.344795"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.346357"], ["updated_at", "2015-05-27 16:42:16.346357"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.3ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-27 16:42:16.355895"], ["updated_at", "2015-05-27 16:42:16.355895"], ["user_id", 3450000000000063]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master] Root Load (0.2ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 28]] [test:343 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 63]] [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.365352"], ["updated_at", "2015-05-27 16:42:16.365352"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.367458"], ["updated_at", "2015-05-27 16:42:16.367458"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 343]] [test:343 master]  (0.3ms) COMMIT [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 344], ["name", "switchman_test_shard_344"]] [test:343 master]  (0.2ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 345], ["name", "switchman_test_shard_345"]] [test:343 master]  (0.3ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=343 AND id<344)) [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (343)) [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=343 AND id<344) OR (id>=345 AND id<346)) ORDER BY "switchman_shards"."id" ASC [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (343)) [test:343 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=343 AND id<=344)) AND (id NOT IN (343)) [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=344 AND id<=344)) AND (id NOT IN (343)) [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (343)) [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=344)) ORDER BY "switchman_shards"."id" ASC [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=344)) ORDER BY "switchman_shards"."id" ASC [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=343 AND id<=344)) ORDER BY "switchman_shards"."id" ASC [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:343 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 343]] [test:343 master]  (0.3ms) COMMIT [test:343 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 344], ["name", "switchman_test_shard_344"]] [test:343 master]  (0.3ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 345], ["name", "switchman_test_shard_345"]] [test:343 master]  (0.4ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:343 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 343]] [test:343 master]  (0.2ms) COMMIT [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 344], ["name", "switchman_test_shard_344"]] [test:343 master]  (0.3ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 345], ["name", "switchman_test_shard_345"]] [test:343 master]  (0.3ms) COMMIT [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.479131"], ["updated_at", "2015-05-27 16:42:16.479131"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.481355"], ["updated_at", "2015-05-27 16:42:16.481355"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.492339"], ["updated_at", "2015-05-27 16:42:16.492339"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 344 LIMIT 1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.500973"], ["updated_at", "2015-05-27 16:42:16.500973"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [test:344 master] SQL (0.1ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.502622"], ["updated_at", "2015-05-27 16:42:16.502622"]] [test:344 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:344 master]  (0.1ms) SAVEPOINT active_record_1 [1:345 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.505001"], ["updated_at", "2015-05-27 16:42:16.505001"]] [1:345 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:344 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.510797"], ["updated_at", "2015-05-27 16:42:16.510797"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master]  (0.1ms) BEGIN [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 344]] [test:343 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 345]] [test:343 master]  (0.1ms) BEGIN [1:345 master]  (0.1ms) SAVEPOINT active_record_1 [test:343 master] SQL (0.1ms) INSERT INTO "roots" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-05-27 16:42:16.521425"], ["updated_at", "2015-05-27 16:42:16.521425"]] [test:343 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:343 master]  (0.1ms) ROLLBACK [1:345 master]  (0.1ms) ROLLBACK [test:343 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:343 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:343 master]  (5.5ms) DROP SCHEMA switchman_test_shard_344 CASCADE [test:344 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 344]]  (0.1ms) COMMIT  (6.0ms) DROP SCHEMA switchman_test_shard_345 CASCADE [1:345 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 345]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (9.1ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (19.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (24.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.5ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (1.5ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to CreateSwitchmanShards (20130328212039) Migrating to CreateDefaultShard (20130328224244) Migrating to CreateUsers (20130403132607) Migrating to CreateAppendages (20130411202442) Migrating to CreateMirrorUsers (20130411202551) Migrating to CreateDigits (20131022202028) Migrating to CreateFeatures (20131206172923) Migrating to AddParentIdToUsers (20140123154135) Migrating to CreateRoots (20140219183820) Migrating to AddDummyForeignKey (20150618035859)  (0.1ms) BEGIN  (7.8ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859')  (0.4ms) COMMIT  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.6ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (1.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'development' AND "switchman_shards"."name" IS NULL LIMIT 1 Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'production' AND "switchman_shards"."name" IS NULL LIMIT 1  (1.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'development' AND "switchman_shards"."name" IS NULL ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'production' AND "switchman_shards"."name" IS NULL ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (5.9ms) DELETE FROM "switchman_shards" [test:366 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:366 master]  (0.1ms) BEGIN [test:366 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:366 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", true]] [test:366 master]  (6.2ms) COMMIT [test:366 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:366 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [test:367 master]  (25.3ms) CREATE SCHEMA switchman_test_shard_368 [test:368 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:368 deploy]  (32.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [test:368 deploy]  (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:368 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:368 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (30.5ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [test:368 deploy] SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:368 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:368 deploy] Migrating to CreateUsers (20130403132607)  (9.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:368 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:368 deploy] Migrating to CreateAppendages (20130411202442)  (20.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:368 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:368 deploy] Migrating to CreateMirrorUsers (20130411202551)  (19.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:368 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:368 deploy] Migrating to CreateDigits (20131022202028)  (7.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:368 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:368 deploy] Migrating to CreateFeatures (20131206172923)  (15.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:368 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:368 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:368 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:368 deploy] Migrating to CreateRoots (20140219183820)  (7.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:368 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:368 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.3ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:368 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:368 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 deploy] SQL (0.4ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 368 [["name", "switchman_test_shard_368"]] [test:367 master]  (13.1ms) COMMIT [test:367 master] Switchman::Shard Load (5.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:367 master]  (0.4ms) COMMIT [test:367 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_369 [1:369 deploy]  (0.1ms) BEGIN [1:369 deploy]  (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [1:369 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:369 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:369 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [1:369 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:369 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:369 deploy] Migrating to CreateUsers (20130403132607)  (3.6ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [1:369 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:369 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [1:369 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:369 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [1:369 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:369 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [1:369 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:369 deploy] Migrating to CreateFeatures (20131206172923)  (2.5ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [1:369 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:369 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:369 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:369 deploy] Migrating to CreateRoots (20140219183820)  (2.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [1:369 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:369 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:369 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [1:369 deploy]  (0.8ms) COMMIT [1:369 deploy]  (0.1ms) BEGIN [test:367 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 369 [["name", "switchman_test_shard_369"]] [test:367 master]  (0.3ms) COMMIT [test:367 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master]  (0.1ms) ROLLBACK [test:367 master]  (0.2ms) BEGIN [test:367 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:367 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 367]] [test:367 master]  (0.5ms) COMMIT [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 368], ["name", "switchman_test_shard_368"]] [test:367 master]  (0.2ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 369], ["name", "switchman_test_shard_369"]] [test:367 master]  (0.2ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 367]] [test:367 master]  (0.3ms) COMMIT [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 368], ["name", "switchman_test_shard_368"]] [test:367 master]  (0.2ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 369], ["name", "switchman_test_shard_369"]] [test:367 master]  (0.3ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (2.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:368 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master] SQL (10.7ms) DELETE FROM "switchman_shards" [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 367]] [test:367 master]  (4.9ms) COMMIT [test:367 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 368], ["name", "switchman_test_shard_368"]] [test:367 master]  (0.4ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 369], ["name", "switchman_test_shard_369"]] [test:367 master]  (0.3ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (2.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master] User Load (0.4ms) SELECT "users".* FROM "users" [test:368 master] User Load (0.3ms) SELECT "users".* FROM "users" [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:367 master] SQL (0.2ms) DELETE FROM "users" [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:367 master] SQL (0.1ms) DELETE FROM "users" [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:367 master]  (0.4ms) COMMIT [test:367 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:367 master] SQL (0.7ms) DELETE FROM "users" [test:367 master] SQL (0.2ms) DELETE FROM "users" [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:367 master]  (0.3ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["name", "a"], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:367 master]  (0.3ms) COMMIT [test:367 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 675]] [test:367 master] CACHE (0.0ms) 367::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 675]] CACHE (0.0ms) 367::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 675]]  (0.1ms) BEGIN [test:367 master] SQL (0.4ms) UPDATE "users" SET "name" = $1, "updated_at" = $2 WHERE "users"."id" = 675 [["name", "b"], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:367 master]  (0.4ms) COMMIT [test:367 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 675]] [test:367 master] CACHE (0.0ms) 367::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 675]] SQL (0.4ms) DELETE FROM "users" [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:367 master]  (0.5ms) COMMIT [test:367 master] User Load (0.3ms) SELECT "users".* FROM "users" [test:367 master] SQL (0.3ms) DELETE FROM "users" [test:367 master] SQL (0.1ms) DELETE FROM "users" [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:367 master]  (0.4ms) COMMIT [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.2ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:367 master]  (0.4ms) COMMIT [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:367 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-06-18 04:03:37.733706' [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:367 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-06-18 04:03:37.740344' [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:367 master]  (0.3ms) COMMIT [test:367 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:367 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-06-18 04:03:37.744741' [test:367 master] SQL (0.3ms) DELETE FROM "users" [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:367 master]  (0.3ms) COMMIT [test:367 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:367 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-06-18 04:03:37.749246' [test:367 master] SQL (0.3ms) DELETE FROM "users" [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:367 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 367]] [test:367 master]  (0.2ms) COMMIT [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 368], ["name", "switchman_test_shard_368"]] [test:367 master]  (0.2ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 369], ["name", "switchman_test_shard_369"]] [test:367 master]  (0.2ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 368 LIMIT 1 [test:367 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 4]] [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 5]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3680000000000005 ORDER BY "users"."id" ASC LIMIT 1 [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["name", "multi-shard exists"], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:367 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [test:367 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 7 LIMIT 1 [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (8) LIMIT 1 [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 9 LIMIT 1 [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 367]] [test:367 master]  (0.4ms) COMMIT [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 368], ["name", "switchman_test_shard_368"]] [test:367 master]  (0.3ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 369], ["name", "switchman_test_shard_369"]] [test:367 master]  (0.2ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (14.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["user_id", 685]] [test:367 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["user_id", 10]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["user_id", 2]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["user_id", 686]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["user_id", 11]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["user_id", 3]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 368 LIMIT 1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["user_id", 687]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["user_id", 12]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["user_id", 4]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["user_id", 688]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["user_id", 13]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["user_id", 5]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["user_id", 689]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["user_id", 14]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["user_id", 6]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.2ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["user_id", 690]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:37 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 15]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 7]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 691]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 16]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 8]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 692]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 17]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 9]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.2ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 693]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 18]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 10]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 694]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 19]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 11]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 695]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 20]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 12]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 696]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 21]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 13]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 697]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 22]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 14]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 698]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 23]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 15]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 699]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 24]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 16]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 700]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 25]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [1:369 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["user_id", 17]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["parent_id", 700], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["parent_id", 701], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 701]] [test:367 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 700]] [test:367 master] User Load (0.6ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 [["parent_id", 700]] [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master] SQL (6.0ms) DELETE FROM "switchman_shards" [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 367]] [test:367 master]  (6.1ms) COMMIT [test:367 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 368], ["name", "switchman_test_shard_368"]] [test:367 master]  (0.3ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 369], ["name", "switchman_test_shard_369"]] [test:367 master]  (0.4ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (2.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:367 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:367 master] MirrorUser Load (0.4ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 16]] [test:367 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 16]] [test:367 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 16 ORDER BY "mirror_users"."id" ASC LIMIT 1 [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 367]] [test:367 master]  (0.3ms) COMMIT [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 368], ["name", "switchman_test_shard_368"]] [test:367 master]  (0.2ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 369], ["name", "switchman_test_shard_369"]] [test:367 master]  (0.2ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:367 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 367]] [test:367 master]  (0.4ms) COMMIT [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 368], ["name", "switchman_test_shard_368"]] [test:367 master]  (0.3ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 369], ["name", "switchman_test_shard_369"]] [test:367 master]  (0.3ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.2ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 368 LIMIT 1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (8.9ms) INSERT INTO "roots" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "2"], ["name", "non_existent_shard"]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.3ms) SELECT COUNT(*) FROM "users" [2:370 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.6ms) SELECT COUNT(*) FROM "users" [2:371 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "3"]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "4"]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "5"]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "6"]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "7"]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "8"]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 367]] [test:367 master]  (0.3ms) COMMIT [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 368], ["name", "switchman_test_shard_368"]] [test:367 master]  (0.3ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 369], ["name", "switchman_test_shard_369"]] [test:367 master]  (0.3ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (367)) [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (367)) [test:367 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=368)) ORDER BY "switchman_shards"."id" ASC [test:367 master]  (0.2ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=368)) ORDER BY "switchman_shards"."id" ASC [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=367 AND id<=368)) ORDER BY "switchman_shards"."id" ASC [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=368 AND id<=368)) AND (id NOT IN (367)) [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (367)) [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=367 AND id<368)) [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=367 AND id<=368)) AND (id NOT IN (367)) [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=367 AND id<368) OR (id>=369 AND id<370)) ORDER BY "switchman_shards"."id" ASC [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master]  (0.2ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "9"]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "9"]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 367]] [test:367 master]  (6.3ms) COMMIT [test:367 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 368], ["name", "switchman_test_shard_368"]] [test:367 master]  (6.2ms) COMMIT [test:367 master]  (0.2ms) BEGIN [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 369], ["name", "switchman_test_shard_369"]] [test:367 master]  (0.4ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 369 LIMIT 1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.2ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10369 LIMIT 1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.2ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.2ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '10' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "10"], ["name", "public"]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_380 [10:380 deploy]  (0.1ms) BEGIN [10:380 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [10:380 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [10:380 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [10:380 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.9ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [10:380 deploy] SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [10:380 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [10:380 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [10:380 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [10:380 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [10:380 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [10:380 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [10:380 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [10:380 deploy] Migrating to CreateDigits (20131022202028)  (3.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [10:380 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [10:380 deploy] Migrating to CreateFeatures (20131206172923)  (2.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [10:380 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [10:380 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [10:380 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [10:380 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [10:380 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [10:380 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [10:380 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [10:380 deploy]  (0.9ms) COMMIT [10:380 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 380 [["name", "switchman_test_shard_380"]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) BEGIN [10:380 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [10:380 master]  (0.4ms) COMMIT [10:380 master]  (0.2ms) SELECT COUNT(*) FROM "users" [10:380 master]  (7.8ms) DROP SCHEMA switchman_test_shard_380 CASCADE [10:380 deploy]  (0.4ms) SELECT COUNT(*) FROM "users" [10:380 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [1:369 master]  (0.3ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 368 LIMIT 1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 381]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 382]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 382 LIMIT 1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.2ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.2ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 367 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:367 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 367]] [test:367 master]  (0.3ms) COMMIT [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 368], ["name", "switchman_test_shard_368"]] [test:367 master]  (0.3ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 369], ["name", "switchman_test_shard_369"]] [test:367 master]  (0.3ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:38 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "12"]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "13"]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master] SQL (6.7ms) DELETE FROM "switchman_shards" [test:367 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:367 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 367]] [test:367 master]  (0.4ms) COMMIT [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 368], ["name", "switchman_test_shard_368"]] [test:367 master]  (0.3ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 369], ["name", "switchman_test_shard_369"]] [test:367 master]  (0.2ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (368,369)) AND "switchman_shards"."id" IN (367, 368) [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:367 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 367]] [test:367 master]  (0.3ms) COMMIT [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 368], ["name", "switchman_test_shard_368"]] [test:367 master]  (0.3ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 369], ["name", "switchman_test_shard_369"]] [test:367 master]  (0.3ms) COMMIT [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master]  (0.4ms) SELECT COUNT(*) FROM "users" [1:369 master]  (0.1ms) SAVEPOINT active_record_2 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [1:369 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.2ms) SELECT COUNT(*) FROM "users" [1:369 master]  (0.1ms) ROLLBACK [1:369 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:367 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master]  (0.2ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 367]] [test:367 master]  (6.2ms) COMMIT [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 368], ["name", "switchman_test_shard_368"]] [test:367 master]  (6.0ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 369], ["name", "switchman_test_shard_369"]] [test:367 master]  (0.4ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 367]] [test:367 master]  (0.3ms) COMMIT [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 368], ["name", "switchman_test_shard_368"]] [test:367 master]  (0.3ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 369], ["name", "switchman_test_shard_369"]] [test:367 master]  (0.3ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '31' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "31"]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) begin transaction [31:385 deploy]  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [31:385 deploy]  (0.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [31:385 deploy] ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations" [31:385 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (0.2ms) CREATE TABLE "switchman_shards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "database_server_id" varchar(255), "default" boolean DEFAULT 'f' NOT NULL) [31:385 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130328212039"]] [31:385 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130328224244"]] [31:385 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [31:385 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130403132607"]] [31:385 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime)  [31:385 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202442"]] [31:385 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [31:385 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202551"]] [31:385 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime)  [31:385 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131022202028"]] [31:385 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime, "updated_at" datetime)  [31:385 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131206172923"]] [31:385 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) ALTER TABLE "users" ADD "parent_id" integer(8) [31:385 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140123154135"]] [31:385 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime)  [31:385 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219183820"]] [31:385 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.1ms) ALTER TABLE "users" ADD "broken_id" integer(8) [31:385 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150618035859"]] [31:385 deploy]  (1.1ms) commit transaction [31:385 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.4ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 385 [["name", "db/shard_385.sqlite3"]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) begin transaction [31:385 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [31:385 master]  (0.7ms) commit transaction [31:385 master] Drop failed: No such file or directory @ unlink_internal - db/shard_385.sqlite3  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 385]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '32' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "32"], ["name", "public"]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (6.6ms) CREATE SCHEMA switchman_test_shard_386 [32:386 deploy]  (0.1ms) BEGIN [32:386 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [32:386 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [32:386 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [32:386 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.0ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [32:386 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [32:386 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [32:386 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [32:386 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [32:386 deploy] Migrating to CreateAppendages (20130411202442)  (3.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [32:386 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [32:386 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [32:386 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [32:386 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [32:386 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [32:386 deploy] Migrating to CreateFeatures (20131206172923)  (2.4ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [32:386 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [32:386 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [32:386 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [32:386 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [32:386 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [32:386 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [32:386 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [32:386 deploy]  (0.8ms) COMMIT [32:386 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 386 [["name", "switchman_test_shard_386"]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) BEGIN [32:386 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [32:386 master]  (0.4ms) COMMIT [32:386 master]  (6.5ms) DROP SCHEMA switchman_test_shard_386 CASCADE [32:386 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 386]] [test:367 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [test:367 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_387 [test:387 deploy]  (0.1ms) SAVEPOINT active_record_2 [test:387 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:387 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:387 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:387 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.4ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:387 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:387 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:387 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:387 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:387 deploy] Migrating to CreateAppendages (20130411202442)  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:387 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:387 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:387 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:387 deploy] Migrating to CreateDigits (20131022202028)  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:387 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:387 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:387 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:387 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:387 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:387 deploy] Migrating to CreateRoots (20140219183820)  (2.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:387 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:387 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:387 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:387 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_2 [test:387 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 387 [["name", "switchman_test_shard_387"]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.2ms) SAVEPOINT active_record_1 [test:387 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:387 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:387 master]  (3.1ms) DROP SCHEMA switchman_test_shard_387 CASCADE [test:387 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 387]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (2.1ms) ROLLBACK [test:367 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:367 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 367]] [test:367 master]  (6.3ms) COMMIT [test:367 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 368], ["name", "switchman_test_shard_368"]] [test:367 master]  (5.1ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 369], ["name", "switchman_test_shard_369"]] [test:367 master]  (0.3ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.0ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:04:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:04:39 UTC +00:00]] [test:368 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.0ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 367]] [test:367 master]  (0.3ms) COMMIT [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 368], ["name", "switchman_test_shard_368"]] [test:367 master]  (0.3ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 369], ["name", "switchman_test_shard_369"]] [test:367 master]  (0.3ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["user_id", 30]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 368 LIMIT 1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["user_id", 31]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.4ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 31]] [test:368 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 31]] [test:368 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 31]] [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["user_id", 32]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 20], ["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master] Digit Load (0.8ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 32], ["id", 1]] [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.2ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["user_id", 33]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["user_id", 23]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 369 LIMIT 1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.2ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["user_id", 34]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 34], ["id", 22]] [test:368 master] Appendage Load (0.6ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 24], ["id", 3680000000000022]] [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["user_id", 35]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.2ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["parent_id", 39], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["parent_id", 40], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 39]] [test:368 master] User Exists (0.7ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 41 LIMIT 1 [["parent_id", 39]] [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["id", 41], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 39]] [test:368 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 3690000000000041 LIMIT 1 [["parent_id", 39]] [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["user_id", 42]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 24]] [test:368 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 42]] [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["user_id", 43]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.7ms) INSERT INTO "digits" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 25], ["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["id", 3690000000000001], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 43], ["id", 3690000000000001]] [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.2ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["user_id", 45], ["value", 1]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["user_id", 3680000000000045], ["value", 2]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 45]] [test:368 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 45]] [test:368 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 45]] [test:368 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 3680000000000045]] [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["user_id", 46], ["value", 1]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["user_id", 3680000000000046]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["user_id", 46], ["value", 2]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [test:368 master]  (1.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 46]] [test:368 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 3680000000000046]] [1:369 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [test:368 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 46]] [test:368 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 3680000000000046]] [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["user_id", 47]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 29], ["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.2ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["user_id", 3680000000000047]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 21], ["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["value", 2]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 47]] [test:368 master] Digit Load (0.6ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 3680000000000047]] [1:369 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 47]] [test:368 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 47]] [test:368 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 3680000000000047]] [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["user_id", 48]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 30], ["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["value", 1]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["user_id", 3680000000000048]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 22], ["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["value", 2]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 48]] [test:368 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 48]] [test:368 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 48]] [test:368 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 3680000000000048]] [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["user_id", 49]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 31], ["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["user_id", 3680000000000049]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 23], ["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["value", 2]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.5ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 49]] [test:368 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 3680000000000049]] [1:369 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 49]] [test:368 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 49]] [test:368 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 3680000000000049]] [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["user_id", 50]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 32], ["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 32], ["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["value", 1]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["user_id", 3680000000000050]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 24], ["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["value", 2]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 50]] [test:368 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 3680000000000050]] [1:369 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 50]] [test:368 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 50]] [test:368 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 3680000000000050]] [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["user_id", 51], ["value", 1]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["user_id", 3680000000000051]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 51]] [test:368 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 3680000000000051]] [1:369 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 51]] [test:368 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 51]] [test:368 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 3680000000000051]] [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["user_id", 3690000000000040]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 31]] [test:367 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 40]] [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 53]] [test:368 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["user_id", 53]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 34]] [test:368 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 53]] [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["user_id", 3690000000000042]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 35]] [test:368 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 42]] [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["owner_id", 55], ["owner_type", "User"], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["value", 1]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["owner_id", 3680000000000055], ["owner_type", "User"], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["value", 2]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 55], ["owner_type", "User"]] [test:368 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 55]] [test:368 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 55], ["owner_type", "User"]] [test:368 master] Feature Load (0.8ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 3680000000000055], ["owner_type", "User"]] [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (1.8ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["owner_id", 355], ["owner_type", "Appendage"], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 30]] [test:367 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 355]] [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.4ms) UPDATE "features" SET "owner_id" = $1, "owner_type" = $2, "updated_at" = $3 WHERE "features"."id" = 30 [["owner_id", 3680000000000056], ["owner_type", "User"], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 30]] [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.2ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["user_id", 3680000000000057]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["user_id", 3690000000000045]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:39 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 706]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [test:367 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [test:368 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [1:369 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (706) [test:367 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 57 [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 3680000000000058]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (8.9ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 359], ["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 3690000000000046]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 3680000000000036], ["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [test:367 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (359) [test:367 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (36) [test:368 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [test:368 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (46) [1:369 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = 58 [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 360], ["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 3670000000000360], ["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 360 ORDER BY "appendages"."id" ASC LIMIT 1 [test:367 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (360) [test:367 master]  (0.2ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 60]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 3680000000000060]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 3680000000000060]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 37], ["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 27], ["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.2ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 3690000000000027], ["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 3690000000000028], ["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 3690000000000048]] [test:368 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 48]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 48]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 3680000000000038], ["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 3690000000000029], ["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 30], ["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [test:368 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (60) [test:368 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (3680000000000060) [1:369 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (37) [test:368 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (27, 28) [1:369 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (48) [1:369 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (48) [1:369 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (29, 30) [1:369 master] SQL (0.3ms) DELETE FROM "digits" WHERE "digits"."id" = 8 [test:368 master]  (0.2ms) ROLLBACK [1:369 master]  (0.3ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 61]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 3680000000000061]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 3690000000000049]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [test:368 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (61) [test:368 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (3680000000000061) [1:369 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (49) [1:369 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (49) [1:369 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 39 [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 367]] [test:367 master]  (0.3ms) COMMIT [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.2ms) BEGIN [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 368], ["name", "switchman_test_shard_368"]] [test:367 master]  (0.3ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 369], ["name", "switchman_test_shard_369"]] [test:367 master]  (0.3ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "33"]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "33"]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.2ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 367]] [test:367 master]  (0.3ms) COMMIT [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 368], ["name", "switchman_test_shard_368"]] [test:367 master]  (0.3ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 369], ["name", "switchman_test_shard_369"]] [test:367 master]  (0.2ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 62], ["value", 1]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 62], ["value", 2]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 50], ["value", 3]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 50], ["value", 4]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 50], ["value", 5]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 62]] [test:368 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [test:368 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 50]] [1:369 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [1:369 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 368 LIMIT 1 [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 369 LIMIT 1 [test:367 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (41, 42) [test:368 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (32, 33, 34) [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 63], ["value", 1]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 63], ["value", 2]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 51], ["value", 3]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 51], ["value", 4]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 51], ["value", 5]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (2.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 63]] [test:368 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [test:368 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 51]] [1:369 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [1:369 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (43, 44) [test:368 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (35, 36, 37) [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 64], ["value", 1]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 64], ["value", 2]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 52], ["value", 3]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 52], ["value", 4]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 52], ["value", 5]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (1.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 64]] [test:368 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [test:368 master]  (0.5ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 52]] [1:369 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [1:369 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (45, 46) [test:368 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (38, 39, 40) [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 65], ["value", 1]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 65], ["value", 2]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 53], ["value", 3]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 53], ["value", 4]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 53], ["value", 5]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 65]] [test:368 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [test:368 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 53]] [1:369 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [1:369 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (47, 48) [test:368 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (41, 42, 43) [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 66], ["value", 1]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 66], ["value", 2]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 54], ["value", 3]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 54], ["value", 4]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 54], ["value", 5]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.5ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 66]] [test:368 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [test:368 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 54]] [1:369 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [1:369 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (49, 50) [test:368 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (44, 45, 46) [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 67]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 55]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 51 [test:368 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 47 [1:369 master]  (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 51 [test:368 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 47 [1:369 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 51 [test:368 master]  (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 47 [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 68]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 56]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (68) [test:368 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (56) [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 69]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 57]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 53 [test:368 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 49 [1:369 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 53 [test:368 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 49 [1:369 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 53 [test:368 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 49 [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 70]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 58]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.4ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (707) [test:367 master]  (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (70) [test:368 master]  (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (58) [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 71], ["value", 1]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 3690000000000059], ["value", 3]] [test:368 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 3680000000000071], ["value", 2]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 59], ["value", 4]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 59], ["value", 5]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:368 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:369 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:368 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:369 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:368 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:369 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [test:368 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [test:368 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [1:369 master]  (1.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [1:369 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [1:369 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [test:368 master]  (0.2ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.2ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 72], ["value", 1]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 3690000000000060], ["value", 3]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 3680000000000072], ["value", 2]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.2ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 60], ["value", 4]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 60], ["value", 5]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:368 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:369 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:368 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:369 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:368 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:369 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:368 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [test:368 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [1:369 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:369 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [1:369 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 73], ["value", 1]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 3690000000000061], ["value", 3]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 3680000000000073], ["value", 2]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 61], ["value", 4]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 61], ["value", 5]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:368 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:369 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:368 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:369 master]  (0.6ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:368 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:369 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:368 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (73) [test:368 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [1:369 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:369 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [1:369 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (73) [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 74], ["value", 1]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 3690000000000062], ["value", 3]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 3680000000000074], ["value", 2]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 62], ["value", 4]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 62], ["value", 5]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 74]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 75]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 76], ["value", 1]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 3690000000000063], ["value", 3]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 3680000000000076], ["value", 2]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 63], ["value", 4]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 63], ["value", 5]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:368 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:369 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:368 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:369 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:368 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:369 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:368 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (76) [test:368 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (63) [1:369 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:369 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (63) [1:369 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (76) [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 77], ["value", 1]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 3690000000000064], ["value", 3]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 3680000000000077], ["value", 2]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 64], ["value", 4]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [1:369 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["user_id", 64], ["value", 5]] [1:369 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:369 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:368 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:369 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:368 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:369 master]  (0.3ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:368 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:369 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [test:368 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (77) [test:368 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [1:369 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [1:369 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (64) [1:369 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (77) [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 367]] [test:367 master]  (0.3ms) COMMIT [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 368], ["name", "switchman_test_shard_368"]] [test:367 master]  (0.3ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 369], ["name", "switchman_test_shard_369"]] [test:367 master]  (0.4ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 78 [test:368 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 708]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 368 LIMIT 1 [test:367 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 78]] [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (709) [test:367 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (79) [test:368 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 709]] [test:367 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 79]] [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 81 ORDER BY "users"."id" ASC LIMIT 1 [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:368 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:368 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:368 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (712) [test:367 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (82) [test:368 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:368 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:367 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 367]] [test:367 master]  (0.3ms) COMMIT [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 368], ["name", "switchman_test_shard_368"]] [test:367 master]  (0.3ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 369], ["name", "switchman_test_shard_369"]] [test:367 master]  (0.3ms) COMMIT [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 368 LIMIT 1 [test:367 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 369 LIMIT 1 [test:367 master]  (0.2ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["owner_id", 713], ["owner_type", "User"], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master] Feature Load (0.3ms) SELECT owner_id FROM "features" WHERE "features"."id" = 31 ORDER BY "features"."id" ASC LIMIT 1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master]  (0.1ms) BEGIN [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 368]] [test:367 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 369]] [test:367 master]  (0.1ms) BEGIN [1:369 master]  (0.1ms) SAVEPOINT active_record_1 [test:367 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:03:40 UTC +00:00]] [test:367 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:367 master]  (0.1ms) ROLLBACK [1:369 master]  (0.1ms) ROLLBACK [test:367 master] SQL (6.0ms) DELETE FROM "switchman_shards" [test:367 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:367 master]  (5.2ms) DROP SCHEMA switchman_test_shard_368 CASCADE [test:368 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 368]]  (0.1ms) COMMIT  (7.3ms) DROP SCHEMA switchman_test_shard_369 CASCADE [1:369 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 369]]  (0.1ms) COMMIT  (0.9ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.6ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.2ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", true]]  (6.0ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_391 [test:391 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:391 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:391 deploy]  (6.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:391 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:391 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (20.3ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:391 deploy] SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:391 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:391 deploy] Migrating to CreateUsers (20130403132607)  (7.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:391 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:391 deploy] Migrating to CreateAppendages (20130411202442)  (14.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:391 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:391 deploy] Migrating to CreateMirrorUsers (20130411202551)  (7.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:391 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:391 deploy] Migrating to CreateDigits (20131022202028)  (7.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:391 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:391 deploy] Migrating to CreateFeatures (20131206172923)  (8.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:391 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:391 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:391 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:391 deploy] Migrating to CreateRoots (20140219183820)  (7.4ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:391 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:391 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:391 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:391 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 deploy] SQL (0.6ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 391 [["name", "switchman_test_shard_391"]] [test:390 master]  (11.6ms) COMMIT [test:390 master] Switchman::Shard Load (5.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:390 master]  (0.2ms) COMMIT [test:390 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_392 [1:392 deploy]  (0.1ms) BEGIN [1:392 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:392 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:392 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:392 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.3ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:392 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:392 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:392 deploy] Migrating to CreateUsers (20130403132607)  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:392 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:392 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:392 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:392 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:392 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:392 deploy] Migrating to CreateDigits (20131022202028)  (2.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:392 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:392 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:392 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:392 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:392 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:392 deploy] Migrating to CreateRoots (20140219183820)  (2.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:392 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:392 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:392 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [1:392 deploy]  (0.8ms) COMMIT [1:392 deploy]  (0.1ms) BEGIN [test:390 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 392 [["name", "switchman_test_shard_392"]] [test:390 master]  (0.3ms) COMMIT [test:390 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 390]] [test:390 master]  (0.3ms) COMMIT [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 391], ["name", "switchman_test_shard_391"]] [test:390 master]  (0.3ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 392], ["name", "switchman_test_shard_392"]] [test:390 master]  (0.3ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master]  (0.2ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:390 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 390]] [test:390 master]  (6.1ms) COMMIT [test:390 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 391], ["name", "switchman_test_shard_391"]] [test:390 master]  (6.1ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 392], ["name", "switchman_test_shard_392"]] [test:390 master]  (5.1ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (1.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 1 LIMIT 1 [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.2ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (1.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["name", "multi-shard exists"], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:390 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [test:390 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 391 LIMIT 1 [test:390 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3 LIMIT 1 [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (4) LIMIT 1 [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 5]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3910000000000005 ORDER BY "users"."id" ASC LIMIT 1 [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 6]] [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 390]] [test:390 master]  (0.4ms) COMMIT [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 391], ["name", "switchman_test_shard_391"]] [test:390 master]  (0.3ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 392], ["name", "switchman_test_shard_392"]] [test:390 master]  (0.3ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (391,392)) AND "switchman_shards"."id" IN (390, 391) [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 390]] [test:390 master]  (0.4ms) COMMIT [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 391], ["name", "switchman_test_shard_391"]] [test:390 master]  (0.2ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 392], ["name", "switchman_test_shard_392"]] [test:390 master]  (0.2ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master] User Load (0.3ms) SELECT "users".* FROM "users" [test:391 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:390 master] SQL (0.1ms) DELETE FROM "users" [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:390 master] SQL (0.1ms) DELETE FROM "users" [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.4ms) COMMIT [test:390 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:390 master] SQL (0.9ms) DELETE FROM "users" [test:390 master] SQL (0.2ms) DELETE FROM "users" [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.4ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["name", "a"], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.3ms) COMMIT [test:390 master] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 720]] [test:390 master] CACHE (0.0ms) 390::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 720]] CACHE (0.0ms) 390::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 720]]  (0.1ms) BEGIN [test:390 master] SQL (0.4ms) UPDATE "users" SET "name" = $1, "updated_at" = $2 WHERE "users"."id" = 720 [["name", "b"], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.3ms) COMMIT [test:390 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 720]] [test:390 master] CACHE (0.0ms) 390::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 720]] SQL (0.4ms) DELETE FROM "users" [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.3ms) COMMIT [test:390 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:390 master] SQL (0.3ms) DELETE FROM "users" [test:390 master] SQL (0.2ms) DELETE FROM "users" [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.3ms) COMMIT [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.3ms) COMMIT [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.2ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:390 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-06-18 04:06:36.468686' [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:390 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-06-18 04:06:36.476257' [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.3ms) COMMIT [test:390 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:390 master] SQL (0.5ms) UPDATE "users" SET "updated_at" = '2015-06-18 04:06:36.481141' [test:390 master] SQL (0.4ms) DELETE FROM "users" [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.3ms) COMMIT [test:390 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:390 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2015-06-18 04:06:36.486836' [test:390 master] SQL (0.4ms) DELETE FROM "users" [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.2ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:390 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 390]] [test:390 master]  (0.3ms) COMMIT [test:390 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 391], ["name", "switchman_test_shard_391"]] [test:390 master]  (0.2ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 392], ["name", "switchman_test_shard_392"]] [test:390 master]  (0.2ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.9ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 730]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 9]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 2]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 731]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 10]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 3]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.9ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.3ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 732]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 11]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 4]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 391 LIMIT 1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 733]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 12]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 5]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 734]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 13]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 6]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.3ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 735]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 14]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master]  (0.2ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 7]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 736]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 15]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 8]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 737]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 16]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 9]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 738]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.2ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 17]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 10]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 739]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 18]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 11]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 740]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 19]] [test:391 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 12]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 741]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 20]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 13]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["parent_id", 741], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["parent_id", 742], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 742]] [test:390 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 741]] [test:390 master] User Load (0.8ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 [["parent_id", 741]] [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.2ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 744]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 21]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 14]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 745]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 22]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 15]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 746]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 23]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 16]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.2ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 747]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 24]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 17]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 390]] [test:390 master]  (0.3ms) COMMIT [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.2ms) BEGIN [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 391], ["name", "switchman_test_shard_391"]] [test:390 master]  (0.3ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 392], ["name", "switchman_test_shard_392"]] [test:390 master]  (0.4ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 25]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 391 LIMIT 1 [test:390 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 17]] [test:391 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 25]] [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 26]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 19]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 392 LIMIT 1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.2ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["user_id", 28]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:36 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 30]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 30], ["id", 20]] [test:391 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 23], ["id", 3910000000000020]] [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 31]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.7ms) INSERT INTO "digits" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 21], ["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["id", 3920000000000001], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master] Digit Load (0.6ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 31], ["id", 3920000000000001]] [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 32]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 32]] [test:391 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 32]] [test:391 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 32]] [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 33]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 23], ["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 33], ["id", 1]] [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 34]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.2ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["parent_id", 35], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["parent_id", 36], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 35]] [test:391 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 37 LIMIT 1 [["parent_id", 35]] [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["id", 37], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 35]] [test:391 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 3920000000000037 LIMIT 1 [["parent_id", 35]] [test:391 master]  (0.2ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 39], ["value", 1]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 3910000000000039]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 39], ["value", 2]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 39]] [test:391 master]  (0.5ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 39]] [test:391 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 3910000000000039]] [1:392 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 39]] [test:391 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 39]] [test:391 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 3910000000000039]] [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 40]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 27], ["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 3910000000000040]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 19], ["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["value", 2]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.5ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 40]] [test:391 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 3910000000000040]] [1:392 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 40]] [test:391 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 40]] [test:391 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 3910000000000040]] [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 41]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 28], ["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["value", 1]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 3910000000000041]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 20], ["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["value", 2]] [1:392 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [1:392 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 41]] [test:391 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]] [test:391 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 41]] [test:391 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 3910000000000041]] [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 42]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 29], ["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 3910000000000042]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 21], ["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["value", 2]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 42]] [test:391 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 3910000000000042]] [1:392 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 42]] [test:391 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 42]] [test:391 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 3910000000000042]] [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 43]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 30], ["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 30], ["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["value", 1]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 3910000000000043]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 22], ["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["value", 2]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.5ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 43]] [test:391 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 3910000000000043]] [1:392 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 43]] [test:391 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 43]] [test:391 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 3910000000000043]] [1:392 master]  (0.2ms) ROLLBACK [1:392 master]  (0.2ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 44], ["value", 1]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 3910000000000044], ["value", 2]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 44]] [test:391 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 44]] [test:391 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 44]] [test:391 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 3910000000000044]] [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 45], ["value", 1]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 3910000000000045]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 45]] [test:391 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 3910000000000045]] [1:392 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 45]] [test:391 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 45]] [test:391 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 3910000000000045]] [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["owner_id", 378], ["owner_type", "Appendage"], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 32]] [test:390 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 378]] [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) UPDATE "features" SET "owner_id" = $1, "owner_type" = $2, "updated_at" = $3 WHERE "features"."id" = 32 [["owner_id", 3910000000000046], ["owner_type", "User"], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 32]] [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["owner_id", 47], ["owner_type", "User"], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["value", 1]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["owner_id", 3910000000000047], ["owner_type", "User"], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["value", 2]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master] Feature Load (0.6ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 47], ["owner_type", "User"]] [test:391 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 47]] [test:391 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 47], ["owner_type", "User"]] [test:391 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 3910000000000047], ["owner_type", "User"]] [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 3910000000000048]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 3920000000000039]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 748]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [test:390 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (48) [test:391 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) [1:392 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (748) [test:390 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 48 [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.2ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 49]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 3910000000000049]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 3920000000000040]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (49) [test:391 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (49) [test:391 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (3910000000000049) [1:392 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) [1:392 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (40) [1:392 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 33 [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 50]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 3910000000000050]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 3910000000000050]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 35], ["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 26], ["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 3920000000000026], ["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 3920000000000027], ["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 3920000000000041]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 41]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 41]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 3910000000000036], ["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 3920000000000028], ["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 29], ["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (50) [test:391 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (50) [test:391 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (3910000000000050) [1:392 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (35) [test:391 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (26, 27) [1:392 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [1:392 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (41) [1:392 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (28, 29) [1:392 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 382], ["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 3900000000000382], ["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 382 ORDER BY "appendages"."id" ASC LIMIT 1 [test:390 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (382) [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.2ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 3910000000000052]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 383], ["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 3920000000000043]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 3910000000000037], ["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [test:390 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (383) [test:390 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (37) [test:391 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (52) [test:391 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43) [1:392 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 52 [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 3920000000000044]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master] Root Load (0.4ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 32]] [test:390 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 44]] [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 54]] [test:391 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 54]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 38]] [test:391 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 54]] [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["user_id", 3920000000000046]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 39]] [test:391 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:37 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "2"], ["name", "non_existent_shard"]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.9ms) SELECT COUNT(*) FROM "users" [2:393 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.9ms) SELECT COUNT(*) FROM "users" [2:394 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "3"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "4"]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "5"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.1ms) BEGIN [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "6"]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "7"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "8"]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:390 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 390]] [test:390 master]  (0.3ms) COMMIT [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 391], ["name", "switchman_test_shard_391"]] [test:390 master]  (0.2ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 392], ["name", "switchman_test_shard_392"]] [test:390 master]  (0.2ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master] SQL (0.3ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 390]]  (0.3ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 391], ["name", "switchman_test_shard_391"]]  (0.3ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 392], ["name", "switchman_test_shard_392"]]  (0.2ms) COMMIT  (0.1ms) BEGIN Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK [1:392 master]  (0.2ms) ROLLBACK  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:38 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "10"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK SQL (1.1ms) DELETE FROM "switchman_shards" [test:390 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:390 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 390]] [test:390 master]  (0.3ms) COMMIT [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 391], ["name", "switchman_test_shard_391"]] [test:390 master]  (0.3ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 392], ["name", "switchman_test_shard_392"]] [test:390 master]  (0.3ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 390]] [test:390 master]  (0.3ms) COMMIT [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 391], ["name", "switchman_test_shard_391"]] [test:390 master]  (0.3ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 392], ["name", "switchman_test_shard_392"]] [test:390 master]  (0.3ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.0ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:39 UTC +00:00]] [test:391 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.0ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 390]] [test:390 master]  (0.4ms) COMMIT [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 391], ["name", "switchman_test_shard_391"]] [test:390 master]  (0.2ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 392], ["name", "switchman_test_shard_392"]] [test:390 master]  (0.3ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.2ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.2ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["owner_id", 751], ["owner_type", "User"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master] Feature Load (0.4ms) SELECT owner_id FROM "features" WHERE "features"."id" = 33 ORDER BY "features"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 391 LIMIT 1 [test:390 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 392 LIMIT 1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master] SQL (5.9ms) DELETE FROM "switchman_shards" [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 390]] [test:390 master]  (6.1ms) COMMIT [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 391], ["name", "switchman_test_shard_391"]] [test:390 master]  (0.3ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 392], ["name", "switchman_test_shard_392"]] [test:390 master]  (0.3ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "11"]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "11"]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master] SQL (5.1ms) DELETE FROM "switchman_shards" [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 390]] [test:390 master]  (0.4ms) COMMIT [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 391], ["name", "switchman_test_shard_391"]] [test:390 master]  (0.3ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 392], ["name", "switchman_test_shard_392"]] [test:390 master]  (0.3ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=390 AND id<=391)) ORDER BY "switchman_shards"."id" ASC [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=390 AND id<=391)) AND (id NOT IN (390)) [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.2ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=391)) ORDER BY "switchman_shards"."id" ASC [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=391)) ORDER BY "switchman_shards"."id" ASC [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (390)) [test:390 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=390 AND id<391) OR (id>=392 AND id<393)) ORDER BY "switchman_shards"."id" ASC [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=390 AND id<391)) [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (390)) [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (390)) [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=391 AND id<=391)) AND (id NOT IN (390)) [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 390]] [test:390 master]  (0.3ms) COMMIT [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 391], ["name", "switchman_test_shard_391"]] [test:390 master]  (0.4ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 392], ["name", "switchman_test_shard_392"]] [test:390 master]  (0.3ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '27' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "27"]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) begin transaction [27:405 deploy]  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [27:405 deploy]  (0.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [27:405 deploy] ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations" [27:405 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (0.2ms) CREATE TABLE "switchman_shards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "database_server_id" varchar(255), "default" boolean DEFAULT 'f' NOT NULL)  [27:405 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130328212039"]] [27:405 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130328224244"]] [27:405 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime, "updated_at" datetime) [27:405 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130403132607"]] [27:405 deploy] Migrating to CreateAppendages (20130411202442)  (0.2ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [27:405 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202442"]] [27:405 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.2ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [27:405 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202551"]] [27:405 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [27:405 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131022202028"]] [27:405 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime, "updated_at" datetime) [27:405 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131206172923"]] [27:405 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) ALTER TABLE "users" ADD "parent_id" integer(8) [27:405 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140123154135"]] [27:405 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [27:405 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219183820"]] [27:405 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.1ms) ALTER TABLE "users" ADD "broken_id" integer(8) [27:405 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150618035859"]] [27:405 deploy]  (1.4ms) commit transaction [27:405 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.5ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 405 [["name", "db/shard_405.sqlite3"]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) begin transaction [27:405 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [27:405 master]  (0.8ms) commit transaction [27:405 master] Drop failed: No such file or directory @ unlink_internal - db/shard_405.sqlite3  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 405]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '28' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "28"], ["name", "public"]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (6.2ms) CREATE SCHEMA switchman_test_shard_406 [28:406 deploy]  (0.1ms) BEGIN [28:406 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [28:406 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [28:406 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [28:406 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.5ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [28:406 deploy] SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [28:406 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [28:406 deploy] Migrating to CreateUsers (20130403132607)  (3.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [28:406 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [28:406 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [28:406 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [28:406 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [28:406 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [28:406 deploy] Migrating to CreateDigits (20131022202028)  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [28:406 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [28:406 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [28:406 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [28:406 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [28:406 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [28:406 deploy] Migrating to CreateRoots (20140219183820)  (2.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [28:406 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [28:406 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [28:406 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [28:406 deploy]  (0.8ms) COMMIT [28:406 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 406 [["name", "switchman_test_shard_406"]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) BEGIN [28:406 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [28:406 master]  (0.4ms) COMMIT [28:406 master]  (6.2ms) DROP SCHEMA switchman_test_shard_406 CASCADE [28:406 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 406]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [test:390 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_407 [test:407 deploy]  (0.1ms) SAVEPOINT active_record_2 [test:407 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [test:407 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:407 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:407 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (4.0ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [test:407 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:407 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:407 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:407 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:407 deploy] Migrating to CreateAppendages (20130411202442)  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:407 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:407 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:407 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:407 deploy] Migrating to CreateDigits (20131022202028)  (2.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:407 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:407 deploy] Migrating to CreateFeatures (20131206172923)  (2.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:407 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:407 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:407 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:407 deploy] Migrating to CreateRoots (20140219183820)  (2.3ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:407 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:407 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:407 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:407 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_2 [test:407 deploy] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 407 [["name", "switchman_test_shard_407"]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:407 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:407 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:407 master]  (3.2ms) DROP SCHEMA switchman_test_shard_407 CASCADE [test:407 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 407]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.2ms) ROLLBACK [1:392 master]  (2.3ms) ROLLBACK [test:390 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:390 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 390]] [test:390 master]  (5.9ms) COMMIT [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 391], ["name", "switchman_test_shard_391"]] [test:390 master]  (6.3ms) COMMIT [test:390 master]  (0.2ms) BEGIN [test:390 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 392], ["name", "switchman_test_shard_392"]] [test:390 master]  (5.0ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 59]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 48]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 391 LIMIT 1 [test:390 master]  (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 40 [test:391 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 392 LIMIT 1 [test:390 master]  (0.5ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 31 [1:392 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 40 [test:391 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 31 [1:392 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 40 [test:391 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 31 [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 60]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 49]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.3ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (60) [test:391 master]  (0.3ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (49) [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 61]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 50]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [test:391 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 33 [1:392 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [test:391 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 33 [1:392 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 42 [test:391 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 33 [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 62]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 51]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.2ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.5ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (752) [test:390 master]  (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (62) [test:391 master]  (0.6ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (51) [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.2ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 63], ["value", 1]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 63], ["value", 2]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 52], ["value", 3]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 52], ["value", 4]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 52], ["value", 5]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.6ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 63]] [test:391 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [test:391 master]  (0.5ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 52]] [1:392 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [1:392 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (44, 45) [test:391 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (35, 36, 37) [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 64], ["value", 1]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 64], ["value", 2]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 53], ["value", 3]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 53], ["value", 4]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 53], ["value", 5]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 64]] [test:391 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [test:391 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 53]] [1:392 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [1:392 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (46, 47) [test:391 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (38, 39, 40) [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 65], ["value", 1]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 65], ["value", 2]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 54], ["value", 3]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 54], ["value", 4]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 54], ["value", 5]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.5ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 65]] [test:391 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [test:391 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 54]] [1:392 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [1:392 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (48, 49) [test:391 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (41, 42, 43) [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 66], ["value", 1]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 66], ["value", 2]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 55], ["value", 3]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 55], ["value", 4]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 55], ["value", 5]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 66]] [test:391 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [test:391 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 55]] [1:392 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [1:392 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (50, 51) [test:391 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (44, 45, 46) [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 67], ["value", 1]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 67], ["value", 2]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 56], ["value", 3]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 56], ["value", 4]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 56], ["value", 5]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.5ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 67]] [test:391 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [test:391 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 56]] [1:392 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [1:392 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (52, 53) [test:391 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (47, 48, 49) [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 68], ["value", 1]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 3920000000000057], ["value", 3]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 3910000000000068], ["value", 2]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 57], ["value", 4]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 57], ["value", 5]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:391 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:392 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:391 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:392 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:391 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:392 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:391 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (68) [test:391 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [1:392 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:392 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [1:392 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (68) [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 69], ["value", 1]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 3920000000000058], ["value", 3]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 3910000000000069], ["value", 2]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 58], ["value", 4]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 58], ["value", 5]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:391 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:392 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:391 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:392 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:391 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:392 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [test:391 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (69) [test:391 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [1:392 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [1:392 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [1:392 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (69) [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 70], ["value", 1]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.2ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 3920000000000059], ["value", 3]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 3910000000000070], ["value", 2]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 59], ["value", 4]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 59], ["value", 5]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:391 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:392 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:391 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:392 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:391 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:392 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [test:391 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [test:391 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [1:392 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [1:392 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [1:392 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (70) [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 71], ["value", 1]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 3920000000000060], ["value", 3]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 3910000000000071], ["value", 2]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 60], ["value", 4]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 60], ["value", 5]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:391 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:392 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:391 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:392 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:391 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:392 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:391 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [test:391 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [1:392 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:392 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [1:392 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 72], ["value", 1]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 3920000000000061], ["value", 3]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 3910000000000072], ["value", 2]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 61], ["value", 4]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 61], ["value", 5]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 72]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 73]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 74], ["value", 1]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 3920000000000062], ["value", 3]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 3910000000000074], ["value", 2]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 62], ["value", 4]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["user_id", 62], ["value", 5]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:391 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:392 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:391 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:392 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:391 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:392 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:391 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (74) [test:391 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (62) [1:392 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:392 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (62) [1:392 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (74) [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.2ms) ROLLBACK [test:391 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 390]] [test:390 master]  (0.3ms) COMMIT [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 391], ["name", "switchman_test_shard_391"]] [test:390 master]  (0.3ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 392], ["name", "switchman_test_shard_392"]] [test:390 master]  (0.3ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 75 ORDER BY "users"."id" ASC LIMIT 1 [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 391 LIMIT 1 [test:390 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (754) [test:390 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (76) [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (755) [test:390 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (77) [test:391 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 755]] [test:390 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 77]] [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:39 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 78 [test:391 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 756]] [test:390 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 78]] [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:40 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:40 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:40 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:40 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 390]] [test:390 master]  (0.3ms) COMMIT [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 391], ["name", "switchman_test_shard_391"]] [test:390 master]  (0.3ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 392], ["name", "switchman_test_shard_392"]] [test:390 master]  (0.3ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 390 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 408]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 391 LIMIT 1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.2ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.2ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 409]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 409 LIMIT 1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.2ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 392 LIMIT 1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.3ms) BEGIN [1:392 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10392 LIMIT 1 [test:390 master]  (0.2ms) ROLLBACK [1:392 master]  (0.2ms) ROLLBACK [test:390 master]  (0.2ms) BEGIN [test:390 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.2ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '29' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "29"], ["name", "public"]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_410 [29:410 deploy]  (0.1ms) BEGIN [29:410 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [29:410 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [29:410 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [29:410 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.6ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [29:410 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [29:410 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [29:410 deploy] Migrating to CreateUsers (20130403132607)  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [29:410 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [29:410 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [29:410 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [29:410 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.3ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [29:410 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [29:410 deploy] Migrating to CreateDigits (20131022202028)  (2.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [29:410 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [29:410 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [29:410 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [29:410 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [29:410 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [29:410 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [29:410 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [29:410 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [29:410 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [29:410 deploy]  (0.8ms) COMMIT [29:410 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 410 [["name", "switchman_test_shard_410"]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.2ms) BEGIN [29:410 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:40 UTC +00:00]] [29:410 master]  (0.4ms) COMMIT [29:410 master]  (0.2ms) SELECT COUNT(*) FROM "users" [29:410 master]  (5.0ms) DROP SCHEMA switchman_test_shard_410 CASCADE [29:410 deploy]  (0.4ms) SELECT COUNT(*) FROM "users" [29:410 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.2ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.2ms) BEGIN [1:392 master]  (0.2ms) ROLLBACK [1:392 master]  (0.2ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "31"]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "31"]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 390]] [test:390 master]  (0.4ms) COMMIT [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 391], ["name", "switchman_test_shard_391"]] [test:390 master]  (0.3ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 392], ["name", "switchman_test_shard_392"]] [test:390 master]  (0.3ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (4.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:40 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.2ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:40 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:40 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:40 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 391 LIMIT 1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (1.0ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:40 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:40 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:40 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [test:391 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:40 UTC +00:00]] [test:391 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 390]] [test:390 master]  (0.3ms) COMMIT [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 391], ["name", "switchman_test_shard_391"]] [test:390 master]  (0.3ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 392], ["name", "switchman_test_shard_392"]] [test:390 master]  (0.2ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [test:390 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:40 UTC +00:00]] [test:390 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:390 master] MirrorUser Load (0.4ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 17]] [test:390 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 17]] [test:390 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 17 ORDER BY "mirror_users"."id" ASC LIMIT 1 [test:391 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:391 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:390 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 390]] [test:390 master]  (0.2ms) COMMIT [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 391], ["name", "switchman_test_shard_391"]] [test:390 master]  (0.2ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 392], ["name", "switchman_test_shard_392"]] [test:390 master]  (0.2ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) ROLLBACK [1:392 master]  (0.1ms) ROLLBACK [test:390 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:390 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 390]] [test:390 master]  (0.3ms) COMMIT [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 391], ["name", "switchman_test_shard_391"]] [test:390 master]  (0.4ms) COMMIT [test:390 master]  (0.1ms) BEGIN [test:390 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 392], ["name", "switchman_test_shard_392"]] [test:390 master]  (0.3ms) COMMIT [test:390 master]  (0.1ms) BEGIN [1:392 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:40 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:392 master]  (0.1ms) BEGIN [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 391]] [test:390 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 392]] [test:390 master]  (0.1ms) SAVEPOINT active_record_1 [1:392 master]  (0.3ms) SELECT COUNT(*) FROM "users" [1:392 master]  (0.1ms) SAVEPOINT active_record_2 [1:392 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:40 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:40 UTC +00:00]] [1:392 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [1:392 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [1:392 master]  (0.1ms) ROLLBACK [test:390 master]  (0.1ms) SELECT COUNT(*) FROM "users" [1:392 master]  (0.1ms) ROLLBACK [1:392 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:390 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:390 master]  (5.9ms) DROP SCHEMA switchman_test_shard_391 CASCADE [test:391 deploy]  (0.1ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 391]]  (0.1ms) COMMIT  (7.6ms) DROP SCHEMA switchman_test_shard_392 CASCADE [1:392 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 392]]  (0.1ms) COMMIT  (1.0ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "non_existent_shard"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "1"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 PG::UndefinedTable: ERROR: relation "users" does not exist LINE 5: WHERE a.attrelid = '"users"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum  (0.3ms) SELECT COUNT(*) FROM "users" [1:414 master]  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "3"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "5"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "7"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK SQL (0.3ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", true]]  (0.5ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_422 [test:422 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:422 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [test:422 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:422 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:422 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.4ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [test:422 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:422 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:422 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:422 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:422 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:422 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:422 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:422 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:422 deploy] Migrating to CreateDigits (20131022202028)  (2.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:422 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:422 deploy] Migrating to CreateFeatures (20131206172923)  (2.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:422 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:422 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:422 deploy] SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:422 deploy] Migrating to CreateRoots (20140219183820)  (2.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:422 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:422 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:422 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:422 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 deploy] SQL (0.4ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 422 [["name", "switchman_test_shard_422"]] [test:421 master]  (1.0ms) COMMIT [test:421 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '8' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "8"], ["name", "public"]] [test:421 master]  (0.3ms) COMMIT [test:421 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_423 [8:423 deploy]  (0.1ms) BEGIN [8:423 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [8:423 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [8:423 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [8:423 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [8:423 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [8:423 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [8:423 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [8:423 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [8:423 deploy] Migrating to CreateAppendages (20130411202442)  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [8:423 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [8:423 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [8:423 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [8:423 deploy] Migrating to CreateDigits (20131022202028)  (2.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [8:423 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [8:423 deploy] Migrating to CreateFeatures (20131206172923)  (2.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [8:423 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [8:423 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.4ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [8:423 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [8:423 deploy] Migrating to CreateRoots (20140219183820)  (2.3ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [8:423 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [8:423 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [8:423 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [8:423 deploy]  (0.5ms) COMMIT [8:423 deploy]  (0.1ms) BEGIN [test:421 master] SQL (0.4ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 423 [["name", "switchman_test_shard_423"]] [test:421 master]  (0.3ms) COMMIT [test:421 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:421 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 421]] [test:421 master]  (0.3ms) COMMIT [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 422], ["name", "switchman_test_shard_422"]] [test:421 master]  (0.3ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 423], ["name", "switchman_test_shard_423"]] [test:421 master]  (0.2ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (422,423)) AND "switchman_shards"."id" IN (421, 422) [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:421 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Exists (0.5ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:421 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 421]] [test:421 master]  (0.3ms) COMMIT [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 422], ["name", "switchman_test_shard_422"]] [test:421 master]  (0.3ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 423], ["name", "switchman_test_shard_423"]] [test:421 master]  (0.2ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (1.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 1]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 4220000000000001 ORDER BY "users"."id" ASC LIMIT 1 [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["name", "multi-shard exists"], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:421 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [test:421 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 3 LIMIT 1 [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 422 LIMIT 1 [test:421 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 4]] [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 5 LIMIT 1 [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) LIMIT 1 [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master] SQL (5.1ms) DELETE FROM "switchman_shards" [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 421]] [test:421 master]  (0.4ms) COMMIT [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 422], ["name", "switchman_test_shard_422"]] [test:421 master]  (0.3ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 423], ["name", "switchman_test_shard_423"]] [test:421 master]  (0.3ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.2ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:421 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 421]] [test:421 master]  (0.3ms) COMMIT [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 422], ["name", "switchman_test_shard_422"]] [test:421 master]  (0.2ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 423], ["name", "switchman_test_shard_423"]] [test:421 master]  (0.4ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 7]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00]] [8:423 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 2]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 422 LIMIT 1 [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 423 LIMIT 1 [test:421 master]  (0.3ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (7) [test:422 master]  (0.3ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (2) [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 8]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 3]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (760) [test:421 master]  (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (8) [test:422 master]  (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (3) [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 9]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 4]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 3 [test:422 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 3 [8:423 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 3 [test:422 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 3 [8:423 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 3 [test:422 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 3 [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 10]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 5]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 4 [test:422 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 4 [8:423 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 4 [test:422 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 4 [8:423 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 4 [test:422 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 4 [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.2ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 11], ["value", 1]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 4230000000000006], ["value", 3]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 4220000000000011], ["value", 2]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 6], ["value", 4]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 6], ["value", 5]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:422 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:423 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:422 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:423 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:422 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:423 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [test:422 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (11) [test:422 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) [8:423 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [8:423 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) [8:423 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (11) [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 12], ["value", 1]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 4230000000000007], ["value", 3]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 4220000000000012], ["value", 2]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 7], ["value", 4]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 7], ["value", 5]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 12]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 13]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 14], ["value", 1]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 4230000000000008], ["value", 3]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 4220000000000014], ["value", 2]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 8], ["value", 4]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 8], ["value", 5]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:422 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:423 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:422 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:423 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:422 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:423 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [test:422 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (14) [test:422 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (8) [8:423 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [8:423 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (8) [8:423 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (14) [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 15], ["value", 1]] [test:422 master]  (0.3ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 4230000000000009], ["value", 3]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 4220000000000015], ["value", 2]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 9], ["value", 4]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 9], ["value", 5]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.4ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:422 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:423 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:422 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:423 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:422 master]  (0.4ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:423 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:422 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (15) [test:422 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (9) [8:423 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [8:423 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (9) [8:423 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (15) [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 16], ["value", 1]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 4230000000000010], ["value", 3]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 4220000000000016], ["value", 2]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 10], ["value", 4]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 10], ["value", 5]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.5ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:422 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:423 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:422 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:423 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:422 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:423 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:422 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (16) [test:422 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [8:423 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [8:423 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [8:423 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (16) [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:58 UTC +00:00], ["user_id", 17], ["value", 1]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 4230000000000011], ["value", 3]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.3ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 4220000000000017], ["value", 2]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 11], ["value", 4]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 11], ["value", 5]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:422 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:423 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:422 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:423 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:422 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [8:423 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:422 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [test:422 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (11) [8:423 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [8:423 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (11) [8:423 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [test:422 master]  (0.2ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.2ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 18], ["value", 1]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 18], ["value", 2]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 12], ["value", 3]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 12], ["value", 4]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 12], ["value", 5]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 18]] [test:422 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [test:422 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 12]] [8:423 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [8:423 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (19, 20) [test:422 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (23, 24, 25) [8:423 master]  (0.2ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 19], ["value", 1]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 19], ["value", 2]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 13], ["value", 3]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 13], ["value", 4]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 13], ["value", 5]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 19]] [test:422 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [test:422 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 13]] [8:423 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [8:423 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (21, 22) [test:422 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (26, 27, 28) [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 20], ["value", 1]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 20], ["value", 2]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.2ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 14], ["value", 3]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 14], ["value", 4]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 14], ["value", 5]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 20]] [test:422 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [test:422 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 14]] [8:423 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [8:423 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (23, 24) [test:422 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (29, 30, 31) [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 21], ["value", 1]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 21], ["value", 2]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 15], ["value", 3]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 15], ["value", 4]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 15], ["value", 5]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 21]] [test:422 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [test:422 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 15]] [8:423 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [8:423 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (25, 26) [test:422 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (32, 33, 34) [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 22], ["value", 1]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 22], ["value", 2]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 16], ["value", 3]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 16], ["value", 4]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 16], ["value", 5]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 22]] [test:422 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [test:422 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 16]] [8:423 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [8:423 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (27, 28) [test:422 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (35, 36, 37) [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master]  (0.2ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "9"]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "9"]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 421]] [test:421 master]  (0.3ms) COMMIT [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 422], ["name", "switchman_test_shard_422"]] [test:421 master]  (0.2ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 423], ["name", "switchman_test_shard_423"]] [test:421 master]  (0.2ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:422 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:421 master] SQL (0.2ms) DELETE FROM "users" [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:421 master] SQL (0.1ms) DELETE FROM "users" [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.3ms) COMMIT [test:421 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:421 master] SQL (0.7ms) DELETE FROM "users" [test:421 master] SQL (0.2ms) DELETE FROM "users" [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.4ms) COMMIT [test:421 master] User Load (0.3ms) SELECT "users".* FROM "users" [test:421 master] SQL (0.4ms) DELETE FROM "users" [test:421 master] SQL (0.2ms) DELETE FROM "users" [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.3ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["name", "a"], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.3ms) COMMIT [test:421 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 767]] [test:421 master] CACHE (0.0ms) 421::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 767]] CACHE (0.0ms) 421::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 767]]  (0.1ms) BEGIN [test:421 master] SQL (0.3ms) UPDATE "users" SET "name" = $1, "updated_at" = $2 WHERE "users"."id" = 767 [["name", "b"], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.3ms) COMMIT [test:421 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 767]] [test:421 master] CACHE (0.0ms) 421::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 767]] SQL (0.4ms) DELETE FROM "users" [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.4ms) COMMIT [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.4ms) COMMIT [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:421 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-06-18 04:06:59.315737' [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:421 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-06-18 04:06:59.322578' [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.4ms) COMMIT [test:421 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:421 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2015-06-18 04:06:59.327631' [test:421 master] SQL (0.3ms) DELETE FROM "users" [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.4ms) COMMIT [test:421 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:421 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-06-18 04:06:59.332870' [test:421 master] SQL (0.3ms) DELETE FROM "users" [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:421 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 421]] [test:421 master]  (0.2ms) COMMIT [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 422], ["name", "switchman_test_shard_422"]] [test:421 master]  (0.2ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 423], ["name", "switchman_test_shard_423"]] [test:421 master]  (0.2ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 422 LIMIT 1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.6ms) INSERT INTO "roots" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 421]] [test:421 master]  (0.4ms) COMMIT [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 422], ["name", "switchman_test_shard_422"]] [test:421 master]  (0.4ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 423], ["name", "switchman_test_shard_423"]] [test:421 master]  (0.3ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 422 LIMIT 1 [test:421 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (778) [test:421 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 29 ORDER BY "users"."id" ASC LIMIT 1 [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (781) [test:421 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (31) [test:422 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 781]] [test:421 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 31]] [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 32 [test:422 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 782]] [test:421 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 32]] [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 421]] [test:421 master]  (0.4ms) COMMIT [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 422], ["name", "switchman_test_shard_422"]] [test:421 master]  (0.2ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 423], ["name", "switchman_test_shard_423"]] [test:421 master]  (0.3ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 783]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 33]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 17]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 784]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 34]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 18]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 785]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 35]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 19]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 786]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 36]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 20]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 787]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 37]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 21]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 788]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 38]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 22]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 422 LIMIT 1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 789]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 39]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 23]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 790]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 40]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 24]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.8ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.2ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 791]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 41]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 25]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 792]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 42]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 26]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 793]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 43]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 27]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 794]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 44]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 28]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.2ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 795]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.2ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 45]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 29]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 796]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 46]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 30]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 797]] [test:421 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 47]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 31]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 798]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 48]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 32]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["parent_id", 798], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["parent_id", 799], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 799]] [test:421 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 798]] [test:421 master] User Load (0.6ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 [["parent_id", 798]] [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 421]] [test:421 master]  (0.4ms) COMMIT [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 422], ["name", "switchman_test_shard_422"]] [test:421 master]  (0.4ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 423], ["name", "switchman_test_shard_423"]] [test:421 master]  (0.3ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master] MirrorUser Load (0.5ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 18]] [test:421 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 18]] [test:421 master] MirrorUser Load (0.4ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 18 ORDER BY "mirror_users"."id" ASC LIMIT 1 [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.2ms) ROLLBACK [8:423 master]  (0.2ms) ROLLBACK [test:421 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:421 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 421]] [test:421 master]  (0.4ms) COMMIT [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 422], ["name", "switchman_test_shard_422"]] [test:421 master]  (0.4ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 423], ["name", "switchman_test_shard_423"]] [test:421 master]  (0.3ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 49]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 422 LIMIT 1 [test:421 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 49], ["id", 46]] [test:422 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 33], ["id", 4220000000000046]] [8:423 master]  (0.2ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 50]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 50]] [test:422 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 50]] [test:422 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 50]] [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["parent_id", 52], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["parent_id", 53], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 52]] [test:422 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 54 LIMIT 1 [["parent_id", 52]] [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["id", 54], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 52]] [test:422 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 4230000000000054 LIMIT 1 [["parent_id", 52]] [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 55]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 48]] [test:422 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 55]] [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 56]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 49], ["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 56], ["id", 1]] [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 58]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["user_id", 59]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.6ms) INSERT INTO "digits" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 423 LIMIT 1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 51], ["created_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00], ["id", 4230000000000001], ["updated_at", Thu, 18 Jun 2015 04:06:59 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 59], ["id", 4230000000000001]] [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 60]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 62]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 44]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 64], ["value", 1]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 4220000000000064]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 64]] [test:422 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 4220000000000064]] [8:423 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 64]] [test:422 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 64]] [test:422 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 4220000000000064]] [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.2ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 65]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 55], ["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 4220000000000065]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 57], ["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["value", 2]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 65]] [test:422 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 4220000000000065]] [8:423 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 65]] [test:422 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 65]] [test:422 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 4220000000000065]] [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 66]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 56], ["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 4220000000000066]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 58], ["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["value", 2]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.7ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 66]] [test:422 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 4220000000000066]] [8:423 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 66]] [test:422 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 66]] [test:422 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 4220000000000066]] [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 67]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 57], ["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 57], ["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["value", 1]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 4220000000000067]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 59], ["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["value", 2]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.5ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 67]] [test:422 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 4220000000000067]] [8:423 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 67]] [test:422 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 67]] [test:422 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 4220000000000067]] [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.2ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 68], ["value", 1]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 4220000000000068], ["value", 2]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 68]] [test:422 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 68]] [test:422 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 68]] [test:422 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 4220000000000068]] [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 69]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 59], ["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["value", 1]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 4220000000000069]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 61], ["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["value", 2]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 69]] [test:422 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 69]] [test:422 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 69]] [test:422 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 4220000000000069]] [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 70], ["value", 1]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 4220000000000070]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 70], ["value", 2]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 70]] [test:422 master]  (0.5ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 70]] [test:422 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 4220000000000070]] [8:423 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 70]] [test:422 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 70]] [test:422 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 4220000000000070]] [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.2ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 4230000000000053]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 62]] [test:422 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 53]] [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.2ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 72]] [test:422 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 72]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 63]] [test:422 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 72]] [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 73]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 4220000000000073]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 4230000000000055]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (73) [test:422 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (73) [test:422 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (4220000000000073) [8:423 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (55) [8:423 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (55) [8:423 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 64 [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 4220000000000074]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 4230000000000056]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 801]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" [test:421 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (74) [test:422 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [8:423 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (801) [test:421 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 74 [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 404], ["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 4210000000000404], ["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 404 ORDER BY "appendages"."id" ASC LIMIT 1 [test:421 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (404) [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 76]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 4220000000000076]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 4220000000000076]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 66], ["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 65], ["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 4230000000000065], ["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 4230000000000066], ["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 4230000000000058]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 58]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 58]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 4220000000000067], ["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 4230000000000067], ["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 68], ["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (76) [test:422 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (76) [test:422 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (4220000000000076) [8:423 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (66) [test:422 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (65, 66) [8:423 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [8:423 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (58) [8:423 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (67, 68) [8:423 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 8 [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 4220000000000077]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 405], ["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 4230000000000059]] [test:422 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 4220000000000068], ["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [test:421 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (405) [test:421 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (68) [test:422 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (77) [test:422 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [8:423 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 77 [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["user_id", 4230000000000060]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 35]] [test:421 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 60]] [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.2ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["owner_id", 79], ["owner_type", "User"], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["value", 1]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.8ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["owner_id", 4220000000000079], ["owner_type", "User"], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["value", 2]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master] Feature Load (0.5ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 79], ["owner_type", "User"]] [test:422 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 79]] [test:422 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 79], ["owner_type", "User"]] [test:422 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 4220000000000079], ["owner_type", "User"]] [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["owner_id", 406], ["owner_type", "Appendage"], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 34]] [test:421 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 406]] [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.4ms) UPDATE "features" SET "owner_id" = $1, "owner_type" = $2, "updated_at" = $3 WHERE "features"."id" = 34 [["owner_id", 4220000000000080], ["owner_type", "User"], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 34]] [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 421]] [test:421 master]  (0.3ms) COMMIT [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 422], ["name", "switchman_test_shard_422"]] [test:421 master]  (0.3ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 423], ["name", "switchman_test_shard_423"]] [test:421 master]  (0.3ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (421)) [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=421 AND id<422)) [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=421 AND id<422) OR (id>=423 AND id<424)) ORDER BY "switchman_shards"."id" ASC [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (421)) [test:421 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=422 AND id<=422)) AND (id NOT IN (421)) [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=422)) ORDER BY "switchman_shards"."id" ASC [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=422)) ORDER BY "switchman_shards"."id" ASC [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=421 AND id<=422)) AND (id NOT IN (421)) [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=421 AND id<=422)) ORDER BY "switchman_shards"."id" ASC [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (421)) [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 421]] [test:421 master]  (0.3ms) COMMIT [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 422], ["name", "switchman_test_shard_422"]] [test:421 master]  (0.2ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 423], ["name", "switchman_test_shard_423"]] [test:421 master]  (0.3ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '10' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "10"], ["name", "public"]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_426 [10:426 deploy]  (0.1ms) BEGIN [10:426 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [10:426 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [10:426 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [10:426 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.3ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [10:426 deploy] SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [10:426 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [10:426 deploy] Migrating to CreateUsers (20130403132607)  (2.6ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [10:426 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [10:426 deploy] Migrating to CreateAppendages (20130411202442)  (2.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [10:426 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [10:426 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [10:426 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [10:426 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [10:426 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [10:426 deploy] Migrating to CreateFeatures (20131206172923)  (2.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [10:426 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [10:426 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [10:426 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [10:426 deploy] Migrating to CreateRoots (20140219183820)  (2.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [10:426 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [10:426 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [10:426 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [10:426 deploy]  (0.6ms) COMMIT [10:426 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.4ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 426 [["name", "switchman_test_shard_426"]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) BEGIN [10:426 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [10:426 master]  (0.4ms) COMMIT [10:426 master]  (5.1ms) DROP SCHEMA switchman_test_shard_426 CASCADE [10:426 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 426]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.2ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '11' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "11"]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) begin transaction [11:427 deploy]  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [11:427 deploy]  (0.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [11:427 deploy] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" [11:427 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (0.2ms) CREATE TABLE "switchman_shards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "database_server_id" varchar(255), "default" boolean DEFAULT 'f' NOT NULL)  [11:427 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130328212039"]] [11:427 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130328224244"]] [11:427 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime, "updated_at" datetime) [11:427 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130403132607"]] [11:427 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [11:427 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202442"]] [11:427 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [11:427 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202551"]] [11:427 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [11:427 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131022202028"]] [11:427 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime, "updated_at" datetime) [11:427 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131206172923"]] [11:427 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) ALTER TABLE "users" ADD "parent_id" integer(8) [11:427 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140123154135"]] [11:427 deploy] Migrating to CreateRoots (20140219183820)  (0.2ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [11:427 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219183820"]] [11:427 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.1ms) ALTER TABLE "users" ADD "broken_id" integer(8) [11:427 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150618035859"]] [11:427 deploy]  (1.2ms) commit transaction [11:427 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 427 [["name", "db/shard_427.sqlite3"]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) begin transaction [11:427 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [11:427 master]  (0.8ms) commit transaction [11:427 master] Drop failed: No such file or directory @ unlink_internal - db/shard_427.sqlite3  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 427]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [test:421 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_428 [test:428 deploy]  (0.1ms) SAVEPOINT active_record_2 [test:428 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [test:428 deploy]  (6.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:428 deploy] ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:428 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.3ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [test:428 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:428 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:428 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:428 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:428 deploy] Migrating to CreateAppendages (20130411202442)  (2.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:428 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:428 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:428 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:428 deploy] Migrating to CreateDigits (20131022202028)  (2.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:428 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:428 deploy] Migrating to CreateFeatures (20131206172923)  (2.4ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:428 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:428 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:428 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:428 deploy] Migrating to CreateRoots (20140219183820)  (2.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:428 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:428 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:428 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:428 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_2 [test:428 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 428 [["name", "switchman_test_shard_428"]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:428 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:428 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:428 master]  (3.2ms) DROP SCHEMA switchman_test_shard_428 CASCADE [test:428 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 428]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (2.3ms) ROLLBACK [test:421 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master]  (0.1ms) ROLLBACK [test:421 master]  (0.2ms) BEGIN [test:421 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:421 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:421 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 421]] [test:421 master]  (0.4ms) COMMIT [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 422], ["name", "switchman_test_shard_422"]] [test:421 master]  (0.3ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 423], ["name", "switchman_test_shard_423"]] [test:421 master]  (0.3ms) COMMIT [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [8:423 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [8:423 master]  (0.2ms) SELECT COUNT(*) FROM "users" [8:423 master]  (0.1ms) SAVEPOINT active_record_2 [8:423 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [8:423 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [8:423 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.2ms) SELECT COUNT(*) FROM "users" [8:423 master]  (0.1ms) ROLLBACK [8:423 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:421 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 421]] [test:421 master]  (0.3ms) COMMIT [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 422], ["name", "switchman_test_shard_422"]] [test:421 master]  (0.3ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 423], ["name", "switchman_test_shard_423"]] [test:421 master]  (0.3ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 421]] [test:421 master]  (0.3ms) COMMIT [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 422], ["name", "switchman_test_shard_422"]] [test:421 master]  (5.7ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 423], ["name", "switchman_test_shard_423"]] [test:421 master]  (6.0ms) COMMIT [test:421 master]  (0.2ms) BEGIN [test:421 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master] SQL (5.9ms) DELETE FROM "switchman_shards" [test:421 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:421 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 421]] [test:421 master]  (5.5ms) COMMIT [test:421 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 422], ["name", "switchman_test_shard_422"]] [test:421 master]  (5.6ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 423], ["name", "switchman_test_shard_423"]] [test:421 master]  (6.1ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.2ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (1.4ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "25"]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "25"]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master] SQL (4.8ms) DELETE FROM "switchman_shards" [test:421 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.2ms) BEGIN [test:421 master] Switchman::Shard Exists (0.4ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 421]] [test:421 master]  (0.3ms) COMMIT [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 422], ["name", "switchman_test_shard_422"]] [test:421 master]  (0.3ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 423], ["name", "switchman_test_shard_423"]] [test:421 master]  (0.3ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:422 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.1ms) SAVEPOINT active_record_1 [test:422 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [test:422 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:421 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.2ms) BEGIN [test:421 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 421]] [test:421 master]  (0.3ms) COMMIT [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 422], ["name", "switchman_test_shard_422"]] [test:421 master]  (0.3ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 423], ["name", "switchman_test_shard_423"]] [test:421 master]  (0.3ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.0ms) SAVEPOINT active_record_1 [test:422 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:08:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:08:00 UTC +00:00]] [test:422 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:422 master]  (0.0ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 421]] [test:421 master]  (0.4ms) COMMIT [test:421 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 422], ["name", "switchman_test_shard_422"]] [test:421 master]  (0.3ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 423], ["name", "switchman_test_shard_423"]] [test:421 master]  (0.3ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:00 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "26"]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "27"]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master] SQL (4.9ms) DELETE FROM "switchman_shards" [test:421 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:421 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 421]] [test:421 master]  (0.3ms) COMMIT [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 422], ["name", "switchman_test_shard_422"]] [test:421 master]  (0.3ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 423], ["name", "switchman_test_shard_423"]] [test:421 master]  (0.2ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.2ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:01 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:01 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 422 LIMIT 1 [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 423 LIMIT 1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:01 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:01 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.2ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:01 UTC +00:00], ["owner_id", 803], ["owner_type", "User"], ["updated_at", Thu, 18 Jun 2015 04:07:01 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master] Feature Load (0.3ms) SELECT owner_id FROM "features" WHERE "features"."id" = 35 ORDER BY "features"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:01 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:01 UTC +00:00]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.2ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 421]] [test:421 master]  (0.4ms) COMMIT [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 422], ["name", "switchman_test_shard_422"]] [test:421 master]  (0.3ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["id", 423], ["name", "switchman_test_shard_423"]] [test:421 master]  (0.3ms) COMMIT [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 422 LIMIT 1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '28' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "28"], ["name", "public"]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (6.6ms) CREATE SCHEMA switchman_test_shard_433 [28:433 deploy]  (0.1ms) BEGIN [28:433 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [28:433 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [28:433 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [28:433 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [28:433 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [28:433 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [28:433 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [28:433 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [28:433 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [28:433 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [28:433 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [28:433 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [28:433 deploy] Migrating to CreateDigits (20131022202028)  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [28:433 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [28:433 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [28:433 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [28:433 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [28:433 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [28:433 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [28:433 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [28:433 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [28:433 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [28:433 deploy]  (0.8ms) COMMIT [28:433 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 433 [["name", "switchman_test_shard_433"]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) BEGIN [28:433 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 04:07:01 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 04:07:01 UTC +00:00]] [28:433 master]  (0.3ms) COMMIT [28:433 master]  (0.2ms) SELECT COUNT(*) FROM "users" [28:433 master]  (5.2ms) DROP SCHEMA switchman_test_shard_433 CASCADE [28:433 deploy]  (0.5ms) SELECT COUNT(*) FROM "users" [28:433 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 423 LIMIT 1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10423 LIMIT 1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:422 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 421 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 434]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 434 LIMIT 1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) SAVEPOINT active_record_1 [test:421 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 435]] [test:421 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:421 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master]  (0.1ms) BEGIN [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 422]] [test:421 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 423]] [test:421 master]  (0.1ms) BEGIN [8:423 master]  (0.1ms) ROLLBACK [8:423 master]  (0.1ms) ROLLBACK [test:421 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:421 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:421 master]  (6.6ms) DROP SCHEMA switchman_test_shard_422 CASCADE [test:422 deploy]  (0.2ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 422]]  (0.1ms) COMMIT  (7.8ms) DROP SCHEMA switchman_test_shard_423 CASCADE [8:423 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 423]]  (0.1ms) COMMIT  (1.8ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (6.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", true]]  (6.0ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.4ms) CREATE SCHEMA switchman_test_shard_437 [test:437 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:437 deploy]  (14.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:437 deploy]  (5.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:437 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:437 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (15.1ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:437 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:437 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:437 deploy] Migrating to CreateUsers (20130403132607)  (7.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:437 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:437 deploy] Migrating to CreateAppendages (20130411202442)  (7.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:437 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:437 deploy] Migrating to CreateMirrorUsers (20130411202551)  (8.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:437 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:437 deploy] Migrating to CreateDigits (20131022202028)  (7.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:437 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:437 deploy] Migrating to CreateFeatures (20131206172923)  (7.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:437 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:437 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:437 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:437 deploy] Migrating to CreateRoots (20140219183820)  (13.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:437 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:437 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:437 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:437 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 deploy] SQL (0.4ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 437 [["name", "switchman_test_shard_437"]] [test:436 master]  (7.2ms) COMMIT [test:436 master] Switchman::Shard Load (11.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:436 master]  (0.3ms) COMMIT [test:436 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_438 [1:438 deploy]  (0.1ms) BEGIN [1:438 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:438 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:438 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:438 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (4.1ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:438 deploy] SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:438 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:438 deploy] Migrating to CreateUsers (20130403132607)  (3.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:438 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:438 deploy] Migrating to CreateAppendages (20130411202442)  (8.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:438 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:438 deploy] Migrating to CreateMirrorUsers (20130411202551)  (7.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:438 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:438 deploy] Migrating to CreateDigits (20131022202028)  (8.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:438 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:438 deploy] Migrating to CreateFeatures (20131206172923)  (2.4ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:438 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:438 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:438 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:438 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:438 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:438 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:438 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [1:438 deploy]  (0.9ms) COMMIT [1:438 deploy]  (0.1ms) BEGIN [test:436 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 438 [["name", "switchman_test_shard_438"]] [test:436 master]  (0.3ms) COMMIT [test:436 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:436 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 436]] [test:436 master]  (0.3ms) COMMIT [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 437], ["name", "switchman_test_shard_437"]] [test:436 master]  (0.3ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 438], ["name", "switchman_test_shard_438"]] [test:436 master]  (0.2ms) COMMIT [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (2.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master]  (0.4ms) SELECT COUNT(*) FROM "users" [1:438 master]  (0.2ms) SAVEPOINT active_record_2 [1:438 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [1:438 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.2ms) SELECT COUNT(*) FROM "users" [1:438 master]  (0.1ms) ROLLBACK [1:438 master] SQL (10.6ms) DELETE FROM "switchman_shards" [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:436 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master]  (0.2ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 436]] [test:436 master]  (5.9ms) COMMIT [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 437], ["name", "switchman_test_shard_437"]] [test:436 master]  (10.4ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 438], ["name", "switchman_test_shard_438"]] [test:436 master]  (0.3ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (6.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "2"]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.2ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 436]] [test:436 master]  (9.2ms) COMMIT [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 437], ["name", "switchman_test_shard_437"]] [test:436 master]  (5.9ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 438], ["name", "switchman_test_shard_438"]] [test:436 master]  (0.2ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.9ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:437 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:437 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 437 LIMIT 1 [test:436 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 2]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 4370000000000002 ORDER BY "users"."id" ASC LIMIT 1 [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["name", "multi-shard exists"], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:436 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [test:436 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 4 LIMIT 1 [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 5 LIMIT 1 [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (6) LIMIT 1 [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 436]] [test:436 master]  (0.3ms) COMMIT [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 437], ["name", "switchman_test_shard_437"]] [test:436 master]  (0.2ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 438], ["name", "switchman_test_shard_438"]] [test:436 master]  (0.2ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.9ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 805]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.2ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 7]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 4]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 806]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 8]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 5]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 807]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 9]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 6]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 808]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 10]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.3ms) SAVEPOINT active_record_1 [test:436 master]  (0.2ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 7]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 809]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 11]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 8]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 810]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 12]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 9]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 811]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 13]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.3ms) SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 10]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 437 LIMIT 1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 812]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 14]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 11]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.7ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 813]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 15]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 12]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.2ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.2ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 814]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 16]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 13]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 815]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 17]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 14]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["user_id", 816]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:14 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["user_id", 18]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["user_id", 15]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["user_id", 817]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["user_id", 19]] [test:437 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["user_id", 16]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["user_id", 818]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["user_id", 20]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["user_id", 17]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["user_id", 819]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["user_id", 21]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["user_id", 18]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["user_id", 820]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["user_id", 22]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["user_id", 19]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["parent_id", 820], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["parent_id", 821], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 821]] [test:436 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 820]] [test:436 master] User Load (0.5ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 [["parent_id", 820]] [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master] SQL (6.1ms) DELETE FROM "switchman_shards" [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 436]] [test:436 master]  (6.1ms) COMMIT [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 437], ["name", "switchman_test_shard_437"]] [test:436 master]  (6.0ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 438], ["name", "switchman_test_shard_438"]] [test:436 master]  (4.4ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '9' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "9"]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) begin transaction [9:441 deploy]  (0.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [9:441 deploy]  (0.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [9:441 deploy] ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations" [9:441 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (0.2ms) CREATE TABLE "switchman_shards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "database_server_id" varchar(255), "default" boolean DEFAULT 'f' NOT NULL)  [9:441 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130328212039"]] [9:441 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130328224244"]] [9:441 deploy] Migrating to CreateUsers (20130403132607)  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime, "updated_at" datetime) [9:441 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130403132607"]] [9:441 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [9:441 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202442"]] [9:441 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [9:441 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130411202551"]] [9:441 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime, "updated_at" datetime) [9:441 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131022202028"]] [9:441 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime, "updated_at" datetime) [9:441 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131206172923"]] [9:441 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.6ms) ALTER TABLE "users" ADD "parent_id" integer(8) [9:441 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140123154135"]] [9:441 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime, "updated_at" datetime) [9:441 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140219183820"]] [9:441 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.1ms) ALTER TABLE "users" ADD "broken_id" integer(8) [9:441 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150618035859"]] [9:441 deploy]  (0.9ms) commit transaction [9:441 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 441 [["name", "db/shard_441.sqlite3"]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) begin transaction [9:441 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [9:441 master]  (0.6ms) commit transaction [9:441 master] Drop failed: No such file or directory @ unlink_internal - db/shard_441.sqlite3  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 441]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.2ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '10' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "10"], ["name", "public"]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (10.8ms) CREATE SCHEMA switchman_test_shard_442 [10:442 deploy]  (0.1ms) BEGIN [10:442 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [10:442 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [10:442 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [10:442 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.1ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [10:442 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [10:442 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [10:442 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [10:442 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [10:442 deploy] Migrating to CreateAppendages (20130411202442)  (2.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [10:442 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [10:442 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [10:442 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [10:442 deploy] Migrating to CreateDigits (20131022202028)  (2.3ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [10:442 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [10:442 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [10:442 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [10:442 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [10:442 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [10:442 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [10:442 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [10:442 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [10:442 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [10:442 deploy]  (0.8ms) COMMIT [10:442 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 442 [["name", "switchman_test_shard_442"]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) BEGIN [10:442 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [10:442 master]  (0.4ms) COMMIT [10:442 master]  (5.8ms) DROP SCHEMA switchman_test_shard_442 CASCADE [10:442 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 442]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [test:436 master]  (0.1ms) CREATE SCHEMA switchman_test_shard_443 [test:443 deploy]  (0.1ms) SAVEPOINT active_record_2 [test:443 deploy]  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [test:443 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:443 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:443 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.6ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [test:443 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:443 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:443 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:443 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:443 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:443 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:443 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:443 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:443 deploy] Migrating to CreateDigits (20131022202028)  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:443 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:443 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:443 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:443 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:443 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:443 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:443 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:443 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:443 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:443 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_2 [test:443 deploy] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 443 [["name", "switchman_test_shard_443"]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.2ms) SAVEPOINT active_record_1 [test:443 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [test:443 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:443 master]  (3.0ms) DROP SCHEMA switchman_test_shard_443 CASCADE [test:443 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 443]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (2.3ms) ROLLBACK [test:436 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master]  (0.2ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:436 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 436]] [test:436 master]  (5.6ms) COMMIT [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 437], ["name", "switchman_test_shard_437"]] [test:436 master]  (6.0ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 438], ["name", "switchman_test_shard_438"]] [test:436 master]  (4.9ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (436)) [test:436 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=437)) ORDER BY "switchman_shards"."id" ASC [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=436 AND id<437)) [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=436 AND id<=437)) AND (id NOT IN (436)) [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=437 AND id<=437)) AND (id NOT IN (436)) [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (436)) [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=436 AND id<437) OR (id>=438 AND id<439)) ORDER BY "switchman_shards"."id" ASC [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=437)) ORDER BY "switchman_shards"."id" ASC [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=436 AND id<=437)) ORDER BY "switchman_shards"."id" ASC [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (436)) [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 436]] [test:436 master]  (0.2ms) COMMIT [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 437], ["name", "switchman_test_shard_437"]] [test:436 master]  (0.2ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 438], ["name", "switchman_test_shard_438"]] [test:436 master]  (0.3ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.0ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:02:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:02:15 UTC +00:00]] [test:437 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.0ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 436]] [test:436 master]  (0.3ms) COMMIT [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 437], ["name", "switchman_test_shard_437"]] [test:436 master]  (0.2ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 438], ["name", "switchman_test_shard_438"]] [test:436 master]  (0.2ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 437 LIMIT 1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.7ms) INSERT INTO "roots" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 436]] [test:436 master]  (0.2ms) COMMIT [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 437], ["name", "switchman_test_shard_437"]] [test:436 master]  (0.2ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 438], ["name", "switchman_test_shard_438"]] [test:436 master]  (0.2ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "11"], ["name", "non_existent_shard"]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "11"]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (1.0ms) SELECT COUNT(*) FROM "users" [11:444 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.6ms) SELECT COUNT(*) FROM "users" [11:445 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "12"]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "13"]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "14"]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [test:436 master]  (0.2ms) BEGIN [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "15"]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "16"]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "17"]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:436 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 436]] [test:436 master]  (0.3ms) COMMIT [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 437], ["name", "switchman_test_shard_437"]] [test:436 master]  (0.3ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 438], ["name", "switchman_test_shard_438"]] [test:436 master]  (0.3ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 19]] [test:436 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 19]] [test:436 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 19 ORDER BY "mirror_users"."id" ASC LIMIT 1 [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:436 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 436]] [test:436 master]  (0.3ms) COMMIT [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 437], ["name", "switchman_test_shard_437"]] [test:436 master]  (0.3ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 438], ["name", "switchman_test_shard_438"]] [test:436 master]  (0.3ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 437 LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 438 LIMIT 1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["owner_id", 825], ["owner_type", "User"], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master] Feature Load (0.4ms) SELECT owner_id FROM "features" WHERE "features"."id" = 36 ORDER BY "features"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.3ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master] SQL (6.1ms) DELETE FROM "switchman_shards" [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:436 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 436]] [test:436 master]  (0.3ms) COMMIT [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 437], ["name", "switchman_test_shard_437"]] [test:436 master]  (0.3ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 438], ["name", "switchman_test_shard_438"]] [test:436 master]  (0.3ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 437 LIMIT 1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '19' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "19"], ["name", "public"]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_452 [19:452 deploy]  (0.1ms) BEGIN [19:452 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [19:452 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [19:452 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [19:452 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.6ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [19:452 deploy] SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [19:452 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [19:452 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [19:452 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [19:452 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [19:452 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [19:452 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [19:452 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [19:452 deploy] Migrating to CreateDigits (20131022202028)  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [19:452 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [19:452 deploy] Migrating to CreateFeatures (20131206172923)  (2.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [19:452 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [19:452 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [19:452 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [19:452 deploy] Migrating to CreateRoots (20140219183820)  (2.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [19:452 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [19:452 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [19:452 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [19:452 deploy]  (0.7ms) COMMIT [19:452 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 452 [["name", "switchman_test_shard_452"]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) BEGIN [19:452 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:15 UTC +00:00]] [19:452 master]  (0.4ms) COMMIT [19:452 master]  (0.3ms) SELECT COUNT(*) FROM "users" [19:452 master]  (5.2ms) DROP SCHEMA switchman_test_shard_452 CASCADE [19:452 deploy]  (0.4ms) SELECT COUNT(*) FROM "users" [19:452 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10438 LIMIT 1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 438 LIMIT 1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (4.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.2ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 453]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 453 LIMIT 1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 454]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 436 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:436 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 436]] [test:436 master]  (0.4ms) COMMIT [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 437], ["name", "switchman_test_shard_437"]] [test:436 master]  (0.3ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 438], ["name", "switchman_test_shard_438"]] [test:436 master]  (0.3ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "20"]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "20"]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master] SQL (5.6ms) DELETE FROM "switchman_shards" [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 436]] [test:436 master]  (4.9ms) COMMIT [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 437], ["name", "switchman_test_shard_437"]] [test:436 master]  (0.4ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 438], ["name", "switchman_test_shard_438"]] [test:436 master]  (0.3ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (437,438)) AND "switchman_shards"."id" IN (436, 437) [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 436]] [test:436 master]  (0.4ms) COMMIT [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 437], ["name", "switchman_test_shard_437"]] [test:436 master]  (0.3ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 438], ["name", "switchman_test_shard_438"]] [test:436 master]  (0.2ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = 27 ORDER BY "users"."id" ASC LIMIT 1 [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 437 LIMIT 1 [test:436 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (828) [test:436 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (830) [test:436 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (30) [test:437 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 830]] [test:436 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 30]] [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 31 [test:437 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 831]] [test:436 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 31]] [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 436]] [test:436 master]  (0.3ms) COMMIT [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 437], ["name", "switchman_test_shard_437"]] [test:436 master]  (0.2ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 438], ["name", "switchman_test_shard_438"]] [test:436 master]  (0.2ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 32], ["value", 1]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 32], ["value", 2]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (1.0ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 20], ["value", 3]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 20], ["value", 4]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 20], ["value", 5]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.4ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 32]] [test:437 master]  (0.1ms) SELECT COUNT(*) FROM "appendages" [test:437 master]  (0.5ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 20]] [1:438 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [1:438 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 437 LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 438 LIMIT 1 [test:436 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (18, 19) [test:437 master]  (0.4ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (18, 19, 20) [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 33], ["value", 1]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 33], ["value", 2]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 21], ["value", 3]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 21], ["value", 4]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 21], ["value", 5]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (5.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 33]] [test:437 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [test:437 master]  (0.5ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 21]] [1:438 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [1:438 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (20, 21) [test:437 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (21, 22, 23) [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 34], ["value", 1]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 34], ["value", 2]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 22], ["value", 3]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 22], ["value", 4]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 22], ["value", 5]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.5ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 34]] [test:437 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [test:437 master]  (0.4ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 22]] [1:438 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [1:438 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (22, 23) [test:437 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (24, 25, 26) [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 35], ["value", 1]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 35], ["value", 2]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 23], ["value", 3]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 23], ["value", 4]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 23], ["value", 5]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.5ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 35]] [test:437 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [test:437 master]  (0.5ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 23]] [1:438 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [1:438 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (24, 25) [test:437 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (27, 28, 29) [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 36], ["value", 1]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 36], ["value", 2]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (4.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 24], ["value", 3]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 24], ["value", 4]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 24], ["value", 5]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 36]] [test:437 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [test:437 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 24]] [1:438 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [1:438 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (26, 27) [test:437 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (30, 31, 32) [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 37], ["value", 1]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 4380000000000025], ["value", 3]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 4370000000000037], ["value", 2]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 25], ["value", 4]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 25], ["value", 5]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:437 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:438 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:437 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:438 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:437 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:438 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:437 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [test:437 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [1:438 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:438 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (25) [1:438 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (37) [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 38], ["value", 1]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 4380000000000026], ["value", 3]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 4370000000000038], ["value", 2]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 26], ["value", 4]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 26], ["value", 5]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:437 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:438 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:437 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:438 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:437 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:438 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:437 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38) [test:437 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [1:438 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:438 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26) [1:438 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38) [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 39], ["value", 1]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 4380000000000027], ["value", 3]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 4370000000000039], ["value", 2]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 27], ["value", 4]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 27], ["value", 5]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:437 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:438 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:437 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:438 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:437 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:438 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:437 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) [test:437 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [1:438 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:438 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (27) [1:438 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 40], ["value", 1]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 4380000000000028], ["value", 3]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 4370000000000040], ["value", 2]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 28], ["value", 4]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.2ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 28], ["value", 5]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:437 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:438 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:437 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:438 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:437 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:438 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [test:437 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) [test:437 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [1:438 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [1:438 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [1:438 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (40) [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 41], ["value", 1]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 4380000000000029], ["value", 3]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 4370000000000041], ["value", 2]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 29], ["value", 4]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 29], ["value", 5]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:437 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:438 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:437 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:438 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:437 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:438 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [test:437 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [test:437 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [1:438 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [1:438 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [1:438 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41) [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 42], ["value", 1]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 4380000000000030], ["value", 3]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 4370000000000042], ["value", 2]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 30], ["value", 4]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 30], ["value", 5]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 42]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 43]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 44]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 31]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (832) [test:436 master]  (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (44) [test:437 master]  (0.5ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (31) [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 45]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 32]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 43 [test:437 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 52 [1:438 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 43 [test:437 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 52 [1:438 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 43 [test:437 master]  (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 52 [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.2ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 46]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 33]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 44 [test:437 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 53 [1:438 master]  (0.4ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 44 [test:437 master]  (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 53 [1:438 master]  (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 44 [test:437 master]  (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 53 [1:438 master]  (0.2ms) ROLLBACK [1:438 master]  (0.2ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user1"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 47]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "user2"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["user_id", 34]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (47) [test:437 master]  (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (34) [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 436]] [test:436 master]  (0.3ms) COMMIT [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 437], ["name", "switchman_test_shard_437"]] [test:436 master]  (0.3ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 438], ["name", "switchman_test_shard_438"]] [test:436 master]  (0.3ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.2ms) ROLLBACK [test:437 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 436]] [test:436 master]  (0.3ms) COMMIT [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 437], ["name", "switchman_test_shard_437"]] [test:436 master]  (0.3ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 438], ["name", "switchman_test_shard_438"]] [test:436 master]  (0.3ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "21"]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id") VALUES ($1) RETURNING "id" [["database_server_id", "22"]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master] SQL (5.0ms) DELETE FROM "switchman_shards" [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:436 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 436]] [test:436 master]  (0.3ms) COMMIT [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 437], ["name", "switchman_test_shard_437"]] [test:436 master]  (0.4ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 438], ["name", "switchman_test_shard_438"]] [test:436 master]  (0.4ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:437 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:436 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-06-18 20:01:16.838167' [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master] User Load (0.3ms) SELECT "users".* FROM "users" [test:436 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-06-18 20:01:16.844638' [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:436 master]  (0.4ms) COMMIT [test:436 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:436 master] SQL (0.8ms) UPDATE "users" SET "updated_at" = '2015-06-18 20:01:16.849755' [test:436 master] SQL (0.4ms) DELETE FROM "users" [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:436 master]  (0.4ms) COMMIT [test:436 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:436 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-06-18 20:01:16.865190' [test:436 master] SQL (0.3ms) DELETE FROM "users" [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:436 master]  (0.4ms) COMMIT [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:436 master]  (0.4ms) COMMIT [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:436 master] SQL (0.2ms) DELETE FROM "users" [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:436 master] SQL (0.2ms) DELETE FROM "users" [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:436 master]  (0.4ms) COMMIT [test:436 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:436 master] SQL (0.4ms) DELETE FROM "users" [test:436 master] SQL (0.1ms) DELETE FROM "users" [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:436 master]  (0.3ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["name", "a"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:436 master]  (0.3ms) COMMIT [test:436 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 847]] [test:436 master] CACHE (0.0ms) 436::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 847]] CACHE (0.0ms) 436::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 847]]  (0.1ms) BEGIN [test:436 master] SQL (0.4ms) UPDATE "users" SET "name" = $1, "updated_at" = $2 WHERE "users"."id" = 847 [["name", "b"], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:436 master]  (0.3ms) COMMIT [test:436 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 847]] [test:436 master] CACHE (0.0ms) 436::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 847]] SQL (0.4ms) DELETE FROM "users" [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:16 UTC +00:00]] [test:436 master]  (0.3ms) COMMIT [test:436 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:436 master] SQL (0.3ms) DELETE FROM "users" [test:436 master] SQL (0.1ms) DELETE FROM "users" [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:436 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 436]] [test:436 master]  (0.3ms) COMMIT [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 437], ["name", "switchman_test_shard_437"]] [test:436 master]  (0.2ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 438], ["name", "switchman_test_shard_438"]] [test:436 master]  (0.2ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 436]] [test:436 master]  (0.2ms) COMMIT [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 437], ["name", "switchman_test_shard_437"]] [test:436 master]  (0.3ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 438], ["name", "switchman_test_shard_438"]] [test:436 master]  (0.3ms) COMMIT [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 51]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.8ms) INSERT INTO "digits" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 438 LIMIT 1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 46], ["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["id", 4380000000000001], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 51], ["id", 4380000000000001]] [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 52]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 47], ["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 437 LIMIT 1 [test:436 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."id" = $2 LIMIT 1 [["user_id", 52], ["id", 1]] [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 53]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 53]] [test:437 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 53]] [test:437 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 53]] [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 54]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 49]] [test:437 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 54]] [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 55]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 56]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 40]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.2ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["parent_id", 59], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "parent_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["parent_id", 60], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 59]] [test:437 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 61 LIMIT 1 [["parent_id", 59]] [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["id", 61], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 59]] [test:437 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = $1 AND "users"."id" = 4380000000000061 LIMIT 1 [["parent_id", 59]] [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 62]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 62], ["id", 52]] [test:437 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."id" = $2 LIMIT 1 [["user_id", 44], ["id", 4370000000000052]] [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 63]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 65]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 54], ["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 4370000000000065]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["value", 2]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 65]] [test:437 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 4370000000000065]] [1:438 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 65]] [test:437 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 65]] [test:437 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 4370000000000065]] [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 66], ["value", 1]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 4370000000000066], ["value", 2]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 66]] [test:437 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 66]] [test:437 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 66]] [test:437 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 [["user_id", 4370000000000066]] [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 67]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 56], ["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 56], ["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["value", 1]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 4370000000000067]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 58], ["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["value", 2]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.5ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 67]] [test:437 master]  (0.5ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 4370000000000067]] [1:438 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 67]] [test:437 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 67]] [test:437 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND (digits.value IS NOT NULL) [["user_id", 4370000000000067]] [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 68], ["value", 1]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 4370000000000068]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 68]] [test:437 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 4370000000000068]] [1:438 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 68]] [test:437 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 68]] [test:437 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = $1 AND "appendages"."value" IS NULL [["user_id", 4370000000000068]] [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.2ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 69]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 58], ["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 4370000000000069]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 60], ["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["value", 2]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 69]] [test:437 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 4370000000000069]] [1:438 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 69]] [test:437 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 69]] [test:437 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 AND "digits"."value" IS NULL [["user_id", 4370000000000069]] [1:438 master]  (0.2ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 70], ["value", 1]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 4370000000000070]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 70], ["value", 2]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 70]] [test:437 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 70]] [test:437 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 4370000000000070]] [1:438 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 70]] [test:437 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 70]] [test:437 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = $1 AND (appendages.value IS NOT NULL) [["user_id", 4370000000000070]] [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.2ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 71]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 61], ["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["value", 1]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 4370000000000071]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 62], ["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["value", 2]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 71]] [test:437 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 71]] [test:437 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 71]] [test:437 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = $1 [["user_id", 4370000000000071]] [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 4380000000000054]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master] Root Load (1.0ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 37]] [test:436 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 54]] [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.2ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["owner_id", 425], ["owner_type", "Appendage"], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 37]] [test:436 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 425]] [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.4ms) UPDATE "features" SET "owner_id" = $1, "owner_type" = $2, "updated_at" = $3 WHERE "features"."id" = 37 [["owner_id", 4370000000000073], ["owner_type", "User"], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 37]] [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["owner_id", 74], ["owner_type", "User"], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["value", 1]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["owner_id", 4370000000000074], ["owner_type", "User"], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["value", 2]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master] Feature Load (0.6ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 74], ["owner_type", "User"]] [test:437 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 74]] [test:437 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 74], ["owner_type", "User"]] [test:437 master] Feature Load (0.6ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = $1 AND "features"."owner_type" = $2 [["owner_id", 4370000000000074], ["owner_type", "User"]] [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 4380000000000057]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 62]] [test:437 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 57]] [1:438 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 76]] [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 76]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 63]] [test:437 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 76]] [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 77]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 4370000000000077]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 4370000000000077]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 64], ["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 64], ["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 4380000000000064], ["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.2ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 4380000000000065], ["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 4380000000000059]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 59]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 59]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 4370000000000065], ["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 4380000000000066], ["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 67], ["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (77) [test:437 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (77) [test:437 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (4370000000000077) [1:438 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (64) [test:437 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (64, 65) [1:438 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [1:438 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (59) [1:438 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (66, 67) [1:438 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.2ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 4370000000000078]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 426], ["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 4380000000000060]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 4370000000000066], ["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" [test:436 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (426) [test:436 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (66) [test:437 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (78) [test:437 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [1:438 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = 78 [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 79]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 4370000000000079]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 4380000000000061]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (79) [test:437 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (79) [test:437 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (4370000000000079) [1:438 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [1:438 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (61) [1:438 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 67 [test:437 master]  (0.2ms) ROLLBACK [1:438 master]  (0.2ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 427], ["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["appendage_id", 4360000000000427], ["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 427 ORDER BY "appendages"."id" ASC LIMIT 1 [test:436 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (427) [test:436 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:436 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 4370000000000081]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 4380000000000063]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master]  (0.1ms) SAVEPOINT active_record_1 [test:436 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["user_id", 849]] [test:436 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:436 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [test:436 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (81) [test:437 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (63) [1:438 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (849) [test:436 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 81 [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.1ms) ROLLBACK [test:437 master]  (0.1ms) BEGIN [test:436 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 437]] [test:436 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 438]] [test:436 master]  (0.1ms) BEGIN [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master] SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) SAVEPOINT active_record_1 [1:438 master] SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00], ["updated_at", Thu, 18 Jun 2015 20:01:17 UTC +00:00]] [1:438 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:438 master]  (0.1ms) SAVEPOINT active_record_1 [test:437 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:437 master]  (0.1ms) ROLLBACK [1:438 master]  (0.2ms) ROLLBACK [test:437 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:436 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:436 master]  (6.1ms) DROP SCHEMA switchman_test_shard_437 CASCADE [test:437 deploy]  (0.1ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 437]]  (0.1ms) COMMIT  (6.9ms) DROP SCHEMA switchman_test_shard_438 CASCADE [1:438 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 438]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (6.7ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (13.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (24.0ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (1.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (2.9ms) CREATE SCHEMA switchman_test_shard_460 [test:460 deploy]  (6.1ms) SAVEPOINT active_record_1 [test:460 deploy]  (24.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:460 deploy]  (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:460 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [test:460 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (30.5ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:460 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [test:460 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [test:460 deploy] Migrating to CreateUsers (20130403132607)  (9.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:460 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [test:460 deploy] Migrating to CreateAppendages (20130411202442)  (13.3ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:460 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [test:460 deploy] Migrating to CreateMirrorUsers (20130411202551)  (7.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:460 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [test:460 deploy] Migrating to CreateDigits (20131022202028)  (7.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:460 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [test:460 deploy] Migrating to CreateFeatures (20131206172923)  (8.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:460 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [test:460 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:460 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [test:460 deploy] Migrating to CreateRoots (20140219183820)  (7.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:460 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [test:460 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:460 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [test:460 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 deploy]  (0.4ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_460' WHERE "switchman_shards"."id" = 460 [test:459 master]  (1.3ms) COMMIT [test:459 master] Switchman::Shard Load (1.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [test:459 master]  (0.3ms) COMMIT [test:459 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_461 [1:461 deploy]  (0.1ms) BEGIN [1:461 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:461 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:461 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [1:461 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.9ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:461 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [1:461 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [1:461 deploy] Migrating to CreateUsers (20130403132607)  (2.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:461 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [1:461 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:461 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [1:461 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:461 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [1:461 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:461 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [1:461 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:461 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [1:461 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:461 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [1:461 deploy] Migrating to CreateRoots (20140219183820)  (2.5ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:461 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [1:461 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:461 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [1:461 deploy]  (0.8ms) COMMIT [1:461 deploy]  (0.1ms) BEGIN [test:459 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_461' WHERE "switchman_shards"."id" = 461 [test:459 master]  (0.3ms) COMMIT [test:459 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 459], ["name", nil]] [test:459 master]  (0.2ms) COMMIT [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 460], ["name", "switchman_test_shard_460"]] [test:459 master]  (0.3ms) COMMIT [test:459 master]  (0.0ms) BEGIN [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 461], ["name", "switchman_test_shard_461"]] [test:459 master]  (0.3ms) COMMIT [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (459, 460) AND (id IN (460,461)) [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.0ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.0ms) ROLLBACK [test:459 master] SQL (6.1ms) DELETE FROM "switchman_shards" [test:459 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 459], ["name", nil]] [test:459 master]  (4.9ms) COMMIT [test:459 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 460], ["name", "switchman_test_shard_460"]] [test:459 master]  (0.2ms) COMMIT [test:459 master]  (0.0ms) BEGIN [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 461], ["name", "switchman_test_shard_461"]] [test:459 master]  (0.2ms) COMMIT [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (2.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 1], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.6ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 1], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 2], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 2], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 460 LIMIT 1 [test:459 master] SQL (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 2 [test:460 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 461 LIMIT 1 [test:459 master] SQL (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 2 [1:461 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 2 [test:460 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 2 [1:461 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 2 [test:460 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 2 [1:461 master]  (0.2ms) ROLLBACK [1:461 master]  (0.3ms) ROLLBACK [test:460 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 3], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 3], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages"  [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 4], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 4], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (2.1ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master] SQL (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (850) [test:459 master] SQL (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (4) [test:460 master] SQL (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (4) [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 5], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 5], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (5) [test:460 master] SQL (0.1ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (5) [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 6], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 6], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 6 [test:460 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 6 [1:461 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 6 [test:460 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 6 [1:461 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 6 [test:460 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 6 [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 7], ["value", 1]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 7], ["value", 2]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 7], ["value", 3]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 7], ["value", 4]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 7], ["value", 5]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (2.0ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 7 [test:460 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [test:460 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 7 [1:461 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" [1:461 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (7, 8) [test:460 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (7, 8, 9) [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 8], ["value", 1]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 8], ["value", 2]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 8], ["value", 3]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 8], ["value", 4]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 8], ["value", 5]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.4ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 8 [test:460 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [test:460 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 8 [1:461 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" [1:461 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (9, 10) [test:460 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (10, 11, 12) [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 9], ["value", 1]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 9], ["value", 2]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 9], ["value", 3]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 9], ["value", 4]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 9], ["value", 5]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (1.4ms) SELECT MAX("appendages"."created_at") AS max_id FROM "appendages" WHERE "appendages"."id" IN (11, 12) [test:460 master]  (0.4ms) SELECT MAX("appendages"."created_at") AS max_id FROM "appendages" WHERE "appendages"."id" IN (13, 14, 15) [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 10], ["value", 1]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 10], ["value", 2]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 10], ["value", 3]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 10], ["value", 4]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 10], ["value", 5]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.7ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 10 [test:460 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [test:460 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 10 [1:461 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" [1:461 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (13, 14) [test:460 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (16, 17, 18) [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 11], ["value", 1]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 11], ["value", 2]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 11], ["value", 3]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 11], ["value", 4]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 11], ["value", 5]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (1.0ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 11 [test:460 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [test:460 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 11 [1:461 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" [1:461 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (15, 16) [test:460 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (19, 20, 21) [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 12], ["value", 1]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 12], ["value", 2]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:39 UTC +00:00], ["user_id", 12], ["value", 3]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 12], ["value", 4]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 12], ["value", 5]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 12 [test:460 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [test:460 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 12 [1:461 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" [1:461 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (17, 18) [test:460 master]  (0.4ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (22, 23, 24) [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 13], ["value", 1]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4610000000000013], ["value", 3]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4600000000000013], ["value", 2]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 13], ["value", 4]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 13], ["value", 5]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 13], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 14], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SHOW max_identifier_length [test:460 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 15], ["value", 1]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4610000000000014], ["value", 3]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4600000000000015], ["value", 2]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 14], ["value", 4]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 14], ["value", 5]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:460 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:461 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:460 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:461 master]  (0.1ms) SHOW max_identifier_length [1:461 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:460 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:461 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [test:460 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (15) [test:460 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (14) [1:461 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [1:461 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (14) [1:461 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (15) [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 16], ["value", 1]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4610000000000015], ["value", 3]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4600000000000016], ["value", 2]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 15], ["value", 4]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 15], ["value", 5]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:460 master]  (0.1ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:461 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:460 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:461 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:460 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:461 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:460 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (16) [test:460 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (15) [1:461 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:461 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (15) [1:461 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (16) [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 17], ["value", 1]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4610000000000016], ["value", 3]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4600000000000017], ["value", 2]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 16], ["value", 4]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 16], ["value", 5]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:460 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:461 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:460 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:461 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:460 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:461 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:460 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [test:460 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (16) [1:461 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:461 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (16) [1:461 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 18], ["value", 1]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4610000000000017], ["value", 3]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4600000000000018], ["value", 2]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 17], ["value", 4]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 17], ["value", 5]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:460 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:461 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:460 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:461 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:460 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:461 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [test:460 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [test:460 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [1:461 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [1:461 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (17) [1:461 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 19], ["value", 1]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4610000000000018], ["value", 3]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4600000000000019], ["value", 2]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 18], ["value", 4]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 18], ["value", 5]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:460 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:461 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:460 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:461 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:460 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:461 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:460 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [test:460 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [1:461 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:461 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (18) [1:461 master] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19) [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 459], ["name", nil]] [test:459 master]  (0.3ms) COMMIT [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 460], ["name", "switchman_test_shard_460"]] [test:459 master]  (0.4ms) COMMIT [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 461], ["name", "switchman_test_shard_461"]] [test:459 master]  (0.4ms) COMMIT [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards"  [test:459 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master]  (0.0ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master]  (0.0ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 459], ["name", nil]] [test:459 master]  (5.8ms) COMMIT [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 460], ["name", "switchman_test_shard_460"]] [test:459 master]  (6.0ms) COMMIT [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 461], ["name", "switchman_test_shard_461"]] [test:459 master]  (4.5ms) COMMIT [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 459], ["name", nil]] [test:459 master]  (0.3ms) COMMIT [test:459 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 460], ["name", "switchman_test_shard_460"]] [test:459 master]  (0.3ms) COMMIT [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 461], ["name", "switchman_test_shard_461"]] [test:459 master]  (0.3ms) COMMIT [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [1:461 master]  (0.1ms) SAVEPOINT active_record_2 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [1:461 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [1:461 master]  (0.1ms) ROLLBACK [1:461 master] SQL (6.0ms) DELETE FROM "switchman_shards" [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 459], ["name", nil]] [test:459 master]  (6.0ms) COMMIT [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 460], ["name", "switchman_test_shard_460"]] [test:459 master]  (5.7ms) COMMIT [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 461], ["name", "switchman_test_shard_461"]] [test:459 master]  (0.3ms) COMMIT [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.0ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:40 UTC +00:00]] [test:460 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.0ms) ROLLBACK [1:461 master]  (0.0ms) ROLLBACK [test:460 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 459], ["name", nil]] [test:459 master]  (0.2ms) COMMIT [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 460], ["name", "switchman_test_shard_460"]] [test:459 master]  (0.3ms) COMMIT [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 461], ["name", "switchman_test_shard_461"]] [test:459 master]  (0.2ms) COMMIT [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 22], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 23], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 23 [test:460 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 460 LIMIT 1 [test:459 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 23]] [test:460 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 23 [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 25], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 24], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 461 LIMIT 1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 26], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.0ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 27], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.8ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["appendage_id", 37], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["id", 4610000000000001], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 27 AND "digits"."id" = $1 LIMIT 1 [["id", 4610000000000001]] [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.2ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 28], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 29], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 28]] [test:460 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 28 AND "users"."id" = 30 LIMIT 1 [test:460 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 28]] [test:460 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 28 AND "users"."id" = 4610000000000028 LIMIT 1 [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 31], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 31 AND "appendages"."id" = $1 LIMIT 1 [["id", 38]] [test:460 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 29 AND "appendages"."id" = $1 LIMIT 1 [["id", 4600000000000038]] [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 33], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 39]] [test:460 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 33 LIMIT 1 [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 34], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 40], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 34 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.0ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.0ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 36], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 41], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4600000000000036], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 44], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["value", 2]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 36 AND "digits"."value" IS NULL [test:460 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4600000000000036 AND "digits"."value" IS NULL [1:461 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 36]] [test:460 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 36 AND "digits"."value" IS NULL [test:460 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4600000000000036 AND "digits"."value" IS NULL [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 37], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 42], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["value", 1]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4600000000000037], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 45], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["value", 2]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 37 [test:460 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 37]] [test:460 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 37 [test:460 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4600000000000037 [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 38], ["value", 1]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.0ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4600000000000038], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 38], ["value", 2]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [1:461 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 38]] [test:460 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 38 AND (appendages.value IS NOT NULL) [test:460 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 4600000000000038 AND (appendages.value IS NOT NULL) [1:461 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 38]] [test:460 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 38 AND (appendages.value IS NOT NULL) [test:460 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 4600000000000038 AND (appendages.value IS NOT NULL) [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 39], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 45], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4600000000000039], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 47], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["value", 2]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 39 AND "digits"."value" IS NULL [test:460 master]  (0.4ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4600000000000039 AND "digits"."value" IS NULL [1:461 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 39]] [test:460 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 39 AND "digits"."value" IS NULL [test:460 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4600000000000039 AND "digits"."value" IS NULL [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 40], ["value", 1]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4600000000000040], ["value", 2]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 40 [test:460 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 40]] [test:460 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 40 [test:460 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 4600000000000040 [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 41], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 47], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 47], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["value", 1]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4600000000000041], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 49], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["value", 2]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 41 AND (digits.value IS NOT NULL) [test:460 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4600000000000041 AND (digits.value IS NOT NULL) [1:461 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]] [test:460 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 41 AND (digits.value IS NOT NULL) [test:460 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4600000000000041 AND (digits.value IS NOT NULL) [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 42], ["value", 1]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4600000000000042], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 42 AND "appendages"."value" IS NULL [test:460 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 4600000000000042 AND "appendages"."value" IS NULL [1:461 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 42]] [test:460 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 42 AND "appendages"."value" IS NULL [test:460 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 4600000000000042 AND "appendages"."value" IS NULL [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (1.7ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4610000000000041]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master] Root Load (0.2ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 38]] [test:459 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 41 LIMIT 1 [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["owner_id", 44], ["owner_type", "User"], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["value", 1]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["owner_id", 4600000000000044], ["owner_type", "User"], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["value", 2]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 44 AND "features"."owner_type" = 'User' [test:460 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 44]] [test:460 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 44 AND "features"."owner_type" = 'User' [test:460 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 4600000000000044 AND "features"."owner_type" = 'User' [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (11.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", nil], ["value", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (1.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["owner_id", 431], ["owner_type", "Appendage"], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["value", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 38]] [test:459 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 431 LIMIT 1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master]  (0.2ms) UPDATE "features" SET "owner_id" = 4600000000000045, "owner_type" = 'User', "updated_at" = '2015-10-13 21:46:40.622294' WHERE "features"."id" = 38 [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 38]] [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", nil], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 46 LIMIT 1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 46], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 49]] [test:460 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 46 LIMIT 1 [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.0ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4610000000000045], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 50]] [test:460 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 45 LIMIT 1 [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4600000000000048], ["value", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4610000000000046], ["value", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 851], ["value", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [test:459 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (48) [test:460 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (46) [1:461 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (851) [test:459 master] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = 48 [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 49], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4600000000000049], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4600000000000049], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 51], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 52], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4610000000000052], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4610000000000053], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4610000000000047], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 47], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 47], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4600000000000052], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4610000000000054], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 55], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (49) [test:460 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (49) [test:460 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (4600000000000049) [1:461 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (51) [test:460 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (52, 53) [1:461 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (47) [1:461 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (47) [1:461 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (54, 55) [1:461 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 7 [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4600000000000050], ["value", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (8.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 435], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["value", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4610000000000048], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4600000000000053], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["value", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits"  [test:459 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (435) [test:459 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (53) [test:460 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (50) [test:460 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (48) [1:461 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 50 [test:460 master]  (0.2ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.0ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", nil], ["value", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 436], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["value", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4590000000000436], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 436 LIMIT 1 [test:459 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (436) [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 52], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4600000000000052], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["user_id", 4610000000000050], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (52) [test:460 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (52) [test:460 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (4600000000000052) [1:461 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (50) [1:461 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (50) [1:461 master] SQL (0.1ms) DELETE FROM "appendages" WHERE "appendages"."id" = 54 [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:40 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 459], ["name", nil]] [test:459 master]  (0.3ms) COMMIT [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 460], ["name", "switchman_test_shard_460"]] [test:459 master]  (0.3ms) COMMIT [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 461], ["name", "switchman_test_shard_461"]] [test:459 master]  (0.2ms) COMMIT [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (459)) [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.0ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=459 AND id<=460)) ORDER BY id [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 463]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=460 AND id<=460)) AND (id NOT IN (459)) [test:459 master]  (0.0ms) ROLLBACK [1:461 master]  (0.0ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (459)) [test:459 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=460)) ORDER BY id [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=460)) ORDER BY id [test:459 master]  (0.0ms) ROLLBACK [1:461 master]  (0.0ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=459 AND id<460)) [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (459)) [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=459 AND id<=460)) AND (id NOT IN (459)) [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=459 AND id<460) OR (id>=461 AND id<462)) ORDER BY id [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ('f') [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 459], ["name", nil]] [test:459 master]  (0.3ms) COMMIT [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 460], ["name", "switchman_test_shard_460"]] [test:459 master]  (0.2ms) COMMIT [test:459 master]  (0.0ms) BEGIN [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 461], ["name", "switchman_test_shard_461"]] [test:459 master]  (0.3ms) COMMIT [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.0ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 460 LIMIT 1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 465]] [test:459 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.0ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.0ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 466]] [test:459 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 466 LIMIT 1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.0ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 461 LIMIT 1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10461 LIMIT 1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.0ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.2ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.0ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.0ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.0ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.0ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.0ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '3' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", "public"]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_467 [3:467 deploy]  (0.1ms) BEGIN [3:467 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [3:467 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [3:467 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [3:467 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.1ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [3:467 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [3:467 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [3:467 deploy] Migrating to CreateUsers (20130403132607)  (1.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [3:467 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [3:467 deploy] Migrating to CreateAppendages (20130411202442)  (1.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [3:467 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [3:467 deploy] Migrating to CreateMirrorUsers (20130411202551)  (3.3ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [3:467 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [3:467 deploy] Migrating to CreateDigits (20131022202028)  (2.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [3:467 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [3:467 deploy] Migrating to CreateFeatures (20131206172923)  (2.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [3:467 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [3:467 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [3:467 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [3:467 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [3:467 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [3:467 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [3:467 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [3:467 deploy]  (0.8ms) COMMIT [3:467 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:459 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_467' WHERE "switchman_shards"."id" = 467 [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) BEGIN [3:467 master] SQL (0.7ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [3:467 master]  (0.3ms) COMMIT [3:467 master]  (0.2ms) SELECT COUNT(*) FROM "users" [3:467 master]  (8.0ms) DROP SCHEMA switchman_test_shard_467 CASCADE [3:467 deploy]  (0.4ms) SELECT COUNT(*) FROM "users" [3:467 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY id [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 459 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 459], ["name", nil]] [test:459 master]  (0.2ms) COMMIT [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 460], ["name", "switchman_test_shard_460"]] [test:459 master]  (0.2ms) COMMIT [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 461], ["name", "switchman_test_shard_461"]] [test:459 master]  (0.2ms) COMMIT [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.6ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master] SQL (0.7ms) DELETE FROM "switchman_shards" [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 459], ["name", nil]] [test:459 master]  (0.3ms) COMMIT [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 460], ["name", "switchman_test_shard_460"]] [test:459 master]  (0.3ms) COMMIT [test:459 master]  (0.0ms) BEGIN [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 461], ["name", "switchman_test_shard_461"]] [test:459 master]  (0.2ms) COMMIT [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [test:459 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 459], ["name", nil]] [test:459 master]  (0.3ms) COMMIT [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 460], ["name", "switchman_test_shard_460"]] [test:459 master]  (0.2ms) COMMIT [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 461], ["name", "switchman_test_shard_461"]] [test:459 master]  (0.2ms) COMMIT [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.7ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 460 LIMIT 1 [test:459 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 54]] [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (1.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:459 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [test:459 master] User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 56 LIMIT 1 [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) LIMIT 1 [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 58 LIMIT 1 [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 59]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 4600000000000059 LIMIT 1 [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.0ms) BEGIN [test:459 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 459], ["name", nil]] [test:459 master]  (5.8ms) COMMIT [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 460], ["name", "switchman_test_shard_460"]] [test:459 master]  (5.6ms) COMMIT [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 461], ["name", "switchman_test_shard_461"]] [test:459 master]  (4.3ms) COMMIT [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '17' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "17"], ["default", false], ["name", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) select sqlite_version(*) [17:472 deploy]  (0.1ms) begin transaction [17:472 deploy]  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [17:472 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [17:472 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [17:472 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (0.2ms) CREATE TABLE "switchman_shards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "database_server_id" varchar(255), "default" boolean DEFAULT 'f' NOT NULL) [17:472 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [17:472 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [17:472 deploy] Migrating to CreateUsers (20130403132607)  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [17:472 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [17:472 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [17:472 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [17:472 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [17:472 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [17:472 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [17:472 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [17:472 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [17:472 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [17:472 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) ALTER TABLE "users" ADD "parent_id" integer(8) [17:472 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [17:472 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [17:472 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [17:472 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.1ms) ALTER TABLE "users" ADD "broken_id" integer(8) [17:472 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [17:472 deploy]  (1.0ms) commit transaction [17:472 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:459 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_472.sqlite3' WHERE "switchman_shards"."id" = 472 [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.0ms) begin transaction [17:472 master] SQL (0.4ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [17:472 master]  (0.6ms) commit transaction [17:472 master] Drop failed: No such file or directory @ unlink_internal - db/shard_472.sqlite3  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 472]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '18' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "18"], ["default", false], ["name", "public"]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_473 [18:473 deploy]  (0.1ms) BEGIN [18:473 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [18:473 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [18:473 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [18:473 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [18:473 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [18:473 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [18:473 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [18:473 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [18:473 deploy] Migrating to CreateAppendages (20130411202442)  (2.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [18:473 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [18:473 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.3ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [18:473 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [18:473 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [18:473 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [18:473 deploy] Migrating to CreateFeatures (20131206172923)  (3.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [18:473 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [18:473 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [18:473 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [18:473 deploy] Migrating to CreateRoots (20140219183820)  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [18:473 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [18:473 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.1ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [18:473 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [18:473 deploy]  (0.4ms) COMMIT [18:473 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:459 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_473' WHERE "switchman_shards"."id" = 473 [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) BEGIN [18:473 master] SQL (0.6ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [18:473 master]  (0.4ms) COMMIT [18:473 master]  (5.3ms) DROP SCHEMA switchman_test_shard_473 CASCADE [18:473 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 473]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.0ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [test:459 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_474 [test:474 deploy]  (0.1ms) SAVEPOINT active_record_2 [test:474 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:474 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:474 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [test:474 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.9ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:474 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [test:474 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [test:474 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:474 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [test:474 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:474 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [test:474 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:474 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [test:474 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:474 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [test:474 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:474 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [test:474 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:474 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [test:474 deploy] Migrating to CreateRoots (20140219183820)  (2.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:474 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [test:474 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:474 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [test:474 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_2 [test:474 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_474' WHERE "switchman_shards"."id" = 474 [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:474 master] SQL (0.5ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:474 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:474 master]  (3.3ms) DROP SCHEMA switchman_test_shard_474 CASCADE [test:474 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 474]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (2.2ms) ROLLBACK [test:459 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:459 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master]  (0.0ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master]  (0.0ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master]  (0.0ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 459], ["name", nil]]  (6.0ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 460], ["name", "switchman_test_shard_460"]]  (4.8ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 461], ["name", "switchman_test_shard_461"]]  (0.3ms) COMMIT  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]]  (0.0ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 853], ["value", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 60], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 53], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 854], ["value", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 61], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 54], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 855], ["value", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 62], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 55], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 856], ["value", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 63], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 56], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 857], ["value", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 64], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 57], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 858], ["value", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.2ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 65], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 58], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 858], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 859], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 859]] [test:459 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 858 LIMIT 1 [test:459 master]  (0.1ms) SHOW max_identifier_length [test:459 master] User Load (0.3ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 858 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 861], ["value", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 66], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 59], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 460 LIMIT 1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.2ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 862], ["value", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 67], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 60], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.2ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 863], ["value", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 68], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 61], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 864], ["value", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 69], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 62], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 865], ["value", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 70], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 63], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 866], ["value", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 71], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 64], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 867], ["value", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 72], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 65], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 868], ["value", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 73], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.4ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 66], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 869], ["value", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.4ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 74], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 67], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 870], ["value", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 75], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", 68], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master] SQL (5.9ms) DELETE FROM "switchman_shards" [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 459], ["name", nil]] [test:459 master]  (0.3ms) COMMIT [test:459 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 460], ["name", "switchman_test_shard_460"]] [test:459 master]  (0.2ms) COMMIT [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 461], ["name", "switchman_test_shard_461"]] [test:459 master]  (0.2ms) COMMIT [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.0ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", nil], ["value", nil]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 460 LIMIT 1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [1:461 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:41 UTC +00:00], ["user_id", nil], ["value", nil]] [1:461 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.0ms) BEGIN [test:459 master]  (0.0ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 459], ["name", nil]] [test:459 master]  (0.3ms) COMMIT [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 460], ["name", "switchman_test_shard_460"]] [test:459 master]  (0.2ms) COMMIT [test:459 master]  (0.0ms) BEGIN [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 461], ["name", "switchman_test_shard_461"]] [test:459 master]  (0.2ms) COMMIT [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master]  (0.0ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "19"], ["default", false], ["name", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "19"], ["default", false], ["name", nil]] [test:459 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "20"], ["default", false], ["name", "non_existent_shard"]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "20"], ["default", false], ["name", nil]] [test:459 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.3ms) SELECT COUNT(*) FROM "users"  [20:477 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.7ms) SELECT COUNT(*) FROM "users" [20:478 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "21"], ["default", false], ["name", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "22"], ["default", false], ["name", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "23"], ["default", false], ["name", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "24"], ["default", false], ["name", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "25"], ["default", false], ["name", nil]] [test:459 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "26"], ["default", false], ["name", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 459], ["name", nil]] [test:459 master]  (0.3ms) COMMIT [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 460], ["name", "switchman_test_shard_460"]] [test:459 master]  (0.2ms) COMMIT [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 461], ["name", "switchman_test_shard_461"]] [test:459 master]  (0.3ms) COMMIT [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:460 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:459 master] SQL (0.1ms) DELETE FROM "users" [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:459 master] SQL (0.1ms) DELETE FROM "users" [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:459 master]  (0.4ms) COMMIT [test:459 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:459 master] SQL (0.9ms) DELETE FROM "users" [test:459 master] SQL (0.2ms) DELETE FROM "users" [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:459 master]  (0.3ms) COMMIT [test:459 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:459 master] SQL (0.3ms) DELETE FROM "users" [test:459 master] SQL (0.1ms) DELETE FROM "users" [test:459 master]  (0.0ms) BEGIN [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:459 master]  (0.2ms) COMMIT [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:459 master]  (0.2ms) COMMIT [test:459 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 879]] [test:459 master] CACHE (0.0ms) 459::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 879]] CACHE (0.0ms) 459::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 879]]  (0.1ms) BEGIN [test:459 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2015-10-13 21:46:42.144254' WHERE "users"."id" = 879 [test:459 master]  (0.3ms) COMMIT [test:459 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 879]] [test:459 master] CACHE (0.0ms) 459::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 879]] SQL (0.3ms) DELETE FROM "users" [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.0ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master] User Load (0.1ms) SELECT "users".* FROM "users"  [test:459 master]  (0.9ms) BEGIN [test:459 master] SQL (0.8ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:459 master]  (0.3ms) COMMIT [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:459 master]  (0.2ms) COMMIT [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:459 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-10-13 21:46:42.248075' [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:459 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-10-13 21:46:42.254348' [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:459 master]  (0.3ms) COMMIT [test:459 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:459 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2015-10-13 21:46:42.258730' [test:459 master] SQL (0.3ms) DELETE FROM "users" [test:459 master]  (0.0ms) BEGIN [test:459 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:459 master]  (0.2ms) COMMIT [test:459 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:459 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-10-13 21:46:42.263751' [test:459 master] SQL (0.3ms) DELETE FROM "users" [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 459], ["name", nil]] [test:459 master]  (0.3ms) COMMIT [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.0ms) BEGIN [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 460], ["name", "switchman_test_shard_460"]] [test:459 master]  (0.2ms) COMMIT [test:459 master]  (0.0ms) BEGIN [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 461], ["name", "switchman_test_shard_461"]] [test:459 master]  (0.2ms) COMMIT [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["user_id", nil], ["value", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 460 LIMIT 1 [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 461 LIMIT 1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["owner_id", 889], ["owner_type", "User"], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["value", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 39 LIMIT 1 [test:459 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master] SQL (6.2ms) DELETE FROM "switchman_shards" [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 459], ["name", nil]] [test:459 master]  (0.2ms) COMMIT [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 460], ["name", "switchman_test_shard_460"]] [test:459 master]  (0.3ms) COMMIT [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 461], ["name", "switchman_test_shard_461"]] [test:459 master]  (0.3ms) COMMIT [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.0ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 459], ["name", nil]] [test:459 master]  (0.3ms) COMMIT [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.0ms) BEGIN [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 460], ["name", "switchman_test_shard_460"]] [test:459 master]  (0.2ms) COMMIT [test:459 master]  (0.0ms) BEGIN [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 461], ["name", "switchman_test_shard_461"]] [test:459 master]  (0.2ms) COMMIT [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.0ms) ROLLBACK [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (1.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["user_id", nil]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 20]] [test:459 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 20]] [test:459 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 20 LIMIT 1 [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.0ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:459 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 459], ["name", nil]] [test:459 master]  (0.3ms) COMMIT [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 460], ["name", "switchman_test_shard_460"]] [test:459 master]  (0.2ms) COMMIT [test:459 master]  (0.1ms) BEGIN [test:459 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 461], ["name", "switchman_test_shard_461"]] [test:459 master]  (0.2ms) COMMIT [test:459 master]  (0.1ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 460 LIMIT 1 [test:459 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (890) [test:459 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (81) [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 82 LIMIT 1 [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.1ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (892) [test:459 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (83) [test:460 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 892]] [test:459 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 83]] [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.1ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.1ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 84 [test:460 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 893]] [test:459 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 84]] [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master]  (0.0ms) BEGIN [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 460]] [test:459 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 461]] [test:459 master]  (0.0ms) BEGIN [1:461 master]  (0.0ms) SAVEPOINT active_record_1 [test:459 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:459 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:459 master]  (0.0ms) SAVEPOINT active_record_1 [test:460 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:46:42 UTC +00:00]] [test:460 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:460 master]  (0.1ms) ROLLBACK [1:461 master]  (0.1ms) ROLLBACK [test:460 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:459 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:459 master]  (0.0ms) BEGIN [test:459 master]  (0.1ms) ROLLBACK [test:459 master]  (4.6ms) DROP SCHEMA switchman_test_shard_460 CASCADE [test:460 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 460]]  (0.1ms) COMMIT  (5.9ms) DROP SCHEMA switchman_test_shard_461 CASCADE [1:461 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 461]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_486 [test:486 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:486 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:486 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:486 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [test:486 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.9ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:486 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [test:486 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [test:486 deploy] Migrating to CreateUsers (20130403132607)  (2.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:486 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [test:486 deploy] Migrating to CreateAppendages (20130411202442)  (2.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:486 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [test:486 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:486 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [test:486 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:486 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [test:486 deploy] Migrating to CreateFeatures (20131206172923)  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:486 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [test:486 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:486 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [test:486 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:486 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [test:486 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.1ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:486 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [test:486 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 deploy]  (0.4ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_486' WHERE "switchman_shards"."id" = 486 [test:485 master]  (0.8ms) COMMIT [test:485 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [test:485 master]  (0.2ms) COMMIT [test:485 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_487 [1:487 deploy]  (0.1ms) BEGIN [1:487 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:487 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:487 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [1:487 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.7ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:487 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [1:487 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [1:487 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:487 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [1:487 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:487 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [1:487 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:487 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [1:487 deploy] Migrating to CreateDigits (20131022202028)  (2.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:487 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [1:487 deploy] Migrating to CreateFeatures (20131206172923)  (2.4ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:487 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [1:487 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:487 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [1:487 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:487 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [1:487 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:487 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [1:487 deploy]  (0.4ms) COMMIT [1:487 deploy]  (0.1ms) BEGIN [test:485 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_487' WHERE "switchman_shards"."id" = 487 [test:485 master]  (0.3ms) COMMIT [test:485 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 485], ["name", nil]] [test:485 master]  (0.2ms) COMMIT [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 486], ["name", "switchman_test_shard_486"]] [test:485 master]  (0.2ms) COMMIT [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 487], ["name", "switchman_test_shard_487"]] [test:485 master]  (0.2ms) COMMIT [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (1.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 486 LIMIT 1 [test:485 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1) LIMIT 1 [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2 LIMIT 1 [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.7ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:485 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [test:485 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 4 LIMIT 1 [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.5ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 5]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 4860000000000005 LIMIT 1 [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.4ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 6]] [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master] SQL (6.8ms) DELETE FROM "switchman_shards" [test:485 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 485], ["name", nil]] [test:485 master]  (0.2ms) COMMIT [test:485 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 486], ["name", "switchman_test_shard_486"]] [test:485 master]  (0.3ms) COMMIT [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 487], ["name", "switchman_test_shard_487"]] [test:485 master]  (0.3ms) COMMIT [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.5ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 486 LIMIT 1 [test:485 master] SQL (0.3ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (895) [test:485 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (7) [test:486 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 895]] [test:485 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 7]] [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 8 [test:486 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 896]] [test:485 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 8]] [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.4ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (898) [test:485 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (10) [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 11 LIMIT 1 [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 485], ["name", nil]] [test:485 master]  (0.3ms) COMMIT [test:485 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 486], ["name", "switchman_test_shard_486"]] [test:485 master]  (0.3ms) COMMIT [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 487], ["name", "switchman_test_shard_487"]] [test:485 master]  (0.3ms) COMMIT [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.5ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 21]] [test:485 master] MirrorUser Load (0.1ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 21]] [test:485 master] MirrorUser Load (0.3ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 21 LIMIT 1 [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 485], ["name", nil]] [test:485 master]  (0.3ms) COMMIT [test:485 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 486], ["name", "switchman_test_shard_486"]] [test:485 master]  (0.3ms) COMMIT [test:485 master]  (0.0ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 487], ["name", "switchman_test_shard_487"]] [test:485 master]  (0.2ms) COMMIT [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", nil], ["value", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 486 LIMIT 1 [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 487 LIMIT 1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.5ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["owner_id", 900], ["owner_type", "User"], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["value", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master] Feature Load (0.2ms) SELECT owner_id FROM "features" WHERE "features"."id" = 40 LIMIT 1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.2ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 485], ["name", nil]] [test:485 master]  (0.3ms) COMMIT [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 486], ["name", "switchman_test_shard_486"]] [test:485 master]  (0.2ms) COMMIT [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 487], ["name", "switchman_test_shard_487"]] [test:485 master]  (0.3ms) COMMIT [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.0ms) BEGIN [test:485 master]  (0.0ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 485], ["name", nil]] [test:485 master]  (0.3ms) COMMIT [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.0ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 486], ["name", "switchman_test_shard_486"]] [test:485 master]  (0.3ms) COMMIT [test:485 master]  (0.0ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 487], ["name", "switchman_test_shard_487"]] [test:485 master]  (0.3ms) COMMIT [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 485], ["name", nil]] [test:485 master]  (0.3ms) COMMIT [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 486], ["name", "switchman_test_shard_486"]] [test:485 master]  (0.3ms) COMMIT [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 487], ["name", "switchman_test_shard_487"]] [test:485 master]  (0.2ms) COMMIT [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 485], ["name", nil]] [test:485 master]  (0.2ms) COMMIT [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 486], ["name", "switchman_test_shard_486"]] [test:485 master]  (0.3ms) COMMIT [test:485 master]  (0.0ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 487], ["name", "switchman_test_shard_487"]] [test:485 master]  (0.3ms) COMMIT [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SELECT COUNT(*) FROM "users"  [1:487 master]  (0.0ms) SAVEPOINT active_record_2 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [1:487 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [1:487 master]  (0.1ms) ROLLBACK [1:487 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.0ms) BEGIN [test:485 master]  (0.0ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:485 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", "non_existent_shard"]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.3ms) SELECT COUNT(*) FROM "users"  [2:488 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.7ms) SELECT COUNT(*) FROM "users" [2:489 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [test:485 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 485], ["name", nil]] [test:485 master]  (0.3ms) COMMIT [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 486], ["name", "switchman_test_shard_486"]] [test:485 master]  (0.3ms) COMMIT [test:485 master]  (0.0ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 487], ["name", "switchman_test_shard_487"]] [test:485 master]  (0.2ms) COMMIT [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 485], ["name", nil]] [test:485 master]  (0.3ms) COMMIT [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 486], ["name", "switchman_test_shard_486"]] [test:485 master]  (0.3ms) COMMIT [test:485 master]  (0.0ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 487], ["name", "switchman_test_shard_487"]] [test:485 master]  (0.2ms) COMMIT [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 902], ["value", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 13], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 4], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 903], ["value", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.2ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 14], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 5], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 486 LIMIT 1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 904], ["value", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 15], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 6], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 905], ["value", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.2ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 16], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 7], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 906], ["value", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 17], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 8], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 907], ["value", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 18], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 9], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 908], ["value", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 19], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 10], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 909], ["value", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 20], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 11], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 909], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 910], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 910]] [test:485 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 909 LIMIT 1 [test:485 master]  (0.1ms) SHOW max_identifier_length [test:485 master] User Load (0.4ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 909 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 912], ["value", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 21], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 12], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 913], ["value", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 22], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 13], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.4ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", nil]] [test:486 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 914], ["value", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 23], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 14], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 915], ["value", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 24], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 15], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 916], ["value", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 25], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 16], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 917], ["value", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 26], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 17], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 918], ["value", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 27], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 18], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 919], ["value", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 28], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:15 UTC +00:00], ["user_id", 19], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 485], ["name", nil]] [test:485 master]  (0.3ms) COMMIT [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 486], ["name", "switchman_test_shard_486"]] [test:485 master]  (0.3ms) COMMIT [test:485 master]  (0.0ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 487], ["name", "switchman_test_shard_487"]] [test:485 master]  (0.2ms) COMMIT [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (485, 486) AND (id IN (486,487)) [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 485], ["name", nil]]  (0.2ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 486], ["name", "switchman_test_shard_486"]]  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 487], ["name", "switchman_test_shard_487"]]  (0.2ms) COMMIT  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]]  (0.1ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK  (0.0ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]]  (0.1ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK  (0.0ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 486 LIMIT 1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", nil], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", nil], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 485], ["name", nil]] [test:485 master]  (0.3ms) COMMIT [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 486], ["name", "switchman_test_shard_486"]] [test:485 master]  (0.3ms) COMMIT [test:485 master]  (0.0ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 487], ["name", "switchman_test_shard_487"]] [test:485 master]  (0.2ms) COMMIT [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 34], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 486 LIMIT 1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.2ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 35], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 23], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 487 LIMIT 1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 36], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 36 AND "appendages"."id" = $1 LIMIT 1 [["id", 20]] [test:486 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 24 AND "appendages"."id" = $1 LIMIT 1 [["id", 4860000000000020]] [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 37], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 38], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 37]] [test:486 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 37 AND "users"."id" = 39 LIMIT 1 [test:486 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 37]] [test:486 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 37 AND "users"."id" = 4870000000000026 LIMIT 1 [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 40], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.0ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 41], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["appendage_id", 22], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["id", 4870000000000001], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 41 AND "digits"."id" = $1 LIMIT 1 [["id", 4870000000000001]] [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 42], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 23]] [test:486 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 42 LIMIT 1 [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 44], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 24], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 44 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 45], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 45 [test:486 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 45]] [test:486 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 45 [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 46], ["value", 1]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 4860000000000046], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 46 AND "appendages"."value" IS NULL [test:486 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 4860000000000046 AND "appendages"."value" IS NULL [1:487 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 46]] [test:486 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 46 AND "appendages"."value" IS NULL [test:486 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 4860000000000046 AND "appendages"."value" IS NULL [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 47], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 27], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 27], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["value", 1]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 4860000000000047], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 20], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["value", 2]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 47 AND (digits.value IS NOT NULL) [test:486 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4860000000000047 AND (digits.value IS NOT NULL) [1:487 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 47]] [test:486 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 47 AND (digits.value IS NOT NULL) [test:486 master]  (0.2ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4860000000000047 AND (digits.value IS NOT NULL) [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 48], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 28], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 4860000000000048], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 21], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["value", 2]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 48 AND "digits"."value" IS NULL [test:486 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4860000000000048 AND "digits"."value" IS NULL [1:487 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 48]] [test:486 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 48 AND "digits"."value" IS NULL [test:486 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4860000000000048 AND "digits"."value" IS NULL [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 49], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 29], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 4860000000000049], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 22], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["value", 2]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 49 AND "digits"."value" IS NULL [test:486 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4860000000000049 AND "digits"."value" IS NULL [1:487 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 49]] [test:486 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 49 AND "digits"."value" IS NULL [test:486 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4860000000000049 AND "digits"."value" IS NULL [1:487 master]  (0.2ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 50], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 30], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["value", 1]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 4860000000000050], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 23], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["value", 2]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 50 [test:486 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 50]] [test:486 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 50 [test:486 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 4860000000000050 [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.2ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 51], ["value", 1]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 4860000000000051], ["value", 2]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 51 [test:486 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 51]] [test:486 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 51 [test:486 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 4860000000000051 [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 52], ["value", 1]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 4860000000000052], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 52], ["value", 2]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 52]] [test:486 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 52 AND (appendages.value IS NOT NULL) [test:486 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 4860000000000052 AND (appendages.value IS NOT NULL) [1:487 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 52]] [test:486 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 52 AND (appendages.value IS NOT NULL) [test:486 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 4860000000000052 AND (appendages.value IS NOT NULL) [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", nil], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 53 LIMIT 1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 53], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 34]] [test:486 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 53 LIMIT 1 [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 4870000000000041], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 35]] [test:486 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 41 LIMIT 1 [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["owner_id", 55], ["owner_type", "User"], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["value", 1]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["owner_id", 4860000000000055], ["owner_type", "User"], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["value", 2]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 55 AND "features"."owner_type" = 'User' [test:486 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 55]] [test:486 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 55 AND "features"."owner_type" = 'User' [test:486 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 4860000000000055 AND "features"."owner_type" = 'User' [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", nil], ["value", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.3ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["owner_id", 471], ["owner_type", "Appendage"], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["value", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 41]] [test:485 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 471 LIMIT 1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master]  (0.3ms) UPDATE "features" SET "owner_id" = 4860000000000056, "owner_type" = 'User', "updated_at" = '2015-10-13 21:47:16.402982' WHERE "features"."id" = 41 [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 41]] [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 4860000000000057], ["value", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 472], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["value", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 4870000000000044], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4860000000000036], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["value", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits"  [test:485 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (472) [test:485 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (36) [test:486 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [test:486 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (44) [1:487 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 57 [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 4860000000000058], ["value", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 4870000000000045], ["value", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 922], ["value", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" [test:485 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [test:486 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (45) [1:487 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (922) [test:485 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 58 [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.0ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", nil], ["value", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 476], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["value", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4850000000000476], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 476 LIMIT 1 [test:485 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (476) [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 60], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 4860000000000060], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 4870000000000047], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [test:486 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (60) [test:486 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (4860000000000060) [1:487 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (47) [1:487 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (47) [1:487 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 37 [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 61], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 4860000000000061], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 4860000000000061], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 39], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 28], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4870000000000028], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4870000000000029], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 4870000000000048], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 48], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 48], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4860000000000040], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 4870000000000030], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 31], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [test:486 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (61) [test:486 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (4860000000000061) [1:487 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (39) [test:486 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (28, 29) [1:487 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (48) [1:487 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (48) [1:487 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (30, 31) [1:487 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 8 [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["user_id", 4870000000000049]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master] Root Load (0.3ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 41]] [test:485 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 49 LIMIT 1 [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 485], ["name", nil]] [test:485 master]  (0.3ms) COMMIT [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 486], ["name", "switchman_test_shard_486"]] [test:485 master]  (0.3ms) COMMIT [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 487], ["name", "switchman_test_shard_487"]] [test:485 master]  (0.2ms) COMMIT [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.0ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:48:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:48:16 UTC +00:00]] [test:486 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:486 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 485], ["name", nil]] [test:485 master]  (0.2ms) COMMIT [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 486], ["name", "switchman_test_shard_486"]] [test:485 master]  (0.2ms) COMMIT [test:485 master]  (0.0ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 487], ["name", "switchman_test_shard_487"]] [test:485 master]  (0.2ms) COMMIT [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ('f') [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:485 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:485 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 497]] [test:485 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:485 master]  (0.3ms) SELECT MAX("switchman_shards"."id") AS max_id FROM SELECT id FROM "switchman_shards" LIMIT 2  [test:485 master] PG::SyntaxError: ERROR: syntax error at or near "SELECT" LINE 1: ...ELECT MAX("switchman_shards"."id") AS max_id FROM SELECT id... ^ : SELECT MAX("switchman_shards"."id") AS max_id FROM SELECT id FROM "switchman_shards" LIMIT 2  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (485)) [test:485 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=486 AND id<=486)) AND (id NOT IN (485)) [test:485 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=485 AND id<486)) [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=486)) ORDER BY id [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (485)) [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=486)) ORDER BY id [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=485 AND id<=486)) AND (id NOT IN (485)) [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (485)) [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=485 AND id<486) OR (id>=487 AND id<488)) ORDER BY id [test:485 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=485 AND id<=486)) ORDER BY id [test:485 master]  (0.0ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 485], ["name", nil]] [test:485 master]  (0.3ms) COMMIT [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.0ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 486], ["name", "switchman_test_shard_486"]] [test:485 master]  (0.3ms) COMMIT [test:485 master]  (0.0ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 487], ["name", "switchman_test_shard_487"]] [test:485 master]  (0.3ms) COMMIT [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:486 master] User Load (0.1ms) SELECT "users".* FROM "users"  [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:485 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:485 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:485 master] SQL (0.1ms) DELETE FROM "users" [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:485 master] SQL (0.1ms) DELETE FROM "users" [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:485 master]  (0.3ms) COMMIT [test:485 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:485 master] SQL (0.9ms) DELETE FROM "users" [test:485 master] SQL (0.1ms) DELETE FROM "users" [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:485 master]  (0.3ms) COMMIT [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:485 master]  (0.2ms) COMMIT [test:485 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 928]] [test:485 master] CACHE (0.0ms) 485::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 928]] CACHE (0.0ms) 485::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 928]]  (0.1ms) BEGIN [test:485 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2015-10-13 21:47:16.683138' WHERE "users"."id" = 928 [test:485 master]  (0.3ms) COMMIT [test:485 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 928]] [test:485 master] CACHE (0.0ms) 485::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 928]] SQL (0.2ms) DELETE FROM "users" [test:485 master]  (0.0ms) BEGIN [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:485 master]  (0.2ms) COMMIT [test:485 master] User Load (0.1ms) SELECT "users".* FROM "users"  [test:485 master] SQL (0.3ms) DELETE FROM "users" [test:485 master] SQL (0.1ms) DELETE FROM "users" [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:485 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-10-13 21:47:16.707468' [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:485 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-10-13 21:47:16.713116' [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:485 master]  (0.3ms) COMMIT [test:485 master] User Load (0.1ms) SELECT "users".* FROM "users"  [test:485 master] SQL (0.4ms) UPDATE "users" SET "updated_at" = '2015-10-13 21:47:16.716812' [test:485 master] SQL (0.2ms) DELETE FROM "users" [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:485 master]  (0.2ms) COMMIT [test:485 master] User Load (0.1ms) SELECT "users".* FROM "users"  [test:485 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-10-13 21:47:16.720830' [test:485 master] SQL (0.3ms) DELETE FROM "users" [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.7ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:485 master]  (0.3ms) COMMIT [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:485 master]  (0.4ms) COMMIT [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 485], ["name", nil]] [test:485 master]  (0.3ms) COMMIT [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 486], ["name", "switchman_test_shard_486"]] [test:485 master]  (0.3ms) COMMIT [test:485 master]  (0.0ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 487], ["name", "switchman_test_shard_487"]] [test:485 master]  (0.3ms) COMMIT [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "9"], ["default", false], ["name", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 485], ["name", nil]] [test:485 master]  (0.2ms) COMMIT [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 486], ["name", "switchman_test_shard_486"]] [test:485 master]  (0.2ms) COMMIT [test:485 master]  (0.0ms) BEGIN [test:485 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 487], ["name", "switchman_test_shard_487"]] [test:485 master]  (0.2ms) COMMIT [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 486 LIMIT 1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:485 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 501]] [test:485 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 501 LIMIT 1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:485 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 502]] [test:485 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 487 LIMIT 1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10487 LIMIT 1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '10' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", "public"]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.8ms) CREATE SCHEMA switchman_test_shard_503 [10:503 deploy]  (0.1ms) BEGIN [10:503 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [10:503 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [10:503 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [10:503 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.0ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [10:503 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [10:503 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [10:503 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [10:503 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [10:503 deploy] Migrating to CreateAppendages (20130411202442)  (2.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [10:503 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [10:503 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.3ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [10:503 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [10:503 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [10:503 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [10:503 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [10:503 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [10:503 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [10:503 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [10:503 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [10:503 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [10:503 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.1ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [10:503 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [10:503 deploy]  (0.8ms) COMMIT [10:503 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:485 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_503' WHERE "switchman_shards"."id" = 503 [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) BEGIN [10:503 master] SQL (0.6ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:16 UTC +00:00]] [10:503 master]  (0.3ms) COMMIT [10:503 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [10:503 master]  (5.2ms) DROP SCHEMA switchman_test_shard_503 CASCADE [10:503 deploy]  (0.3ms) SELECT COUNT(*) FROM "users"  [10:503 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY id [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 485 [test:485 master]  (0.2ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:485 master]  (0.0ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:485 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.0ms) ROLLBACK [test:485 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 485], ["name", nil]] [test:485 master]  (0.3ms) COMMIT [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 486], ["name", "switchman_test_shard_486"]] [test:485 master]  (0.2ms) COMMIT [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 487], ["name", "switchman_test_shard_487"]] [test:485 master]  (0.2ms) COMMIT [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.7ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.7ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 67], ["value", 1]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 67], ["value", 2]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.9ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 51], ["value", 3]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 51], ["value", 4]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 51], ["value", 5]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 67 [test:486 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [test:486 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 51 [1:487 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [1:487 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 486 LIMIT 1 [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 487 LIMIT 1 [test:485 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (41, 42) [test:486 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (32, 33, 34) [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 68], ["value", 1]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 68], ["value", 2]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 52], ["value", 3]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 52], ["value", 4]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 52], ["value", 5]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 68 [test:486 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [test:486 master]  (0.6ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 52 [1:487 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [1:487 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (43, 44) [test:486 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (35, 36, 37) [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 69], ["value", 1]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 69], ["value", 2]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 53], ["value", 3]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 53], ["value", 4]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 53], ["value", 5]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 69 [test:486 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [test:486 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 53 [1:487 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [1:487 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (45, 46) [test:486 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (38, 39, 40) [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 70], ["value", 1]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 70], ["value", 2]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 54], ["value", 3]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 54], ["value", 4]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 54], ["value", 5]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 70 [test:486 master]  (0.1ms) SELECT COUNT(*) FROM "appendages"  [test:486 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 54 [1:487 master]  (0.1ms) SELECT COUNT(*) FROM "appendages"  [1:487 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (47, 48) [test:486 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (41, 42, 43) [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 71], ["value", 1]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 71], ["value", 2]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 55], ["value", 3]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 55], ["value", 4]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 55], ["value", 5]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 71 [test:486 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [test:486 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 55 [1:487 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [1:487 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (49, 50) [test:486 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (44, 45, 46) [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 72], ["value", 1]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 72], ["value", 2]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 56], ["value", 3]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 56], ["value", 4]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 56], ["value", 5]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.3ms) SELECT MAX("appendages"."created_at") AS max_id FROM "appendages" WHERE "appendages"."id" IN (51, 52) [test:486 master]  (0.4ms) SELECT MAX("appendages"."created_at") AS max_id FROM "appendages" WHERE "appendages"."id" IN (47, 48, 49) [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 73], ["value", 1]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 4870000000000057], ["value", 3]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 4860000000000073], ["value", 2]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 57], ["value", 4]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 57], ["value", 5]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 73], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 74], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SHOW max_identifier_length [test:486 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [test:486 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.0ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 75], ["value", 1]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 4870000000000058], ["value", 3]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 4860000000000075], ["value", 2]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 58], ["value", 4]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 58], ["value", 5]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:486 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:487 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:486 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:487 master]  (0.1ms) SHOW max_identifier_length [1:487 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:486 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:487 master]  (0.1ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:486 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) [test:486 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [1:487 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:487 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [1:487 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (75) [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 76], ["value", 1]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 4870000000000059], ["value", 3]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 4860000000000076], ["value", 2]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 59], ["value", 4]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 59], ["value", 5]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:486 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:487 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:486 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:487 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:486 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:487 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:486 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (76) [test:486 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [1:487 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:487 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (59) [1:487 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (76) [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 77], ["value", 1]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 4870000000000060], ["value", 3]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 4860000000000077], ["value", 2]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 60], ["value", 4]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 60], ["value", 5]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:486 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:487 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:486 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:487 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:486 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:487 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [test:486 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (77) [test:486 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [1:487 master]  (0.1ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [1:487 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [1:487 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (77) [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 78], ["value", 1]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 4870000000000061], ["value", 3]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 4860000000000078], ["value", 2]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 61], ["value", 4]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 61], ["value", 5]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:486 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:487 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:486 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:487 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:486 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:487 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [test:486 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (78) [test:486 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [1:487 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [1:487 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [1:487 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (78) [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.0ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [1:487 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 79], ["value", 1]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 4870000000000062], ["value", 3]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 4860000000000079], ["value", 2]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 62], ["value", 4]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 62], ["value", 5]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:486 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:487 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:486 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:487 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:486 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:487 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:486 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (79) [test:486 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (62) [1:487 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:487 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (62) [1:487 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (79) [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 80], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 63], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 81], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 64], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 68 [test:486 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 69 [1:487 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 68 [test:486 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 69 [1:487 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 68 [test:486 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 69 [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 82], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 65], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.6ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master] SQL (0.3ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (938) [test:485 master] SQL (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (82) [test:486 master] SQL (0.4ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (65) [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 83], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 66], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master] SQL (0.3ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 70 [test:486 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 71 [1:487 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 70 [test:486 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 71 [1:487 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 70 [test:486 master] SQL (0.1ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 71 [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 84], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 67], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master] SQL (0.3ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (84) [test:486 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (67) [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.0ms) SAVEPOINT active_record_1 [test:486 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 85], ["value", nil]] [test:486 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:486 master]  (0.1ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master]  (0.0ms) SAVEPOINT active_record_1 [1:487 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["user_id", 68], ["value", nil]] [1:487 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:487 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" [test:486 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:486 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master]  (0.0ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master]  (0.0ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master]  (0.0ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master]  (0.0ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 485], ["name", nil]] [test:485 master]  (0.2ms) COMMIT [test:485 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 486], ["name", "switchman_test_shard_486"]] [test:485 master]  (0.2ms) COMMIT [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 487], ["name", "switchman_test_shard_487"]] [test:485 master]  (0.3ms) COMMIT [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '27' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "27"], ["default", false], ["name", "public"]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_504 [27:504 deploy]  (0.1ms) BEGIN [27:504 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [27:504 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [27:504 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [27:504 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.4ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [27:504 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [27:504 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [27:504 deploy] Migrating to CreateUsers (20130403132607)  (1.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [27:504 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [27:504 deploy] Migrating to CreateAppendages (20130411202442)  (2.3ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [27:504 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [27:504 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [27:504 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [27:504 deploy] Migrating to CreateDigits (20131022202028)  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [27:504 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [27:504 deploy] Migrating to CreateFeatures (20131206172923)  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [27:504 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [27:504 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [27:504 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [27:504 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [27:504 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [27:504 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [27:504 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [27:504 deploy]  (0.8ms) COMMIT [27:504 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:485 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_504' WHERE "switchman_shards"."id" = 504 [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) BEGIN [27:504 master] SQL (0.6ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [27:504 master]  (0.4ms) COMMIT [27:504 master]  (5.1ms) DROP SCHEMA switchman_test_shard_504 CASCADE [27:504 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.5ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 504]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.2ms) ROLLBACK [1:487 master]  (0.2ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '28' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "28"], ["default", false], ["name", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) select sqlite_version(*) [28:505 deploy]  (0.0ms) begin transaction [28:505 deploy]  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  [28:505 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [28:505 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [28:505 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (0.1ms) CREATE TABLE "switchman_shards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "database_server_id" varchar(255), "default" boolean DEFAULT 'f' NOT NULL) [28:505 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [28:505 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [28:505 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [28:505 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [28:505 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [28:505 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [28:505 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [28:505 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [28:505 deploy] Migrating to CreateDigits (20131022202028)  (0.1ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [28:505 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [28:505 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [28:505 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [28:505 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) ALTER TABLE "users" ADD "parent_id" integer(8) [28:505 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [28:505 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  [28:505 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [28:505 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.1ms) ALTER TABLE "users" ADD "broken_id" integer(8) [28:505 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [28:505 deploy]  (1.2ms) commit transaction [28:505 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:485 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_505.sqlite3' WHERE "switchman_shards"."id" = 505 [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) begin transaction [28:505 master] SQL (0.4ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [28:505 master]  (0.7ms) commit transaction [28:505 master] Drop failed: No such file or directory @ unlink_internal - db/shard_505.sqlite3  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 505]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [test:485 master]  (0.2ms) CREATE SCHEMA switchman_test_shard_506 [test:506 deploy]  (0.1ms) SAVEPOINT active_record_2 [test:506 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:506 deploy]  (6.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:506 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [test:506 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (7.8ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:506 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [test:506 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [test:506 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:506 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [test:506 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:506 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [test:506 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:506 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [test:506 deploy] Migrating to CreateDigits (20131022202028)  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:506 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [test:506 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:506 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [test:506 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:506 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [test:506 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:506 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [test:506 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:506 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [test:506 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_2 [test:506 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_506' WHERE "switchman_shards"."id" = 506 [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:506 master] SQL (0.5ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [test:506 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:506 master]  (3.2ms) DROP SCHEMA switchman_test_shard_506 CASCADE [test:506 deploy]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 506]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (2.1ms) ROLLBACK [test:485 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master]  (0.0ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master]  (0.0ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 485], ["name", nil]] [test:485 master]  (0.3ms) COMMIT [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 486], ["name", "switchman_test_shard_486"]] [test:485 master]  (0.2ms) COMMIT [test:485 master]  (0.0ms) BEGIN [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 487], ["name", "switchman_test_shard_487"]] [test:485 master]  (0.2ms) COMMIT [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "29"], ["default", false], ["name", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "30"], ["default", false], ["name", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.1ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.0ms) BEGIN [1:487 master]  (0.0ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 486]] [test:485 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 487]] [test:485 master]  (0.1ms) BEGIN [1:487 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Tue, 13 Oct 2015 21:47:17 UTC +00:00]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [1:487 master]  (0.1ms) ROLLBACK [test:485 master] SQL (0.8ms) DELETE FROM "switchman_shards" [test:485 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:485 master]  (0.1ms) BEGIN [test:485 master]  (0.1ms) ROLLBACK [test:485 master]  (0.0ms) BEGIN [test:485 master]  (0.1ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "31"], ["default", false], ["name", nil]] [test:485 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.0ms) SAVEPOINT active_record_1 [test:485 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "31"], ["default", false], ["name", nil]] [test:485 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:485 master]  (0.1ms) ROLLBACK [test:485 master]  (6.0ms) DROP SCHEMA switchman_test_shard_486 CASCADE [test:486 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 486]]  (0.1ms) COMMIT  (8.0ms) DROP SCHEMA switchman_test_shard_487 CASCADE [1:487 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 487]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.2ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.4ms) CREATE SCHEMA switchman_test_shard_512 [test:512 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:512 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:512 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:512 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [test:512 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.0ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:512 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [test:512 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [test:512 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:512 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [test:512 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:512 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [test:512 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:512 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [test:512 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:512 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [test:512 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:512 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [test:512 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:512 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [test:512 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:512 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [test:512 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:512 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [test:512 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:512 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_512' WHERE "switchman_shards"."id" = 512 [test:511 master]  (0.7ms) COMMIT [test:511 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:511 master]  (0.1ms) BEGIN [test:511 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [test:511 master]  (0.2ms) COMMIT [test:511 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_513 [1:513 deploy]  (0.1ms) BEGIN [1:513 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:513 deploy]  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:513 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [1:513 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.8ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:513 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [1:513 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [1:513 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:513 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [1:513 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:513 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [1:513 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:513 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [1:513 deploy] Migrating to CreateDigits (20131022202028)  (2.3ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:513 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [1:513 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:513 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [1:513 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:513 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [1:513 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:513 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [1:513 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.1ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:513 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [1:513 deploy]  (0.8ms) COMMIT [1:513 deploy]  (0.1ms) BEGIN [test:511 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_513' WHERE "switchman_shards"."id" = 513 [test:511 master]  (0.3ms) COMMIT [test:511 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:511 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:511 master]  (0.1ms) BEGIN [test:511 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:511 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 511], ["name", nil]] [test:511 master]  (0.3ms) COMMIT [test:511 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:511 master]  (0.1ms) BEGIN [test:511 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 512], ["name", "switchman_test_shard_512"]] [test:511 master]  (0.2ms) COMMIT [test:511 master]  (0.1ms) BEGIN [test:511 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 513], ["name", "switchman_test_shard_513"]] [test:511 master]  (0.2ms) COMMIT [test:511 master]  (0.0ms) BEGIN [test:511 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:511 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 512]] [test:511 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 513]] [test:511 master]  (0.1ms) BEGIN [1:513 master]  (0.1ms) SAVEPOINT active_record_1 [test:511 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:511 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:511 master]  (0.0ms) SAVEPOINT active_record_1 [test:511 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:511 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:511 master]  (0.0ms) SAVEPOINT active_record_1 [test:511 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:511 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:511 master]  (0.0ms) SAVEPOINT active_record_1 [test:511 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 515]] [test:511 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:511 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:511 master]  (0.3ms) SELECT MAX("switchman_shards"."id") AS max_id FROM SELECT id FROM "switchman_shards" LIMIT 2  [test:511 master] PG::SyntaxError: ERROR: syntax error at or near "SELECT" LINE 1: ...ELECT MAX("switchman_shards"."id") AS max_id FROM SELECT id... ^ : SELECT MAX("switchman_shards"."id") AS max_id FROM SELECT id FROM "switchman_shards" LIMIT 2  (0.1ms) ROLLBACK [1:513 master]  (0.1ms) ROLLBACK [test:511 master]  (0.1ms) BEGIN [test:511 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:511 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 512]] [test:511 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 513]] [test:511 master]  (0.0ms) BEGIN [1:513 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ('f') [test:511 master]  (0.0ms) ROLLBACK [1:513 master]  (0.0ms) ROLLBACK [test:511 master]  (0.1ms) BEGIN [test:511 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:511 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 512]] [test:511 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 513]] [test:511 master]  (0.1ms) BEGIN [1:513 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (511)) [test:511 master]  (0.1ms) ROLLBACK [1:513 master]  (0.1ms) ROLLBACK [test:511 master]  (0.1ms) BEGIN [test:511 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:511 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 512]] [test:511 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 513]] [test:511 master]  (0.1ms) BEGIN [1:513 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=511 AND id<512)) [test:511 master]  (0.1ms) ROLLBACK [1:513 master]  (0.1ms) ROLLBACK [test:511 master]  (0.0ms) BEGIN [test:511 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:511 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 512]] [test:511 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 513]] [test:511 master]  (0.0ms) BEGIN [1:513 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=512)) ORDER BY id [test:511 master]  (0.0ms) ROLLBACK [1:513 master]  (0.0ms) ROLLBACK [test:511 master]  (0.0ms) BEGIN [test:511 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:511 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 512]] [test:511 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 513]] [test:511 master]  (0.0ms) BEGIN [1:513 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (511)) [test:511 master]  (0.1ms) ROLLBACK [1:513 master]  (0.1ms) ROLLBACK [test:511 master]  (0.1ms) BEGIN [test:511 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:511 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 512]] [test:511 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 513]] [test:511 master]  (0.1ms) BEGIN [1:513 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=511 AND id<512) OR (id>=513 AND id<514)) ORDER BY id [test:511 master]  (0.1ms) ROLLBACK [1:513 master]  (0.1ms) ROLLBACK [test:511 master]  (0.0ms) BEGIN [test:511 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:511 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 512]] [test:511 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 513]] [test:511 master]  (0.0ms) BEGIN [1:513 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=512)) ORDER BY id [test:511 master]  (0.1ms) ROLLBACK [1:513 master]  (0.0ms) ROLLBACK [test:511 master]  (0.1ms) BEGIN [test:511 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:511 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 512]] [test:511 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 513]] [test:511 master]  (0.0ms) BEGIN [1:513 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=511 AND id<=512)) AND (id NOT IN (511)) [test:511 master]  (0.1ms) ROLLBACK [1:513 master]  (0.1ms) ROLLBACK [test:511 master]  (0.0ms) BEGIN [test:511 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:511 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 512]] [test:511 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 513]] [test:511 master]  (0.1ms) BEGIN [1:513 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (511)) [test:511 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:511 master]  (0.1ms) ROLLBACK [1:513 master]  (0.1ms) ROLLBACK [test:511 master]  (0.0ms) BEGIN [test:511 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:511 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 512]] [test:511 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 513]] [test:511 master]  (0.1ms) BEGIN [1:513 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=511 AND id<=512)) ORDER BY id [test:511 master]  (0.1ms) ROLLBACK [1:513 master]  (0.1ms) ROLLBACK [test:511 master]  (0.0ms) BEGIN [test:511 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:511 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 512]] [test:511 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 513]] [test:511 master]  (0.0ms) BEGIN [1:513 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=512 AND id<=512)) AND (id NOT IN (511)) [test:511 master]  (0.0ms) ROLLBACK [1:513 master]  (0.1ms) ROLLBACK [test:511 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:511 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:511 master]  (5.3ms) DROP SCHEMA switchman_test_shard_512 CASCADE [test:512 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 512]]  (0.1ms) COMMIT  (5.8ms) DROP SCHEMA switchman_test_shard_513 CASCADE [1:513 deploy]  (0.3ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 513]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.8ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_518 [test:518 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:518 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:518 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:518 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [test:518 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.1ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:518 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [test:518 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [test:518 deploy] Migrating to CreateUsers (20130403132607)  (2.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:518 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [test:518 deploy] Migrating to CreateAppendages (20130411202442)  (2.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:518 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [test:518 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:518 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [test:518 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:518 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [test:518 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:518 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [test:518 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:518 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [test:518 deploy] Migrating to CreateRoots (20140219183820)  (2.4ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:518 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [test:518 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:518 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [test:518 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:518 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_518' WHERE "switchman_shards"."id" = 518 [test:517 master]  (0.8ms) COMMIT [test:517 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:517 master]  (0.1ms) BEGIN [test:517 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [test:517 master]  (0.2ms) COMMIT [test:517 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_519 [1:519 deploy]  (0.1ms) BEGIN [1:519 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:519 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:519 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [1:519 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (4.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:519 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [1:519 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [1:519 deploy] Migrating to CreateUsers (20130403132607)  (3.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:519 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [1:519 deploy] Migrating to CreateAppendages (20130411202442)  (3.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:519 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [1:519 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:519 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [1:519 deploy] Migrating to CreateDigits (20131022202028)  (2.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:519 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [1:519 deploy] Migrating to CreateFeatures (20131206172923)  (3.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:519 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [1:519 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:519 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [1:519 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:519 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [1:519 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:519 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [1:519 deploy]  (0.7ms) COMMIT [1:519 deploy]  (0.1ms) BEGIN [test:517 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_519' WHERE "switchman_shards"."id" = 519 [test:517 master]  (0.3ms) COMMIT [test:517 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:517 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:517 master]  (0.1ms) BEGIN [test:517 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:517 master] SQL (0.8ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 517], ["name", nil]] [test:517 master]  (0.3ms) COMMIT [test:517 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:517 master]  (0.1ms) BEGIN [test:517 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 518], ["name", "switchman_test_shard_518"]] [test:517 master]  (0.2ms) COMMIT [test:517 master]  (0.1ms) BEGIN [test:517 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 519], ["name", "switchman_test_shard_519"]] [test:517 master]  (0.2ms) COMMIT [test:517 master]  (0.0ms) BEGIN [test:517 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:517 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 518]] [test:517 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [test:517 master]  (0.1ms) BEGIN [1:519 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=517 AND id<=518)) AND (id NOT IN (517)) [test:517 master]  (0.1ms) ROLLBACK [1:519 master]  (0.1ms) ROLLBACK [test:517 master]  (0.0ms) BEGIN [test:517 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:517 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 518]] [test:517 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [test:517 master]  (0.0ms) BEGIN [1:519 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=517 AND id<518) OR (id>=519 AND id<520)) ORDER BY id [test:517 master]  (0.1ms) ROLLBACK [1:519 master]  (0.1ms) ROLLBACK [test:517 master]  (0.1ms) BEGIN [test:517 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:517 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 518]] [test:517 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [test:517 master]  (0.0ms) BEGIN [1:519 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=518)) ORDER BY id [test:517 master]  (0.1ms) ROLLBACK [1:519 master]  (0.1ms) ROLLBACK [test:517 master]  (0.0ms) BEGIN [test:517 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:517 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 518]] [test:517 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [test:517 master]  (0.0ms) BEGIN [1:519 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=518 AND id<=518)) AND (id NOT IN (517)) [test:517 master]  (0.1ms) ROLLBACK [1:519 master]  (0.1ms) ROLLBACK [test:517 master]  (0.0ms) BEGIN [test:517 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:517 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 518]] [test:517 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [test:517 master]  (0.0ms) BEGIN [1:519 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=517 AND id<=518)) ORDER BY id [test:517 master]  (0.1ms) ROLLBACK [1:519 master]  (0.1ms) ROLLBACK [test:517 master]  (0.0ms) BEGIN [test:517 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:517 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 518]] [test:517 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [test:517 master]  (0.0ms) BEGIN [1:519 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=518)) ORDER BY id [test:517 master]  (0.0ms) ROLLBACK [1:519 master]  (0.1ms) ROLLBACK [test:517 master]  (0.0ms) BEGIN [test:517 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:517 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 518]] [test:517 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [test:517 master]  (0.0ms) BEGIN [1:519 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (517)) [test:517 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [test:517 master]  (0.1ms) ROLLBACK [1:519 master]  (0.1ms) ROLLBACK [test:517 master]  (0.0ms) BEGIN [test:517 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:517 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 518]] [test:517 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [test:517 master]  (0.0ms) BEGIN [1:519 master]  (0.1ms) SAVEPOINT active_record_1 [test:517 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:517 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:517 master]  (0.2ms) SAVEPOINT active_record_1 [test:517 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:517 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:517 master]  (0.1ms) SAVEPOINT active_record_1 [test:517 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:517 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:517 master]  (0.1ms) SAVEPOINT active_record_1 [test:517 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 521]] [test:517 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:517 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [test:517 master]  (0.1ms) ROLLBACK [1:519 master]  (0.1ms) ROLLBACK [test:517 master]  (0.1ms) BEGIN [test:517 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:517 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 518]] [test:517 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [test:517 master]  (0.1ms) BEGIN [1:519 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (517)) [test:517 master]  (0.1ms) ROLLBACK [1:519 master]  (0.1ms) ROLLBACK [test:517 master]  (0.1ms) BEGIN [test:517 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:517 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 518]] [test:517 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [test:517 master]  (0.1ms) BEGIN [1:519 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=517 AND id<518)) [test:517 master]  (0.1ms) ROLLBACK [1:519 master]  (0.0ms) ROLLBACK [test:517 master]  (0.0ms) BEGIN [test:517 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:517 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 518]] [test:517 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [test:517 master]  (0.0ms) BEGIN [1:519 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (517)) [test:517 master]  (0.1ms) ROLLBACK [1:519 master]  (0.1ms) ROLLBACK [test:517 master]  (0.0ms) BEGIN [test:517 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:517 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 518]] [test:517 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 519]] [test:517 master]  (0.1ms) BEGIN [1:519 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ('f') [test:517 master]  (0.1ms) ROLLBACK [1:519 master]  (0.1ms) ROLLBACK [test:517 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:517 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:517 master]  (5.2ms) DROP SCHEMA switchman_test_shard_518 CASCADE [test:518 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 518]]  (0.1ms) COMMIT  (7.1ms) DROP SCHEMA switchman_test_shard_519 CASCADE [1:519 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 519]]  (0.1ms) COMMIT  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.3ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_524 [test:524 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:524 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:524 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:524 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:524 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.3ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:524 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:524 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:524 deploy] Migrating to CreateUsers (20130403132607)  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:524 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:524 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:524 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:524 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:524 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:524 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:524 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:524 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:524 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:524 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:524 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:524 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:524 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:524 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:524 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:524 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:524 deploy] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 524 [["name", "switchman_test_shard_524"]] [test:523 master]  (0.7ms) COMMIT [test:523 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:523 master]  (0.1ms) BEGIN [test:523 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:523 master]  (0.2ms) COMMIT [test:523 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_525 [1:525 deploy]  (0.1ms) BEGIN [1:525 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:525 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:525 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:525 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:525 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:525 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:525 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:525 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:525 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:525 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:525 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:525 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:525 deploy] Migrating to CreateDigits (20131022202028)  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:525 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:525 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:525 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:525 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:525 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:525 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:525 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:525 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:525 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [1:525 deploy]  (0.8ms) COMMIT [1:525 deploy]  (0.1ms) BEGIN [test:523 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 525 [["name", "switchman_test_shard_525"]] [test:523 master]  (0.2ms) COMMIT [test:523 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:523 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:523 master]  (0.1ms) BEGIN [test:523 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:523 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 523]] [test:523 master]  (0.3ms) COMMIT [test:523 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:523 master]  (0.1ms) BEGIN [test:523 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 524], ["name", "switchman_test_shard_524"]] [test:523 master]  (0.3ms) COMMIT [test:523 master]  (0.1ms) BEGIN [test:523 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 525], ["name", "switchman_test_shard_525"]] [test:523 master]  (0.2ms) COMMIT [test:523 master]  (0.1ms) BEGIN [test:523 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:523 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 524]] [test:523 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 525]] [test:523 master]  (0.1ms) BEGIN [1:525 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=523 AND id<524) OR (id>=525 AND id<526)) ORDER BY "switchman_shards"."id" ASC [test:523 master]  (0.1ms) ROLLBACK [1:525 master]  (0.1ms) ROLLBACK [test:523 master]  (0.1ms) BEGIN [test:523 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:523 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 524]] [test:523 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 525]] [test:523 master]  (0.1ms) BEGIN [1:525 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=524)) ORDER BY "switchman_shards"."id" ASC [test:523 master]  (0.1ms) ROLLBACK [1:525 master]  (0.1ms) ROLLBACK [test:523 master]  (0.1ms) BEGIN [test:523 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:523 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 524]] [test:523 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 525]] [test:523 master]  (0.1ms) BEGIN [1:525 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=523 AND id<524)) [test:523 master]  (0.1ms) ROLLBACK [1:525 master]  (0.1ms) ROLLBACK [test:523 master]  (0.1ms) BEGIN [test:523 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:523 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 524]] [test:523 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 525]] [test:523 master]  (0.1ms) BEGIN [1:525 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=523 AND id<=524)) AND (id NOT IN (523)) [test:523 master]  (0.1ms) ROLLBACK [1:525 master]  (0.1ms) ROLLBACK [test:523 master]  (0.1ms) BEGIN [test:523 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:523 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 524]] [test:523 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 525]] [test:523 master]  (0.1ms) BEGIN [1:525 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=524)) ORDER BY "switchman_shards"."id" ASC [test:523 master]  (0.1ms) ROLLBACK [1:525 master]  (0.1ms) ROLLBACK [test:523 master]  (0.1ms) BEGIN [test:523 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:523 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 524]] [test:523 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 525]] [test:523 master]  (0.1ms) BEGIN [1:525 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (523)) [test:523 master]  (0.1ms) ROLLBACK [1:525 master]  (0.1ms) ROLLBACK [test:523 master]  (0.1ms) BEGIN [test:523 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:523 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 524]] [test:523 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 525]] [test:523 master]  (0.1ms) BEGIN [1:525 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (523)) [test:523 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:523 master]  (0.1ms) ROLLBACK [1:525 master]  (0.1ms) ROLLBACK [test:523 master]  (0.1ms) BEGIN [test:523 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:523 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 524]] [test:523 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 525]] [test:523 master]  (0.1ms) BEGIN [1:525 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=524 AND id<=524)) AND (id NOT IN (523)) [test:523 master]  (0.2ms) ROLLBACK [1:525 master]  (0.1ms) ROLLBACK [test:523 master]  (0.1ms) BEGIN [test:523 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:523 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 524]] [test:523 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 525]] [test:523 master]  (0.1ms) BEGIN [1:525 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (523)) [test:523 master]  (0.1ms) ROLLBACK [1:525 master]  (0.1ms) ROLLBACK [test:523 master]  (0.1ms) BEGIN [test:523 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:523 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 524]] [test:523 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 525]] [test:523 master]  (0.1ms) BEGIN [1:525 master]  (0.1ms) ROLLBACK [1:525 master]  (0.1ms) ROLLBACK [test:523 master]  (0.1ms) BEGIN [test:523 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:523 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 524]] [test:523 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 525]] [test:523 master]  (0.1ms) BEGIN [1:525 master]  (0.1ms) SAVEPOINT active_record_1 [test:523 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:523 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:523 master]  (0.1ms) SAVEPOINT active_record_1 [test:523 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:523 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:523 master]  (0.1ms) SAVEPOINT active_record_1 [test:523 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:523 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:523 master]  (0.1ms) SAVEPOINT active_record_1 [test:523 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 527]] [test:523 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:523 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:523 master]  (0.3ms) SELECT MAX("switchman_shards"."id") AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2) subquery [test:523 master] PG::UndefinedTable: ERROR: missing FROM-clause entry for table "switchman_shards" LINE 1: SELECT MAX("switchman_shards"."id") AS max_id FROM (SELECT ... ^ : SELECT MAX("switchman_shards"."id") AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2) subquery  (0.1ms) ROLLBACK [1:525 master]  (0.1ms) ROLLBACK [test:523 master]  (0.1ms) BEGIN [test:523 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:523 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 524]] [test:523 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 525]] [test:523 master]  (0.1ms) BEGIN [1:525 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=523 AND id<=524)) ORDER BY "switchman_shards"."id" ASC [test:523 master]  (0.1ms) ROLLBACK [1:525 master]  (0.1ms) ROLLBACK [test:523 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:523 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:523 master]  (5.1ms) DROP SCHEMA switchman_test_shard_524 CASCADE [test:524 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 524]]  (0.1ms) COMMIT  (5.6ms) DROP SCHEMA switchman_test_shard_525 CASCADE [1:525 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 525]]  (0.1ms) COMMIT  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.2ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.2ms) CREATE SCHEMA switchman_test_shard_530 [test:530 deploy]  (0.2ms) SAVEPOINT active_record_1 [test:530 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:530 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:530 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:530 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:530 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:530 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:530 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:530 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:530 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:530 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:530 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:530 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:530 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:530 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:530 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:530 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:530 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:530 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:530 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:530 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:530 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:530 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:530 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:530 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 530 [["name", "switchman_test_shard_530"]] [test:529 master]  (0.7ms) COMMIT [test:529 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:529 master]  (0.1ms) BEGIN [test:529 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:529 master]  (0.3ms) COMMIT [test:529 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_531 [1:531 deploy]  (0.1ms) BEGIN [1:531 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:531 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:531 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:531 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.0ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:531 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:531 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:531 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:531 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:531 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:531 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:531 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:531 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:531 deploy] Migrating to CreateDigits (20131022202028)  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:531 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:531 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:531 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:531 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:531 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:531 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:531 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:531 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:531 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [1:531 deploy]  (0.8ms) COMMIT [1:531 deploy]  (0.1ms) BEGIN [test:529 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 531 [["name", "switchman_test_shard_531"]] [test:529 master]  (0.3ms) COMMIT [test:529 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:529 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:529 master]  (0.1ms) BEGIN [test:529 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:529 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 529]] [test:529 master]  (0.3ms) COMMIT [test:529 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:529 master]  (0.1ms) BEGIN [test:529 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 530], ["name", "switchman_test_shard_530"]] [test:529 master]  (0.3ms) COMMIT [test:529 master]  (0.1ms) BEGIN [test:529 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 531], ["name", "switchman_test_shard_531"]] [test:529 master]  (0.3ms) COMMIT [test:529 master]  (0.1ms) BEGIN [test:529 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:529 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 530]] [test:529 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 531]] [test:529 master]  (0.1ms) BEGIN [1:531 master]  (0.1ms) ROLLBACK [1:531 master]  (0.1ms) ROLLBACK [test:529 master]  (0.1ms) BEGIN [test:529 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:529 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 530]] [test:529 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 531]] [test:529 master]  (0.1ms) BEGIN [1:531 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=530)) ORDER BY "switchman_shards"."id" ASC [test:529 master]  (0.1ms) ROLLBACK [1:531 master]  (0.1ms) ROLLBACK [test:529 master]  (0.1ms) BEGIN [test:529 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:529 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 530]] [test:529 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 531]] [test:529 master]  (0.1ms) BEGIN [1:531 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=530 AND id<=530)) AND (id NOT IN (529)) [test:529 master]  (0.1ms) ROLLBACK [1:531 master]  (0.1ms) ROLLBACK [test:529 master]  (0.1ms) BEGIN [test:529 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:529 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 530]] [test:529 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 531]] [test:529 master]  (0.1ms) BEGIN [1:531 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=529 AND id<=530)) AND (id NOT IN (529)) [test:529 master]  (0.1ms) ROLLBACK [1:531 master]  (0.1ms) ROLLBACK [test:529 master]  (0.1ms) BEGIN [test:529 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:529 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 530]] [test:529 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 531]] [test:529 master]  (0.1ms) BEGIN [1:531 master]  (0.1ms) SAVEPOINT active_record_1 [test:529 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:529 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:529 master]  (0.1ms) SAVEPOINT active_record_1 [test:529 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:529 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:529 master]  (0.1ms) SAVEPOINT active_record_1 [test:529 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:529 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:529 master]  (0.1ms) SAVEPOINT active_record_1 [test:529 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 533]] [test:529 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:529 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:529 master]  (0.4ms) SELECT MAX("switchman_shards"."id") AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2) subquery [test:529 master] PG::UndefinedTable: ERROR: missing FROM-clause entry for table "switchman_shards" LINE 1: SELECT MAX("switchman_shards"."id") AS max_id FROM (SELECT ... ^ : SELECT MAX("switchman_shards"."id") AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2) subquery  (0.1ms) ROLLBACK [1:531 master]  (0.1ms) ROLLBACK [test:529 master]  (0.3ms) BEGIN [test:529 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:529 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 530]] [test:529 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 531]] [test:529 master]  (0.1ms) BEGIN [1:531 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (529)) [test:529 master]  (0.1ms) ROLLBACK [1:531 master]  (0.1ms) ROLLBACK [test:529 master]  (0.1ms) BEGIN [test:529 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:529 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 530]] [test:529 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 531]] [test:529 master]  (0.1ms) BEGIN [1:531 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=529 AND id<530) OR (id>=531 AND id<532)) ORDER BY "switchman_shards"."id" ASC [test:529 master]  (0.1ms) ROLLBACK [1:531 master]  (0.1ms) ROLLBACK [test:529 master]  (0.1ms) BEGIN [test:529 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:529 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 530]] [test:529 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 531]] [test:529 master]  (0.1ms) BEGIN [1:531 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (529)) [test:529 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:529 master]  (0.1ms) ROLLBACK [1:531 master]  (0.1ms) ROLLBACK [test:529 master]  (0.1ms) BEGIN [test:529 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:529 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 530]] [test:529 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 531]] [test:529 master]  (0.1ms) BEGIN [1:531 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=529 AND id<=530)) ORDER BY "switchman_shards"."id" ASC [test:529 master]  (0.1ms) ROLLBACK [1:531 master]  (0.1ms) ROLLBACK [test:529 master]  (0.1ms) BEGIN [test:529 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:529 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 530]] [test:529 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 531]] [test:529 master]  (0.1ms) BEGIN [1:531 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=529 AND id<530)) [test:529 master]  (0.1ms) ROLLBACK [1:531 master]  (0.1ms) ROLLBACK [test:529 master]  (0.1ms) BEGIN [test:529 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:529 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 530]] [test:529 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 531]] [test:529 master]  (0.1ms) BEGIN [1:531 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (529)) [test:529 master]  (0.2ms) ROLLBACK [1:531 master]  (0.1ms) ROLLBACK [test:529 master]  (0.1ms) BEGIN [test:529 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:529 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 530]] [test:529 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 531]] [test:529 master]  (0.1ms) BEGIN [1:531 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=530)) ORDER BY "switchman_shards"."id" ASC [test:529 master]  (0.1ms) ROLLBACK [1:531 master]  (0.1ms) ROLLBACK [test:529 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:529 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:529 master]  (4.8ms) DROP SCHEMA switchman_test_shard_530 CASCADE [test:530 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 530]]  (0.1ms) COMMIT  (5.8ms) DROP SCHEMA switchman_test_shard_531 CASCADE [1:531 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 531]]  (0.1ms) COMMIT  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.4ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.4ms) CREATE SCHEMA switchman_test_shard_536 [test:536 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:536 deploy]  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:536 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:536 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:536 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.3ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:536 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:536 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:536 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:536 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:536 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:536 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:536 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:536 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:536 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:536 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:536 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:536 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:536 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:536 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:536 deploy] Migrating to CreateRoots (20140219183820)  (2.2ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:536 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:536 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:536 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:536 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:536 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 536 [["name", "switchman_test_shard_536"]] [test:535 master]  (1.1ms) COMMIT [test:535 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:535 master]  (0.1ms) BEGIN [test:535 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:535 master]  (0.3ms) COMMIT [test:535 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_537 [1:537 deploy]  (0.1ms) BEGIN [1:537 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:537 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:537 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:537 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.0ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:537 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:537 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:537 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:537 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:537 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:537 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:537 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:537 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:537 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:537 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:537 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:537 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:537 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:537 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:537 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:537 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:537 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:537 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [1:537 deploy]  (0.8ms) COMMIT [1:537 deploy]  (0.1ms) BEGIN [test:535 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 537 [["name", "switchman_test_shard_537"]] [test:535 master]  (0.3ms) COMMIT [test:535 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:535 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:535 master]  (0.1ms) BEGIN [test:535 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:535 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 535]] [test:535 master]  (0.3ms) COMMIT [test:535 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:535 master]  (0.1ms) BEGIN [test:535 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 536], ["name", "switchman_test_shard_536"]] [test:535 master]  (0.2ms) COMMIT [test:535 master]  (0.1ms) BEGIN [test:535 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 537], ["name", "switchman_test_shard_537"]] [test:535 master]  (0.2ms) COMMIT [test:535 master]  (0.1ms) BEGIN [test:535 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:535 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 536]] [test:535 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 537]] [test:535 master]  (0.1ms) BEGIN [1:537 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (535)) [test:535 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:535 master]  (0.1ms) ROLLBACK [1:537 master]  (0.1ms) ROLLBACK [test:535 master]  (0.1ms) BEGIN [test:535 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:535 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 536]] [test:535 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 537]] [test:535 master]  (0.1ms) BEGIN [1:537 master]  (0.1ms) SAVEPOINT active_record_1 [test:535 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:535 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:535 master]  (0.1ms) SAVEPOINT active_record_1 [test:535 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:535 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:535 master]  (0.1ms) SAVEPOINT active_record_1 [test:535 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:535 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:535 master]  (0.1ms) SAVEPOINT active_record_1 [test:535 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 539]] [test:535 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:535 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:535 master]  (0.3ms) SELECT MAX("switchman_shards"."id") AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2) subquery [test:535 master] PG::UndefinedTable: ERROR: missing FROM-clause entry for table "switchman_shards" LINE 1: SELECT MAX("switchman_shards"."id") AS max_id FROM (SELECT ... ^ : SELECT MAX("switchman_shards"."id") AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2) subquery  (0.1ms) ROLLBACK [1:537 master]  (0.1ms) ROLLBACK [test:535 master]  (0.1ms) BEGIN [test:535 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:535 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 536]] [test:535 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 537]] [test:535 master]  (0.1ms) BEGIN [1:537 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=535 AND id<=536)) ORDER BY "switchman_shards"."id" ASC [test:535 master]  (0.1ms) ROLLBACK [1:537 master]  (0.1ms) ROLLBACK [test:535 master]  (0.1ms) BEGIN [test:535 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:535 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 536]] [test:535 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 537]] [test:535 master]  (0.1ms) BEGIN [1:537 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=536 AND id<=536)) AND (id NOT IN (535)) [test:535 master]  (0.1ms) ROLLBACK [1:537 master]  (0.1ms) ROLLBACK [test:535 master]  (0.1ms) BEGIN [test:535 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:535 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 536]] [test:535 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 537]] [test:535 master]  (0.5ms) BEGIN [1:537 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=535 AND id<=536)) AND (id NOT IN (535)) [test:535 master]  (0.1ms) ROLLBACK [1:537 master]  (0.1ms) ROLLBACK [test:535 master]  (0.1ms) BEGIN [test:535 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:535 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 536]] [test:535 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 537]] [test:535 master]  (0.1ms) BEGIN [1:537 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=535 AND id<536)) [test:535 master]  (0.1ms) ROLLBACK [1:537 master]  (0.1ms) ROLLBACK [test:535 master]  (0.1ms) BEGIN [test:535 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:535 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 536]] [test:535 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 537]] [test:535 master]  (0.1ms) BEGIN [1:537 master]  (0.1ms) ROLLBACK [1:537 master]  (0.1ms) ROLLBACK [test:535 master]  (0.1ms) BEGIN [test:535 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:535 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 536]] [test:535 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 537]] [test:535 master]  (0.1ms) BEGIN [1:537 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=535 AND id<536) OR (id>=537 AND id<538)) ORDER BY "switchman_shards"."id" ASC [test:535 master]  (0.1ms) ROLLBACK [1:537 master]  (0.1ms) ROLLBACK [test:535 master]  (0.1ms) BEGIN [test:535 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:535 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 536]] [test:535 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 537]] [test:535 master]  (0.1ms) BEGIN [1:537 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (535)) [test:535 master]  (0.1ms) ROLLBACK [1:537 master]  (0.1ms) ROLLBACK [test:535 master]  (0.1ms) BEGIN [test:535 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:535 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 536]] [test:535 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 537]] [test:535 master]  (0.1ms) BEGIN [1:537 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=536)) ORDER BY "switchman_shards"."id" ASC [test:535 master]  (0.1ms) ROLLBACK [1:537 master]  (0.1ms) ROLLBACK [test:535 master]  (0.1ms) BEGIN [test:535 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:535 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 536]] [test:535 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 537]] [test:535 master]  (0.1ms) BEGIN [1:537 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=536)) ORDER BY "switchman_shards"."id" ASC [test:535 master]  (0.1ms) ROLLBACK [1:537 master]  (0.1ms) ROLLBACK [test:535 master]  (0.1ms) BEGIN [test:535 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:535 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 536]] [test:535 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 537]] [test:535 master]  (0.1ms) BEGIN [1:537 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (535)) [test:535 master]  (0.1ms) ROLLBACK [1:537 master]  (0.1ms) ROLLBACK [test:535 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:535 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:535 master]  (5.4ms) DROP SCHEMA switchman_test_shard_536 CASCADE [test:536 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 536]]  (0.1ms) COMMIT  (6.1ms) DROP SCHEMA switchman_test_shard_537 CASCADE [1:537 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 537]]  (0.1ms) COMMIT  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.3ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_542 [test:542 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:542 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:542 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:542 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:542 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.3ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:542 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:542 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:542 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:542 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:542 deploy] Migrating to CreateAppendages (20130411202442)  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:542 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:542 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:542 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:542 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:542 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:542 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:542 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:542 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:542 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:542 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:542 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:542 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:542 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:542 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:542 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 542 [["name", "switchman_test_shard_542"]] [test:541 master]  (0.6ms) COMMIT [test:541 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:541 master]  (0.1ms) BEGIN [test:541 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:541 master]  (0.3ms) COMMIT [test:541 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_543 [1:543 deploy]  (0.1ms) BEGIN [1:543 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:543 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:543 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:543 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.3ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:543 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:543 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:543 deploy] Migrating to CreateUsers (20130403132607)  (2.3ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:543 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:543 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:543 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:543 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:543 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:543 deploy] Migrating to CreateDigits (20131022202028)  (2.3ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:543 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:543 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:543 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:543 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:543 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:543 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:543 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:543 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:543 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [1:543 deploy]  (0.7ms) COMMIT [1:543 deploy]  (0.1ms) BEGIN [test:541 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 543 [["name", "switchman_test_shard_543"]] [test:541 master]  (0.4ms) COMMIT [test:541 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:541 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:541 master]  (0.1ms) BEGIN [test:541 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 541]] [test:541 master]  (0.3ms) COMMIT [test:541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:541 master]  (0.1ms) BEGIN [test:541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 542], ["name", "switchman_test_shard_542"]] [test:541 master]  (0.4ms) COMMIT [test:541 master]  (0.1ms) BEGIN [test:541 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 543], ["name", "switchman_test_shard_543"]] [test:541 master]  (0.3ms) COMMIT [test:541 master]  (0.1ms) BEGIN [test:541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [test:541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [test:541 master]  (0.1ms) BEGIN [1:543 master]  (0.1ms) ROLLBACK [1:543 master]  (0.1ms) ROLLBACK [test:541 master]  (0.1ms) BEGIN [test:541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [test:541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [test:541 master]  (0.1ms) BEGIN [1:543 master]  (0.1ms) SAVEPOINT active_record_1 [test:541 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:541 master]  (0.1ms) SAVEPOINT active_record_1 [test:541 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:541 master]  (0.1ms) SAVEPOINT active_record_1 [test:541 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:541 master]  (0.1ms) SAVEPOINT active_record_1 [test:541 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 545]] [test:541 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:541 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:541 master]  (0.3ms) SELECT MAX(subquery.id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2) subquery [test:541 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards"."id" FROM "switchman_shards" WHERE ((id> AND id<=542)) ORDER BY "switchman_shards"."id" ASC LIMIT 2 [test:541 master] PG::SyntaxError: ERROR: syntax error at or near "AND" LINE 1: ...shards"."id" FROM "switchman_shards" WHERE ((id> AND id<=54... ^ : SELECT "switchman_shards"."id" FROM "switchman_shards" WHERE ((id> AND id<=542)) ORDER BY "switchman_shards"."id" ASC LIMIT 2  (0.1ms) ROLLBACK [1:543 master]  (0.1ms) ROLLBACK [test:541 master]  (0.1ms) BEGIN [test:541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [test:541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [test:541 master]  (0.1ms) BEGIN [1:543 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=541 AND id<542) OR (id>=543 AND id<544)) ORDER BY "switchman_shards"."id" ASC [test:541 master]  (0.1ms) ROLLBACK [1:543 master]  (0.1ms) ROLLBACK [test:541 master]  (0.1ms) BEGIN [test:541 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [test:541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [test:541 master]  (0.1ms) BEGIN [1:543 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=542 AND id<=542)) AND (id NOT IN (541)) [test:541 master]  (0.1ms) ROLLBACK [1:543 master]  (0.1ms) ROLLBACK [test:541 master]  (0.1ms) BEGIN [test:541 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [test:541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [test:541 master]  (0.1ms) BEGIN [1:543 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (541)) [test:541 master]  (0.1ms) ROLLBACK [1:543 master]  (0.1ms) ROLLBACK [test:541 master]  (0.1ms) BEGIN [test:541 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [test:541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [test:541 master]  (0.1ms) BEGIN [1:543 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=541 AND id<=542)) ORDER BY "switchman_shards"."id" ASC [test:541 master]  (0.1ms) ROLLBACK [1:543 master]  (0.2ms) ROLLBACK [test:541 master]  (0.1ms) BEGIN [test:541 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [test:541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [test:541 master]  (0.1ms) BEGIN [1:543 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=541 AND id<542)) [test:541 master]  (0.1ms) ROLLBACK [1:543 master]  (0.1ms) ROLLBACK [test:541 master]  (0.1ms) BEGIN [test:541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [test:541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [test:541 master]  (0.1ms) BEGIN [1:543 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (541)) [test:541 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:541 master]  (0.1ms) ROLLBACK [1:543 master]  (0.1ms) ROLLBACK [test:541 master]  (0.1ms) BEGIN [test:541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [test:541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [test:541 master]  (0.1ms) BEGIN [1:543 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=542)) ORDER BY "switchman_shards"."id" ASC [test:541 master]  (0.1ms) ROLLBACK [1:543 master]  (0.1ms) ROLLBACK [test:541 master]  (0.1ms) BEGIN [test:541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:541 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [test:541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [test:541 master]  (0.1ms) BEGIN [1:543 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (541)) [test:541 master]  (0.1ms) ROLLBACK [1:543 master]  (0.1ms) ROLLBACK [test:541 master]  (0.1ms) BEGIN [test:541 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [test:541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [test:541 master]  (0.1ms) BEGIN [1:543 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=542)) ORDER BY "switchman_shards"."id" ASC [test:541 master]  (0.1ms) ROLLBACK [1:543 master]  (0.1ms) ROLLBACK [test:541 master]  (0.1ms) BEGIN [test:541 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 542]] [test:541 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 543]] [test:541 master]  (0.1ms) BEGIN [1:543 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=541 AND id<=542)) AND (id NOT IN (541)) [test:541 master]  (0.1ms) ROLLBACK [1:543 master]  (0.1ms) ROLLBACK [test:541 master] SQL (14.4ms) DELETE FROM "switchman_shards" [test:541 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:541 master]  (9.2ms) DROP SCHEMA switchman_test_shard_542 CASCADE [test:542 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 542]]  (0.1ms) COMMIT  (10.1ms) DROP SCHEMA switchman_test_shard_543 CASCADE [1:543 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 543]]  (0.1ms) COMMIT  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.4ms) CREATE SCHEMA switchman_test_shard_548 [test:548 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:548 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:548 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:548 deploy] ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:548 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.0ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:548 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:548 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:548 deploy] Migrating to CreateUsers (20130403132607)  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:548 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:548 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:548 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:548 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:548 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:548 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:548 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:548 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:548 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:548 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:548 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:548 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:548 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:548 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:548 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:548 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:548 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 548 [["name", "switchman_test_shard_548"]] [test:547 master]  (0.7ms) COMMIT [test:547 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:547 master]  (0.1ms) BEGIN [test:547 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:547 master]  (0.2ms) COMMIT [test:547 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_549 [1:549 deploy]  (0.1ms) BEGIN [1:549 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:549 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:549 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:549 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.8ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:549 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:549 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:549 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:549 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:549 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:549 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:549 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:549 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:549 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:549 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:549 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:549 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:549 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:549 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:549 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:549 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:549 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:549 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [1:549 deploy]  (0.7ms) COMMIT [1:549 deploy]  (0.1ms) BEGIN [test:547 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 549 [["name", "switchman_test_shard_549"]] [test:547 master]  (0.3ms) COMMIT [test:547 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:547 master]  (0.1ms) BEGIN [test:547 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 547]] [test:547 master]  (0.2ms) COMMIT [test:547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:547 master]  (0.1ms) BEGIN [test:547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 548], ["name", "switchman_test_shard_548"]] [test:547 master]  (0.2ms) COMMIT [test:547 master]  (0.1ms) BEGIN [test:547 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 549], ["name", "switchman_test_shard_549"]] [test:547 master]  (0.3ms) COMMIT [test:547 master]  (0.1ms) BEGIN [test:547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 548]] [test:547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 549]] [test:547 master]  (0.1ms) BEGIN [1:549 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=547 AND id<=548)) AND (id NOT IN (547)) [test:547 master]  (0.1ms) ROLLBACK [1:549 master]  (0.1ms) ROLLBACK [test:547 master]  (0.1ms) BEGIN [test:547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 548]] [test:547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 549]] [test:547 master]  (0.1ms) BEGIN [1:549 master]  (0.1ms) SAVEPOINT active_record_1 [test:547 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:547 master]  (0.1ms) SAVEPOINT active_record_1 [test:547 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:547 master]  (0.1ms) SAVEPOINT active_record_1 [test:547 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:547 master]  (0.1ms) SAVEPOINT active_record_1 [test:547 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 551]] [test:547 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:547 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:547 master]  (0.3ms) SELECT MAX(subquery.id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2) subquery [test:547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards"."id" FROM "switchman_shards" WHERE (id<=548) ORDER BY "switchman_shards"."id" ASC LIMIT 2 [test:547 master]  (0.2ms) ROLLBACK [1:549 master]  (0.2ms) ROLLBACK [test:547 master]  (0.1ms) BEGIN [test:547 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:547 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 548]] [test:547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 549]] [test:547 master]  (0.1ms) BEGIN [1:549 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (547)) [test:547 master]  (0.1ms) ROLLBACK [1:549 master]  (0.1ms) ROLLBACK [test:547 master]  (0.1ms) BEGIN [test:547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 548]] [test:547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 549]] [test:547 master]  (0.1ms) BEGIN [1:549 master]  (0.1ms) ROLLBACK [1:549 master]  (0.1ms) ROLLBACK [test:547 master]  (0.1ms) BEGIN [test:547 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 548]] [test:547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 549]] [test:547 master]  (0.1ms) BEGIN [1:549 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=547 AND id<548)) [test:547 master]  (0.1ms) ROLLBACK [1:549 master]  (0.1ms) ROLLBACK [test:547 master]  (0.1ms) BEGIN [test:547 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 548]] [test:547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 549]] [test:547 master]  (0.1ms) BEGIN [1:549 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=548)) ORDER BY "switchman_shards"."id" ASC [test:547 master]  (0.1ms) ROLLBACK [1:549 master]  (0.1ms) ROLLBACK [test:547 master]  (0.1ms) BEGIN [test:547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 548]] [test:547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 549]] [test:547 master]  (0.1ms) BEGIN [1:549 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=547 AND id<548) OR (id>=549 AND id<550)) ORDER BY "switchman_shards"."id" ASC [test:547 master]  (0.1ms) ROLLBACK [1:549 master]  (0.1ms) ROLLBACK [test:547 master]  (0.1ms) BEGIN [test:547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 548]] [test:547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 549]] [test:547 master]  (0.1ms) BEGIN [1:549 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=548)) ORDER BY "switchman_shards"."id" ASC [test:547 master]  (0.1ms) ROLLBACK [1:549 master]  (0.1ms) ROLLBACK [test:547 master]  (0.1ms) BEGIN [test:547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 548]] [test:547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 549]] [test:547 master]  (0.1ms) BEGIN [1:549 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (547)) [test:547 master]  (0.1ms) ROLLBACK [1:549 master]  (0.1ms) ROLLBACK [test:547 master]  (0.1ms) BEGIN [test:547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 548]] [test:547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 549]] [test:547 master]  (0.1ms) BEGIN [1:549 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=547 AND id<=548)) ORDER BY "switchman_shards"."id" ASC [test:547 master]  (0.1ms) ROLLBACK [1:549 master]  (0.1ms) ROLLBACK [test:547 master]  (0.1ms) BEGIN [test:547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 548]] [test:547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 549]] [test:547 master]  (0.1ms) BEGIN [1:549 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=548 AND id<=548)) AND (id NOT IN (547)) [test:547 master]  (0.1ms) ROLLBACK [1:549 master]  (0.1ms) ROLLBACK [test:547 master]  (0.1ms) BEGIN [test:547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 548]] [test:547 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 549]] [test:547 master]  (0.1ms) BEGIN [1:549 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (547)) [test:547 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:547 master]  (0.1ms) ROLLBACK [1:549 master]  (0.1ms) ROLLBACK [test:547 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:547 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:547 master]  (4.9ms) DROP SCHEMA switchman_test_shard_548 CASCADE [test:548 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 548]]  (0.1ms) COMMIT  (5.8ms) DROP SCHEMA switchman_test_shard_549 CASCADE [1:549 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 549]]  (0.2ms) COMMIT  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_554 [test:554 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:554 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:554 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:554 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:554 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.9ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:554 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:554 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:554 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:554 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:554 deploy] Migrating to CreateAppendages (20130411202442)  (2.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:554 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:554 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:554 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:554 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:554 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:554 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:554 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:554 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:554 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:554 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:554 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:554 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:554 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:554 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:554 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 554 [["name", "switchman_test_shard_554"]] [test:553 master]  (0.7ms) COMMIT [test:553 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:553 master]  (0.1ms) BEGIN [test:553 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:553 master]  (0.3ms) COMMIT [test:553 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_555 [1:555 deploy]  (0.2ms) BEGIN [1:555 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:555 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:555 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:555 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.9ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:555 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:555 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:555 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:555 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:555 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:555 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:555 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:555 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:555 deploy] Migrating to CreateDigits (20131022202028)  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:555 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:555 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:555 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:555 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:555 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:555 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:555 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:555 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:555 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [1:555 deploy]  (0.7ms) COMMIT [1:555 deploy]  (0.1ms) BEGIN [test:553 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 555 [["name", "switchman_test_shard_555"]] [test:553 master]  (0.4ms) COMMIT [test:553 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:553 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:553 master]  (0.1ms) BEGIN [test:553 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:553 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 553]] [test:553 master]  (0.3ms) COMMIT [test:553 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:553 master]  (0.1ms) BEGIN [test:553 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 554], ["name", "switchman_test_shard_554"]] [test:553 master]  (0.3ms) COMMIT [test:553 master]  (0.1ms) BEGIN [test:553 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 555], ["name", "switchman_test_shard_555"]] [test:553 master]  (0.3ms) COMMIT [test:553 master]  (0.1ms) BEGIN [test:553 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:553 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 554]] [test:553 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 555]] [test:553 master]  (0.1ms) BEGIN [1:555 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=554 AND id<=554)) AND (id NOT IN (553)) [test:553 master]  (0.1ms) ROLLBACK [1:555 master]  (0.1ms) ROLLBACK [test:553 master]  (0.1ms) BEGIN [test:553 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:553 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 554]] [test:553 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 555]] [test:553 master]  (0.1ms) BEGIN [1:555 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (553)) [test:553 master]  (0.1ms) ROLLBACK [1:555 master]  (0.1ms) ROLLBACK [test:553 master]  (0.1ms) BEGIN [test:553 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:553 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 554]] [test:553 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 555]] [test:553 master]  (0.1ms) BEGIN [1:555 master]  (0.1ms) SAVEPOINT active_record_1 [test:553 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:553 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:553 master]  (0.1ms) SAVEPOINT active_record_1 [test:553 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:553 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:553 master]  (0.1ms) SAVEPOINT active_record_1 [test:553 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:553 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:553 master]  (0.1ms) SAVEPOINT active_record_1 [test:553 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 557]] [test:553 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:553 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:553 master]  (0.3ms) SELECT MAX(subquery.id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2) subquery [test:553 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards"."id" FROM "switchman_shards" WHERE (id<=554) ORDER BY "switchman_shards"."id" ASC LIMIT 2 [test:553 master]  (0.1ms) ROLLBACK [1:555 master]  (0.1ms) ROLLBACK [test:553 master]  (0.1ms) BEGIN [test:553 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:553 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 554]] [test:553 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 555]] [test:553 master]  (0.2ms) BEGIN [1:555 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=553 AND id<=554)) ORDER BY "switchman_shards"."id" ASC [test:553 master]  (0.1ms) ROLLBACK [1:555 master]  (0.1ms) ROLLBACK [test:553 master]  (0.1ms) BEGIN [test:553 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:553 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 554]] [test:553 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 555]] [test:553 master]  (0.2ms) BEGIN [1:555 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (553)) [test:553 master]  (0.3ms) SELECT COUNT(*) FROM "switchman_shards" [test:553 master]  (0.1ms) ROLLBACK [1:555 master]  (0.1ms) ROLLBACK [test:553 master]  (0.1ms) BEGIN [test:553 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:553 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 554]] [test:553 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 555]] [test:553 master]  (0.1ms) BEGIN [1:555 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (553)) [test:553 master]  (0.1ms) ROLLBACK [1:555 master]  (0.1ms) ROLLBACK [test:553 master]  (0.1ms) BEGIN [test:553 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:553 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 554]] [test:553 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 555]] [test:553 master]  (0.1ms) BEGIN [1:555 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=553 AND id<=554)) AND (id NOT IN (553)) [test:553 master]  (0.1ms) ROLLBACK [1:555 master]  (0.1ms) ROLLBACK [test:553 master]  (0.1ms) BEGIN [test:553 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:553 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 554]] [test:553 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 555]] [test:553 master]  (0.1ms) BEGIN [1:555 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=553 AND id<554)) [test:553 master]  (0.1ms) ROLLBACK [1:555 master]  (0.1ms) ROLLBACK [test:553 master]  (0.1ms) BEGIN [test:553 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:553 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 554]] [test:553 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 555]] [test:553 master]  (0.1ms) BEGIN [1:555 master]  (0.1ms) ROLLBACK [1:555 master]  (0.1ms) ROLLBACK [test:553 master]  (0.1ms) BEGIN [test:553 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:553 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 554]] [test:553 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 555]] [test:553 master]  (0.1ms) BEGIN [1:555 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=554)) ORDER BY "switchman_shards"."id" ASC [test:553 master]  (0.1ms) ROLLBACK [1:555 master]  (0.1ms) ROLLBACK [test:553 master]  (0.1ms) BEGIN [test:553 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:553 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 554]] [test:553 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 555]] [test:553 master]  (0.1ms) BEGIN [1:555 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=554)) ORDER BY "switchman_shards"."id" ASC [test:553 master]  (0.1ms) ROLLBACK [1:555 master]  (0.1ms) ROLLBACK [test:553 master]  (0.1ms) BEGIN [test:553 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:553 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 554]] [test:553 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 555]] [test:553 master]  (0.1ms) BEGIN [1:555 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=553 AND id<554) OR (id>=555 AND id<556)) ORDER BY "switchman_shards"."id" ASC [test:553 master]  (0.1ms) ROLLBACK [1:555 master]  (0.1ms) ROLLBACK [test:553 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:553 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:553 master]  (4.8ms) DROP SCHEMA switchman_test_shard_554 CASCADE [test:554 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 554]]  (0.1ms) COMMIT  (7.2ms) DROP SCHEMA switchman_test_shard_555 CASCADE [1:555 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 555]]  (0.1ms) COMMIT  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_560 [test:560 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:560 deploy]  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:560 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:560 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:560 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.0ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:560 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:560 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:560 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:560 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:560 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:560 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:560 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:560 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:560 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:560 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:560 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:560 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:560 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:560 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:560 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:560 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:560 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:560 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:560 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:560 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 560 [["name", "switchman_test_shard_560"]] [test:559 master]  (0.7ms) COMMIT [test:559 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:559 master]  (0.1ms) BEGIN [test:559 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:559 master]  (0.2ms) COMMIT [test:559 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_561 [1:561 deploy]  (0.1ms) BEGIN [1:561 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:561 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:561 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:561 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.8ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:561 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:561 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:561 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:561 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:561 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:561 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:561 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:561 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:561 deploy] Migrating to CreateDigits (20131022202028)  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:561 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:561 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:561 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:561 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:561 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:561 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:561 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:561 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:561 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [1:561 deploy]  (1.2ms) COMMIT [1:561 deploy]  (0.1ms) BEGIN [test:559 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 561 [["name", "switchman_test_shard_561"]] [test:559 master]  (0.3ms) COMMIT [test:559 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:559 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:559 master]  (0.1ms) BEGIN [test:559 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:559 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 559]] [test:559 master]  (0.3ms) COMMIT [test:559 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:559 master]  (0.1ms) BEGIN [test:559 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 560], ["name", "switchman_test_shard_560"]] [test:559 master]  (0.3ms) COMMIT [test:559 master]  (0.1ms) BEGIN [test:559 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 561], ["name", "switchman_test_shard_561"]] [test:559 master]  (0.3ms) COMMIT [test:559 master]  (0.1ms) BEGIN [test:559 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:559 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 560]] [test:559 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 561]] [test:559 master]  (0.1ms) BEGIN [1:561 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=559 AND id<=560)) ORDER BY "switchman_shards"."id" ASC [test:559 master]  (0.1ms) ROLLBACK [1:561 master]  (0.1ms) ROLLBACK [test:559 master]  (0.1ms) BEGIN [test:559 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:559 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 560]] [test:559 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 561]] [test:559 master]  (0.1ms) BEGIN [1:561 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (559)) [test:559 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:559 master]  (0.1ms) ROLLBACK [1:561 master]  (0.1ms) ROLLBACK [test:559 master]  (0.1ms) BEGIN [test:559 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:559 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 560]] [test:559 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 561]] [test:559 master]  (0.1ms) BEGIN [1:561 master]  (0.1ms) ROLLBACK [1:561 master]  (0.1ms) ROLLBACK [test:559 master]  (0.1ms) BEGIN [test:559 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:559 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 560]] [test:559 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 561]] [test:559 master]  (0.1ms) BEGIN [1:561 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (559)) [test:559 master]  (0.1ms) ROLLBACK [1:561 master]  (0.1ms) ROLLBACK [test:559 master]  (0.1ms) BEGIN [test:559 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:559 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 560]] [test:559 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 561]] [test:559 master]  (0.1ms) BEGIN [1:561 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=559 AND id<560)) [test:559 master]  (0.1ms) ROLLBACK [1:561 master]  (0.1ms) ROLLBACK [test:559 master]  (0.1ms) BEGIN [test:559 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:559 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 560]] [test:559 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 561]] [test:559 master]  (0.1ms) BEGIN [1:561 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=559 AND id<=560)) AND (id NOT IN (559)) [test:559 master]  (0.1ms) ROLLBACK [1:561 master]  (0.1ms) ROLLBACK [test:559 master]  (0.1ms) BEGIN [test:559 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:559 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 560]] [test:559 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 561]] [test:559 master]  (0.1ms) BEGIN [1:561 master]  (0.1ms) SAVEPOINT active_record_1 [test:559 master] SQL (0.3ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:559 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:559 master]  (0.1ms) SAVEPOINT active_record_1 [test:559 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:559 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:559 master]  (0.1ms) SAVEPOINT active_record_1 [test:559 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:559 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:559 master]  (0.1ms) SAVEPOINT active_record_1 [test:559 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 563]] [test:559 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:559 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:559 master]  (0.4ms) SELECT MAX(subquery.id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2) subquery [test:559 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards"."id" FROM "switchman_shards" WHERE (id<=560) ORDER BY "switchman_shards"."id" ASC LIMIT 2 [test:559 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:559 master]  (0.2ms) SELECT MAX(subquery.id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2) subquery [test:559 master]  (0.2ms) SELECT MAX(subquery.id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" WHERE (id>560) ORDER BY "switchman_shards"."id" ASC LIMIT 2) subquery [test:559 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards"."id" FROM "switchman_shards" WHERE (id>560) AND ((id>560 AND id<=562)) ORDER BY "switchman_shards"."id" ASC LIMIT 2 [test:559 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:559 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id>) [test:559 master] PG::SyntaxError: ERROR: syntax error at or near ")" LINE 1: ...CT "switchman_shards".* FROM "switchman_shards" WHERE (id>) ^ : SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id>)  (0.1ms) ROLLBACK [1:561 master]  (0.1ms) ROLLBACK [test:559 master]  (0.1ms) BEGIN [test:559 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:559 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 560]] [test:559 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 561]] [test:559 master]  (0.1ms) BEGIN [1:561 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=559 AND id<560) OR (id>=561 AND id<562)) ORDER BY "switchman_shards"."id" ASC [test:559 master]  (0.1ms) ROLLBACK [1:561 master]  (0.1ms) ROLLBACK [test:559 master]  (0.1ms) BEGIN [test:559 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:559 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 560]] [test:559 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 561]] [test:559 master]  (0.1ms) BEGIN [1:561 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=560)) ORDER BY "switchman_shards"."id" ASC [test:559 master]  (0.1ms) ROLLBACK [1:561 master]  (0.1ms) ROLLBACK [test:559 master]  (0.1ms) BEGIN [test:559 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:559 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 560]] [test:559 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 561]] [test:559 master]  (0.1ms) BEGIN [1:561 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=560)) ORDER BY "switchman_shards"."id" ASC [test:559 master]  (0.1ms) ROLLBACK [1:561 master]  (0.1ms) ROLLBACK [test:559 master]  (0.1ms) BEGIN [test:559 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:559 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 560]] [test:559 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 561]] [test:559 master]  (0.1ms) BEGIN [1:561 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (559)) [test:559 master]  (0.1ms) ROLLBACK [1:561 master]  (0.1ms) ROLLBACK [test:559 master]  (0.1ms) BEGIN [test:559 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:559 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 560]] [test:559 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 561]] [test:559 master]  (0.1ms) BEGIN [1:561 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=560 AND id<=560)) AND (id NOT IN (559)) [test:559 master]  (0.1ms) ROLLBACK [1:561 master]  (0.1ms) ROLLBACK [test:559 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:559 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:559 master]  (4.7ms) DROP SCHEMA switchman_test_shard_560 CASCADE [test:560 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 560]]  (0.1ms) COMMIT  (5.7ms) DROP SCHEMA switchman_test_shard_561 CASCADE [1:561 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 561]]  (0.1ms) COMMIT  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_566 [test:566 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:566 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:566 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:566 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:566 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.9ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:566 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:566 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:566 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:566 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:566 deploy] Migrating to CreateAppendages (20130411202442)  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:566 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:566 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.2ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:566 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:566 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:566 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:566 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:566 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:566 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:566 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:566 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:566 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:566 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:566 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:566 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:566 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 566 [["name", "switchman_test_shard_566"]] [test:565 master]  (0.7ms) COMMIT [test:565 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:565 master]  (0.1ms) BEGIN [test:565 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:565 master]  (0.3ms) COMMIT [test:565 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_567 [1:567 deploy]  (0.1ms) BEGIN [1:567 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:567 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:567 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:567 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.0ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:567 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:567 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:567 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:567 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:567 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:567 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:567 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:567 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:567 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:567 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:567 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:567 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:567 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:567 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:567 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:567 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:567 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:567 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [1:567 deploy]  (0.8ms) COMMIT [1:567 deploy]  (0.1ms) BEGIN [test:565 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 567 [["name", "switchman_test_shard_567"]] [test:565 master]  (0.3ms) COMMIT [test:565 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:565 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:565 master]  (0.1ms) BEGIN [test:565 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:565 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 565]] [test:565 master]  (0.3ms) COMMIT [test:565 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:565 master]  (0.1ms) BEGIN [test:565 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 566], ["name", "switchman_test_shard_566"]] [test:565 master]  (0.2ms) COMMIT [test:565 master]  (0.1ms) BEGIN [test:565 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 567], ["name", "switchman_test_shard_567"]] [test:565 master]  (0.2ms) COMMIT [test:565 master]  (0.1ms) BEGIN [test:565 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:565 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [test:565 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 567]] [test:565 master]  (0.1ms) BEGIN [1:567 master]  (0.1ms) SAVEPOINT active_record_1 [test:565 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:565 master]  (0.1ms) SAVEPOINT active_record_1 [test:565 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:565 master]  (0.1ms) SAVEPOINT active_record_1 [test:565 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:565 master]  (0.1ms) SAVEPOINT active_record_1 [test:565 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 569]] [test:565 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:565 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:565 master]  (0.3ms) SELECT MAX(subquery.id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2) subquery [test:565 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards"."id" FROM "switchman_shards" WHERE (id<=566) ORDER BY "switchman_shards"."id" ASC LIMIT 2 [test:565 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:565 master]  (0.2ms) SELECT MAX(subquery.id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2) subquery [test:565 master]  (0.2ms) SELECT MAX(subquery.id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" WHERE (id>566) ORDER BY "switchman_shards"."id" ASC LIMIT 2) subquery [test:565 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards"."id" FROM "switchman_shards" WHERE (id>566) AND ((id>566 AND id<=568)) ORDER BY "switchman_shards"."id" ASC LIMIT 2 [test:565 master]  (0.5ms) SELECT COUNT(*) FROM "switchman_shards" [test:565 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id>) [test:565 master] PG::SyntaxError: ERROR: syntax error at or near ")" LINE 1: ...CT "switchman_shards".* FROM "switchman_shards" WHERE (id>) ^ : SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id>)  (0.3ms) ROLLBACK [1:567 master]  (0.4ms) ROLLBACK [test:565 master]  (0.2ms) BEGIN [test:565 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:565 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [test:565 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 567]] [test:565 master]  (0.2ms) BEGIN [1:567 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (565)) [test:565 master]  (0.2ms) ROLLBACK [1:567 master]  (0.4ms) ROLLBACK [test:565 master]  (0.3ms) BEGIN [test:565 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:565 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [test:565 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 567]] [test:565 master]  (0.2ms) BEGIN [1:567 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=565 AND id<566) OR (id>=567 AND id<568)) ORDER BY "switchman_shards"."id" ASC [test:565 master]  (0.2ms) ROLLBACK [1:567 master]  (0.2ms) ROLLBACK [test:565 master]  (0.2ms) BEGIN [test:565 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:565 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [test:565 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 567]] [test:565 master]  (0.2ms) BEGIN [1:567 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (565)) [test:565 master]  (0.4ms) SELECT COUNT(*) FROM "switchman_shards" [test:565 master]  (0.2ms) ROLLBACK [1:567 master]  (0.2ms) ROLLBACK [test:565 master]  (0.2ms) BEGIN [test:565 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:565 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [test:565 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 567]] [test:565 master]  (0.2ms) BEGIN [1:567 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=565 AND id<=566)) AND (id NOT IN (565)) [test:565 master]  (0.2ms) ROLLBACK [1:567 master]  (0.2ms) ROLLBACK [test:565 master]  (0.2ms) BEGIN [test:565 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:565 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [test:565 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 567]] [test:565 master]  (0.2ms) BEGIN [1:567 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (565)) [test:565 master]  (0.2ms) ROLLBACK [1:567 master]  (0.2ms) ROLLBACK [test:565 master]  (0.3ms) BEGIN [test:565 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:565 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [test:565 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 567]] [test:565 master]  (0.2ms) BEGIN [1:567 master]  (0.2ms) ROLLBACK [1:567 master]  (0.2ms) ROLLBACK [test:565 master]  (0.2ms) BEGIN [test:565 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:565 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [test:565 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 567]] [test:565 master]  (0.2ms) BEGIN [1:567 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=565 AND id<566)) [test:565 master]  (0.3ms) ROLLBACK [1:567 master]  (0.2ms) ROLLBACK [test:565 master]  (0.7ms) BEGIN [test:565 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:565 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [test:565 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 567]] [test:565 master]  (0.2ms) BEGIN [1:567 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=566)) ORDER BY "switchman_shards"."id" ASC [test:565 master]  (0.2ms) ROLLBACK [1:567 master]  (0.2ms) ROLLBACK [test:565 master]  (0.2ms) BEGIN [test:565 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:565 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [test:565 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 567]] [test:565 master]  (0.2ms) BEGIN [1:567 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=565 AND id<=566)) ORDER BY "switchman_shards"."id" ASC [test:565 master]  (0.4ms) ROLLBACK [1:567 master]  (0.3ms) ROLLBACK [test:565 master]  (0.2ms) BEGIN [test:565 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:565 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [test:565 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 567]] [test:565 master]  (0.2ms) BEGIN [1:567 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=566 AND id<=566)) AND (id NOT IN (565)) [test:565 master]  (0.3ms) ROLLBACK [1:567 master]  (0.3ms) ROLLBACK [test:565 master]  (0.2ms) BEGIN [test:565 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:565 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 566]] [test:565 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 567]] [test:565 master]  (0.2ms) BEGIN [1:567 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=566)) ORDER BY "switchman_shards"."id" ASC [test:565 master]  (0.2ms) ROLLBACK [1:567 master]  (0.2ms) ROLLBACK [test:565 master] SQL (0.6ms) DELETE FROM "switchman_shards" [test:565 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:565 master]  (5.2ms) DROP SCHEMA switchman_test_shard_566 CASCADE [test:566 deploy]  (0.2ms) BEGIN SQL (0.6ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 566]]  (0.3ms) COMMIT  (5.6ms) DROP SCHEMA switchman_test_shard_567 CASCADE [1:567 deploy]  (0.5ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 567]]  (0.3ms) COMMIT  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.5ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_572 [test:572 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:572 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:572 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:572 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:572 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.6ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:572 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:572 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:572 deploy] Migrating to CreateUsers (20130403132607)  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:572 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:572 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:572 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:572 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:572 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:572 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:572 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:572 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:572 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:572 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:572 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:572 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:572 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:572 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:572 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:572 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:572 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 572 [["name", "switchman_test_shard_572"]] [test:571 master]  (0.9ms) COMMIT [test:571 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:571 master]  (0.1ms) BEGIN [test:571 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:571 master]  (0.3ms) COMMIT [test:571 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_573 [1:573 deploy]  (0.1ms) BEGIN [1:573 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:573 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:573 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:573 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.7ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:573 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:573 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:573 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:573 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:573 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:573 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:573 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:573 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:573 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:573 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:573 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:573 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:573 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:573 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:573 deploy] Migrating to CreateRoots (20140219183820)  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:573 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:573 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:573 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [1:573 deploy]  (0.8ms) COMMIT [1:573 deploy]  (0.1ms) BEGIN [test:571 master] SQL (0.1ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 573 [["name", "switchman_test_shard_573"]] [test:571 master]  (0.2ms) COMMIT [test:571 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:571 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:571 master]  (0.1ms) BEGIN [test:571 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:571 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 571]] [test:571 master]  (0.3ms) COMMIT [test:571 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:571 master]  (0.1ms) BEGIN [test:571 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 572], ["name", "switchman_test_shard_572"]] [test:571 master]  (0.3ms) COMMIT [test:571 master]  (0.1ms) BEGIN [test:571 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 573], ["name", "switchman_test_shard_573"]] [test:571 master]  (0.2ms) COMMIT [test:571 master]  (0.1ms) BEGIN [test:571 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:571 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 572]] [test:571 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 573]] [test:571 master]  (0.1ms) BEGIN [1:573 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (571)) [test:571 master]  (0.1ms) ROLLBACK [1:573 master]  (0.1ms) ROLLBACK [test:571 master]  (0.1ms) BEGIN [test:571 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:571 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 572]] [test:571 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 573]] [test:571 master]  (0.1ms) BEGIN [1:573 master]  (0.1ms) ROLLBACK [1:573 master]  (0.1ms) ROLLBACK [test:571 master]  (0.1ms) BEGIN [test:571 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:571 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 572]] [test:571 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 573]] [test:571 master]  (0.1ms) BEGIN [1:573 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=572)) ORDER BY "switchman_shards"."id" ASC [test:571 master]  (0.1ms) ROLLBACK [1:573 master]  (0.1ms) ROLLBACK [test:571 master]  (0.1ms) BEGIN [test:571 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:571 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 572]] [test:571 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 573]] [test:571 master]  (0.1ms) BEGIN [1:573 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=572)) ORDER BY "switchman_shards"."id" ASC [test:571 master]  (0.1ms) ROLLBACK [1:573 master]  (0.1ms) ROLLBACK [test:571 master]  (0.1ms) BEGIN [test:571 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:571 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 572]] [test:571 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 573]] [test:571 master]  (0.1ms) BEGIN [1:573 master]  (0.1ms) SAVEPOINT active_record_1 [test:571 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:571 master]  (0.1ms) SAVEPOINT active_record_1 [test:571 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:571 master]  (0.1ms) SAVEPOINT active_record_1 [test:571 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:571 master]  (0.1ms) SAVEPOINT active_record_1 [test:571 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 575]] [test:571 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:571 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:571 master]  (0.1ms) ROLLBACK [1:573 master]  (0.1ms) ROLLBACK [test:571 master]  (0.1ms) BEGIN [test:571 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:571 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 572]] [test:571 master] Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 573]] [test:571 master]  (0.1ms) BEGIN [1:573 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (571)) [test:571 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:571 master]  (0.1ms) ROLLBACK [1:573 master]  (0.1ms) ROLLBACK [test:571 master]  (0.1ms) BEGIN [test:571 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:571 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 572]] [test:571 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 573]] [test:571 master]  (0.1ms) BEGIN [1:573 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=571 AND id<572)) [test:571 master]  (0.1ms) ROLLBACK [1:573 master]  (0.1ms) ROLLBACK [test:571 master]  (0.1ms) BEGIN [test:571 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:571 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 572]] [test:571 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 573]] [test:571 master]  (0.1ms) BEGIN [1:573 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=571 AND id<=572)) ORDER BY "switchman_shards"."id" ASC [test:571 master]  (0.1ms) ROLLBACK [1:573 master]  (0.1ms) ROLLBACK [test:571 master]  (0.1ms) BEGIN [test:571 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:571 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 572]] [test:571 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 573]] [test:571 master]  (0.1ms) BEGIN [1:573 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=572 AND id<=572)) AND (id NOT IN (571)) [test:571 master]  (0.1ms) ROLLBACK [1:573 master]  (0.1ms) ROLLBACK [test:571 master]  (0.1ms) BEGIN [test:571 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:571 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 572]] [test:571 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 573]] [test:571 master]  (0.1ms) BEGIN [1:573 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (571)) [test:571 master]  (0.1ms) ROLLBACK [1:573 master]  (0.1ms) ROLLBACK [test:571 master]  (0.1ms) BEGIN [test:571 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:571 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 572]] [test:571 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 573]] [test:571 master]  (0.1ms) BEGIN [1:573 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=571 AND id<=572)) AND (id NOT IN (571)) [test:571 master]  (0.1ms) ROLLBACK [1:573 master]  (0.1ms) ROLLBACK [test:571 master]  (0.1ms) BEGIN [test:571 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:571 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 572]] [test:571 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 573]] [test:571 master]  (0.1ms) BEGIN [1:573 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=571 AND id<572) OR (id>=573 AND id<574)) ORDER BY "switchman_shards"."id" ASC [test:571 master]  (0.1ms) ROLLBACK [1:573 master]  (0.1ms) ROLLBACK [test:571 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:571 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:571 master]  (6.1ms) DROP SCHEMA switchman_test_shard_572 CASCADE [test:572 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 572]]  (0.1ms) COMMIT  (6.3ms) DROP SCHEMA switchman_test_shard_573 CASCADE [1:573 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 573]]  (0.1ms) COMMIT  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.2ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (2.1ms) CREATE SCHEMA switchman_test_shard_578 [test:578 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:578 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:578 deploy]  (6.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:578 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:578 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (8.6ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:578 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:578 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:578 deploy] Migrating to CreateUsers (20130403132607)  (1.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:578 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:578 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:578 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:578 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:578 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:578 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:578 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:578 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:578 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:578 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:578 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:578 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:578 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:578 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:578 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:578 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:578 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 578 [["name", "switchman_test_shard_578"]] [test:577 master]  (0.7ms) COMMIT [test:577 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:577 master]  (0.1ms) BEGIN [test:577 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:577 master]  (0.2ms) COMMIT [test:577 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_579 [1:579 deploy]  (0.1ms) BEGIN [1:579 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:579 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:579 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:579 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.1ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:579 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:579 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:579 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:579 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:579 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:579 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:579 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:579 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:579 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:579 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:579 deploy] Migrating to CreateFeatures (20131206172923)  (2.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:579 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:579 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:579 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:579 deploy] Migrating to CreateRoots (20140219183820)  (3.3ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:579 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:579 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:579 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [1:579 deploy]  (0.7ms) COMMIT [1:579 deploy]  (0.1ms) BEGIN [test:577 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 579 [["name", "switchman_test_shard_579"]] [test:577 master]  (0.2ms) COMMIT [test:577 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:577 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:577 master]  (0.1ms) BEGIN [test:577 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:577 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 577]] [test:577 master]  (0.3ms) COMMIT [test:577 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:577 master]  (0.1ms) BEGIN [test:577 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 578], ["name", "switchman_test_shard_578"]] [test:577 master]  (0.3ms) COMMIT [test:577 master]  (0.1ms) BEGIN [test:577 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 579], ["name", "switchman_test_shard_579"]] [test:577 master]  (0.2ms) COMMIT [test:577 master]  (0.1ms) BEGIN [test:577 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:577 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 578]] [test:577 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 579]] [test:577 master]  (0.1ms) BEGIN [1:579 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (577)) [test:577 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:577 master]  (0.1ms) ROLLBACK [1:579 master]  (0.1ms) ROLLBACK [test:577 master]  (0.1ms) BEGIN [test:577 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:577 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 578]] [test:577 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 579]] [test:577 master]  (0.1ms) BEGIN [1:579 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (577)) [test:577 master]  (0.1ms) ROLLBACK [1:579 master]  (0.1ms) ROLLBACK [test:577 master]  (0.1ms) BEGIN [test:577 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:577 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 578]] [test:577 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 579]] [test:577 master]  (0.1ms) BEGIN [1:579 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=578)) ORDER BY "switchman_shards"."id" ASC [test:577 master]  (0.1ms) ROLLBACK [1:579 master]  (0.1ms) ROLLBACK [test:577 master]  (0.1ms) BEGIN [test:577 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:577 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 578]] [test:577 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 579]] [test:577 master]  (0.1ms) BEGIN [1:579 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=577 AND id<578)) [test:577 master]  (0.1ms) ROLLBACK [1:579 master]  (0.1ms) ROLLBACK [test:577 master]  (0.1ms) BEGIN [test:577 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:577 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 578]] [test:577 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 579]] [test:577 master]  (0.1ms) BEGIN [1:579 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=577 AND id<=578)) ORDER BY "switchman_shards"."id" ASC [test:577 master]  (0.1ms) ROLLBACK [1:579 master]  (0.1ms) ROLLBACK [test:577 master]  (0.1ms) BEGIN [test:577 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:577 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 578]] [test:577 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 579]] [test:577 master]  (0.1ms) BEGIN [1:579 master]  (0.1ms) ROLLBACK [1:579 master]  (0.1ms) ROLLBACK [test:577 master]  (0.1ms) BEGIN [test:577 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:577 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 578]] [test:577 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 579]] [test:577 master]  (0.1ms) BEGIN [1:579 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (577)) [test:577 master]  (0.1ms) ROLLBACK [1:579 master]  (0.1ms) ROLLBACK [test:577 master]  (0.1ms) BEGIN [test:577 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:577 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 578]] [test:577 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 579]] [test:577 master]  (0.1ms) BEGIN [1:579 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=577 AND id<578) OR (id>=579 AND id<580)) ORDER BY "switchman_shards"."id" ASC [test:577 master]  (0.1ms) ROLLBACK [1:579 master]  (0.1ms) ROLLBACK [test:577 master]  (0.1ms) BEGIN [test:577 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:577 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 578]] [test:577 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 579]] [test:577 master]  (0.1ms) BEGIN [1:579 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=578 AND id<=578)) AND (id NOT IN (577)) [test:577 master]  (0.1ms) ROLLBACK [1:579 master]  (0.1ms) ROLLBACK [test:577 master]  (0.1ms) BEGIN [test:577 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:577 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 578]] [test:577 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 579]] [test:577 master]  (0.1ms) BEGIN [1:579 master]  (0.1ms) SAVEPOINT active_record_1 [test:577 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:577 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:577 master]  (0.1ms) SAVEPOINT active_record_1 [test:577 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:577 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:577 master]  (0.1ms) SAVEPOINT active_record_1 [test:577 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:577 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:577 master]  (0.1ms) SAVEPOINT active_record_1 [test:577 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 581]] [test:577 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:577 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:577 master] Switchman::Shard Load (0.3ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2 OFFSET 2) subquery [test:577 master]  (0.1ms) ROLLBACK [1:579 master]  (0.1ms) ROLLBACK [test:577 master]  (0.1ms) BEGIN [test:577 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:577 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 578]] [test:577 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 579]] [test:577 master]  (0.1ms) BEGIN [1:579 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=578)) ORDER BY "switchman_shards"."id" ASC [test:577 master]  (0.1ms) ROLLBACK [1:579 master]  (0.1ms) ROLLBACK [test:577 master]  (0.1ms) BEGIN [test:577 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:577 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 578]] [test:577 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 579]] [test:577 master]  (0.1ms) BEGIN [1:579 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=577 AND id<=578)) AND (id NOT IN (577)) [test:577 master]  (0.1ms) ROLLBACK [1:579 master]  (0.1ms) ROLLBACK [test:577 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:577 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:577 master]  (5.1ms) DROP SCHEMA switchman_test_shard_578 CASCADE [test:578 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 578]]  (0.1ms) COMMIT  (5.9ms) DROP SCHEMA switchman_test_shard_579 CASCADE [1:579 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 579]]  (0.1ms) COMMIT  (0.6ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.2ms) BEGIN Switchman::Shard Exists (0.4ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.4ms) CREATE SCHEMA switchman_test_shard_584 [test:584 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:584 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:584 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:584 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:584 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (18.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:584 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:584 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:584 deploy] Migrating to CreateUsers (20130403132607)  (5.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:584 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:584 deploy] Migrating to CreateAppendages (20130411202442)  (2.4ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:584 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:584 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:584 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:584 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:584 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:584 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:584 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:584 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:584 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:584 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:584 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:584 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:584 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:584 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:584 deploy] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 584 [["name", "switchman_test_shard_584"]] [test:583 master]  (0.7ms) COMMIT [test:583 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:583 master]  (0.1ms) BEGIN [test:583 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:583 master]  (0.3ms) COMMIT [test:583 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_585 [1:585 deploy]  (0.1ms) BEGIN [1:585 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:585 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:585 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:585 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.0ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:585 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:585 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:585 deploy] Migrating to CreateUsers (20130403132607)  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:585 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:585 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:585 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:585 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:585 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:585 deploy] Migrating to CreateDigits (20131022202028)  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:585 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:585 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:585 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:585 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:585 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:585 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:585 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:585 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:585 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [1:585 deploy]  (0.7ms) COMMIT [1:585 deploy]  (0.1ms) BEGIN [test:583 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 585 [["name", "switchman_test_shard_585"]] [test:583 master]  (0.3ms) COMMIT [test:583 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:583 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:583 master]  (0.1ms) BEGIN [test:583 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:583 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 583]] [test:583 master]  (0.4ms) COMMIT [test:583 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:583 master]  (0.1ms) BEGIN [test:583 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 584], ["name", "switchman_test_shard_584"]] [test:583 master]  (0.2ms) COMMIT [test:583 master]  (0.1ms) BEGIN [test:583 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 585], ["name", "switchman_test_shard_585"]] [test:583 master]  (0.3ms) COMMIT [test:583 master]  (0.1ms) BEGIN [test:583 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:583 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 584]] [test:583 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 585]] [test:583 master]  (0.1ms) BEGIN [1:585 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=584)) ORDER BY "switchman_shards"."id" ASC [test:583 master]  (0.1ms) ROLLBACK [1:585 master]  (0.1ms) ROLLBACK [test:583 master]  (0.1ms) BEGIN [test:583 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:583 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 584]] [test:583 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 585]] [test:583 master]  (0.1ms) BEGIN [1:585 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=583 AND id<=584)) ORDER BY "switchman_shards"."id" ASC [test:583 master]  (0.1ms) ROLLBACK [1:585 master]  (0.1ms) ROLLBACK [test:583 master]  (0.1ms) BEGIN [test:583 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:583 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 584]] [test:583 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 585]] [test:583 master]  (0.1ms) BEGIN [1:585 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=583 AND id<=584)) AND (id NOT IN (583)) [test:583 master]  (0.1ms) ROLLBACK [1:585 master]  (0.1ms) ROLLBACK [test:583 master]  (0.1ms) BEGIN [test:583 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:583 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 584]] [test:583 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 585]] [test:583 master]  (0.1ms) BEGIN [1:585 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (583)) [test:583 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:583 master]  (0.1ms) ROLLBACK [1:585 master]  (0.1ms) ROLLBACK [test:583 master]  (0.1ms) BEGIN [test:583 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:583 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 584]] [test:583 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 585]] [test:583 master]  (0.1ms) BEGIN [1:585 master]  (0.1ms) SAVEPOINT active_record_1 [test:583 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:583 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:583 master]  (0.1ms) SAVEPOINT active_record_1 [test:583 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:583 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:583 master]  (0.1ms) SAVEPOINT active_record_1 [test:583 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:583 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:583 master]  (0.1ms) SAVEPOINT active_record_1 [test:583 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 587]] [test:583 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:583 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:583 master] Switchman::Shard Load (0.4ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2 OFFSET 2) subquery ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:583 master] PG::UndefinedTable: ERROR: missing FROM-clause entry for table "switchman_shards" LINE 1: ...s"."id" ASC LIMIT 2 OFFSET 2) subquery ORDER BY "switchman... ^ : SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2 OFFSET 2) subquery ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) ROLLBACK [1:585 master]  (0.1ms) ROLLBACK [test:583 master]  (0.1ms) BEGIN [test:583 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:583 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 584]] [test:583 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 585]] [test:583 master]  (0.1ms) BEGIN [1:585 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (583)) [test:583 master]  (0.1ms) ROLLBACK [1:585 master]  (0.1ms) ROLLBACK [test:583 master]  (0.1ms) BEGIN [test:583 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:583 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 584]] [test:583 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 585]] [test:583 master]  (0.1ms) BEGIN [1:585 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=584 AND id<=584)) AND (id NOT IN (583)) [test:583 master]  (0.1ms) ROLLBACK [1:585 master]  (0.1ms) ROLLBACK [test:583 master]  (0.1ms) BEGIN [test:583 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:583 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 584]] [test:583 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 585]] [test:583 master]  (0.1ms) BEGIN [1:585 master]  (0.1ms) ROLLBACK [1:585 master]  (0.1ms) ROLLBACK [test:583 master]  (0.1ms) BEGIN [test:583 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:583 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 584]] [test:583 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 585]] [test:583 master]  (0.1ms) BEGIN [1:585 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=584)) ORDER BY "switchman_shards"."id" ASC [test:583 master]  (0.1ms) ROLLBACK [1:585 master]  (0.1ms) ROLLBACK [test:583 master]  (0.1ms) BEGIN [test:583 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:583 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 584]] [test:583 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 585]] [test:583 master]  (0.1ms) BEGIN [1:585 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=583 AND id<584) OR (id>=585 AND id<586)) ORDER BY "switchman_shards"."id" ASC [test:583 master]  (0.1ms) ROLLBACK [1:585 master]  (0.1ms) ROLLBACK [test:583 master]  (0.1ms) BEGIN [test:583 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:583 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 584]] [test:583 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 585]] [test:583 master]  (0.1ms) BEGIN [1:585 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=583 AND id<584)) [test:583 master]  (0.1ms) ROLLBACK [1:585 master]  (0.1ms) ROLLBACK [test:583 master]  (0.1ms) BEGIN [test:583 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:583 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 584]] [test:583 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 585]] [test:583 master]  (0.1ms) BEGIN [1:585 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (583)) [test:583 master]  (0.1ms) ROLLBACK [1:585 master]  (0.1ms) ROLLBACK [test:583 master] SQL (0.6ms) DELETE FROM "switchman_shards" [test:583 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:583 master]  (6.0ms) DROP SCHEMA switchman_test_shard_584 CASCADE [test:584 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 584]]  (0.1ms) COMMIT  (6.1ms) DROP SCHEMA switchman_test_shard_585 CASCADE [1:585 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 585]]  (0.1ms) COMMIT  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_590 [test:590 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:590 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:590 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:590 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:590 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.0ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:590 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:590 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:590 deploy] Migrating to CreateUsers (20130403132607)  (2.1ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:590 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:590 deploy] Migrating to CreateAppendages (20130411202442)  (2.2ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:590 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:590 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.4ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:590 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:590 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:590 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:590 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:590 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:590 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.4ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:590 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:590 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:590 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:590 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:590 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:590 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:590 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 590 [["name", "switchman_test_shard_590"]] [test:589 master]  (0.8ms) COMMIT [test:589 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:589 master]  (0.1ms) BEGIN [test:589 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:589 master]  (0.2ms) COMMIT [test:589 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_591 [1:591 deploy]  (0.1ms) BEGIN [1:591 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:591 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:591 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:591 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.1ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:591 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:591 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:591 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:591 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:591 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:591 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:591 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:591 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:591 deploy] Migrating to CreateDigits (20131022202028)  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:591 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:591 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:591 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:591 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:591 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:591 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:591 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:591 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:591 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [1:591 deploy]  (0.7ms) COMMIT [1:591 deploy]  (0.1ms) BEGIN [test:589 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 591 [["name", "switchman_test_shard_591"]] [test:589 master]  (0.3ms) COMMIT [test:589 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:589 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:589 master]  (0.1ms) BEGIN [test:589 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:589 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 589]] [test:589 master]  (0.2ms) COMMIT [test:589 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:589 master]  (0.1ms) BEGIN [test:589 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 590], ["name", "switchman_test_shard_590"]] [test:589 master]  (0.2ms) COMMIT [test:589 master]  (0.1ms) BEGIN [test:589 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 591], ["name", "switchman_test_shard_591"]] [test:589 master]  (0.2ms) COMMIT [test:589 master]  (0.1ms) BEGIN [test:589 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:589 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 590]] [test:589 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 591]] [test:589 master]  (0.1ms) BEGIN [1:591 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (589)) [test:589 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:589 master]  (0.1ms) ROLLBACK [1:591 master]  (0.1ms) ROLLBACK [test:589 master]  (0.1ms) BEGIN [test:589 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:589 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 590]] [test:589 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 591]] [test:589 master]  (0.1ms) BEGIN [1:591 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=589 AND id<590) OR (id>=591 AND id<592)) ORDER BY "switchman_shards"."id" ASC [test:589 master]  (0.1ms) ROLLBACK [1:591 master]  (0.1ms) ROLLBACK [test:589 master]  (0.1ms) BEGIN [test:589 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:589 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 590]] [test:589 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 591]] [test:589 master]  (0.1ms) BEGIN [1:591 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (589)) [test:589 master]  (0.1ms) ROLLBACK [1:591 master]  (0.1ms) ROLLBACK [test:589 master]  (0.1ms) BEGIN [test:589 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:589 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 590]] [test:589 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 591]] [test:589 master]  (0.1ms) BEGIN [1:591 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=589 AND id<=590)) AND (id NOT IN (589)) [test:589 master]  (0.1ms) ROLLBACK [1:591 master]  (0.1ms) ROLLBACK [test:589 master]  (0.1ms) BEGIN [test:589 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:589 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 590]] [test:589 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 591]] [test:589 master]  (0.1ms) BEGIN [1:591 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (589)) [test:589 master]  (0.1ms) ROLLBACK [1:591 master]  (0.1ms) ROLLBACK [test:589 master]  (0.1ms) BEGIN [test:589 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:589 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 590]] [test:589 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 591]] [test:589 master]  (0.1ms) BEGIN [1:591 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=590)) ORDER BY "switchman_shards"."id" ASC [test:589 master]  (0.1ms) ROLLBACK [1:591 master]  (0.1ms) ROLLBACK [test:589 master]  (0.1ms) BEGIN [test:589 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:589 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 590]] [test:589 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 591]] [test:589 master]  (0.1ms) BEGIN [1:591 master]  (0.1ms) ROLLBACK [1:591 master]  (0.1ms) ROLLBACK [test:589 master]  (0.1ms) BEGIN [test:589 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:589 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 590]] [test:589 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 591]] [test:589 master]  (0.1ms) BEGIN [1:591 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=589 AND id<590)) [test:589 master]  (0.1ms) ROLLBACK [1:591 master]  (0.1ms) ROLLBACK [test:589 master]  (0.1ms) BEGIN [test:589 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:589 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 590]] [test:589 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 591]] [test:589 master]  (0.1ms) BEGIN [1:591 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=590 AND id<=590)) AND (id NOT IN (589)) [test:589 master]  (0.1ms) ROLLBACK [1:591 master]  (0.1ms) ROLLBACK [test:589 master]  (0.1ms) BEGIN [test:589 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:589 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 590]] [test:589 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 591]] [test:589 master]  (0.1ms) BEGIN [1:591 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=590)) ORDER BY "switchman_shards"."id" ASC [test:589 master]  (0.1ms) ROLLBACK [1:591 master]  (0.1ms) ROLLBACK [test:589 master]  (0.1ms) BEGIN [test:589 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:589 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 590]] [test:589 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 591]] [test:589 master]  (0.1ms) BEGIN [1:591 master]  (0.1ms) SAVEPOINT active_record_1 [test:589 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:589 master]  (0.1ms) SAVEPOINT active_record_1 [test:589 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:589 master]  (0.1ms) SAVEPOINT active_record_1 [test:589 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:589 master]  (0.1ms) SAVEPOINT active_record_1 [test:589 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 593]] [test:589 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:589 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:589 master] Switchman::Shard Load (0.3ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2 OFFSET 2) subquery [test:589 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards"."id" FROM "switchman_shards" WHERE ((id>591 AND id<=592) ORDER BY "switchman_shards"."id" ASC LIMIT 2 OFFSET 2 [test:589 master] PG::SyntaxError: ERROR: syntax error at or near "ORDER" LINE 1: ... "switchman_shards" WHERE ((id>591 AND id<=592) ORDER BY "... ^ : SELECT "switchman_shards"."id" FROM "switchman_shards" WHERE ((id>591 AND id<=592) ORDER BY "switchman_shards"."id" ASC LIMIT 2 OFFSET 2  (0.1ms) ROLLBACK [1:591 master]  (0.1ms) ROLLBACK [test:589 master]  (0.1ms) BEGIN [test:589 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:589 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 590]] [test:589 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 591]] [test:589 master]  (0.1ms) BEGIN [1:591 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=589 AND id<=590)) ORDER BY "switchman_shards"."id" ASC [test:589 master]  (0.1ms) ROLLBACK [1:591 master]  (0.1ms) ROLLBACK [test:589 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:589 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:589 master]  (4.8ms) DROP SCHEMA switchman_test_shard_590 CASCADE [test:590 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 590]]  (0.1ms) COMMIT  (5.6ms) DROP SCHEMA switchman_test_shard_591 CASCADE [1:591 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 591]]  (0.1ms) COMMIT  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.6ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.4ms) CREATE SCHEMA switchman_test_shard_596 [test:596 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:596 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:596 deploy]  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:596 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:596 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.7ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:596 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:596 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:596 deploy] Migrating to CreateUsers (20130403132607)  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:596 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:596 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:596 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:596 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:596 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:596 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:596 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:596 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:596 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:596 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:596 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:596 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:596 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:596 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:596 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:596 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:596 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 596 [["name", "switchman_test_shard_596"]] [test:595 master]  (0.8ms) COMMIT [test:595 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:595 master]  (0.1ms) BEGIN [test:595 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:595 master]  (0.3ms) COMMIT [test:595 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_597 [1:597 deploy]  (0.1ms) BEGIN [1:597 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:597 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:597 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:597 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.8ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:597 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:597 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:597 deploy] Migrating to CreateUsers (20130403132607)  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:597 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:597 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:597 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:597 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:597 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:597 deploy] Migrating to CreateDigits (20131022202028)  (1.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:597 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:597 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:597 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:597 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:597 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:597 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:597 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:597 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:597 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [1:597 deploy]  (0.8ms) COMMIT [1:597 deploy]  (0.1ms) BEGIN [test:595 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 597 [["name", "switchman_test_shard_597"]] [test:595 master]  (0.3ms) COMMIT [test:595 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:595 master]  (0.1ms) BEGIN [test:595 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:595 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 595]] [test:595 master]  (0.3ms) COMMIT [test:595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:595 master]  (0.1ms) BEGIN [test:595 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 596], ["name", "switchman_test_shard_596"]] [test:595 master]  (0.3ms) COMMIT [test:595 master]  (0.1ms) BEGIN [test:595 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 597], ["name", "switchman_test_shard_597"]] [test:595 master]  (0.3ms) COMMIT [test:595 master]  (0.1ms) BEGIN [test:595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:595 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 596]] [test:595 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 597]] [test:595 master]  (0.1ms) BEGIN [1:597 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=595 AND id<=596)) AND (id NOT IN (595)) [test:595 master]  (0.1ms) ROLLBACK [1:597 master]  (0.1ms) ROLLBACK [test:595 master]  (0.1ms) BEGIN [test:595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:595 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 596]] [test:595 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 597]] [test:595 master]  (0.1ms) BEGIN [1:597 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (595)) [test:595 master]  (0.1ms) ROLLBACK [1:597 master]  (0.1ms) ROLLBACK [test:595 master]  (0.1ms) BEGIN [test:595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 596]] [test:595 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 597]] [test:595 master]  (0.1ms) BEGIN [1:597 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=595 AND id<596) OR (id>=597 AND id<598)) ORDER BY "switchman_shards"."id" ASC [test:595 master]  (0.1ms) ROLLBACK [1:597 master]  (0.1ms) ROLLBACK [test:595 master]  (0.1ms) BEGIN [test:595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:595 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 596]] [test:595 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 597]] [test:595 master]  (0.1ms) BEGIN [1:597 master]  (0.1ms) ROLLBACK [1:597 master]  (0.1ms) ROLLBACK [test:595 master]  (0.1ms) BEGIN [test:595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:595 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 596]] [test:595 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 597]] [test:595 master]  (0.1ms) BEGIN [1:597 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=595 AND id<596)) [test:595 master]  (0.1ms) ROLLBACK [1:597 master]  (0.1ms) ROLLBACK [test:595 master]  (0.1ms) BEGIN [test:595 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:595 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 596]] [test:595 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 597]] [test:595 master]  (0.1ms) BEGIN [1:597 master]  (0.1ms) SAVEPOINT active_record_1 [test:595 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:595 master]  (0.1ms) SAVEPOINT active_record_1 [test:595 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:595 master]  (0.1ms) SAVEPOINT active_record_1 [test:595 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:595 master]  (0.1ms) SAVEPOINT active_record_1 [test:595 master] SQL (0.7ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 599]] [test:595 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:595 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:595 master] Switchman::Shard Load (0.3ms) SELECT MAX(id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2) subquery [test:595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards"."id" FROM "switchman_shards" WHERE (id<=596) ORDER BY "switchman_shards"."id" ASC LIMIT 2 [test:595 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:595 master] Switchman::Shard Load (0.3ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2 OFFSET 4) subquery [test:595 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards"."id" FROM "switchman_shards" WHERE ((id>600 AND id<=600) ORDER BY "switchman_shards"."id" ASC LIMIT 2 OFFSET 4 [test:595 master] PG::SyntaxError: ERROR: syntax error at or near "ORDER" LINE 1: ... "switchman_shards" WHERE ((id>600 AND id<=600) ORDER BY "... ^ : SELECT "switchman_shards"."id" FROM "switchman_shards" WHERE ((id>600 AND id<=600) ORDER BY "switchman_shards"."id" ASC LIMIT 2 OFFSET 4  (0.1ms) ROLLBACK [1:597 master]  (0.1ms) ROLLBACK [test:595 master]  (0.1ms) BEGIN [test:595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:595 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 596]] [test:595 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 597]] [test:595 master]  (0.1ms) BEGIN [1:597 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=595 AND id<=596)) ORDER BY "switchman_shards"."id" ASC [test:595 master]  (0.1ms) ROLLBACK [1:597 master]  (0.1ms) ROLLBACK [test:595 master]  (0.1ms) BEGIN [test:595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:595 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 596]] [test:595 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 597]] [test:595 master]  (0.1ms) BEGIN [1:597 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (595)) [test:595 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:595 master]  (0.1ms) ROLLBACK [1:597 master]  (0.1ms) ROLLBACK [test:595 master]  (0.1ms) BEGIN [test:595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:595 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 596]] [test:595 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 597]] [test:595 master]  (0.1ms) BEGIN [1:597 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=596 AND id<=596)) AND (id NOT IN (595)) [test:595 master]  (0.1ms) ROLLBACK [1:597 master]  (0.1ms) ROLLBACK [test:595 master]  (0.1ms) BEGIN [test:595 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:595 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 596]] [test:595 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 597]] [test:595 master]  (0.1ms) BEGIN [1:597 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (595)) [test:595 master]  (0.1ms) ROLLBACK [1:597 master]  (0.1ms) ROLLBACK [test:595 master]  (0.1ms) BEGIN [test:595 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:595 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 596]] [test:595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 597]] [test:595 master]  (0.1ms) BEGIN [1:597 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=596)) ORDER BY "switchman_shards"."id" ASC [test:595 master]  (0.1ms) ROLLBACK [1:597 master]  (0.1ms) ROLLBACK [test:595 master]  (0.1ms) BEGIN [test:595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:595 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 596]] [test:595 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 597]] [test:595 master]  (0.1ms) BEGIN [1:597 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=596)) ORDER BY "switchman_shards"."id" ASC [test:595 master]  (0.1ms) ROLLBACK [1:597 master]  (0.1ms) ROLLBACK [test:595 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:595 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:595 master]  (4.8ms) DROP SCHEMA switchman_test_shard_596 CASCADE [test:596 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 596]]  (0.1ms) COMMIT  (5.6ms) DROP SCHEMA switchman_test_shard_597 CASCADE [1:597 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 597]]  (0.1ms) COMMIT  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.6ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.4ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.4ms) CREATE SCHEMA switchman_test_shard_602 [test:602 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:602 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:602 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:602 deploy] ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:602 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.9ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:602 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:602 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:602 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:602 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:602 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:602 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:602 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:602 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:602 deploy] Migrating to CreateDigits (20131022202028)  (2.0ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:602 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:602 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:602 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:602 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:602 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:602 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:602 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:602 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:602 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:602 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:602 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 602 [["name", "switchman_test_shard_602"]] [test:601 master]  (0.7ms) COMMIT [test:601 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:601 master]  (0.1ms) BEGIN [test:601 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:601 master]  (0.3ms) COMMIT [test:601 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_603 [1:603 deploy]  (0.1ms) BEGIN [1:603 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:603 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:603 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:603 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.9ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:603 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:603 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:603 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:603 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:603 deploy] Migrating to CreateAppendages (20130411202442)  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:603 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:603 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:603 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:603 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:603 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:603 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:603 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:603 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:603 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:603 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:603 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:603 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:603 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [1:603 deploy]  (0.7ms) COMMIT [1:603 deploy]  (0.1ms) BEGIN [test:601 master] SQL (0.1ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 603 [["name", "switchman_test_shard_603"]] [test:601 master]  (0.4ms) COMMIT [test:601 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:601 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:601 master]  (0.1ms) BEGIN [test:601 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:601 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 601]] [test:601 master]  (0.3ms) COMMIT [test:601 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:601 master]  (0.1ms) BEGIN [test:601 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 602], ["name", "switchman_test_shard_602"]] [test:601 master]  (0.3ms) COMMIT [test:601 master]  (0.1ms) BEGIN [test:601 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 603], ["name", "switchman_test_shard_603"]] [test:601 master]  (0.3ms) COMMIT [test:601 master]  (0.1ms) BEGIN [test:601 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:601 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 602]] [test:601 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 603]] [test:601 master]  (0.2ms) BEGIN [1:603 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (601)) [test:601 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:601 master]  (0.1ms) ROLLBACK [1:603 master]  (0.1ms) ROLLBACK [test:601 master]  (0.1ms) BEGIN [test:601 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:601 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 602]] [test:601 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 603]] [test:601 master]  (0.1ms) BEGIN [1:603 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=602 AND id<=602)) AND (id NOT IN (601)) [test:601 master]  (0.1ms) ROLLBACK [1:603 master]  (0.1ms) ROLLBACK [test:601 master]  (0.1ms) BEGIN [test:601 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:601 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 602]] [test:601 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 603]] [test:601 master]  (0.1ms) BEGIN [1:603 master]  (0.1ms) SAVEPOINT active_record_1 [test:601 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:601 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:601 master]  (0.1ms) SAVEPOINT active_record_1 [test:601 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:601 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:601 master]  (0.1ms) SAVEPOINT active_record_1 [test:601 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:601 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:601 master]  (0.1ms) SAVEPOINT active_record_1 [test:601 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 605]] [test:601 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:601 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:601 master] Switchman::Shard Load (0.3ms) SELECT MAX(id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2) subquery [test:601 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id<=602) [test:601 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:601 master] Switchman::Shard Load (0.3ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2 OFFSET 4) subquery [test:601 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>606 AND id<=606) [test:601 master] PG::SyntaxError: ERROR: syntax error at end of input LINE 1: ...ards".* FROM "switchman_shards" WHERE ((id>606 AND id<=606) ^ : SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>606 AND id<=606)  (0.1ms) ROLLBACK [1:603 master]  (0.1ms) ROLLBACK [test:601 master]  (0.1ms) BEGIN [test:601 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:601 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 602]] [test:601 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 603]] [test:601 master]  (0.1ms) BEGIN [1:603 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=602)) ORDER BY "switchman_shards"."id" ASC [test:601 master]  (0.1ms) ROLLBACK [1:603 master]  (0.1ms) ROLLBACK [test:601 master]  (0.1ms) BEGIN [test:601 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:601 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 602]] [test:601 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 603]] [test:601 master]  (0.1ms) BEGIN [1:603 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (601)) [test:601 master]  (0.1ms) ROLLBACK [1:603 master]  (0.1ms) ROLLBACK [test:601 master]  (0.1ms) BEGIN [test:601 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:601 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 602]] [test:601 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 603]] [test:601 master]  (0.1ms) BEGIN [1:603 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=601 AND id<=602)) ORDER BY "switchman_shards"."id" ASC [test:601 master]  (0.2ms) ROLLBACK [1:603 master]  (0.1ms) ROLLBACK [test:601 master]  (0.1ms) BEGIN [test:601 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:601 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 602]] [test:601 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 603]] [test:601 master]  (0.1ms) BEGIN [1:603 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=601 AND id<=602)) AND (id NOT IN (601)) [test:601 master]  (0.1ms) ROLLBACK [1:603 master]  (0.1ms) ROLLBACK [test:601 master]  (0.1ms) BEGIN [test:601 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:601 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 602]] [test:601 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 603]] [test:601 master]  (0.1ms) BEGIN [1:603 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (601)) [test:601 master]  (0.1ms) ROLLBACK [1:603 master]  (0.1ms) ROLLBACK [test:601 master]  (0.1ms) BEGIN [test:601 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:601 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 602]] [test:601 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 603]] [test:601 master]  (0.1ms) BEGIN [1:603 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=602)) ORDER BY "switchman_shards"."id" ASC [test:601 master]  (0.1ms) ROLLBACK [1:603 master]  (0.1ms) ROLLBACK [test:601 master]  (0.1ms) BEGIN [test:601 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:601 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 602]] [test:601 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 603]] [test:601 master]  (0.1ms) BEGIN [1:603 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=601 AND id<602) OR (id>=603 AND id<604)) ORDER BY "switchman_shards"."id" ASC [test:601 master]  (0.1ms) ROLLBACK [1:603 master]  (0.1ms) ROLLBACK [test:601 master]  (0.1ms) BEGIN [test:601 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:601 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 602]] [test:601 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 603]] [test:601 master]  (0.1ms) BEGIN [1:603 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=601 AND id<602)) [test:601 master]  (0.1ms) ROLLBACK [1:603 master]  (0.1ms) ROLLBACK [test:601 master]  (0.1ms) BEGIN [test:601 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:601 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 602]] [test:601 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 603]] [test:601 master]  (0.1ms) BEGIN [1:603 master]  (0.1ms) ROLLBACK [1:603 master]  (0.1ms) ROLLBACK [test:601 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:601 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:601 master]  (6.1ms) DROP SCHEMA switchman_test_shard_602 CASCADE [test:602 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 602]]  (0.1ms) COMMIT  (6.9ms) DROP SCHEMA switchman_test_shard_603 CASCADE [1:603 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 603]]  (0.1ms) COMMIT  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.2ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_608 [test:608 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:608 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:608 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:608 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:608 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.7ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:608 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:608 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:608 deploy] Migrating to CreateUsers (20130403132607)  (1.7ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:608 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:608 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:608 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:608 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:608 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:608 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:608 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:608 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:608 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:608 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:608 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:608 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:608 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:608 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:608 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:608 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:608 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 608 [["name", "switchman_test_shard_608"]] [test:607 master]  (0.7ms) COMMIT [test:607 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:607 master]  (0.1ms) BEGIN [test:607 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:607 master]  (0.3ms) COMMIT [test:607 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_609 [1:609 deploy]  (0.1ms) BEGIN [1:609 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:609 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:609 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:609 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:609 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:609 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:609 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:609 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:609 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:609 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:609 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:609 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:609 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:609 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:609 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:609 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:609 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:609 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:609 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:609 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:609 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.1ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:609 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [1:609 deploy]  (0.7ms) COMMIT [1:609 deploy]  (0.1ms) BEGIN [test:607 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 609 [["name", "switchman_test_shard_609"]] [test:607 master]  (0.3ms) COMMIT [test:607 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:607 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:607 master]  (0.1ms) BEGIN [test:607 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:607 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 607]] [test:607 master]  (0.3ms) COMMIT [test:607 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:607 master]  (0.1ms) BEGIN [test:607 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 608], ["name", "switchman_test_shard_608"]] [test:607 master]  (0.3ms) COMMIT [test:607 master]  (0.1ms) BEGIN [test:607 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 609], ["name", "switchman_test_shard_609"]] [test:607 master]  (0.2ms) COMMIT [test:607 master]  (0.1ms) BEGIN [test:607 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:607 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 608]] [test:607 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 609]] [test:607 master]  (0.1ms) BEGIN [1:609 master]  (0.1ms) SAVEPOINT active_record_1 [test:607 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:607 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:607 master]  (0.1ms) SAVEPOINT active_record_1 [test:607 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:607 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:607 master]  (0.1ms) SAVEPOINT active_record_1 [test:607 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:607 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:607 master]  (0.1ms) SAVEPOINT active_record_1 [test:607 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 611]] [test:607 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:607 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:607 master] Switchman::Shard Load (0.3ms) SELECT MAX(id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2) subquery [test:607 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id<=608) [test:607 master]  (0.4ms) SELECT COUNT(*) FROM "switchman_shards" [test:607 master] Switchman::Shard Load (0.5ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2 OFFSET 4) subquery [test:607 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>612 AND id<=612) [test:607 master] PG::SyntaxError: ERROR: syntax error at end of input LINE 1: ...ards".* FROM "switchman_shards" WHERE ((id>612 AND id<=612) ^ : SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>612 AND id<=612)  (0.5ms) ROLLBACK [1:609 master]  (0.5ms) ROLLBACK [test:607 master]  (0.2ms) BEGIN [test:607 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:607 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 608]] [test:607 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 609]] [test:607 master]  (0.2ms) BEGIN [1:609 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (607)) [test:607 master]  (0.2ms) ROLLBACK [1:609 master]  (0.2ms) ROLLBACK [test:607 master]  (0.2ms) BEGIN [test:607 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:607 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 608]] [test:607 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 609]] [test:607 master]  (0.2ms) BEGIN [1:609 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (607)) [test:607 master]  (0.3ms) ROLLBACK [1:609 master]  (0.2ms) ROLLBACK [test:607 master]  (0.2ms) BEGIN [test:607 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:607 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 608]] [test:607 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 609]] [test:607 master]  (0.2ms) BEGIN [1:609 master]  (0.3ms) ROLLBACK [1:609 master]  (0.2ms) ROLLBACK [test:607 master]  (2.7ms) BEGIN [test:607 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:607 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 608]] [test:607 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 609]] [test:607 master]  (0.2ms) BEGIN [1:609 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (607)) [test:607 master]  (0.3ms) SELECT COUNT(*) FROM "switchman_shards" [test:607 master]  (0.2ms) ROLLBACK [1:609 master]  (0.3ms) ROLLBACK [test:607 master]  (0.2ms) BEGIN [test:607 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:607 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 608]] [test:607 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 609]] [test:607 master]  (0.2ms) BEGIN [1:609 master] Switchman::Shard Load (1.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=607 AND id<=608)) AND (id NOT IN (607)) [test:607 master]  (0.2ms) ROLLBACK [1:609 master]  (0.2ms) ROLLBACK [test:607 master]  (0.3ms) BEGIN [test:607 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:607 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 608]] [test:607 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 609]] [test:607 master]  (0.2ms) BEGIN [1:609 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=608 AND id<=608)) AND (id NOT IN (607)) [test:607 master]  (0.2ms) ROLLBACK [1:609 master]  (0.2ms) ROLLBACK [test:607 master]  (0.2ms) BEGIN [test:607 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:607 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 608]] [test:607 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 609]] [test:607 master]  (0.2ms) BEGIN [1:609 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=607 AND id<=608)) ORDER BY "switchman_shards"."id" ASC [test:607 master]  (0.3ms) ROLLBACK [1:609 master]  (0.3ms) ROLLBACK [test:607 master]  (0.2ms) BEGIN [test:607 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:607 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 608]] [test:607 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 609]] [test:607 master]  (0.2ms) BEGIN [1:609 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=608)) ORDER BY "switchman_shards"."id" ASC [test:607 master]  (0.2ms) ROLLBACK [1:609 master]  (0.3ms) ROLLBACK [test:607 master]  (0.2ms) BEGIN [test:607 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:607 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 608]] [test:607 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 609]] [test:607 master]  (0.2ms) BEGIN [1:609 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=608)) ORDER BY "switchman_shards"."id" ASC [test:607 master]  (0.2ms) ROLLBACK [1:609 master]  (0.2ms) ROLLBACK [test:607 master]  (0.3ms) BEGIN [test:607 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:607 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 608]] [test:607 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 609]] [test:607 master]  (0.2ms) BEGIN [1:609 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=607 AND id<608) OR (id>=609 AND id<610)) ORDER BY "switchman_shards"."id" ASC [test:607 master]  (0.2ms) ROLLBACK [1:609 master]  (0.2ms) ROLLBACK [test:607 master]  (0.2ms) BEGIN [test:607 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:607 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 608]] [test:607 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 609]] [test:607 master]  (0.3ms) BEGIN [1:609 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=607 AND id<608)) [test:607 master]  (0.3ms) ROLLBACK [1:609 master]  (0.2ms) ROLLBACK [test:607 master] SQL (6.5ms) DELETE FROM "switchman_shards" [test:607 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:607 master]  (5.0ms) DROP SCHEMA switchman_test_shard_608 CASCADE [test:608 deploy]  (0.1ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 608]]  (0.2ms) COMMIT  (6.1ms) DROP SCHEMA switchman_test_shard_609 CASCADE [1:609 deploy]  (0.4ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 609]]  (0.2ms) COMMIT  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.4ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.3ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.2ms) CREATE SCHEMA switchman_test_shard_614 [test:614 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:614 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:614 deploy]  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:614 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:614 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.9ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:614 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:614 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:614 deploy] Migrating to CreateUsers (20130403132607)  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:614 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:614 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:614 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:614 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:614 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:614 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:614 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:614 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:614 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:614 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:614 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:614 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:614 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:614 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:614 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:614 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:614 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 614 [["name", "switchman_test_shard_614"]] [test:613 master]  (0.7ms) COMMIT [test:613 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:613 master]  (0.1ms) BEGIN [test:613 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:613 master]  (0.3ms) COMMIT [test:613 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_615 [1:615 deploy]  (0.1ms) BEGIN [1:615 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:615 deploy]  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:615 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:615 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.1ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:615 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:615 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:615 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:615 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:615 deploy] Migrating to CreateAppendages (20130411202442)  (2.0ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:615 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:615 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:615 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:615 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:615 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:615 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:615 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:615 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:615 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:615 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:615 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:615 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:615 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [1:615 deploy]  (0.7ms) COMMIT [1:615 deploy]  (0.1ms) BEGIN [test:613 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 615 [["name", "switchman_test_shard_615"]] [test:613 master]  (0.4ms) COMMIT [test:613 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:613 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:613 master]  (0.1ms) BEGIN [test:613 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:613 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 613]] [test:613 master]  (0.3ms) COMMIT [test:613 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:613 master]  (0.1ms) BEGIN [test:613 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 614], ["name", "switchman_test_shard_614"]] [test:613 master]  (0.3ms) COMMIT [test:613 master]  (0.1ms) BEGIN [test:613 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 615], ["name", "switchman_test_shard_615"]] [test:613 master]  (0.2ms) COMMIT [test:613 master]  (0.1ms) BEGIN [test:613 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:613 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 614]] [test:613 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 615]] [test:613 master]  (0.1ms) BEGIN [1:615 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=613 AND id<=614)) ORDER BY "switchman_shards"."id" ASC [test:613 master]  (0.1ms) ROLLBACK [1:615 master]  (0.2ms) ROLLBACK [test:613 master]  (0.1ms) BEGIN [test:613 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:613 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 614]] [test:613 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 615]] [test:613 master]  (0.1ms) BEGIN [1:615 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (613)) [test:613 master]  (0.1ms) ROLLBACK [1:615 master]  (0.1ms) ROLLBACK [test:613 master]  (0.1ms) BEGIN [test:613 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:613 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 614]] [test:613 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 615]] [test:613 master]  (0.1ms) BEGIN [1:615 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=614)) ORDER BY "switchman_shards"."id" ASC [test:613 master]  (0.1ms) ROLLBACK [1:615 master]  (0.1ms) ROLLBACK [test:613 master]  (0.1ms) BEGIN [test:613 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:613 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 614]] [test:613 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 615]] [test:613 master]  (0.1ms) BEGIN [1:615 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=614)) ORDER BY "switchman_shards"."id" ASC [test:613 master]  (0.1ms) ROLLBACK [1:615 master]  (0.1ms) ROLLBACK [test:613 master]  (0.1ms) BEGIN [test:613 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:613 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 614]] [test:613 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 615]] [test:613 master]  (0.1ms) BEGIN [1:615 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (613)) [test:613 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:613 master]  (0.1ms) ROLLBACK [1:615 master]  (0.1ms) ROLLBACK [test:613 master]  (0.1ms) BEGIN [test:613 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:613 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 614]] [test:613 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 615]] [test:613 master]  (0.8ms) BEGIN [1:615 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=613 AND id<614) OR (id>=615 AND id<616)) ORDER BY "switchman_shards"."id" ASC [test:613 master]  (0.1ms) ROLLBACK [1:615 master]  (0.1ms) ROLLBACK [test:613 master]  (0.1ms) BEGIN [test:613 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:613 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 614]] [test:613 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 615]] [test:613 master]  (0.1ms) BEGIN [1:615 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=613 AND id<=614)) AND (id NOT IN (613)) [test:613 master]  (0.1ms) ROLLBACK [1:615 master]  (0.1ms) ROLLBACK [test:613 master]  (0.1ms) BEGIN [test:613 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:613 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 614]] [test:613 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 615]] [test:613 master]  (0.1ms) BEGIN [1:615 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=614 AND id<=614)) AND (id NOT IN (613)) [test:613 master]  (0.1ms) ROLLBACK [1:615 master]  (0.1ms) ROLLBACK [test:613 master]  (0.1ms) BEGIN [test:613 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:613 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 614]] [test:613 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 615]] [test:613 master]  (0.1ms) BEGIN [1:615 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=613 AND id<614)) [test:613 master]  (0.1ms) ROLLBACK [1:615 master]  (0.1ms) ROLLBACK [test:613 master]  (0.1ms) BEGIN [test:613 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:613 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 614]] [test:613 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 615]] [test:613 master]  (0.1ms) BEGIN [1:615 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (613)) [test:613 master]  (0.1ms) ROLLBACK [1:615 master]  (0.1ms) ROLLBACK [test:613 master]  (0.1ms) BEGIN [test:613 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:613 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 614]] [test:613 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 615]] [test:613 master]  (0.1ms) BEGIN [1:615 master]  (0.1ms) ROLLBACK [1:615 master]  (0.1ms) ROLLBACK [test:613 master]  (0.1ms) BEGIN [test:613 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:613 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 614]] [test:613 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 615]] [test:613 master]  (0.1ms) BEGIN [1:615 master]  (0.1ms) SAVEPOINT active_record_1 [test:613 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:613 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:613 master]  (0.1ms) SAVEPOINT active_record_1 [test:613 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:613 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:613 master]  (0.1ms) SAVEPOINT active_record_1 [test:613 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:613 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:613 master]  (0.2ms) SAVEPOINT active_record_1 [test:613 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 617]] [test:613 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:613 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:613 master] Switchman::Shard Load (0.3ms) SELECT MAX(id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2) subquery [test:613 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id<=614) [test:613 master]  (0.5ms) SELECT COUNT(*) FROM "switchman_shards" [test:613 master] Switchman::Shard Load (0.6ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2 OFFSET 4) subquery [test:613 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>618 AND id<=618) [test:613 master] PG::SyntaxError: ERROR: syntax error at end of input LINE 1: ...ards".* FROM "switchman_shards" WHERE ((id>618 AND id<=618) ^ : SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>618 AND id<=618)  (0.3ms) ROLLBACK [1:615 master]  (0.4ms) ROLLBACK [test:613 master] SQL (0.6ms) DELETE FROM "switchman_shards" [test:613 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:613 master]  (5.0ms) DROP SCHEMA switchman_test_shard_614 CASCADE [test:614 deploy]  (0.2ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 614]]  (0.2ms) COMMIT  (5.1ms) DROP SCHEMA switchman_test_shard_615 CASCADE [1:615 deploy]  (0.3ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 615]]  (0.2ms) COMMIT  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.6ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.4ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (6.2ms) COMMIT Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_620 [test:620 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:620 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:620 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:620 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:620 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.9ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:620 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:620 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:620 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:620 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:620 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:620 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:620 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:620 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:620 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:620 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:620 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:620 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:620 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:620 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:620 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:620 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:620 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:620 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:620 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:620 deploy] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 620 [["name", "switchman_test_shard_620"]] [test:619 master]  (0.7ms) COMMIT [test:619 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:619 master]  (0.1ms) BEGIN [test:619 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:619 master]  (0.2ms) COMMIT [test:619 master]  (0.7ms) CREATE SCHEMA switchman_test_shard_621 [1:621 deploy]  (0.1ms) BEGIN [1:621 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:621 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:621 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:621 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.9ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:621 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:621 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:621 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:621 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:621 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:621 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:621 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:621 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:621 deploy] Migrating to CreateDigits (20131022202028)  (2.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:621 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:621 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:621 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:621 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:621 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:621 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:621 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:621 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:621 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [1:621 deploy]  (0.7ms) COMMIT [1:621 deploy]  (0.1ms) BEGIN [test:619 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 621 [["name", "switchman_test_shard_621"]] [test:619 master]  (0.3ms) COMMIT [test:619 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:619 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:619 master]  (0.1ms) BEGIN [test:619 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:619 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 619]] [test:619 master]  (0.3ms) COMMIT [test:619 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:619 master]  (0.1ms) BEGIN [test:619 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 620], ["name", "switchman_test_shard_620"]] [test:619 master]  (0.3ms) COMMIT [test:619 master]  (0.1ms) BEGIN [test:619 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 621], ["name", "switchman_test_shard_621"]] [test:619 master]  (0.3ms) COMMIT [test:619 master]  (0.1ms) BEGIN [test:619 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:619 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 620]] [test:619 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 621]] [test:619 master]  (0.1ms) BEGIN [1:621 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=619 AND id<620) OR (id>=621 AND id<622)) ORDER BY "switchman_shards"."id" ASC [test:619 master]  (0.1ms) ROLLBACK [1:621 master]  (0.1ms) ROLLBACK [test:619 master]  (0.1ms) BEGIN [test:619 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:619 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 620]] [test:619 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 621]] [test:619 master]  (0.1ms) BEGIN [1:621 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (619)) [test:619 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:619 master]  (0.1ms) ROLLBACK [1:621 master]  (0.1ms) ROLLBACK [test:619 master]  (0.1ms) BEGIN [test:619 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:619 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 620]] [test:619 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 621]] [test:619 master]  (0.1ms) BEGIN [1:621 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=619 AND id<620)) [test:619 master]  (0.1ms) ROLLBACK [1:621 master]  (0.1ms) ROLLBACK [test:619 master]  (0.1ms) BEGIN [test:619 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:619 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 620]] [test:619 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 621]] [test:619 master]  (0.1ms) BEGIN [1:621 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=620)) ORDER BY "switchman_shards"."id" ASC [test:619 master]  (0.1ms) ROLLBACK [1:621 master]  (0.1ms) ROLLBACK [test:619 master]  (0.1ms) BEGIN [test:619 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:619 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 620]] [test:619 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 621]] [test:619 master]  (0.1ms) BEGIN [1:621 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=620 AND id<=620)) AND (id NOT IN (619)) [test:619 master]  (0.1ms) ROLLBACK [1:621 master]  (0.1ms) ROLLBACK [test:619 master]  (0.1ms) BEGIN [test:619 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:619 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 620]] [test:619 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 621]] [test:619 master]  (0.1ms) BEGIN [1:621 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=620)) ORDER BY "switchman_shards"."id" ASC [test:619 master]  (0.1ms) ROLLBACK [1:621 master]  (0.1ms) ROLLBACK [test:619 master]  (0.1ms) BEGIN [test:619 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:619 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 620]] [test:619 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 621]] [test:619 master]  (0.6ms) BEGIN [1:621 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=619 AND id<=620)) ORDER BY "switchman_shards"."id" ASC [test:619 master]  (0.1ms) ROLLBACK [1:621 master]  (0.1ms) ROLLBACK [test:619 master]  (0.1ms) BEGIN [test:619 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:619 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 620]] [test:619 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 621]] [test:619 master]  (0.1ms) BEGIN [1:621 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=619 AND id<=620)) AND (id NOT IN (619)) [test:619 master]  (0.1ms) ROLLBACK [1:621 master]  (0.1ms) ROLLBACK [test:619 master]  (0.1ms) BEGIN [test:619 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:619 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 620]] [test:619 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 621]] [test:619 master]  (0.1ms) BEGIN [1:621 master]  (0.1ms) SAVEPOINT active_record_1 [test:619 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:619 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:619 master]  (0.1ms) SAVEPOINT active_record_1 [test:619 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:619 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:619 master]  (0.1ms) SAVEPOINT active_record_1 [test:619 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:619 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:619 master]  (0.1ms) SAVEPOINT active_record_1 [test:619 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 623]] [test:619 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:619 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:619 master] Switchman::Shard Load (0.2ms) SELECT MAX(id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2) subquery [test:619 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id<=620) [test:619 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:619 master] Switchman::Shard Load (0.3ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2 OFFSET 4) subquery [test:619 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>624 AND id<=624)) [test:619 master]  (0.1ms) ROLLBACK [1:621 master]  (0.1ms) ROLLBACK [test:619 master]  (0.1ms) BEGIN [test:619 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:619 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 620]] [test:619 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 621]] [test:619 master]  (0.1ms) BEGIN [1:621 master]  (0.1ms) ROLLBACK [1:621 master]  (0.1ms) ROLLBACK [test:619 master]  (0.1ms) BEGIN [test:619 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:619 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 620]] [test:619 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 621]] [test:619 master]  (0.1ms) BEGIN [1:621 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (619)) [test:619 master]  (0.1ms) ROLLBACK [1:621 master]  (0.1ms) ROLLBACK [test:619 master]  (0.1ms) BEGIN [test:619 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:619 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 620]] [test:619 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 621]] [test:619 master]  (0.1ms) BEGIN [1:621 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (619)) [test:619 master]  (0.1ms) ROLLBACK [1:621 master]  (0.1ms) ROLLBACK [test:619 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:619 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:619 master]  (5.3ms) DROP SCHEMA switchman_test_shard_620 CASCADE [test:620 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 620]]  (0.1ms) COMMIT  (5.2ms) DROP SCHEMA switchman_test_shard_621 CASCADE [1:621 deploy]  (0.3ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 621]]  (0.1ms) COMMIT  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.4ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_626 [test:626 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:626 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:626 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:626 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:626 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:626 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:626 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:626 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:626 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:626 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:626 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:626 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:626 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:626 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:626 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:626 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:626 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:626 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:626 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:626 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:626 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:626 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.3ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:626 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:626 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:626 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 626 [["name", "switchman_test_shard_626"]] [test:625 master]  (0.9ms) COMMIT [test:625 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:625 master]  (0.1ms) BEGIN [test:625 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:625 master]  (0.3ms) COMMIT [test:625 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_627 [1:627 deploy]  (0.1ms) BEGIN [1:627 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:627 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:627 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:627 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.9ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:627 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:627 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:627 deploy] Migrating to CreateUsers (20130403132607)  (2.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:627 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:627 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:627 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:627 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:627 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:627 deploy] Migrating to CreateDigits (20131022202028)  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:627 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:627 deploy] Migrating to CreateFeatures (20131206172923)  (2.2ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:627 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:627 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:627 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:627 deploy] Migrating to CreateRoots (20140219183820)  (2.3ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:627 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:627 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:627 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [1:627 deploy]  (0.8ms) COMMIT [1:627 deploy]  (0.1ms) BEGIN [test:625 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 627 [["name", "switchman_test_shard_627"]] [test:625 master]  (0.2ms) COMMIT [test:625 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:625 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:625 master]  (0.1ms) BEGIN [test:625 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:625 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 625]] [test:625 master]  (0.3ms) COMMIT [test:625 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:625 master]  (0.1ms) BEGIN [test:625 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 626], ["name", "switchman_test_shard_626"]] [test:625 master]  (0.2ms) COMMIT [test:625 master]  (0.1ms) BEGIN [test:625 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 627], ["name", "switchman_test_shard_627"]] [test:625 master]  (0.3ms) COMMIT [test:625 master]  (0.1ms) BEGIN [test:625 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:625 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 626]] [test:625 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 627]] [test:625 master]  (0.1ms) BEGIN [1:627 master]  (0.1ms) SAVEPOINT active_record_1 [test:625 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:625 master]  (0.1ms) SAVEPOINT active_record_1 [test:625 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:625 master]  (0.1ms) SAVEPOINT active_record_1 [test:625 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:625 master]  (0.1ms) SAVEPOINT active_record_1 [test:625 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 629]] [test:625 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:625 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:625 master] Switchman::Shard Load (0.2ms) SELECT MAX(id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2) subquery [test:625 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id<=626) [test:625 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:625 master] Switchman::Shard Load (0.3ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2 OFFSET 4) subquery [test:625 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>630 AND id<=630)) [test:625 master]  (0.1ms) ROLLBACK [1:627 master]  (0.2ms) ROLLBACK [test:625 master] SQL (0.5ms) DELETE FROM "switchman_shards" [test:625 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:625 master]  (6.1ms) DROP SCHEMA switchman_test_shard_626 CASCADE [test:626 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 626]]  (0.1ms) COMMIT  (6.5ms) DROP SCHEMA switchman_test_shard_627 CASCADE [1:627 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 627]]  (0.1ms) COMMIT  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.4ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_632 [test:632 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:632 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:632 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:632 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:632 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.7ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:632 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:632 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:632 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:632 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:632 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:632 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:632 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:632 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:632 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:632 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:632 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:632 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:632 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:632 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:632 deploy] Migrating to CreateRoots (20140219183820)  (2.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:632 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:632 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:632 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:632 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:632 deploy] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 632 [["name", "switchman_test_shard_632"]] [test:631 master]  (0.7ms) COMMIT [test:631 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:631 master]  (0.1ms) BEGIN [test:631 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:631 master]  (0.3ms) COMMIT [test:631 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_633 [1:633 deploy]  (0.1ms) BEGIN [1:633 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:633 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:633 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:633 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.0ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:633 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:633 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:633 deploy] Migrating to CreateUsers (20130403132607)  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:633 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:633 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:633 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:633 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:633 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:633 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:633 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:633 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:633 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:633 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:633 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:633 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:633 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:633 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:633 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [1:633 deploy]  (0.8ms) COMMIT [1:633 deploy]  (0.1ms) BEGIN [test:631 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 633 [["name", "switchman_test_shard_633"]] [test:631 master]  (0.2ms) COMMIT [test:631 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:631 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:631 master]  (0.1ms) BEGIN [test:631 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:631 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 631]] [test:631 master]  (0.3ms) COMMIT [test:631 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:631 master]  (0.1ms) BEGIN [test:631 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 632], ["name", "switchman_test_shard_632"]] [test:631 master]  (0.2ms) COMMIT [test:631 master]  (0.1ms) BEGIN [test:631 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 633], ["name", "switchman_test_shard_633"]] [test:631 master]  (0.2ms) COMMIT [test:631 master]  (0.1ms) BEGIN [test:631 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:631 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 632]] [test:631 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 633]] [test:631 master]  (0.1ms) BEGIN [1:633 master]  (0.1ms) SAVEPOINT active_record_1 [test:631 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:631 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:631 master]  (0.1ms) SAVEPOINT active_record_1 [test:631 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:631 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:631 master]  (0.1ms) SAVEPOINT active_record_1 [test:631 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:631 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:631 master]  (0.1ms) SAVEPOINT active_record_1 [test:631 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 635]] [test:631 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:631 master]  (0.5ms) SELECT COUNT(*) FROM "switchman_shards" [test:631 master] Switchman::Shard Load (0.5ms) SELECT MAX(id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2) subquery [test:631 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id<=632) [test:631 master]  (0.5ms) SELECT COUNT(*) FROM "switchman_shards" [test:631 master] Switchman::Shard Load (0.6ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2 OFFSET 4) subquery [test:631 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>636 AND id<=636)) [test:631 master]  (0.4ms) ROLLBACK [1:633 master]  (0.3ms) ROLLBACK [test:631 master] SQL (5.1ms) DELETE FROM "switchman_shards" [test:631 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:631 master]  (5.7ms) DROP SCHEMA switchman_test_shard_632 CASCADE [test:632 deploy]  (0.2ms) BEGIN SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 632]]  (0.2ms) COMMIT  (6.4ms) DROP SCHEMA switchman_test_shard_633 CASCADE [1:633 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 633]]  (0.2ms) COMMIT  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.2ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_638 [test:638 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:638 deploy]  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:638 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:638 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:638 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.9ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:638 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:638 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:638 deploy] Migrating to CreateUsers (20130403132607)  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:638 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:638 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:638 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:638 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:638 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:638 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:638 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:638 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:638 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:638 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:638 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:638 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:638 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:638 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:638 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:638 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:638 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 638 [["name", "switchman_test_shard_638"]] [test:637 master]  (0.7ms) COMMIT [test:637 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:637 master]  (0.1ms) BEGIN [test:637 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:637 master]  (0.2ms) COMMIT [test:637 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_639 [1:639 deploy]  (0.1ms) BEGIN [1:639 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:639 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:639 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:639 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.7ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:639 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:639 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:639 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:639 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:639 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:639 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:639 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:639 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:639 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:639 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:639 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:639 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:639 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:639 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:639 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:639 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:639 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:639 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [1:639 deploy]  (0.7ms) COMMIT [1:639 deploy]  (0.1ms) BEGIN [test:637 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 639 [["name", "switchman_test_shard_639"]] [test:637 master]  (0.2ms) COMMIT [test:637 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:637 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:637 master]  (0.1ms) BEGIN [test:637 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:637 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 637]] [test:637 master]  (0.3ms) COMMIT [test:637 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:637 master]  (0.1ms) BEGIN [test:637 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 638], ["name", "switchman_test_shard_638"]] [test:637 master]  (0.3ms) COMMIT [test:637 master]  (0.1ms) BEGIN [test:637 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 639], ["name", "switchman_test_shard_639"]] [test:637 master]  (0.3ms) COMMIT [test:637 master]  (0.1ms) BEGIN [test:637 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:637 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 638]] [test:637 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 639]] [test:637 master]  (0.1ms) BEGIN [1:639 master]  (0.1ms) SAVEPOINT active_record_1 [test:637 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:637 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:637 master]  (0.1ms) SAVEPOINT active_record_1 [test:637 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:637 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:637 master]  (0.1ms) SAVEPOINT active_record_1 [test:637 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:637 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:637 master]  (0.1ms) SAVEPOINT active_record_1 [test:637 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 641]] [test:637 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:637 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:637 master] Switchman::Shard Load (0.3ms) SELECT MAX(id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2) subquery [test:637 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id<=638) [test:637 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:637 master] Switchman::Shard Load (0.2ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2 OFFSET 2) subquery [test:637 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>639 AND id<=640)) [test:637 master]  (0.1ms) ROLLBACK [1:639 master]  (0.1ms) ROLLBACK [test:637 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:637 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:637 master]  (6.1ms) DROP SCHEMA switchman_test_shard_638 CASCADE [test:638 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 638]]  (0.1ms) COMMIT  (6.6ms) DROP SCHEMA switchman_test_shard_639 CASCADE [1:639 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 639]]  (0.1ms) COMMIT  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.4ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_644 [test:644 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:644 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:644 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:644 deploy] ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:644 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.9ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:644 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:644 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:644 deploy] Migrating to CreateUsers (20130403132607)  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:644 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:644 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:644 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:644 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:644 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:644 deploy] Migrating to CreateDigits (20131022202028)  (2.4ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:644 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:644 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:644 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:644 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:644 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:644 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:644 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:644 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:644 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:644 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:644 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 644 [["name", "switchman_test_shard_644"]] [test:643 master]  (0.7ms) COMMIT [test:643 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:643 master]  (0.1ms) BEGIN [test:643 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:643 master]  (0.3ms) COMMIT [test:643 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_645 [1:645 deploy]  (0.1ms) BEGIN [1:645 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:645 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:645 deploy] ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:645 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.8ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:645 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:645 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:645 deploy] Migrating to CreateUsers (20130403132607)  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:645 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:645 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:645 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:645 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:645 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:645 deploy] Migrating to CreateDigits (20131022202028)  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:645 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:645 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:645 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:645 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:645 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:645 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:645 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:645 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:645 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [1:645 deploy]  (0.8ms) COMMIT [1:645 deploy]  (0.1ms) BEGIN [test:643 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 645 [["name", "switchman_test_shard_645"]] [test:643 master]  (0.4ms) COMMIT [test:643 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:643 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:643 master]  (0.1ms) BEGIN [test:643 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:643 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 643]] [test:643 master]  (0.3ms) COMMIT [test:643 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:643 master]  (0.1ms) BEGIN [test:643 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 644], ["name", "switchman_test_shard_644"]] [test:643 master]  (0.2ms) COMMIT [test:643 master]  (0.1ms) BEGIN [test:643 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 645], ["name", "switchman_test_shard_645"]] [test:643 master]  (0.3ms) COMMIT [test:643 master]  (0.1ms) BEGIN [test:643 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:643 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 644]] [test:643 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 645]] [test:643 master]  (0.1ms) BEGIN [1:645 master]  (0.1ms) SAVEPOINT active_record_1 [test:643 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:643 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:643 master]  (0.1ms) SAVEPOINT active_record_1 [test:643 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:643 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:643 master]  (0.1ms) SAVEPOINT active_record_1 [test:643 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:643 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:643 master]  (0.1ms) SAVEPOINT active_record_1 [test:643 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 647]] [test:643 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:643 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:643 master] Switchman::Shard Load (0.2ms) SELECT MAX(id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2) subquery [test:643 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id<=644) [test:643 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:643 master] Switchman::Shard Load (0.3ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2 OFFSET 2) subquery [test:643 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=645 AND id<=646)) [test:643 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" [test:643 master]  (0.2ms) ROLLBACK [1:645 master]  (0.2ms) ROLLBACK [test:643 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:643 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:643 master]  (5.8ms) DROP SCHEMA switchman_test_shard_644 CASCADE [test:644 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 644]]  (0.1ms) COMMIT  (6.2ms) DROP SCHEMA switchman_test_shard_645 CASCADE [1:645 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 645]]  (0.1ms) COMMIT  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.3ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_650 [test:650 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:650 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:650 deploy]  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:650 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:650 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.5ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:650 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:650 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:650 deploy] Migrating to CreateUsers (20130403132607)  (2.2ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:650 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:650 deploy] Migrating to CreateAppendages (20130411202442)  (1.5ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:650 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:650 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:650 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:650 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:650 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:650 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:650 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:650 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:650 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:650 deploy] Migrating to CreateRoots (20140219183820)  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:650 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:650 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:650 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:650 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:650 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 650 [["name", "switchman_test_shard_650"]] [test:649 master]  (0.8ms) COMMIT [test:649 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:649 master]  (0.1ms) BEGIN [test:649 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:649 master]  (0.2ms) COMMIT [test:649 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_651 [1:651 deploy]  (0.1ms) BEGIN [1:651 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:651 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:651 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:651 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.8ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:651 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:651 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:651 deploy] Migrating to CreateUsers (20130403132607)  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:651 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:651 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:651 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:651 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.6ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:651 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:651 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:651 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:651 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:651 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:651 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:651 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:651 deploy] Migrating to CreateRoots (20140219183820)  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:651 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:651 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:651 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [1:651 deploy]  (0.8ms) COMMIT [1:651 deploy]  (0.1ms) BEGIN [test:649 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 651 [["name", "switchman_test_shard_651"]] [test:649 master]  (0.3ms) COMMIT [test:649 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:649 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:649 master]  (0.1ms) BEGIN [test:649 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:649 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 649]] [test:649 master]  (0.2ms) COMMIT [test:649 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:649 master]  (0.1ms) BEGIN [test:649 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 650], ["name", "switchman_test_shard_650"]] [test:649 master]  (0.3ms) COMMIT [test:649 master]  (0.1ms) BEGIN [test:649 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 651], ["name", "switchman_test_shard_651"]] [test:649 master]  (0.2ms) COMMIT [test:649 master]  (0.1ms) BEGIN [test:649 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:649 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 650]] [test:649 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 651]] [test:649 master]  (0.1ms) BEGIN [1:651 master]  (0.1ms) SAVEPOINT active_record_1 [test:649 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:649 master]  (0.1ms) SAVEPOINT active_record_1 [test:649 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:649 master]  (0.1ms) SAVEPOINT active_record_1 [test:649 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:649 master]  (0.1ms) SAVEPOINT active_record_1 [test:649 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 653]] [test:649 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:649 master]  (0.4ms) SELECT COUNT(*) FROM "switchman_shards" [test:649 master] Switchman::Shard Load (0.7ms) SELECT MAX(id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2) subquery [test:649 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id<=650) [test:649 master]  (0.4ms) SELECT COUNT(*) FROM "switchman_shards" [test:649 master] Switchman::Shard Load (0.6ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2 OFFSET 2) subquery [test:649 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=651 AND id<=652)) [test:649 master]  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.3ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'development' AND "switchman_shards"."name" IS NULL ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = 'production' AND "switchman_shards"."name" IS NULL ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.9ms) DELETE FROM "switchman_shards" [test:649 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:649 master]  (0.1ms) BEGIN [test:649 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:649 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", "t"]] [test:649 master]  (0.4ms) COMMIT [test:649 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:649 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:655 master]  (0.1ms) BEGIN [test:655 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]] [test:655 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_656 [test:656 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:656 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [test:656 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:656 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:656 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.8ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [test:656 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:656 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:656 deploy] Migrating to CreateUsers (20130403132607)  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:656 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:656 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:656 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:656 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:656 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:656 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:656 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:656 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [test:656 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:656 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:656 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:656 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [test:656 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:656 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:656 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:656 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:656 deploy] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 656 [["name", "switchman_test_shard_656"]] [test:655 master]  (0.8ms) COMMIT [test:655 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:655 master]  (0.1ms) BEGIN [test:655 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:655 master]  (0.3ms) COMMIT [test:655 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_657 [1:657 deploy]  (0.1ms) BEGIN [1:657 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [1:657 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:657 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:657 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.9ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [1:657 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:657 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:657 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [1:657 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:657 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [1:657 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:657 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [1:657 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:657 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [1:657 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:657 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [1:657 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:657 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:657 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:657 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [1:657 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:657 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:657 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [1:657 deploy]  (0.8ms) COMMIT [1:657 deploy]  (0.1ms) BEGIN [test:655 master] SQL (0.2ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 657 [["name", "switchman_test_shard_657"]] [test:655 master]  (0.4ms) COMMIT [test:655 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:655 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:655 master]  (0.1ms) BEGIN [test:655 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:655 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", "t"], ["id", 655]] [test:655 master]  (0.3ms) COMMIT [test:655 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:655 master]  (0.1ms) BEGIN [test:655 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 656], ["name", "switchman_test_shard_656"]] [test:655 master]  (0.3ms) COMMIT [test:655 master]  (0.1ms) BEGIN [test:655 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 657], ["name", "switchman_test_shard_657"]] [test:655 master]  (0.2ms) COMMIT [test:655 master]  (0.1ms) BEGIN [test:655 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:655 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 656]] [test:655 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 657]] [test:655 master]  (0.1ms) BEGIN [1:657 master]  (0.1ms) SAVEPOINT active_record_1 [test:655 master] SQL (0.2ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:655 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:655 master]  (0.1ms) SAVEPOINT active_record_1 [test:655 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:655 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:655 master]  (0.1ms) SAVEPOINT active_record_1 [test:655 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:655 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:655 master]  (0.1ms) SAVEPOINT active_record_1 [test:655 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 659]] [test:655 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:655 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:655 master] Switchman::Shard Load (0.2ms) SELECT MAX(id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2) subquery [test:655 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id<=656) [test:655 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:655 master] Switchman::Shard Load (0.3ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2 OFFSET 2) subquery [test:655 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=657 AND id<=658)) [test:655 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:655 master] Switchman::Shard Load (0.2ms) SELECT MIN(id) AS min_id FROM (SELECT "switchman_shards"."id" FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC OFFSET 4) subquery [test:655 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id>=660) [test:655 master]  (0.1ms) ROLLBACK [1:657 master]  (0.1ms) ROLLBACK [test:655 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:655 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:655 master]  (4.8ms) DROP SCHEMA switchman_test_shard_656 CASCADE [test:656 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 656]]  (0.1ms) COMMIT  (6.7ms) DROP SCHEMA switchman_test_shard_657 CASCADE [1:657 deploy]  (0.3ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 657]]  (0.1ms) COMMIT  (1.7ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.2ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) INSERT INTO "switchman_shards" ("default") VALUES ($1) RETURNING "id" [["default", true]]  (6.1ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "test"], ["name", "public"]]  (0.4ms) CREATE SCHEMA switchman_test_shard_662 [test:662 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:662 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:662 deploy]  (6.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:662 deploy] ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" [test:662 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (13.4ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:662 deploy] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [test:662 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [test:662 deploy] Migrating to CreateUsers (20130403132607)  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:662 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [test:662 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:662 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [test:662 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:662 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [test:662 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:662 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [test:662 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp)  [test:662 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [test:662 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:662 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [test:662 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp)  [test:662 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [test:662 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:662 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [test:662 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:662 deploy] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 662 [["name", "switchman_test_shard_662"]] [test:661 master]  (1.1ms) COMMIT [test:661 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:661 master]  (0.1ms) BEGIN [test:661 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "name") VALUES ($1, $2) RETURNING "id" [["database_server_id", "1"], ["name", "public"]] [test:661 master]  (0.3ms) COMMIT [test:661 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_663 [1:663 deploy]  (0.1ms) BEGIN [1:663 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:663 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:663 deploy] ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" [1:663 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.0ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:663 deploy] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328212039"]] [1:663 deploy] Migrating to CreateDefaultShard (20130328224244) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130328224244"]] [1:663 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:663 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130403132607"]] [1:663 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:663 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202442"]] [1:663 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:663 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20130411202551"]] [1:663 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:663 deploy] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131022202028"]] [1:663 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp, "updated_at" timestamp) [1:663 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20131206172923"]] [1:663 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:663 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140123154135"]] [1:663 deploy] Migrating to CreateRoots (20140219183820)  (1.6ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp, "updated_at" timestamp) [1:663 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140219183820"]] [1:663 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:663 deploy] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150618035859"]] [1:663 deploy]  (0.8ms) COMMIT [1:663 deploy]  (0.1ms) BEGIN [test:661 master] SQL (0.3ms) UPDATE "switchman_shards" SET "name" = $1 WHERE "switchman_shards"."id" = 663 [["name", "switchman_test_shard_663"]] [test:661 master]  (0.4ms) COMMIT [test:661 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:661 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:661 master]  (0.1ms) BEGIN [test:661 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:661 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("default", "id") VALUES ($1, $2) RETURNING "id" [["default", true], ["id", 661]] [test:661 master]  (0.3ms) COMMIT [test:661 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:661 master]  (0.1ms) BEGIN [test:661 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["id", 662], ["name", "switchman_test_shard_662"]] [test:661 master]  (0.2ms) COMMIT [test:661 master]  (0.1ms) BEGIN [test:661 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "id", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["id", 663], ["name", "switchman_test_shard_663"]] [test:661 master]  (0.2ms) COMMIT [test:661 master]  (0.1ms) BEGIN [test:661 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:661 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 662]] [test:661 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 663]] [test:661 master]  (0.1ms) BEGIN [1:663 master]  (0.1ms) SAVEPOINT active_record_1 [test:661 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:661 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:661 master]  (0.1ms) SAVEPOINT active_record_1 [test:661 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:661 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:661 master]  (0.1ms) SAVEPOINT active_record_1 [test:661 master] SQL (0.1ms) INSERT INTO "switchman_shards" DEFAULT VALUES RETURNING "id" [test:661 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:661 master]  (0.1ms) SAVEPOINT active_record_1 [test:661 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 665]] [test:661 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:661 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:661 master] Switchman::Shard Load (0.3ms) SELECT MAX(id) AS max_id FROM (SELECT id FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2) subquery [test:661 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id<=662) [test:661 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:661 master] Switchman::Shard Load (0.3ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT id FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC LIMIT 2 OFFSET 2) subquery [test:661 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=663 AND id<=664)) [test:661 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:661 master] Switchman::Shard Load (0.2ms) SELECT MIN(id) AS min_id FROM (SELECT id FROM "switchman_shards" ORDER BY "switchman_shards"."id" ASC OFFSET 4) subquery [test:661 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id>=666) [test:661 master]  (0.1ms) ROLLBACK [1:663 master]  (0.1ms) ROLLBACK [test:661 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:661 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' ORDER BY "switchman_shards"."id" ASC LIMIT 1 [test:661 master]  (4.8ms) DROP SCHEMA switchman_test_shard_662 CASCADE [test:662 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 662]]  (0.1ms) COMMIT  (7.1ms) DROP SCHEMA switchman_test_shard_663 CASCADE [1:663 deploy]  (0.3ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 663]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.5ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.1ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.9ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_668 [test:668 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:668 deploy]  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:668 deploy]  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:668 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [test:668 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.1ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:668 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [test:668 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [test:668 deploy] Migrating to CreateUsers (20130403132607)  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:668 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [test:668 deploy] Migrating to CreateAppendages (20130411202442)  (1.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:668 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [test:668 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:668 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [test:668 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:668 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [test:668 deploy] Migrating to CreateFeatures (20131206172923)  (1.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:668 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [test:668 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:668 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [test:668 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:668 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [test:668 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:668 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [test:668 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:668 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_668' WHERE "switchman_shards"."id" = 668 [test:667 master]  (0.5ms) COMMIT [test:667 master] Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:667 master]  (0.1ms) BEGIN [test:667 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [test:667 master]  (0.3ms) COMMIT [test:667 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_669 [1:669 deploy]  (0.1ms) BEGIN [1:669 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:669 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:669 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [1:669 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.0ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:669 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [1:669 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [1:669 deploy] Migrating to CreateUsers (20130403132607)  (1.6ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:669 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [1:669 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:669 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [1:669 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.8ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:669 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [1:669 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:669 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [1:669 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:669 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [1:669 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:669 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [1:669 deploy] Migrating to CreateRoots (20140219183820)  (1.7ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:669 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [1:669 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.1ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:669 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [1:669 deploy]  (0.7ms) COMMIT [1:669 deploy]  (0.1ms) BEGIN [test:667 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_669' WHERE "switchman_shards"."id" = 669 [test:667 master]  (0.3ms) COMMIT [test:667 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:667 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:667 master]  (0.1ms) BEGIN [test:667 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:667 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 667], ["name", nil]] [test:667 master]  (0.2ms) COMMIT [test:667 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:667 master]  (0.0ms) BEGIN [test:667 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 668], ["name", "switchman_test_shard_668"]] [test:667 master]  (0.2ms) COMMIT [test:667 master]  (0.0ms) BEGIN [test:667 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 669], ["name", "switchman_test_shard_669"]] [test:667 master]  (0.3ms) COMMIT [test:667 master]  (0.1ms) BEGIN [test:667 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:667 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 668]] [test:667 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 669]] [test:667 master]  (0.1ms) BEGIN [1:669 master]  (0.1ms) SAVEPOINT active_record_1 [test:667 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:667 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:667 master]  (0.0ms) SAVEPOINT active_record_1 [test:667 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:667 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:667 master]  (0.0ms) SAVEPOINT active_record_1 [test:667 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:667 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:667 master]  (0.0ms) SAVEPOINT active_record_1 [test:667 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 671]] [test:667 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:667 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:667 master]  (0.1ms) ROLLBACK [1:669 master]  (0.1ms) ROLLBACK [test:667 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:667 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:667 master]  (5.7ms) DROP SCHEMA switchman_test_shard_668 CASCADE [test:668 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 668]]  (0.1ms) COMMIT  (15.4ms) DROP SCHEMA switchman_test_shard_669 CASCADE [1:669 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 669]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (1.0ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.2ms) BEGIN Switchman::Shard Exists (0.4ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (1.0ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_674 [test:674 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:674 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:674 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:674 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [test:674 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.7ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:674 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [test:674 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [test:674 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:674 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [test:674 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:674 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [test:674 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.3ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:674 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [test:674 deploy] Migrating to CreateDigits (20131022202028)  (1.7ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:674 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [test:674 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:674 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [test:674 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:674 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [test:674 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:674 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [test:674 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:674 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [test:674 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:674 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_674' WHERE "switchman_shards"."id" = 674 [test:673 master]  (0.6ms) COMMIT [test:673 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:673 master]  (0.1ms) BEGIN [test:673 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [test:673 master]  (0.3ms) COMMIT [test:673 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_675 [1:675 deploy]  (0.1ms) BEGIN [1:675 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:675 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:675 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [1:675 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.3ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:675 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [1:675 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [1:675 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:675 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [1:675 deploy] Migrating to CreateAppendages (20130411202442)  (7.3ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:675 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [1:675 deploy] Migrating to CreateMirrorUsers (20130411202551)  (8.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:675 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [1:675 deploy] Migrating to CreateDigits (20131022202028)  (7.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:675 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [1:675 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:675 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [1:675 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:675 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [1:675 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:675 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [1:675 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.1ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:675 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [1:675 deploy]  (0.6ms) COMMIT [1:675 deploy]  (0.1ms) BEGIN [test:673 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_675' WHERE "switchman_shards"."id" = 675 [test:673 master]  (0.3ms) COMMIT [test:673 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:673 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:673 master]  (0.1ms) BEGIN [test:673 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:673 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 673], ["name", nil]] [test:673 master]  (0.3ms) COMMIT [test:673 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:673 master]  (0.1ms) BEGIN [test:673 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 674], ["name", "switchman_test_shard_674"]] [test:673 master]  (0.2ms) COMMIT [test:673 master]  (0.1ms) BEGIN [test:673 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 675], ["name", "switchman_test_shard_675"]] [test:673 master]  (0.2ms) COMMIT [test:673 master]  (0.1ms) BEGIN [test:673 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:673 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 674]] [test:673 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 675]] [test:673 master]  (0.1ms) BEGIN [1:675 master]  (0.1ms) SAVEPOINT active_record_1 [test:673 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:673 master]  (0.1ms) SAVEPOINT active_record_1 [test:673 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:673 master]  (0.1ms) SAVEPOINT active_record_1 [test:673 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:673 master]  (0.0ms) SAVEPOINT active_record_1 [test:673 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 677]] [test:673 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:673 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:673 master] Switchman::Shard Load (0.4ms) SELECT MAX(id) AS max_id FROM (SELECT id FROM "switchman_shards" ORDER BY id LIMIT 2) subquery  [test:673 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id<=674) [test:673 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards"  [test:673 master] Switchman::Shard Load (0.4ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT id FROM "switchman_shards" ORDER BY id LIMIT 2 OFFSET 2) subquery [test:673 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=675 AND id<=676)) [test:673 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:673 master] Switchman::Shard Load (0.2ms) SELECT MIN(id) AS min_id FROM (SELECT id FROM "switchman_shards" ORDER BY id OFFSET 4) subquery  [test:673 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id>=678) [test:673 master]  (0.1ms) ROLLBACK [1:675 master]  (0.1ms) ROLLBACK [test:673 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:673 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:673 master]  (5.1ms) DROP SCHEMA switchman_test_shard_674 CASCADE [test:674 deploy]  (0.0ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 674]]  (0.1ms) COMMIT  (8.3ms) DROP SCHEMA switchman_test_shard_675 CASCADE [1:675 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 675]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (2.7ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (6.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (6.1ms) COMMIT Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (6.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (32.8ms) CREATE SCHEMA switchman_test_shard_680 [test:680 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:680 deploy]  (6.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:680 deploy]  (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:680 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [test:680 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (26.7ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:680 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [test:680 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [test:680 deploy] Migrating to CreateUsers (20130403132607)  (7.4ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:680 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [test:680 deploy] Migrating to CreateAppendages (20130411202442)  (19.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:680 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [test:680 deploy] Migrating to CreateMirrorUsers (20130411202551)  (13.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:680 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [test:680 deploy] Migrating to CreateDigits (20131022202028)  (7.6ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:680 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [test:680 deploy] Migrating to CreateFeatures (20131206172923)  (10.7ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:680 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [test:680 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:680 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [test:680 deploy] Migrating to CreateRoots (20140219183820)  (9.0ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:680 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [test:680 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.3ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:680 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [test:680 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 deploy]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_680' WHERE "switchman_shards"."id" = 680 [test:679 master]  (7.2ms) COMMIT [test:679 master] Switchman::Shard Load (10.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [test:679 master]  (0.2ms) COMMIT [test:679 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_681 [1:681 deploy]  (0.1ms) BEGIN [1:681 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:681 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:681 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [1:681 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (4.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:681 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [1:681 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [1:681 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:681 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [1:681 deploy] Migrating to CreateAppendages (20130411202442)  (2.6ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:681 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [1:681 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.1ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:681 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [1:681 deploy] Migrating to CreateDigits (20131022202028)  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:681 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [1:681 deploy] Migrating to CreateFeatures (20131206172923)  (2.3ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:681 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [1:681 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:681 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [1:681 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:681 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [1:681 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:681 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [1:681 deploy]  (0.7ms) COMMIT [1:681 deploy]  (0.1ms) BEGIN [test:679 master]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_681' WHERE "switchman_shards"."id" = 681 [test:679 master]  (0.3ms) COMMIT [test:679 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master]  (11.3ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards"  [test:679 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 679], ["name", nil]] [test:679 master]  (5.9ms) COMMIT [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 680], ["name", "switchman_test_shard_680"]] [test:679 master]  (5.7ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 681], ["name", "switchman_test_shard_681"]] [test:679 master]  (5.6ms) COMMIT [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (2.1ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:14 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [1:681 master]  (0.1ms) SAVEPOINT active_record_2 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:14 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:14 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_2 [1:681 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.2ms) SELECT COUNT(*) FROM "users"  [1:681 master]  (0.1ms) ROLLBACK [1:681 master] SQL (5.8ms) DELETE FROM "switchman_shards" [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 679], ["name", nil]] [test:679 master]  (5.4ms) COMMIT [test:679 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 680], ["name", "switchman_test_shard_680"]] [test:679 master]  (6.0ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 681], ["name", "switchman_test_shard_681"]] [test:679 master]  (0.3ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 679], ["name", nil]] [test:679 master]  (0.2ms) COMMIT [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 680], ["name", "switchman_test_shard_680"]] [test:679 master]  (0.3ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 681], ["name", "switchman_test_shard_681"]] [test:679 master]  (0.3ms) COMMIT [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.6ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.6ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:680 master] User Load (0.4ms) SELECT "users".* FROM "users"  [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.0ms) ROLLBACK [1:681 master]  (0.0ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) ROLLBACK [1:681 master]  (0.0ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:679 master] SQL (0.1ms) DELETE FROM "users" [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:679 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:679 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:679 master] SQL (0.1ms) DELETE FROM "users" [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:679 master]  (0.3ms) COMMIT [test:679 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:679 master] SQL (0.8ms) DELETE FROM "users" [test:679 master] SQL (0.1ms) DELETE FROM "users" [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:679 master]  (0.3ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", "a"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:679 master]  (0.3ms) COMMIT [test:679 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 945]] [test:679 master] CACHE (0.0ms) 679::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 945]] CACHE (0.0ms) 679::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 945]]  (0.1ms) BEGIN [test:679 master]  (0.2ms) UPDATE "users" SET "name" = 'b', "updated_at" = '2015-10-19 16:46:15.081013' WHERE "users"."id" = 945 [test:679 master]  (0.2ms) COMMIT [test:679 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 945]] [test:679 master] CACHE (0.0ms) 679::SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 945]] SQL (0.3ms) DELETE FROM "users" [test:679 master]  (0.0ms) BEGIN [test:679 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:679 master]  (0.3ms) COMMIT [test:679 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:679 master] SQL (0.3ms) DELETE FROM "users" [test:679 master] SQL (0.1ms) DELETE FROM "users" [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.4ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:679 master] SQL (0.2ms) UPDATE "users" SET "updated_at" = '2015-10-19 16:46:15.094277' [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:679 master] SQL (0.1ms) UPDATE "users" SET "updated_at" = '2015-10-19 16:46:15.100028' [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:679 master]  (0.4ms) COMMIT [test:679 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:679 master] SQL (0.5ms) UPDATE "users" SET "updated_at" = '2015-10-19 16:46:15.103939' [test:679 master] SQL (0.3ms) DELETE FROM "users" [test:679 master]  (0.0ms) BEGIN [test:679 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:679 master]  (0.2ms) COMMIT [test:679 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:679 master] SQL (0.3ms) UPDATE "users" SET "updated_at" = '2015-10-19 16:46:15.108268' [test:679 master] SQL (0.4ms) DELETE FROM "users" [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.0ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.0ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.0ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:679 master]  (0.0ms) ROLLBACK [1:681 master]  (0.0ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master] User Load (0.2ms) SELECT "users".* FROM "users" [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master] User Load (0.2ms) SELECT "users".* FROM "users" FOR UPDATE [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.7ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:679 master]  (0.4ms) COMMIT [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master] User Load (0.2ms) SELECT "users".* FROM "users"  [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master] User Load (0.1ms) SELECT "users".* FROM "users" [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master] User Load (0.1ms) SELECT "users".* FROM "users"  [test:679 master]  (0.0ms) BEGIN [test:679 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:679 master]  (0.3ms) COMMIT [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.0ms) BEGIN [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", "non_existent_shard"]] [test:679 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "2"], ["default", false], ["name", nil]] [test:679 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (5.5ms) SELECT COUNT(*) FROM "users" [2:682 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.7ms) SELECT COUNT(*) FROM "users"  [2:683 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "3"], ["default", false], ["name", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "4"], ["default", false], ["name", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "5"], ["default", false], ["name", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "6"], ["default", false], ["name", nil]] [test:679 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "7"], ["default", false], ["name", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "8"], ["default", false], ["name", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 679], ["name", nil]] [test:679 master]  (0.3ms) COMMIT [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.0ms) BEGIN [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 680], ["name", "switchman_test_shard_680"]] [test:679 master]  (0.2ms) COMMIT [test:679 master]  (0.0ms) BEGIN [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 681], ["name", "switchman_test_shard_681"]] [test:679 master]  (0.2ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=680)) ORDER BY id [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.0ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (679)) [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 691]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards"  [test:679 master] Switchman::Shard Load (0.3ms) SELECT MAX(id) AS max_id FROM (SELECT id FROM "switchman_shards" ORDER BY id LIMIT 2) subquery [test:679 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id<=680) [test:679 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:679 master] Switchman::Shard Load (0.3ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT id FROM "switchman_shards" ORDER BY id LIMIT 2 OFFSET 2) subquery  [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=681 AND id<=690)) [test:679 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [test:679 master] Switchman::Shard Load (0.2ms) SELECT MIN(id) AS min_id FROM (SELECT id FROM "switchman_shards" ORDER BY id OFFSET 4) subquery [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id>=692) [test:679 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:679 master] Switchman::Shard Load (0.2ms) SELECT MAX(id) AS max_id FROM (SELECT id FROM "switchman_shards" ORDER BY id LIMIT 1) subquery  [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id<=679) [test:679 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [test:679 master] Switchman::Shard Load (0.2ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT id FROM "switchman_shards" ORDER BY id LIMIT 1 OFFSET 1) subquery [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=680 AND id<=680)) [test:679 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:679 master] Switchman::Shard Load (0.2ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT id FROM "switchman_shards" ORDER BY id LIMIT 1 OFFSET 2) subquery  [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=681 AND id<=681)) [test:679 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [test:679 master] Switchman::Shard Load (0.2ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT id FROM "switchman_shards" ORDER BY id LIMIT 1 OFFSET 3) subquery [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=690 AND id<=690)) [test:679 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:679 master] Switchman::Shard Load (0.2ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT id FROM "switchman_shards" ORDER BY id LIMIT 1 OFFSET 4) subquery  [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=692 AND id<=692)) [test:679 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [test:679 master] Switchman::Shard Load (0.2ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT id FROM "switchman_shards" ORDER BY id LIMIT 1 OFFSET 5) subquery [test:679 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>= AND id<=)) [test:679 master] PG::UndefinedFunction: ERROR: operator does not exist: bigint >= LINE 1: ...hman_shards".* FROM "switchman_shards" WHERE ((id>= AND id<... ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. : SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>= AND id<=))  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ('f') [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.0ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id NOT IN (679)) [test:679 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=679 AND id<=680)) AND (id NOT IN (679)) [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id IN (679)) [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id<=680)) ORDER BY id [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.2ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=679 AND id<680) OR (id>=681 AND id<682)) ORDER BY id [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=679 AND id<680)) [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=680 AND id<=680)) AND (id NOT IN (679)) [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.0ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=679 AND id<=680)) ORDER BY id [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master]  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 679], ["name", nil]]  (6.0ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 680], ["name", "switchman_test_shard_680"]]  (6.0ms) COMMIT  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 681], ["name", "switchman_test_shard_681"]]  (4.4ms) COMMIT  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]]  (0.1ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", nil], ["value", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 680 LIMIT 1 Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 681 LIMIT 1  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK  (0.0ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["owner_id", 956], ["owner_type", "User"], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["value", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Feature Load (0.4ms) SELECT owner_id FROM "features" WHERE "features"."id" = 42 LIMIT 1  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK SQL (11.2ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 679], ["name", nil]]  (4.7ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 680], ["name", "switchman_test_shard_680"]]  (0.2ms) COMMIT  (0.1ms) BEGIN SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 681], ["name", "switchman_test_shard_681"]]  (0.3ms) COMMIT  (0.0ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]]  (0.0ms) BEGIN [1:681 master]  (0.0ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK  (0.0ms) BEGIN Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]]  (0.0ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]]  (0.1ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK  (0.1ms) BEGIN Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]]  (0.0ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", nil]]  (0.1ms) RELEASE SAVEPOINT active_record_1 MirrorUser Load (0.5ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 22]] MirrorUser Load (0.2ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = $1 LIMIT 1 [["id", 22]] MirrorUser Load (0.4ms) SELECT "mirror_users".* FROM "mirror_users" WHERE "mirror_users"."id" = 22 LIMIT 1 [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.2ms) ROLLBACK [test:680 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 679], ["name", nil]] [test:679 master]  (0.3ms) COMMIT [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 680], ["name", "switchman_test_shard_680"]] [test:679 master]  (0.2ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 681], ["name", "switchman_test_shard_681"]] [test:679 master]  (0.2ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.5ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 3], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 4], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 3]] [test:680 master]  (0.1ms) SHOW max_identifier_length [test:680 master] User Exists (0.4ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 3 AND "users"."id" = 5 LIMIT 1 [test:680 master] WARNING: Can't mass-assign protected attributes: id  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 680 LIMIT 1 [test:679 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 3]] [test:680 master] User Exists (0.2ms) SELECT 1 AS one FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 3 AND "users"."id" = 6810000000000004 LIMIT 1 [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.6ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 7], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 681 LIMIT 1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (6.5ms) INSERT INTO "digits" ("appendage_id", "created_at", "id", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["appendage_id", 1], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["id", 6810000000000001], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master] Digit Load (0.5ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 7 AND "digits"."id" = $1 LIMIT 1 [["id", 6810000000000001]] [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 8], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 8 AND "appendages"."id" = $1 LIMIT 1 [["id", 2]] [test:680 master] Appendage Load (0.4ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 7 AND "appendages"."id" = $1 LIMIT 1 [["id", 6800000000000002]] [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 9], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 10], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 9], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.2ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 11], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.4ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 5], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 11 AND "digits"."id" = $1 LIMIT 1 [["id", 1]] [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 12], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 12 [test:680 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 12]] [test:680 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 12 [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.4ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 13], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 7]] [test:680 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 13 LIMIT 1 [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 15], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 17], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (7.7ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 9], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 6800000000000017], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 2], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["value", 2]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17 AND "digits"."value" IS NULL [test:680 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6800000000000017 AND "digits"."value" IS NULL [1:681 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 17]] [test:680 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 17 AND "digits"."value" IS NULL [test:680 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6800000000000017 AND "digits"."value" IS NULL [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 18], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 10], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["value", 1]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 6800000000000018], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 3], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["value", 2]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.7ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 18 AND (digits.value IS NOT NULL) [test:680 master]  (0.4ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6800000000000018 AND (digits.value IS NOT NULL) [1:681 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 18]] [test:680 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 18 AND (digits.value IS NOT NULL) [test:680 master]  (0.3ms) SELECT SUM("digits"."value") AS sum_id FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6800000000000018 AND (digits.value IS NOT NULL) [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 19], ["value", 1]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 6800000000000019], ["value", 2]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 19 [test:680 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 19]] [test:680 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 19 [test:680 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 6800000000000019 [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 20], ["value", 1]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 6800000000000020], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 20 AND "appendages"."value" IS NULL [test:680 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 6800000000000020 AND "appendages"."value" IS NULL [1:681 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 20]] [test:680 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 20 AND "appendages"."value" IS NULL [test:680 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" = 6800000000000020 AND "appendages"."value" IS NULL [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 21], ["value", 1]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 6800000000000021], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 21], ["value", 2]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [test:680 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 21 AND (appendages.value IS NOT NULL) [test:680 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 6800000000000021 AND (appendages.value IS NOT NULL) [1:681 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 21]] [test:680 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 21 AND (appendages.value IS NOT NULL) [test:680 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 6800000000000021 AND (appendages.value IS NOT NULL) [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 22], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 15], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 6800000000000022], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 7], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["value", 2]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.3ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 22 AND "digits"."value" IS NULL [test:680 master]  (0.2ms) SELECT COUNT(*) FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6800000000000022 AND "digits"."value" IS NULL [1:681 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 22]] [test:680 master] Digit Load (0.4ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 22 AND "digits"."value" IS NULL [test:680 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6800000000000022 AND "digits"."value" IS NULL [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 23], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 16], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["value", 1]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 6800000000000023], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 8], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["value", 2]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 23 [test:680 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 23]] [test:680 master] Digit Load (0.3ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 23 [test:680 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" INNER JOIN "appendages" ON "digits"."appendage_id" = "appendages"."id" WHERE "appendages"."user_id" = 6800000000000023 [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 6810000000000023], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 17]] [test:680 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 23 LIMIT 1 [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", nil], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 25 LIMIT 1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 25], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = $1 LIMIT 1 [["id", 18]] [test:680 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 25 LIMIT 1 [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.6ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 6810000000000025]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master] Root Load (0.6ms) SELECT "roots".* FROM "roots" WHERE "roots"."id" = $1 LIMIT 1 [["id", 42]] [test:679 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 25 LIMIT 1 [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", nil], ["value", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["owner_id", 478], ["owner_type", "Appendage"], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["value", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 43]] [test:679 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 478 LIMIT 1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master]  (0.2ms) UPDATE "features" SET "owner_id" = 6800000000000027, "owner_type" = 'User', "updated_at" = '2015-10-19 16:46:15.872928' WHERE "features"."id" = 43 [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master] Feature Load (0.2ms) SELECT "features".* FROM "features" WHERE "features"."id" = $1 LIMIT 1 [["id", 43]] [test:679 master]  (0.2ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.7ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["owner_id", 28], ["owner_type", "User"], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["value", 1]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.6ms) INSERT INTO "features" ("created_at", "owner_id", "owner_type", "updated_at", "value") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["owner_id", 6800000000000028], ["owner_type", "User"], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["value", 2]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master] Feature Load (0.6ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 28 AND "features"."owner_type" = 'User' [test:680 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 28]] [test:680 master] Feature Load (0.3ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 28 AND "features"."owner_type" = 'User' [test:680 master] Feature Load (0.4ms) SELECT "features".* FROM "features" WHERE "features"."owner_id" = 6800000000000028 AND "features"."owner_type" = 'User' [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 6800000000000029], ["value", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 6810000000000028], ["value", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 957], ["value", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages"  [test:679 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [test:680 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28) [1:681 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (957) [test:679 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 29 [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 30], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 6800000000000030], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 6810000000000029], ["value", nil]] [test:680 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:680 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (30) [test:680 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (30) [test:680 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (6800000000000030) [1:681 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (29) [1:681 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (29) [1:681 master] SQL (0.2ms) DELETE FROM "appendages" WHERE "appendages"."id" = 19 [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", nil], ["value", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.6ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 482], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["value", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6790000000000482], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" = 482 LIMIT 1 [test:679 master] Digit Load (0.7ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (482) [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.2ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 32], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 6800000000000032], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 6800000000000032], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 21], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 11], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6810000000000011], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6810000000000012], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["value", nil]] [test:680 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 6810000000000031], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 31], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master]  (0.0ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["user_id", 31], ["value", nil]] [1:681 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6800000000000022], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6810000000000013], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 14], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (32) [test:680 master] Appendage Load (0.3ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (32) [test:680 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (6800000000000032) [1:681 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (21) [test:680 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (11, 12) [1:681 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (31) [1:681 master] Appendage Load (0.1ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."user_id" IN (31) [1:681 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" WHERE "digits"."appendage_id" IN (13, 14) [1:681 master] SQL (0.2ms) DELETE FROM "digits" WHERE "digits"."id" = 8 [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.2ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:15 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 6800000000000033], ["value", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 483], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["value", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 6810000000000032], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "digits" ("appendage_id", "created_at", "updated_at", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["appendage_id", 6800000000000023], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["value", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master] Digit Load (0.2ms) SELECT "digits".* FROM "digits" [test:679 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (483) [test:679 master] Appendage Load (0.2ms) SELECT "appendages".* FROM "appendages" WHERE "appendages"."id" IN (23) [test:680 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (33) [test:680 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (32) [1:681 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = 33 [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master] SQL (5.7ms) DELETE FROM "switchman_shards" [test:679 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 679], ["name", nil]] [test:679 master]  (0.3ms) COMMIT [test:679 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 680], ["name", "switchman_test_shard_680"]] [test:679 master]  (0.3ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 681], ["name", "switchman_test_shard_681"]] [test:679 master]  (0.2ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 679], ["name", nil]] [test:679 master]  (0.2ms) COMMIT [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 680], ["name", "switchman_test_shard_680"]] [test:679 master]  (0.2ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 681], ["name", "switchman_test_shard_681"]] [test:679 master]  (0.2ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 681 LIMIT 1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 10681 LIMIT 1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 680 LIMIT 1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) ROLLBACK [1:681 master]  (0.0ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) ROLLBACK [1:681 master]  (0.0ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) ROLLBACK [1:681 master]  (0.0ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 693]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 693 LIMIT 1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) ROLLBACK [1:681 master]  (0.0ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.1ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 694]] [test:679 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.0ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) ROLLBACK [1:681 master]  (0.0ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) ROLLBACK [1:681 master]  (0.0ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) ROLLBACK [1:681 master]  (0.0ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) ROLLBACK [1:681 master]  (0.0ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '10' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "10"], ["default", false], ["name", "public"]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_695 [10:695 deploy]  (0.1ms) BEGIN [10:695 deploy]  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [10:695 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [10:695 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [10:695 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [10:695 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [10:695 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [10:695 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [10:695 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [10:695 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [10:695 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [10:695 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.5ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [10:695 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [10:695 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [10:695 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [10:695 deploy] Migrating to CreateFeatures (20131206172923)  (1.6ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [10:695 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [10:695 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.3ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [10:695 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [10:695 deploy] Migrating to CreateRoots (20140219183820)  (2.3ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [10:695 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [10:695 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [10:695 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [10:695 deploy]  (0.7ms) COMMIT [10:695 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:679 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_695' WHERE "switchman_shards"."id" = 695 [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) BEGIN [10:695 master] SQL (0.7ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [10:695 master]  (0.3ms) COMMIT [10:695 master]  (0.2ms) SELECT COUNT(*) FROM "users" [10:695 master]  (7.1ms) DROP SCHEMA switchman_test_shard_695 CASCADE [10:695 deploy]  (0.3ms) SELECT COUNT(*) FROM "users" [10:695 master] PG::UndefinedTable: ERROR: relation "users" does not exist LINE 1: SELECT COUNT(*) FROM "users" ^ : SELECT COUNT(*) FROM "users"  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 679 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY id [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master] SQL (0.8ms) DELETE FROM "switchman_shards" [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 679], ["name", nil]] [test:679 master]  (0.3ms) COMMIT [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 680], ["name", "switchman_test_shard_680"]] [test:679 master]  (0.2ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 681], ["name", "switchman_test_shard_681"]] [test:679 master]  (0.2ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master] Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" IN (679, 680) AND (id IN (680,681)) [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.0ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) ROLLBACK [1:681 master]  (0.0ms) ROLLBACK [test:679 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 679], ["name", nil]] [test:679 master]  (0.3ms) COMMIT [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.0ms) BEGIN [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 680], ["name", "switchman_test_shard_680"]] [test:679 master]  (0.3ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 681], ["name", "switchman_test_shard_681"]] [test:679 master]  (0.3ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.6ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 680 LIMIT 1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", nil], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.9ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", nil], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.6ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.5ms) INSERT INTO "roots" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 679], ["name", nil]] [test:679 master]  (0.3ms) COMMIT [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 680], ["name", "switchman_test_shard_680"]] [test:679 master]  (0.3ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 681], ["name", "switchman_test_shard_681"]] [test:679 master]  (0.2ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 680 LIMIT 1 [test:679 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (960) [test:679 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (39) [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 40 LIMIT 1 [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.4ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" = 41 [test:680 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 962]] [test:679 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 41]] [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.4ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (963) [test:679 master] SQL (0.2ms) UPDATE "users" SET "name" = 'a' WHERE "users"."id" IN (42) [test:680 master] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 963]] [test:679 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 42]] [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 679], ["name", nil]] [test:679 master]  (0.3ms) COMMIT [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 680], ["name", "switchman_test_shard_680"]] [test:679 master]  (0.3ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 681], ["name", "switchman_test_shard_681"]] [test:679 master]  (0.2ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 965], ["value", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 44], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.7ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 34], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 966], ["value", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 45], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 35], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 967], ["value", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 46], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 36], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 968], ["value", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 47], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 37], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.2ms) ROLLBACK [1:681 master]  (0.2ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 969], ["value", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 48], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 38], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 970], ["value", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 49], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master]  (0.0ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 39], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 970], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", 971], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 971]] [test:679 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 970 LIMIT 1 [test:679 master]  (0.1ms) SHOW max_identifier_length [test:679 master] User Load (0.4ms) SELECT "users".* FROM "users" INNER JOIN "users" "children_grandchildren_join" ON "users"."parent_id" = "children_grandchildren_join"."id" WHERE "children_grandchildren_join"."parent_id" = 970 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 973], ["value", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 50], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 40], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 680 LIMIT 1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 974], ["value", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 51], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 41], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 975], ["value", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 52], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 42], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 976], ["value", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 53], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 43], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 977], ["value", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 54], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master]  (0.0ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 44], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 978], ["value", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 55], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 45], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 979], ["value", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 56], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master]  (0.0ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 46], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.2ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 980], ["value", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 57], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 47], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 981], ["value", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 58], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 48], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 982], ["value", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 59], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", 49], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.6ms) INSERT INTO "mirror_users" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["user_id", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 679], ["name", nil]] [test:679 master]  (0.2ms) COMMIT [test:679 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 680], ["name", "switchman_test_shard_680"]] [test:679 master]  (0.4ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 681], ["name", "switchman_test_shard_681"]] [test:679 master]  (0.3ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.4ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "11"], ["default", false], ["name", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master]  (0.0ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master]  (0.0ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master]  (0.0ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 679], ["name", nil]] [test:679 master]  (6.0ms) COMMIT [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 680], ["name", "switchman_test_shard_680"]] [test:679 master]  (5.9ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 681], ["name", "switchman_test_shard_681"]] [test:679 master]  (4.8ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '27' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "27"], ["default", false], ["name", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.0ms) select sqlite_version(*) [27:698 deploy]  (0.0ms) begin transaction [27:698 deploy]  (0.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [27:698 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [27:698 deploy]  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [27:698 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (0.2ms) CREATE TABLE "switchman_shards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "database_server_id" varchar(255), "default" boolean DEFAULT 'f' NOT NULL)  [27:698 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [27:698 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [27:698 deploy] Migrating to CreateUsers (20130403132607)  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "mirror_user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [27:698 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [27:698 deploy] Migrating to CreateAppendages (20130411202442)  (0.1ms) CREATE TABLE "appendages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [27:698 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [27:698 deploy] Migrating to CreateMirrorUsers (20130411202551)  (0.1ms) CREATE TABLE "mirror_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [27:698 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [27:698 deploy] Migrating to CreateDigits (20131022202028)  (0.2ms) CREATE TABLE "digits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "appendage_id" integer(8), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [27:698 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [27:698 deploy] Migrating to CreateFeatures (20131206172923)  (0.1ms) CREATE TABLE "features" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_id" integer(8), "owner_type" varchar(255), "value" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [27:698 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [27:698 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.1ms) ALTER TABLE "users" ADD "parent_id" integer(8) [27:698 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [27:698 deploy] Migrating to CreateRoots (20140219183820)  (0.1ms) CREATE TABLE "roots" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer(8), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [27:698 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [27:698 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.1ms) ALTER TABLE "users" ADD "broken_id" integer(8) [27:698 deploy]  (0.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [27:698 deploy]  (1.0ms) commit transaction [27:698 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:679 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'db/shard_698.sqlite3' WHERE "switchman_shards"."id" = 698 [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.0ms) begin transaction [27:698 master] SQL (0.5ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [27:698 master]  (0.7ms) commit transaction [27:698 master] Drop failed: No such file or directory @ unlink_internal - db/shard_698.sqlite3  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 698]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.2ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" IS NULL AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '28' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "28"], ["default", false], ["name", "public"]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.6ms) CREATE SCHEMA switchman_test_shard_699 [28:699 deploy]  (0.1ms) BEGIN [28:699 deploy]  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [28:699 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [28:699 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [28:699 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.1ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [28:699 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [28:699 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [28:699 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [28:699 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [28:699 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [28:699 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [28:699 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [28:699 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [28:699 deploy] Migrating to CreateDigits (20131022202028)  (1.5ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [28:699 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [28:699 deploy] Migrating to CreateFeatures (20131206172923)  (2.0ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [28:699 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [28:699 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [28:699 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [28:699 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [28:699 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [28:699 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [28:699 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [28:699 deploy]  (0.7ms) COMMIT [28:699 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:679 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_699' WHERE "switchman_shards"."id" = 699 [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) BEGIN [28:699 master] SQL (0.9ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:16 UTC +00:00]] [28:699 master]  (0.3ms) COMMIT [28:699 master]  (5.3ms) DROP SCHEMA switchman_test_shard_699 CASCADE [28:699 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.4ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 699]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]] [test:679 master]  (0.3ms) CREATE SCHEMA switchman_test_shard_700 [test:700 deploy]  (0.1ms) SAVEPOINT active_record_2 [test:700 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [test:700 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:700 deploy]  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [test:700 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.3ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [test:700 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [test:700 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [test:700 deploy] Migrating to CreateUsers (20130403132607)  (2.6ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [test:700 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [test:700 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [test:700 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [test:700 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [test:700 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [test:700 deploy] Migrating to CreateDigits (20131022202028)  (2.1ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [test:700 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [test:700 deploy] Migrating to CreateFeatures (20131206172923)  (1.9ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [test:700 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [test:700 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:700 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [test:700 deploy] Migrating to CreateRoots (20140219183820)  (2.1ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [test:700 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [test:700 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:700 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [test:700 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_2 [test:700 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_700' WHERE "switchman_shards"."id" = 700 [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:700 master] SQL (0.7ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [test:700 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:700 master]  (3.6ms) DROP SCHEMA switchman_test_shard_700 CASCADE [test:700 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 700]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (2.6ms) ROLLBACK [test:679 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:679 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master]  (0.3ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 679], ["name", nil]] [test:679 master]  (5.5ms) COMMIT [test:679 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 680], ["name", "switchman_test_shard_680"]] [test:679 master]  (5.4ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 681], ["name", "switchman_test_shard_681"]] [test:679 master]  (5.6ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "29"], ["default", false], ["name", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "29"], ["default", false], ["name", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 679], ["name", nil]] [test:679 master]  (0.2ms) COMMIT [test:679 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 680], ["name", "switchman_test_shard_680"]] [test:679 master]  (0.2ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 681], ["name", "switchman_test_shard_681"]] [test:679 master]  (0.2ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.4ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "30"], ["default", false], ["name", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "31"], ["default", false], ["name", nil]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master] SQL (0.7ms) DELETE FROM "switchman_shards" [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] SQL (0.5ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 679], ["name", nil]] [test:679 master]  (0.3ms) COMMIT [test:679 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 680], ["name", "switchman_test_shard_680"]] [test:679 master]  (0.2ms) COMMIT [test:679 master]  (0.0ms) BEGIN [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 681], ["name", "switchman_test_shard_681"]] [test:679 master]  (0.2ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.7ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 60], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (1.0ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.5ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 50], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 61], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 51], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:679 master] SQL (0.5ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [test:679 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 680 LIMIT 1 [test:679 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 681 LIMIT 1 [test:679 master] SQL (0.5ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (984) [test:679 master] SQL (0.2ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (61) [test:680 master] SQL (0.5ms) SELECT DISTINCT "users"."name" FROM "users" WHERE "users"."id" IN (51) [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 62], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 52], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 43 [test:680 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [1:681 master] SQL (0.3ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 43 [test:680 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [1:681 master] SQL (0.2ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 43 [test:680 master] SQL (0.1ms) SELECT "appendages"."user_id" FROM "appendages" WHERE "appendages"."id" = 34 [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 63], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 53], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (63) [test:680 master] SQL (0.2ms) SELECT "users"."name" FROM "users" WHERE "users"."id" IN (53) [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 64], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 54], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 45 [test:680 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 36 [1:681 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 45 [test:680 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 36 [1:681 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 45 [test:680 master] SQL (0.2ms) SELECT "appendages"."id" FROM "appendages" WHERE "appendages"."id" = 36 [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 65], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 55], ["value", nil]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 66], ["value", 1]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 6810000000000056], ["value", 3]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 6800000000000066], ["value", 2]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 56], ["value", 4]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 56], ["value", 5]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SHOW max_identifier_length [test:679 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:680 master]  (0.4ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:681 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:680 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:681 master]  (0.1ms) SHOW max_identifier_length [1:681 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:680 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:681 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:680 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [test:680 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [1:681 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:681 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (56) [1:681 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (66) [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (7.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 67], ["value", 1]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 6810000000000057], ["value", 3]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 6800000000000067], ["value", 2]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 57], ["value", 4]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 57], ["value", 5]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:680 master]  (0.3ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:681 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:680 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:681 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:680 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:681 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:680 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [test:680 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [1:681 master]  (0.2ms) SELECT MAX("appendages"."value") AS maximum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:681 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (57) [1:681 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (67) [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 68], ["value", 1]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 6810000000000058], ["value", 3]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 6800000000000068], ["value", 2]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 58], ["value", 4]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 58], ["value", 5]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.3ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:680 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:681 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:680 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:681 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:680 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:681 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [test:680 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (68) [test:680 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [1:681 master]  (0.2ms) SELECT MIN("appendages"."value") AS minimum_value, user_id AS user_id FROM "appendages" GROUP BY user_id [1:681 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (58) [1:681 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (68) [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 69], ["value", 1]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 6810000000000059], ["value", 3]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 6800000000000069], ["value", 2]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 59], ["value", 4]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 59], ["value", 5]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 69], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 70], ["value", nil]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.3ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id ORDER BY COUNT(*) DESC LIMIT 1 [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 71], ["value", 1]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 6810000000000060], ["value", 3]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 6800000000000071], ["value", 2]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 60], ["value", 4]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 60], ["value", 5]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:680 master]  (0.1ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:681 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:680 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:681 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:680 master]  (0.2ms) SELECT COUNT(*) AS count_all, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:681 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [test:680 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [test:680 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [1:681 master]  (0.2ms) SELECT COUNT(*) AS count_all, user_id AS user_id FROM "appendages" GROUP BY user_id [1:681 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (60) [1:681 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (71) [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.4ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 72], ["value", 1]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 6810000000000061], ["value", 3]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 6800000000000072], ["value", 2]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 61], ["value", 4]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 61], ["value", 5]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.4ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:680 master]  (0.3ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:681 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:680 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:681 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [test:680 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, appendages.user_id AS appendages_user_id FROM "appendages" GROUP BY appendages.user_id [1:681 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [test:680 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [test:680 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [1:681 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count, user_id AS user_id FROM "appendages" GROUP BY user_id [1:681 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (61) [1:681 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (72) [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 73], ["value", 1]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 73], ["value", 2]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 62], ["value", 3]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 62], ["value", 4]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 62], ["value", 5]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 73 [test:680 master]  (0.1ms) SELECT COUNT(*) FROM "appendages"  [test:680 master]  (0.2ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."user_id" = 62 [1:681 master]  (0.1ms) SELECT COUNT(*) FROM "appendages"  [1:681 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (61, 62) [test:680 master]  (0.3ms) SELECT COUNT(*) FROM "appendages" WHERE "appendages"."id" IN (56, 57, 58) [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 74], ["value", 1]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 74], ["value", 2]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 63], ["value", 3]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 63], ["value", 4]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 63], ["value", 5]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 74 [test:680 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [test:680 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."user_id" = 63 [1:681 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages"  [1:681 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (63, 64) [test:680 master]  (0.2ms) SELECT AVG("appendages"."value") AS average, COUNT("appendages"."value") AS count FROM "appendages" WHERE "appendages"."id" IN (59, 60, 61) [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 75], ["value", 1]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 75], ["value", 2]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 64], ["value", 3]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 64], ["value", 4]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 64], ["value", 5]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.3ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 75 [test:680 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [test:680 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."user_id" = 64 [1:681 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages"  [1:681 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (65, 66) [test:680 master]  (0.2ms) SELECT SUM("appendages"."value") AS sum_id FROM "appendages" WHERE "appendages"."id" IN (62, 63, 64) [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 76], ["value", 1]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 76], ["value", 2]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 65], ["value", 3]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 65], ["value", 4]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 65], ["value", 5]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 76 [test:680 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [test:680 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."user_id" = 65 [1:681 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages"  [1:681 master]  (0.3ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (67, 68) [test:680 master]  (0.2ms) SELECT MIN("appendages"."value") AS min_id FROM "appendages" WHERE "appendages"."id" IN (65, 66, 67) [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 77], ["value", 1]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 77], ["value", 2]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 66], ["value", 3]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 66], ["value", 4]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 66], ["value", 5]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.4ms) SELECT MAX("appendages"."created_at") AS max_id FROM "appendages" WHERE "appendages"."id" IN (69, 70) [test:680 master]  (0.3ms) SELECT MAX("appendages"."created_at") AS max_id FROM "appendages" WHERE "appendages"."id" IN (68, 69, 70) [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user1"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 78], ["value", 1]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 78], ["value", 2]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "user2"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (1.1ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 67], ["value", 3]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.2ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 67], ["value", 4]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "appendages" ("created_at", "updated_at", "user_id", "value") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["user_id", 67], ["value", 5]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 78 [test:680 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [test:680 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."user_id" = 67 [1:681 master]  (0.2ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages"  [1:681 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (71, 72) [test:680 master]  (0.3ms) SELECT MAX("appendages"."value") AS max_id FROM "appendages" WHERE "appendages"."id" IN (71, 72, 73) [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master] SQL (5.6ms) DELETE FROM "switchman_shards" [test:679 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Exists (0.9ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 679], ["name", nil]] [test:679 master]  (6.0ms) COMMIT [test:679 master] Switchman::Shard Load (1.0ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 680], ["name", "switchman_test_shard_680"]] [test:679 master]  (0.3ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 681], ["name", "switchman_test_shard_681"]] [test:679 master]  (0.3ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = 79 LIMIT 1 [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [1:681 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", "multi-shard exists"], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [1:681 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [1:681 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" ORDER BY database_server_id IS NOT NULL, database_server_id, id [test:679 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [test:679 master] User Exists (0.3ms) SELECT 1 AS one FROM "users" WHERE "users"."name" = 'multi-shard exists' LIMIT 1 [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.7ms) ROLLBACK [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = $1 [["id", 81]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 6800000000000081 LIMIT 1 [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = 680 LIMIT 1 [test:679 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (82) LIMIT 1 [test:680 master]  (0.2ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.2ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 83 LIMIT 1 [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:680 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.3ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:46:17 UTC +00:00]] [test:680 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:680 master] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 84]] [test:680 master]  (0.1ms) ROLLBACK [1:681 master]  (0.2ms) ROLLBACK [test:680 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 679], ["name", nil]] [test:679 master]  (0.2ms) COMMIT [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 680], ["name", "switchman_test_shard_680"]] [test:679 master]  (0.2ms) COMMIT [test:679 master]  (0.0ms) BEGIN [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 681], ["name", "switchman_test_shard_681"]] [test:679 master]  (0.2ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.0ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.1ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.0ms) BEGIN [1:681 master]  (0.0ms) ROLLBACK [1:681 master]  (0.1ms) ROLLBACK [test:679 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.0ms) BEGIN [test:679 master] Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 679], ["name", nil]] [test:679 master]  (0.3ms) COMMIT [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (0.1ms) BEGIN [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 680], ["name", "switchman_test_shard_680"]] [test:679 master]  (0.2ms) COMMIT [test:679 master]  (0.0ms) BEGIN [test:679 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 681], ["name", "switchman_test_shard_681"]] [test:679 master]  (0.2ms) COMMIT [test:679 master]  (0.1ms) BEGIN [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 680]] [test:679 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 681]] [test:679 master]  (0.1ms) BEGIN [1:681 master]  (0.0ms) SAVEPOINT active_record_1 [test:680 master] SQL (0.0ms) INSERT INTO "users" ("broken_id", "created_at", "mirror_user_id", "name", "parent_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["broken_id", nil], ["created_at", Mon, 19 Oct 2015 16:47:17 UTC +00:00], ["mirror_user_id", nil], ["name", nil], ["parent_id", nil], ["updated_at", Mon, 19 Oct 2015 16:47:17 UTC +00:00]] [test:680 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:680 master]  (0.0ms) ROLLBACK [1:681 master]  (0.0ms) ROLLBACK [test:680 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:679 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:679 master]  (5.8ms) DROP SCHEMA switchman_test_shard_680 CASCADE [test:680 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 680]]  (0.1ms) COMMIT  (5.8ms) DROP SCHEMA switchman_test_shard_681 CASCADE [1:681 deploy]  (0.2ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 681]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.4ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.5ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.3ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.7ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.3ms) COMMIT Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.4ms) CREATE SCHEMA switchman_test_shard_706 [test:706 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:706 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:706 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:706 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [test:706 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.9ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:706 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [test:706 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [test:706 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:706 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [test:706 deploy] Migrating to CreateAppendages (20130411202442)  (2.1ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:706 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [test:706 deploy] Migrating to CreateMirrorUsers (20130411202551)  (2.0ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:706 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [test:706 deploy] Migrating to CreateDigits (20131022202028)  (2.2ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:706 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [test:706 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:706 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [test:706 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:706 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [test:706 deploy] Migrating to CreateRoots (20140219183820)  (1.9ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:706 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [test:706 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:706 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [test:706 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:706 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_706' WHERE "switchman_shards"."id" = 706 [test:705 master]  (0.7ms) COMMIT [test:705 master] Switchman::Shard Load (0.7ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:705 master]  (0.0ms) BEGIN [test:705 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [test:705 master]  (0.3ms) COMMIT [test:705 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_707 [1:707 deploy]  (0.1ms) BEGIN [1:707 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:707 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:707 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [1:707 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.0ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:707 deploy]  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [1:707 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [1:707 deploy] Migrating to CreateUsers (20130403132607)  (2.0ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:707 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [1:707 deploy] Migrating to CreateAppendages (20130411202442)  (1.9ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:707 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [1:707 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.9ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:707 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [1:707 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:707 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [1:707 deploy] Migrating to CreateFeatures (20131206172923)  (2.1ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:707 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [1:707 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:707 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [1:707 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:707 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [1:707 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:707 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [1:707 deploy]  (0.7ms) COMMIT [1:707 deploy]  (0.1ms) BEGIN [test:705 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_707' WHERE "switchman_shards"."id" = 707 [test:705 master]  (0.4ms) COMMIT [test:705 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:705 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:705 master]  (0.1ms) BEGIN [test:705 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:705 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 705], ["name", nil]] [test:705 master]  (0.2ms) COMMIT [test:705 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:705 master]  (0.1ms) BEGIN [test:705 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 706], ["name", "switchman_test_shard_706"]] [test:705 master]  (0.2ms) COMMIT [test:705 master]  (0.1ms) BEGIN [test:705 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 707], ["name", "switchman_test_shard_707"]] [test:705 master]  (0.2ms) COMMIT [test:705 master]  (0.1ms) BEGIN [test:705 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:705 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 706]] [test:705 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 707]] [test:705 master]  (0.1ms) BEGIN [1:707 master]  (0.1ms) SAVEPOINT active_record_1 [test:705 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:705 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:705 master]  (0.0ms) SAVEPOINT active_record_1 [test:705 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:705 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:705 master]  (0.0ms) SAVEPOINT active_record_1 [test:705 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:705 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:705 master]  (0.0ms) SAVEPOINT active_record_1 [test:705 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 709]] [test:705 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:705 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:705 master] Switchman::Shard Load (0.3ms) SELECT MAX(id) AS max_id FROM (SELECT id FROM "switchman_shards" ORDER BY id LIMIT 2) subquery  [test:705 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id<=706) [test:705 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards"  [test:705 master] Switchman::Shard Load (0.3ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT id FROM "switchman_shards" ORDER BY id LIMIT 2 OFFSET 2) subquery [test:705 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=707 AND id<=708)) [test:705 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:705 master] Switchman::Shard Load (0.2ms) SELECT MIN(id) AS min_id FROM (SELECT id FROM "switchman_shards" ORDER BY id OFFSET 4) subquery  [test:705 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id>=710) [test:705 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [test:705 master] Switchman::Shard Load (0.3ms) SELECT MAX(id) AS max_id FROM (SELECT id FROM "switchman_shards" ORDER BY id LIMIT 1) subquery [test:705 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id<=705) [test:705 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards" [test:705 master] Switchman::Shard Load (0.2ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT id FROM "switchman_shards" ORDER BY id LIMIT 1 OFFSET 1) subquery  [test:705 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=706 AND id<=706)) [test:705 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards"  [test:705 master] Switchman::Shard Load (0.2ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT id FROM "switchman_shards" ORDER BY id LIMIT 1 OFFSET 2) subquery [test:705 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=707 AND id<=707)) [test:705 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:705 master] Switchman::Shard Load (0.2ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT id FROM "switchman_shards" ORDER BY id LIMIT 1 OFFSET 3) subquery  [test:705 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=708 AND id<=708)) [test:705 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [test:705 master] Switchman::Shard Load (0.2ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT id FROM "switchman_shards" ORDER BY id LIMIT 1 OFFSET 4) subquery [test:705 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=710 AND id<=710)) [test:705 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:705 master] Switchman::Shard Load (0.2ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT id FROM "switchman_shards" ORDER BY id LIMIT 1 OFFSET 5) subquery  [test:705 master] Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>= AND id<=)) [test:705 master] PG::UndefinedFunction: ERROR: operator does not exist: bigint >= LINE 1: ...hman_shards".* FROM "switchman_shards" WHERE ((id>= AND id<... ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. : SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>= AND id<=))  (0.1ms) ROLLBACK [1:707 master]  (0.1ms) ROLLBACK [test:705 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:705 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:705 master]  (5.2ms) DROP SCHEMA switchman_test_shard_706 CASCADE [test:706 deploy]  (0.1ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 706]]  (0.1ms) COMMIT  (5.8ms) DROP SCHEMA switchman_test_shard_707 CASCADE [1:707 deploy]  (0.2ms) BEGIN SQL (0.3ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 707]]  (0.1ms) COMMIT Connecting to database specified by database.yml  (0.5ms) SELECT * FROM unnest(current_schemas(false)) Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.5ms) DELETE FROM "switchman_shards" Switchman::Shard Load (0.4ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1  (0.1ms) BEGIN Switchman::Shard Exists (0.2ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 SQL (0.6ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", true], ["name", nil]]  (0.4ms) COMMIT Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 Switchman::Shard Load (0.8ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (database_server_id IS NULL OR database_server_id='test') AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1  (0.1ms) BEGIN SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "test"], ["default", false], ["name", "public"]]  (0.3ms) CREATE SCHEMA switchman_test_shard_712 [test:712 deploy]  (0.1ms) SAVEPOINT active_record_1 [test:712 deploy]  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  [test:712 deploy]  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [test:712 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  [test:712 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (3.2ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL) [test:712 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [test:712 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [test:712 deploy] Migrating to CreateUsers (20130403132607)  (1.8ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:712 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [test:712 deploy] Migrating to CreateAppendages (20130411202442)  (1.8ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:712 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [test:712 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:712 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [test:712 deploy] Migrating to CreateDigits (20131022202028)  (1.9ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:712 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [test:712 deploy] Migrating to CreateFeatures (20131206172923)  (1.8ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:712 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [test:712 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [test:712 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [test:712 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  [test:712 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [test:712 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [test:712 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [test:712 deploy]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:712 deploy]  (0.3ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_712' WHERE "switchman_shards"."id" = 712 [test:711 master]  (0.5ms) COMMIT [test:711 master] Switchman::Shard Load (0.6ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."database_server_id" = '1' AND (name<>':memory:' OR name IS NULL) ORDER BY id LIMIT 1 [test:711 master]  (0.1ms) BEGIN [test:711 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", "1"], ["default", false], ["name", "public"]] [test:711 master]  (0.2ms) COMMIT [test:711 master]  (0.5ms) CREATE SCHEMA switchman_test_shard_713 [1:713 deploy]  (0.1ms) BEGIN [1:713 deploy]  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) [1:713 deploy]  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") [1:713 deploy]  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" [1:713 deploy] Migrating to CreateSwitchmanShards (20130328212039)  (2.8ms) CREATE TABLE "switchman_shards" ("id" bigserial primary key, "name" character varying(255), "database_server_id" character varying(255), "default" boolean DEFAULT 'f' NOT NULL)  [1:713 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328212039') [1:713 deploy] Migrating to CreateDefaultShard (20130328224244)  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130328224244') [1:713 deploy] Migrating to CreateUsers (20130403132607)  (1.9ms) CREATE TABLE "users" ("id" bigserial primary key, "name" character varying(255), "mirror_user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:713 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130403132607') [1:713 deploy] Migrating to CreateAppendages (20130411202442)  (1.7ms) CREATE TABLE "appendages" ("id" bigserial primary key, "user_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:713 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202442') [1:713 deploy] Migrating to CreateMirrorUsers (20130411202551)  (1.7ms) CREATE TABLE "mirror_users" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:713 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130411202551') [1:713 deploy] Migrating to CreateDigits (20131022202028)  (1.8ms) CREATE TABLE "digits" ("id" bigserial primary key, "appendage_id" bigint, "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:713 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131022202028') [1:713 deploy] Migrating to CreateFeatures (20131206172923)  (2.3ms) CREATE TABLE "features" ("id" bigserial primary key, "owner_id" bigint, "owner_type" character varying(255), "value" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:713 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20131206172923') [1:713 deploy] Migrating to AddParentIdToUsers (20140123154135)  (0.2ms) ALTER TABLE "users" ADD COLUMN "parent_id" bigint [1:713 deploy]  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140123154135') [1:713 deploy] Migrating to CreateRoots (20140219183820)  (1.8ms) CREATE TABLE "roots" ("id" bigserial primary key, "user_id" bigint, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [1:713 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20140219183820') [1:713 deploy] Migrating to AddDummyForeignKey (20150618035859)  (0.2ms) ALTER TABLE "users" ADD COLUMN "broken_id" bigint [1:713 deploy]  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20150618035859') [1:713 deploy]  (0.7ms) COMMIT [1:713 deploy]  (0.1ms) BEGIN [test:711 master]  (0.2ms) UPDATE "switchman_shards" SET "name" = 'switchman_test_shard_713' WHERE "switchman_shards"."id" = 713 [test:711 master]  (0.3ms) COMMIT [test:711 master] SQL (0.3ms) DELETE FROM "switchman_shards" [test:711 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:711 master]  (0.1ms) BEGIN [test:711 master] Switchman::Shard Exists (0.1ms) SELECT 1 AS one FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:711 master] SQL (0.3ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", nil], ["default", true], ["id", 711], ["name", nil]] [test:711 master]  (0.3ms) COMMIT [test:711 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:711 master]  (0.0ms) BEGIN [test:711 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "test"], ["default", false], ["id", 712], ["name", "switchman_test_shard_712"]] [test:711 master]  (0.3ms) COMMIT [test:711 master]  (0.1ms) BEGIN [test:711 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "id", "name") VALUES ($1, $2, $3, $4) RETURNING "id" [["database_server_id", "1"], ["default", false], ["id", 713], ["name", "switchman_test_shard_713"]] [test:711 master]  (0.2ms) COMMIT [test:711 master]  (0.1ms) BEGIN [test:711 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:711 master] Switchman::Shard Load (0.3ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 712]] [test:711 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 LIMIT 1 [["id", 713]] [test:711 master]  (0.1ms) BEGIN [1:713 master]  (0.1ms) SAVEPOINT active_record_1 [test:711 master] SQL (0.2ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:711 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:711 master]  (0.1ms) SAVEPOINT active_record_1 [test:711 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:711 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:711 master]  (0.0ms) SAVEPOINT active_record_1 [test:711 master] SQL (0.1ms) INSERT INTO "switchman_shards" ("database_server_id", "default", "name") VALUES ($1, $2, $3) RETURNING "id" [["database_server_id", nil], ["default", false], ["name", nil]] [test:711 master]  (0.0ms) RELEASE SAVEPOINT active_record_1 [test:711 master]  (0.0ms) SAVEPOINT active_record_1 [test:711 master] SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 715]] [test:711 master]  (0.1ms) RELEASE SAVEPOINT active_record_1 [test:711 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:711 master] Switchman::Shard Load (0.2ms) SELECT MAX(id) AS max_id FROM (SELECT id FROM "switchman_shards" ORDER BY id LIMIT 2) subquery  [test:711 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id<=712) [test:711 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards"  [test:711 master] Switchman::Shard Load (0.3ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT id FROM "switchman_shards" ORDER BY id LIMIT 2 OFFSET 2) subquery [test:711 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=713 AND id<=714)) [test:711 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:711 master] Switchman::Shard Load (0.2ms) SELECT MIN(id) AS min_id FROM (SELECT id FROM "switchman_shards" ORDER BY id OFFSET 4) subquery  [test:711 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id>=716) [test:711 master]  (0.2ms) SELECT COUNT(*) FROM "switchman_shards"  [test:711 master] Switchman::Shard Load (0.2ms) SELECT MAX(id) AS max_id FROM (SELECT id FROM "switchman_shards" ORDER BY id LIMIT 1) subquery [test:711 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE (id<=711) [test:711 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:711 master] Switchman::Shard Load (0.2ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT id FROM "switchman_shards" ORDER BY id LIMIT 1 OFFSET 1) subquery  [test:711 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=712 AND id<=712)) [test:711 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [test:711 master] Switchman::Shard Load (0.1ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT id FROM "switchman_shards" ORDER BY id LIMIT 1 OFFSET 2) subquery [test:711 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=713 AND id<=713)) [test:711 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:711 master] Switchman::Shard Load (0.1ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT id FROM "switchman_shards" ORDER BY id LIMIT 1 OFFSET 3) subquery  [test:711 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=714 AND id<=714)) [test:711 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards"  [test:711 master] Switchman::Shard Load (0.1ms) SELECT MIN(id) AS min_id, MAX(id) AS max_id FROM (SELECT id FROM "switchman_shards" ORDER BY id LIMIT 1 OFFSET 4) subquery [test:711 master] Switchman::Shard Load (0.2ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ((id>=716 AND id<=716)) [test:711 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:711 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ('f') [test:711 master]  (0.1ms) SELECT COUNT(*) FROM "switchman_shards" [test:711 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE ('f') [test:711 master]  (0.1ms) ROLLBACK [1:713 master]  (0.1ms) ROLLBACK [test:711 master] SQL (0.4ms) DELETE FROM "switchman_shards" [test:711 master] Switchman::Shard Load (0.1ms) SELECT "switchman_shards".* FROM "switchman_shards" WHERE "switchman_shards"."default" = 't' LIMIT 1 [test:711 master]  (5.2ms) DROP SCHEMA switchman_test_shard_712 CASCADE [test:712 deploy]  (0.1ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 712]]  (0.1ms) COMMIT  (7.0ms) DROP SCHEMA switchman_test_shard_713 CASCADE [1:713 deploy]  (0.3ms) BEGIN SQL (0.2ms) DELETE FROM "switchman_shards" WHERE "switchman_shards"."id" = $1 [["id", 713]]  (0.1ms) COMMIT